Commit Graph

43 Commits

Author SHA1 Message Date
James Liu 1feb9a0c41
chore(frontend): Use protoc to compile IR to typescript definition. Fix #6272 (#6273) 2021-08-10 02:38:24 -07:00
Chen Sun 5b5568c112
feat(api): Add env variable in ContainerSpec (#6251) 2021-08-09 10:52:27 -07:00
Chen Sun ef4518623e
chore: make directories before downloading api dependency proto (#6245) 2021-08-05 14:28:42 -07:00
Yaqi Ji 4c838f7001
chore: Update package version for pipeline-spec release (#6242) 2021-08-05 13:17:42 -07:00
Yaqi Ji 58fefe9e21
chore: update pipeline_spec.proto comments for `schema_title` format and sync the deprecation warning for `schema_uri`. (#6234)
* Update pipeline_spec.proto

* Update pipeline_spec.proto
2021-08-04 22:11:18 -07:00
Chen Sun 0b82ef939b
chore(api): Using Makefile to pull dependency proto (#6223)
* update api/makefile

* add back "make clean all"
2021-08-04 07:40:42 -07:00
Chen Sun bb22118588
feat(api): Add PipelineTaskFinalStatus to pipeline_spec.proto (#6221)
* Add PipelineTaskFinalStatus

* fork https://github.com/googleapis/googleapis/blob/master/google/rpc/status.proto
2021-08-03 22:12:41 -07:00
Yaqi Ji 6b48154d1c
feat(sdk): update pipeline_spec.proto to add artifact schema version field (#6220) 2021-08-03 16:54:41 -07:00
Yuan (Bob) Gong b653ea244c
feat: pipeline spec as a separate go module (#6000)
* feat: pipeline spec as a separate go module

* use api-generator image & update release image

* clean up & update licenses

* go mod tidy
2021-07-12 20:51:16 -07:00
capri-xiyue 724e5b4c7d
chore(v2): Fetch cache result from MLMD and put cache result into argo output artifacts/parameters (#5957)
* added model and storage layer for task

* added create task api

* added api to list tasks

* modified task proto and fixed nits

* renamed variable

* fixed ut

* fixed UT

* added UT for api_converter and resource manager

* added UT for api_converter and resource manager

* fixed BE UT

* added task storage layer UT

* changed UT

* fixed foreign key typo

* added some draft code for replay argo result

* added kfp client in v2

* deleted unused code

* run go mode

* upgraded go version in go v2 test

* run go mod tidy

* added cache client

* fixed nits

* fetched MLMD output parameter

* store output artifacts metadata from cache

* added mlmd pipeline context, exuection and output event

* fixed grpc endpoint of mlpipeline

* fixed task backend bug and fixed launcher connect bug

* fixed cache bug

* added cache info

* fixed unused test

* fixed backend test

* fixed v2 build

* refactored launcher

* removed unused code

* fixed typo
2021-07-08 23:38:23 -07:00
hilcj 635f1ba7c0
Update pipeline_spec.proto (#5813) 2021-06-08 11:06:16 -07:00
hilcj 85013375f0
Update pipeline_spec.proto (#5787)
The single quote is no longer supported.
2021-06-03 16:00:36 -07:00
Chen Sun 84387a8083
release(api): Bump kfp-pipeline-spec version to 0.1.8 (#5778) 2021-06-02 11:44:35 -07:00
Chen Sun cbea3f087e
chore: Adding ji-yaqi to API & SDK OWNERS files, remove inactive members. (#5733)
* Update OWNERS

* Update OWNERS
2021-05-25 16:06:40 -07:00
IronPan 0c6b99563a
Update IR documentations (#5647)
* Update IR documentations

* Update pipeline_spec.proto

* Update pipeline_spec.proto
2021-05-18 19:31:41 -07:00
Alexey Volkov cc83e1089b
Assigned copyright to the project authors (#5587) 2021-05-05 13:53:22 +08:00
Chen Sun d3ddfadf2d
chore(api): deprecate AIPlatformCustomJobSpec (#5361) 2021-03-22 19:50:43 -07:00
hilcj 1e8d4991c8
Update pipeline_spec.proto (#5342) 2021-03-22 13:42:43 -07:00
Chen Sun 265a0274e7
release(api): Update pipeline_spec.proto and bump kfp-pipeline-spec version to 0.1.7. (#5262)
* Update pipeline_spec.proto

* Update setup.py
2021-03-08 17:46:23 -08:00
Chen Sun 12dcd245b9
release(api): Bump kfp-pipeline-spec version to 0.1.6 (#5144) 2021-02-17 13:14:30 -08:00
Chen Sun 33a7d4d336
feat(api): Update pipeline_spec.proto - Add metadata to ArtifactSpec (#5143) 2021-02-17 12:20:30 -08:00
Chen Sun 1f32e90ecd
chore(api): Fix kfp-pipeline-spec dependency. Fixes #5134 (#5135) 2021-02-13 16:31:58 -08:00
Yuan (Bob) Gong 3d40bba9a3
chore(backend): clean up backend code generation (#5116)
* chore(backend): tidy go.mod and update tools.go

* go install, instead of go get

* fix problems reported by go vet

* simplify some ide reported redundant syntax

* license is not required for generated code

* remove licenses for generated code

* cleanup

* remove license more

* rm unused BUILD.bazel files

* fixed generate_api.sh

* reimport error.proto
2021-02-09 07:10:57 -08:00
Yuan (Bob) Gong d024935339
WIP: KFP v2 POC (#5092)
* Changes:
* add kfp v2 hello world sample
* generate go proto code
* code to unmarshal via jsonpb
* generate container spec
* add root DAG task and Makefile to run in argo
* env setup to quickly build driver container
* generate mlmd grpc golang client
* mlmd grpc client usage example
* driver-dag: put execution and context
* driver dag: put context only when execution is a DAG
* driver task: resolve parameter from parent execution
* chain dag driver with task driver
* driver: output argo parameters
* driver: build driver docker image
* driver: push image to dev registry
* compiler: root dag driver compiler
* mlmd doc
* driver: use task spec and executor spec as driver input instead
* driver: pod spec patch output for type EXECUTOR
* compiler: passing - parameter placeholder with hello world example
* include generated argo workflow in source control
* driver no longer outputs parameters
* publisher: publish parameters to execution custom properties
* driver, publisher: execution state
* publisher: remove built binary from repo
* sample: add producer consumer sample
* sample: producer consumer sample with only parameters
* e2e output parameter support
* e2e: driver resolves input parameter from tasks in the same DAG
* compiler: convert KFP task dependency to argo task dependency
* feat: refactor publisher so it can run as an entrypoint
* build: entrypoint image
* feat: executor and publisher in one container via entrypoint rewriting

* fixed compile error (#1)

* add licenses

* update readme

Co-authored-by: capri-xiyue <52932582+capri-xiyue@users.noreply.github.com>
2021-02-08 10:18:33 -08:00
Chen Sun e10a89d5c7
release(api): Bump kfp-pipeline-spec version to 0.1.5 (#5096) 2021-02-03 23:47:36 -08:00
hilcj 7dbb5d327b
Update pipeline_spec.proto (#5088) 2021-02-03 12:29:36 -08:00
Chen Sun 628e970990
feat(API): Add TriggerPolicy to pipeline_spec (#5080)
* Add TriggerPolicy to pipeline_spec

* fix comments
2021-02-02 16:32:36 -08:00
Jiaxiao Zheng 32ce8d8f90
feat(api): Add AI Platform Custom Job spec to IR (#5035) 2021-01-26 04:18:00 -08:00
Chen Sun 273890ad0b
Bump kfp-pipeline-spec version to 0.1.4 (#4982) 2021-01-14 10:05:05 -08:00
hilcj bb0f33054c
feat(backend): sync pipeline_spec.proto (#4927)
Add control flow features to the pipeline_spec.proto.
2020-12-21 13:52:26 -08:00
Jiaxiao Zheng 04d5e609f2
chore: Bump kfp-pipeline-spec to 0.1.3.1 (#4882)
* bump to 0.1.3.1

* remove negative pin
2020-12-09 21:06:53 -08:00
Jiaxiao Zheng 3cc4a7add5
chore: add OWNER file to api folder (#4883) 2020-12-09 19:34:53 -08:00
Jiaxiao Zheng ee85ed563c
[IR] Add deployment spec to IR spec. (#4881)
* add deployment spec

* update version string
2020-12-09 11:46:54 -08:00
DavidSpek 0df9473bba
feat: Set current namespace for in-cluster SDK in multi-user mode and add healthz endpoint to API backends (#4638)
* Set current namespace in local KFP context if running from notebook

* Create "~/.config/kfp/" instead of ".config/kfp/"

At first it was assumed the `get_user_namespace` command would be executed from the home directory.

* Create local context file if it doesn't exist during set_user_namespace

* Grab path from LOCAL_KFP_CONTEXT when creating folder

Instead of harcoding the os.mkdirs path to `~/.config/kfp` it now grabs it from the LOCAL_KFP_CONTEXT. Also, removed path creation in `get_user_namespace` as that is now handled in `set_user_namespace`. Also, it now checks if the path exists rather than the local_context_file to remove the situation where it tries to create ~/.config/kfp/ because the context.json doesn't exist when the path does.

* add multi-user setting to healthz api

* Add http prefix to health api url

* move healtz api call to own function and fix multi_user boolean

* Fix HEALTH_PATH declaration

* Move check to Client __init__ and change get_kfp_healthz to avoid breaking in case of old apiserver image

* Add multi_user to frontend healthz

* Expose multi_user in frontend and add integration test

* Fix integration test

* Fix host hardcoding and error handling

* Handle empty API response, check if API up to date

* Fix response return

* remove API check due to empty response

* retry API call if first response empty

* retry getting healthz api if no response

* change health_api to https

The healthz_api has been returning empty responses which might be caused by sending an http request to an https endpoint. Although requests handles redirects, this commit is to test if this solves the issue.

* Add some debug info to healthz exception

* add url to debug and lower retries to 1

* Use api_client to get healthz data

* Debug info for API response

* Follow API redirect history

* Fix indentation

* Add healthz proto

* Try getting healthz api with new python backend

* Add installation of kfp_server_api in tests

* Fix incorrect setup location

* Replace old .get with new http backend .multi_user

* Code clean up

* Small fixes and TimeOutError for retries healthz api

* Remove changes to go dependencies

* Send empty proto request and fix exception client

* Remove unused commit_sha and tag_name
2020-11-24 15:36:39 -08:00
Jiaxiao Zheng f140ddb679
chore: Add resolver spec in IR (#4759)
* add resolver spec

* update version

* update version again
2020-11-11 18:07:41 -08:00
Chen Sun c9546970d5
chore: package pipeline spec into a standalone Python package (#4744)
* package pipeline spec into a standalone Python package

* add metadata

* bump up version

* convert to namespace package

* version to 0.1.0
2020-11-10 15:33:41 -08:00
Chen Sun 82b1ed4d17
chore(sdk): v2 compiler compiles to pipeline job spec (#4729)
* fix proto

* compile to pipeline job spec

* make pipeline_root required

* address comments
2020-11-06 15:05:38 -08:00
Jiaxiao Zheng 655c42d423
chore: Add pipelineJob to IR spec (#4720)
* add job to IR

* add generated proto_py

* make comments concise
2020-11-05 16:20:50 -08:00
Yuan Gong 7d36f48482 chore(release): bumped version to 1.1.0-alpha.1 2020-11-02 03:01:27 +00:00
Jiaxiao Zheng c4dd7871a6
chore: Support resource spec in v2 compiler (#4669)
* skeleton of code

* commit resource spec in IR proto

* add resource setter

* add accelerator setters

* fix unit conversion

* fix attribute proxy

* add and fix unittests

* add e2e test

* clean up

* clean up

* clean up

* clean up

* bypass subclass overriding

* clean up

* clean up

* clean up

* resolve comments
2020-10-26 16:40:02 -07:00
Chen Sun 72ce138253
Update IR ExecutorOutput message to use ArtifactList for artifacts field. (#4619)
* Update IR ExecutorOutput message

* fix a typo
2020-10-12 23:10:27 -07:00
Chen Sun 629a980cfd
Update ImporterSpec artifact_uri type (#4548) 2020-09-28 17:07:25 -07:00
hongye-sun d8e82602b0
Pipeline IR (#4371)
* add pipeline spec api proto

* Update pipeline_spec.proto

Add the schema of the pipeline spec.

* Update pipeline_spec.proto

Update the component I/O interfaces and renamed several places.

* Update pipeline_spec.proto

Minor comment and name changes.

* Move the IR into v2alpha1 folder
2020-09-23 14:33:08 -07:00