* re-enabe archiving experiment action in kfp_functional_test Signed-off-by: diana <difince@gmail.com> * Use kfp.v2 instead of kfp.depricated Signed-off-by: diana <difince@gmail.com> * Update periodic kfp_functional_test to work with kfp=2.0.1 Signed-off-by: diana <difince@gmail.com> * Updata dependencies and clean up instructions --------- Signed-off-by: diana <difince@gmail.com> Co-authored-by: gkcalat <gkcalat@ucla.edu> |
||
|---|---|---|
| .. | ||
| README.md | ||
| constants.py | ||
| kfp-functional-test.sh | ||
| requirements.in | ||
| requirements.txt | ||
| run_kfp_functional_test.py | ||
README.md
kfp-functional-test
Updating python dependencies
pip-tools is used to manage python dependencies. To update dependencies:
- edit requirements.in
- run
to update and pin the transitive dependencies.pip-compile requirements.in
Run kfp-functional-test in local
Via python
-
run
gcloud auth application-default loginacquire new user credentials to use for Application Default Credentials.
-
go to the root directory of kubeflow pipelines project, run
cd {YOUR_ROOT_DIRECTORY_OF_KUBEFLOW_PIPELINES} python3 ./test/kfp-functional-test/run_kfp_functional_test.py --host "https://$(curl https://raw.githubusercontent.com/kubeflow/testing/master/test-infra/kfp/endpoint)"
Via docker
-
run
gcloud auth application-default loginacquire new user credentials to use for Application Default Credentials. Credentials saved to file with {CREDENTIALS_PATH} similar to: [$HOME/.config/gcloud/application_default_credentials.json]
-
copy the Credentials to the temp folder
cp {CREDENTIALS_PATH} /tmp/keys/{FILENAME}.json ``` -
Provide authentication credentials by setting the environment variable GOOGLE_APPLICATION_CREDENTIALS. Replace [PATH] with the file path of the JSON file that contains your credentials. run
export GOOGLE_APPLICATION_CREDENTIALS="/tmp/keys/{FILENAME}.json" -
go to the root directory of kubeflow pipelines project and run
cd {YOUR_ROOT_DIRECTORY_OF_KUBEFLOW_PIPELINES} docker run -it -v $(pwd):/tmp/src -w /tmp/src -e GOOGLE_APPLICATION_CREDENTIALS=/tmp/keys/{FILENAME}.json \ -v $GOOGLE_APPLICATION_CREDENTIALS:/tmp/keys/{FILENAME}.json:ro \ python:3.9-slim /tmp/src/test/kfp-functional-test/kfp-functional-test.sh