Commit Graph

772 Commits

Author SHA1 Message Date
gkcalat 960eb6604e
chore(backend): Remove deprecated experiment id from run server's endpoints (#9392)
* Remove unused getRunMetrics

* Remove deprecated experiemnt id
2023-05-11 22:28:39 +00:00
gkcalat d4c43f77bc
chore(backend): Remove unused getRunMetrics (#9391) 2023-05-11 22:28:31 +00:00
Chen Sun feb1f79b3e
chore: Create and use license-compliance driver and launcher images (#9388)
* Create and use license-compliance driver and launcher

* fix launcher cmd
2023-05-11 18:44:02 +00:00
Lingqing Gan 4f4f2cbb55
fix(backend): change format of some backend error message (#9304)
* fix error message

* address comments
2023-05-10 01:19:42 +00:00
b4sus c17b6815cd
fix(backend): added rbac group to commands to create pipeline/run. Fixes #8854 (#9365) 2023-05-09 17:37:33 +00:00
Chen Sun 270257512a chore(release): bumped version to 2.0.0-beta.2 2023-05-08 09:21:48 +00:00
Chen Sun 931a68096e
chore: upgrade to Argo v3.3.10 (#9336)
* pull argo v3.3.10 upstream

* upgrade to Argo v3.3.10

* fix validateworkflow

* upgrade golang

* update golang

* fix go dep

* update go licenses file

* fix build

* fix go dep

* downgrade k8s.io/client-go to v0.24.3

* update licenses

* fix go dep

* update licenses
2023-05-08 08:38:55 +00:00
Chen Sun b6b8f94da2
chore: recompile/update v2 samples to avoid possible runtime breakage (#9333)
* recompile/update v2 samples

* fix test
2023-05-05 17:28:24 +00:00
gkcalat fbb8b399b3
fix(backend): Allow empty namespace and remove default namespace. Fixes #8945. Fixes #8897. Fixes #8854. (#9286)
* Add pipeline_id to run and recurring run protos

* Add pipeline_id to run and recurring_run

* Set status when creating a new job. Closes #9125.

* stage progress

* Fix timestamps in tasks and add unit test

* Add upsert to sql dialects. Closes #8851.

* Remove dead code

* Fix unit test

* Switch to upsert

* Add unit tests

* Allow empty namespace

* Cleanup

* Fix tests

* Fix inconsistencies

* Fix old tests

* Differentiate list requests in multi-user mode

* Refactor create run and create job paths

* Revert default experiment change
2023-05-04 23:53:23 +00:00
gkcalat 3c9dbee225
chore(backend): Add 503 error to the backend (#9317)
* Add pipeline_id to run and recurring run protos

* Add pipeline_id to run and recurring_run

* Set status when creating a new job. Closes #9125.

* Add service unavialbe error to the BE

* Fix a unit test
2023-05-04 21:37:22 +00:00
James Wu af04fda622
chore(conformance): add import alias to avoid naming conflict. (#9324)
Addressed PR comment https://github.com/kubeflow/pipelines/pull/9297#discussion_r1184185507
2023-05-04 19:24:45 +00:00
Yihong Wang 6c72d95b3f
feat(backend): avoid downcast and use ExecutionSpec if possible (#9232)
Limit the direct Workflow data struct access to common.util
and use ExecutionSpec and ExecutionStatus in other places.
Create a data struct to represent the node status information
in ExecutionStatus and add an API to access this information.
2023-05-04 17:25:45 +00:00
James Wu 2cfc4283d2
fix(conformance): enable healthz test in full Kubeflow. (#9297)
* Enable healthz test in full Kubeflow.

This change will also be ported to release-2.0-alpha branch to support
conformance tests for KF 1.7, which is using alpha.7 version of KFP.

* Fix build break due to recent refactoring.
2023-05-04 02:02:44 +00:00
Chen Sun e115e0c01f
[WIP] test: Add v2 upgrade test (#9287)
* Add v2 upgrade test

* demo recurring run missing runtime config

* Revert "demo recurring run missing runtime config"

This reverts commit 58154c5548.

* add v2 entries in upgrade  test script

* address review comments
2023-05-03 21:56:45 +00:00
Lingqing Gan 38bf3681d5
fix(backend): fix launcher importer error (#9290) 2023-05-03 00:58:13 +00:00
gkcalat a975e99d2a
fix(backend): Fix timestamp in task store, add disabled unit test (#9246)
* Add pipeline_id to run and recurring run protos

* Add pipeline_id to run and recurring_run

* Set status when creating a new job. Closes #9125.

* Fix timestamps in tasks and add unit test

* Add upsert to sql dialects. Closes #8851.

* Remove dead code

* Fix unit test

* Add unit tests

* Remove dead code
2023-05-02 19:34:44 +00:00
Lingqing Gan 52c4c6f70d
feat(backend): add parameter verification before submitting the workflow (#9228)
* add param verification

* address comments

* error message

* address comments and add extra param verification

* error message
2023-04-28 02:35:39 +00:00
gkcalat 2b92f9bb61
fix(backend): Add upsert for SQLite and MySQL dialects (#9245)
* Add upsert to sql dialects. Closes #8851.

* Remove unit-test

* Remove dead code

* Add unit tests
2023-04-27 20:21:01 +00:00
Chen Sun 8b2fba3f39
test: Add v2 API integration tests (#9185)
* Add v2 API integration tests

* move v1 client
2023-04-27 20:20:39 +00:00
gkcalat f5514c7662
fix(backend): Cleanup pipeline creation and upload logic (#9189)
* Add pipeline_id to run and recurring run protos

* Add pipeline_id to run and recurring_run

* Set status when creating a new job. Closes #9125.

* Add delete create pipeline and improve errors

* Add single-transaction pipeline upload

* Revert previous changes

* Resolve inconsistency

* Add a unit test
2023-04-25 19:20:45 +00:00
Chen Sun afe34941d6
chore: Update api-server base image to Debian buster. Fixes #9220 (#9219) 2023-04-24 20:24:44 +00:00
Chen Sun 8645cac9a6
fix(release): Update release image with the latest api-generator (#9198)
* Update release image with the latest api-generator

* Add note to keep api-generator image in sync between dev and release
2023-04-21 16:34:41 +00:00
Chen Sun 7b70cb5e37
fix(api): Regenerate v2beta1 API (#9197) 2023-04-21 14:21:41 +00:00
Lingqing Gan 9b5db59170
chore(backend): change optional parameter enforce rule (#9184) 2023-04-20 01:31:40 +00:00
Lingqing Gan b8caf811c2
feat(backend): support secrets (#9178)
* support secret in driver

* add sample tests

* fix comments
2023-04-20 00:33:39 +00:00
Lingqing Gan ca63f20049
fix(backend): fix volume bug (#9150)
* fix volume bug

* fix indentation

* update driver image

* revert launcher image sha
2023-04-18 23:53:54 +00:00
gkcalat 276f922a68
feat(backend): Add nodeSelector support. Closes #8959. (#9132)
* Stage progress

* support pvc creation, deletion and mount

* replace image address for unit tests

* go mod tidy

* address comments

* Update go.mod

nit: fix format

* go mod tidy

* fix merge error

* update driver image and nit

* Rebase

* Add node selector to driver

* Fix input parameter's name

* Add a comment on container order

* Update driver and launcher images

* Update tests with hard-coded v2 images

* Address comments

* Fix test

* Update error message

* Update error message

---------

Co-authored-by: Linchin <lingqing.gan@gmail.com>
2023-04-18 20:08:00 +00:00
Linchin e0529fe26b chore(release): bumped version to 2.0.0-beta.1 2023-04-11 19:14:29 +00:00
Lingqing Gan 761a592b89
feat(backend): support pvc creation, deletion and mount; fixes #8708 (#9106)
* support pvc creation, deletion and mount

* replace image address for unit tests

* go mod tidy

* address comments

* Update go.mod

nit: fix format

* go mod tidy

* fix merge error

* update driver image and nit
2023-04-10 23:34:13 -07:00
gkcalat ce096dd3bc
fix(backend): Fix missing parameters in jobs and recurring runs. Closes #9012. (#9118)
* Add pipeline_id to run and recurring run protos

* Add pipeline_id to run and recurring_run

* Fix params in recurring run

* Add support for v1 and v2 parameters in runs and jobs

* Fix convertion issues

* Update a unit-test

* Revert change of the order in sql

* Address comments
2023-04-10 23:35:54 +00:00
gkcalat b5dae77f03
fix(backend): Set status when converting API recurring run to internal representation (#9128)
* Add pipeline_id to run and recurring run protos

* Add pipeline_id to run and recurring_run

* Set status when creating a new job. Closes #9125.
2023-04-10 11:06:53 +00:00
gkcalat 37dac45caf
feat(backend): add support for resource requests. Closes #7047. Closes #6354. (#9088)
* Add support for resource requests

* Update pipelinespec reference

* Stash unit tests

* Fix tests

* Update license

* Update driver image

* Fix tests

* Add resource requests sample test

* Revert sample test and add TODO
2023-04-09 17:51:08 -07:00
Chen Sun 4a9bc2b1ca
fix(api): Fix pipeline.upload.swagger.json (#9104)
* fix pipeline.upload.swagger.json

* remove `namespace` from upload_pipeline_version parameters
2023-04-05 18:05:02 +00:00
Lingqing Gan bd9f74e34d
fix(backend): support reading large doc from URL; Fixes #7652 (#9072)
* support reading long file from url

* add TODO
2023-04-04 21:33:01 +00:00
gkcalat e7fdb7f387
fix(backend): Add pipeline_id to pipeline_source in Run and RecurringRun (#9097)
* Add pipeline_id to run and recurring run protos

* Add pipeline_id to run and recurring_run

* Remove unused commented code

* Add pipeline id verification
2023-04-04 03:55:00 +00:00
Chen Sun 7d3a6e6ebd
fix(backend): Fix CreatePipelineVersion API (#9075)
* fix pipeline_version API

* address review comments
2023-03-31 23:57:04 +00:00
gkcalat 28d3ca1962
chore(backend): fix flakiness in toModelTasks function (#9084)
* Update api_converter.go

* Fix typo
2023-03-31 21:45:58 +00:00
Lingqing Gan 76a7ed20f5
test(backend): fix flaky backend test (#9079) 2023-03-31 19:42:57 +00:00
Chen Sun ffd3a75d63
chore(backend): Update v2 driver and launcher images (#9076) 2023-03-31 16:10:58 +00:00
Lingqing Gan a3e795a36a
feat(backend): updates compiler to include kubernetes-specific specs in argo workflow (#9059)
* update argo compiler

* add component spec

* add defalt value

* add driver flag
2023-03-30 23:40:56 +00:00
Chen Sun 01c87f8a03
fix(backend): fix UploadPipeline/UploadPipelineVersion v2 API returns v1 object. (#9064) 2023-03-30 18:31:05 +00:00
gkcalat caf842de3d
fix(backend): Add pipeline version to the request body (#9056) 2023-03-28 20:15:43 +00:00
Lingqing Gan 472e922448
fix(backend): backend accepts pipeline spec struct as well as nested (#9024)
* backend accepts pipeline spec struct, or nested

* address comments

* rename field names

* no longer exports a method

* update package and license
2023-03-28 19:18:41 +00:00
deepk2u 87deff06d3
fix(backend): fix CVEs in persistenceagent, scheduledworkflow and cache-server. Fixes #8943 (#8944)
* fix(backend): fix CVEs in scheduledworkflow and cache-server

* updated alpine images to 3.17
2023-03-24 18:30:23 +00:00
Eng Zer Jun 2f64e373b2
chore: replace `github.com/ghodss/yaml` with `sigs.k8s.io/yaml` (#9010)
* chore: replace `github.com/ghodss/yaml` with `sigs.k8s.io/yaml`

At the time of making this commit, the package `github.com/ghodss/yaml`
is no longer actively maintained.

`sigs.k8s.io/yaml` is a permanent fork of `ghodss/yaml` and is actively
maintained by Kubernetes SIG.

Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>

* Update licenses CSV

Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>

---------

Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
2023-03-23 22:15:21 +00:00
Lingqing Gan a9ead5aae0
feat(backend): support yaml with platform-specific specs (#8983)
* support yaml with platform-specific info

* run go mod tidy and fix comments

* license, test and small fixes

* fix integration test and add test

* address comments

* address comments
2023-03-15 23:46:28 +00:00
Chen Sun dabc02724f
test: Adding v2 initialization tests (#8978)
* Adding v2 initialization tests

* remove unused (yet) test utils

* small cleanup

* remove used code

* fix build

* address review comments
2023-03-15 00:24:09 +00:00
Chen Sun 10c4db9ebe
test: Fix flaky test Test_toModelTasks_wf (#8979) 2023-03-13 21:07:23 +00:00
gkcalat 1d75286c2d
fix(backend): Remove duplicate pipelines in list pipelines V1 (#8956)
* Stage progress

* Fix comments in the filter.proto.

* Remove api dep from filter and list. Fixes #8934.

* Fix pipeline joining logic

* Update sqlite to support window ops

* Add subquery to lis pipelines. Closes #8954

* Creanup

* Update licenses
2023-03-10 09:57:20 +00:00
gkcalat a4ab066d0e
chore(backend): Remove API dependdency from filter and list packages. Closes #8934 (#8939)
* Stage progress

* Fix comments in the filter.proto.

* Remove api dep from filter and list. Fixes #8934.
2023-03-09 11:37:06 -08:00
gkcalat d0a9405858
fix(backend): Fix priority in spec source. Closes #8948 (#8949) 2023-03-09 01:28:07 +00:00
gkcalat 7fdb1b91da
fix(backend): Allow runs and recurring runs without creator pipeline and pipeline version (#8926)
* Deprecate experiment_id in Run API v2

* Allow runs and recurring runs without pipeline version id

* Adjust the logic for retrieving existing pipeline name

* Remove pipeline parsing logic and tests

* Simplify the logic in fetching a template
2023-03-07 20:14:11 +00:00
gkcalat 2c4b128ece
feature(backend): Add support for accelerator config (#8932)
* Add nodeSelector and res to podSpec

* Add sample test draft

* Add accelerator-type logic to driver pod

* Remove accelerator sample. Closes #7043

* Add unit-tests and remove type handling
2023-03-07 01:22:10 +00:00
gkcalat 06f154250b
fix(backend): Deprecate experiment_id in Run API v2 (#8921) 2023-03-03 20:29:00 +00:00
gkcalat e568148264
fix(backend): Revert the url changes in run API v 2 (#8920) 2023-03-03 18:19:00 +00:00
Lingqing Gan 89bdac9340
feat(backend): support optional and default parameters. Fixes #8716 (#8765)
* support optional and default parameters

* add sample test

* change assert value

* update test

* update test

* fix sample test

* fix sample test

* fix sample test

* test fix

* change parameter logic

* test

* test

* change logic handling not provided parameter

* remove unnecessary code and add more sample case

* fix sample test bug

* fix sample test

* update logic

* change parameter logic

* update logic

* update logic handling when parameter not provided

* fix sample test

* add error message

* fix samples test

* samples test

* remove unused code
2023-03-02 17:47:04 +00:00
gkcalat fde6b944b5
fix(backend): Add checking for state change in state history (#8903)
* Add ListAllRuns endpoint

* Add state history change check. Closes #8902

* Fix unit test
2023-02-28 20:22:04 +00:00
gkcalat e8f10b1ff9
fix(backend): Add ListAllRuns endpoint (#8901) 2023-02-28 01:49:41 +00:00
Lingqing Gan faca1e5aab
feat(backend): add support for environment variables. Fixes #8704 (#8886)
* support env var and add test

* sample test fix

* remove compiler test case

* fix test script

* update sample test
2023-02-27 18:02:08 +00:00
gkcalat 1bed63a31e
feature(backed): Status-IR.part-1: Add updating tasks and run statuses to api server (#8850)
* Add children to PipelineTaskDetail

* Add state and state history to task

* Add state and state history to run

* Add pod_name to PipelineTaskDetail

* Add PodName and Payload to tasks table

* Add upsert to task store

* Add create or update task report wf

* Wire the report server

* Remove v1 and v2 specific functions

* Revert Run proto order

* Stage progress

* Add run id to exec spec

* Disable unit test due to #8851

* Address comments

* Address some comment

* Remove empty lines

* Refactor toModelTasks

* Address comments

* Address comments
2023-02-23 00:26:23 +00:00
Chen Sun 6dd2f5441b
chore(backend): update v2 images (#8860)
* update v2 images for beta release

* fix tests
2023-02-16 22:35:34 +00:00
gkcalat beeaed0c3e
fix(backend): Add default values to timestamps. Fixes #8845 (#8857)
* Add default values to timestamps

* Force not-null create, null-able other timestamps
2023-02-16 21:22:37 +00:00
gkcalat 03b7752e2f
fix(backend): Allow empty namespace in pipelines. Fixes #8840. (#8859) 2023-02-16 07:31:05 +00:00
Chen Sun 8552226c41
chore(test): revert api changes to deprecated client (#8841)
* revert api changes to deprecated client

* list experiments

* fix

* fix sample v2 test
2023-02-14 11:01:58 -08:00
gkcalat c8165859bd
Update API references and readme. Closes #8723 (#8828)
* Update API references and readme. Closes #8723

* Add a note about html headers

* Remove folders, update readme
2023-02-09 23:41:01 +00:00
Chen Sun fd3f694d9a
test: install compatible `kfp-server-api` and `kfp` packages (#8829)
* don't install kfp-server-api and kfp both from HEAD

* install compatible kfp-server-api and kfp
2023-02-09 20:30:01 +00:00
Ablai Akhazhanov 438b16597d chore(release): bumped version to 2.0.0-beta.0 2023-02-07 23:41:29 +00:00
Chen Sun fcdd738f5e
fix(test): fix missing test dependencies (#8813)
* Update requirements.txt

* Update requirements.txt
2023-02-06 22:36:42 -08:00
Lingqing Gan 6522e6c48a
fix(backend): add retry run in v2 api. Fixes #8735 (#8804)
* add retry run

* fix typo in comments

* fix proto typo and regenerate

* add logic to verify experiment id

* fix typo
2023-02-07 01:24:32 +00:00
gkcalat 1f748c5ba4
fix(backend): fix run, job from empty manifest. Closes #8802. (#8805)
* Fix run, job from empty manifest. Closes #8802.

* Add upgrade test case

* Rename function

* Fix typo, remove unnecessary check
2023-02-07 00:21:31 +00:00
gkcalat 135dc64854
feat(backend): Refactor apiserver, add Pipeline and other v2beta services (#8633)
* Staging WIP

* Fix recurring run, switch to pipeline_version_id

* Regenerate python client

* Refactor packages for pipeline service v2

* Stage progress

* Add support for pipeline service v2beta1

* Go mod tidy

* Update licenses

* Set default namespace to be empty

* Separate deletion of pipeline versions

* Change report ReportRunMetrics to obey AIP

* Use pipeline version id in run proto

* Update run.proto

* Upgrade storage

* Remove dependencies on api

* Stage refactoring progress

* Refactor apiserver

* Update v1beta1 unit test

* Update dependencies

* Fix integration test

* Revert visualization server changes (workaround)

* Address comments

* Basic lint the api server

* Update licenses file

* Adjust intergtaion tests

* Fix typos in the tests

* Update tests

* Update test

* Add support v1 delepe pipeline

* Remove gorm.Model to split into a different PR

* Lint api server

* Fix default experiment in upgrade test

* Update storage states

* Testing upgrade test run

* Add copying pod logs to the GCS bucket

* Fix upgrade test

* Adjust backend test for list

* Fix the tests

* Fix workflow manifest discrepancy at create

* Add a few unit-tests

* Add misc service and fix persistence agent

* Remove default values from TEXT columns

* Address comments. Fixes #8702.

* Address comment, reorder resource, server, storage

* Fix front end integration test

* Fix FE integration test

* Fix tabs, add pauses, make more explicit FE test

* Revert FE test changes

* Enable default experiment and disable its deletion

* Replace empty namespace with POD_NAMESPACE

* Default experiment is now the oldest

* Emplace empty with POD_NAMESPACE for argo only

* Fix api integration test

* Revert changes to default experiment's description

* Improve FE test flakiness

* Force refresh in the FE test

* Fix FE integration test

* Add delay in FE test

* Add local debug to FE test

* Update tests

* Fix typo

* Address comments

* Enforce template version verification

* Fix workflow manifest discrepancy with v1

* Fix FE test

* Revert changes in persistence agent

* Limit to one resource owner

* Change default run state to unknown

* Revert changes to FE integration test

* Make states consistent

* Remove links from error messages

* Address comments

* Address comments

* Change the order for teardown

---------

Co-authored-by: Chen Sun <chensun@users.noreply.github.com>
2023-02-03 20:17:01 +00:00
Connor McCarthy 78d31dc8a3
chore(sdk): remove v1 dependencies from SDK v2 (#8668)
* split out deprecated requirements

* pip install deprecated requirements for sample tests

* remove superfluous comments in requirements.in

* update release notes

* ignore deprecated directory in unit tests

* remove unused argo compiler

* ignore deprecated path

* update run sample yaml

* install deprecated requirements for e2e tests

* add todos
2023-01-19 12:53:27 -08:00
Lingqing Gan 6ee767769d
feat(backend): add support for "finished_at" and others in filter. Fixes #8654 (#8662)
* add support for "finished_at" and other in filter

* update job map

* add UTs

* add integration test for filter

* update integration test

* fix integration test

* add more info

* fixed integration test

* fix small bug

* fix flakiness
2023-01-15 19:00:58 +00:00
Steve Larkin 3824c5b537
feat(backend): Make cache-server webhook port number configurable (#8401)
* Make cache-server webhook port number configurable

Previously the webhook listened on a fixed port, 8443, which can clash
with other services when the webhook is run on the host network in
Kubernetes, which is required when using some CNI implementations,
notably Calico on EKS [1].

Enable configuration of the webhook listen port via the program flags.

[1] https://projectcalico.docs.tigera.io/getting-started/kubernetes/managed-public-cloud/eks#install-eks-with-calico-networking

Signed-off-by: Steve Larkin <steve.larkin@gmail.com>

* fixup! Make cache-server webhook port number configurable

Signed-off-by: Steve Larkin <steve.larkin@gmail.com>

* fixup! fixup! Make cache-server webhook port number configurable

Signed-off-by: Steve Larkin <steve.larkin@gmail.com>

Signed-off-by: Steve Larkin <steve.larkin@gmail.com>
2023-01-12 12:15:32 -08:00
Lingqing Gan d5244644ba
feat(backend): add run support for v2 api (#8647)
* remove template dependency on api

* add create run

* update run metrics proto

* add run methods

* small changes

* pass asserted types in model converter
2023-01-05 00:37:10 +00:00
Chen Sun cf3175ef4e
chore: address kubectl dry-run deprecation (#8643) 2023-01-03 23:08:24 +00:00
Lingqing Gan b74d18739f
test(backend): add recurring run tests (#8642) 2023-01-03 19:22:24 +00:00
Lingqing Gan d0f0ab309a
feat(backend): Add support for recurring run v2 api (#8634)
* add wiring

* added create recur run and wirings

* added get recurring run and test

* added enable disable delete rec run and tests

* revert namespace change

* fix typo

* use v1 counters for recurring runs

* fix bug

* change recurring run package name and regen

* merge recurring run and job server
2022-12-29 01:26:19 +00:00
Chen Sun 468262f221
chore: update licenses (#8636) 2022-12-28 20:41:19 +00:00
Lingqing Gan 7e7e1afcb0
feat(backend): Add support for converting v2 recurring run to scheduled workflow in template (#8521)
* add template support for v2 api

* copyright

* add v2 tests

* add proto files and generate clients

* update dockerfile

* update script

* refactor rec_run_id

* copyright info

* move string definition

* small fix to proto

* small refactor

* template takes model instead of api

* template changes

* convert to model in resource manager

* resolve conflicts

* fix integration test typos

* test

* test

* test

* testing

* temp change for debug

* temp change for debug 2

* temp change for debug 3

* temp change for debug 4

* temp change for debug 5

* temp change for debug 6

* revert resource manager change

* add print

* bring back integration tests

* folder name

* delete a file

* remove package debug

* fix bug

* print more variables

* add log

* add log

* small fix

* add log

* more logs

* add test

* add  logs

* test

* add another test

* use old function for Trigger convertion

* change modeltoCRDTrigger function

* removed V1 at the end of function name

* add comments

* removed unnecessary variable

* typo

* small change

* test

* remove logs for debugging

* small bug

* remove logs for debug

* nit and removed unused functions

* remove unused functions  and move var declararion
2022-12-21 19:43:13 +00:00
gkcalat 8e02cc5c5a
chore(backend): Add pipeline and runtime protos (#8533)
* Adjust generator.sh

* Format the existing protos

* Add pipeline protos

* Add runtime protos

* Generate client libs

* Fix typos, adjust readme

* Add python client

* Update package name

* Replace error.proto with google.rps.Status
2022-12-09 01:46:11 +00:00
Lingqing Gan acaa7f0b13
fix(backend): fixes a potential upgrade/downgrade error (#8515)
* fix upgrade/downgrade error

* add unit tests
2022-12-02 09:18:16 +00:00
Ilias Katsakioris 931c14a742
feat(backend): Upload namespaced pipeline definitions. Part of #4197 (#8511)
* feat(backend) Fix authentication in upload requests

Fix the way KFP API server authenticates pipeline upload requests.
We leverage 'isAuthenticated()` function which requires proper
initialization of the context object to include user identity.

* feat(backend): Add namespace field in pipeline upload swagger definition

Extend swagger defintion of the pipeline upload API with a namespace
parameter in order to support uploading namespaced pipelines.

* chore(backend): Generate Go & Python clients

Autogenerate the Go and Python clients after extending the swagger
definitions of upload pipeline APIs with a namespace field.
2022-12-01 19:22:44 +00:00
Lingqing Gan 6e364d35b1
feat(backend): Add v2 api for experiments (#8480)
* v2 exp proto and generate clients

* server changes

* move v1 and v2 protos into api folder

* regenerate v1 packages

* generate v2 package

* add v2 funcs.

* added v2 create experiment

* integration and initialization tests

* createexperiment works and rest can be pinged

* add create exp tests

* add get experiment

* add get experiment tests

* add list experiment and one test

* add list exp tests

* add TestValidateCreateExperimentRequest_Multiuser

* add delete exp tests

* add archive/unarchive exp and tests

* refactor storage and resource layers

* change api converter

* small fix

* small fixes

* move proto files outside and name v1 package api

* refactor

* refactor
2022-11-29 01:21:43 +00:00
Chen Sun 9970f3d0ab
fix(backend): Fix recurring run for v2 pipeline (#8487)
* Fix recurring run for v2 pipeline

* fix backward compatibility
2022-11-22 00:26:41 +00:00
Chen Sun 5b96860447
chore: require setting v2 image prefix in Makefile (#8472)
* Update Makefile

* Update Makefile
2022-11-20 05:17:11 +00:00
Chen Sun 7138072271
fix(backend): Avoid referencing v2 images via `latest` label. (#8448)
* Update argo.go

* Update hello_world.yaml

* Update importer.yaml

* fix labels
2022-11-15 05:20:26 +00:00
Lingqing Gan 3f2e20d14f
chore(backend): regenerate v1beta1 api clients (#8403)
* add v2 experiment.proto

* regenerate v1beta1 client

* remove api version from combined swagger file

* Revert "regenerate v1beta1 client"

This reverts commit 02769d779b.

* regenerate v1beta1 clients

* regenerate python packages without api version

* remove regenerated v1 python packages&change proto

* refactor v1 exp apis and functions

* remove v2 api package and refactor v1 proto

* regenerate v1 go clients

* regenerate v1 python package

* refactor and update the human maintained swagger

* renew swagger file

* regenerate v1 packages

* regenerate v1 python package

* refactor

* regenerate v1 go clients

* regenerate v1 python package

* recover dockerfile and add s in python

* fix func name

* use commit for sdk execution test

* change sdk execution test

* update test script

* add v1 to methods

* proto update v1 method names

* regenerate v1 go packages

* regenerate python client

* update server methods

* refactor

* refactor

* refactor

* refactor python client

* fix get_healthz

* update sample-test.sh in v2 backend

* sample test script

* change v2 sample test

* change package install order

* Revert "change package install order"

This reverts commit c24fcfbed9.

* use KFP server api from commit for v2 sample tests

* small fix
2022-11-10 19:18:00 +00:00
Ilias Katsakioris 7c114a0f18
feat(backend): Include namespace in Pipeline API model. Part of #4197 (#8375) 2022-10-26 17:56:30 +00:00
Lingqing Gan 6c6b1e3a94
chore(backend): move v1 api to v1beta1 package and folder (#8376)
* move v1 api to v1beta1 package and folder

* fix test

* update README.md

* update README.md

* update readme
2022-10-26 07:11:30 +00:00
Ablai Akhazhanov 850a5a5e27 chore(release): bumped version to 2.0.0-alpha.6 2022-10-14 23:22:02 +00:00
Chen Sun e3bf5edda0
fix(backend): Fix user cache setting P0D ignored by cache server. Fixes #8366 (#8368) 2022-10-14 21:36:48 +00:00
Chen Sun cd3474c17d
chore: Update backend/OWNERS (#8369) 2022-10-14 20:42:04 +00:00
juliusvonkohout 9f9f035fb6
feat(backend) add maximum_cache_staleness and default_cache_staleness (#8270)
* Update pipeline-install-config.yaml

* Update cache-deployment.yaml

* Update execution_cache_store_test.go

* Update execution_cache_store.go

* Update watcher.go

* Update mutation.go

* fix identation

* Update execution_cache_store_test.go

* Update execution_cache_store.go

* Update pipeline-install-config.yaml

Set default to infinity. stalenessToSeconds() returns -1 on empty strings.

* remove logging as requested by chensun
2022-10-04 19:19:23 +00:00
Chen Sun 73caa1a66c chore(release): bumped version to 2.0.0-alpha.5 2022-09-26 11:08:27 -07:00
Chen Sun 667a633d14
fix(backend): Fix "Unknown execution spec" error. Fixes #8256 (#8287) 2022-09-21 17:31:07 +00:00
Yihong Wang f6f8485f43
fix(backend): fix backward compatibility in scheduledworkflow (#8261)
Instead of changing the WorkflowResource.Spec to string,
use interface{} to allow backward compatibility.
Add type casting and marshal/unmarshal to properly
handle old swf CRs.

Signed-off-by: Yihong Wang <yh.wang@ibm.com>

Signed-off-by: Yihong Wang <yh.wang@ibm.com>
2022-09-15 18:32:41 +00:00
Ablai Akhazhanov 58052eafc1 chore(release): bumped version to 2.0.0-alpha.4 2022-08-31 21:55:27 +00:00
Lingqing Gan f25127fe76
feat(backend): Implement RuntimeConfig in backend for jobs(RecurringRun) (#8152)
* update server folder

* update storage folder

* update run_api_test.go

* update job_api_test.go

* update upgrade_test.go

* model converter and tests

* fix upgrade_test.go

* fix api tests

* update error messages
2022-08-23 00:01:25 +00:00
Lingqing Gan fe66d20b98
chore(backend): format backend code and add style guide (#8140)
* go fmt backend/src folder

* add backend style info

* Add backend code style guide

* update wording

* fix typo and link

* small fix
2022-08-17 12:50:52 -07:00