Commit Graph

11 Commits

Author SHA1 Message Date
Alexey Volkov fece3b172f
test: Fixed the sample test (#4585) 2020-10-07 02:22:44 -07:00
dhodun 34615cb19e
Qwiklab caip updates (#3512)
* updates to AI Platform sample for Qwiklabs

* notebook updates

* Qwiklab changes

* minor naming changes in sample notebook
2020-04-22 03:35:51 -07:00
dhodun fe3c97a99b
Qwiklab caip updates (#3423)
* updates to AI Platform sample for Qwiklabs

* notebook updates

* Qwiklab changes
2020-04-10 09:43:48 -07:00
Alexey Volkov 7b6957ae06 SDK - Client - Added a way to set experiment name using environment variables (#2292)
* SDK - Client - Added a way to set experiment name using environment variables

This is useful for launching notebooks or pipeline files that submit
themselves for execution.

* Switched to subprocess.run which supports env

* Setting the environment variable differently
Looks like `subprocess.run` uses `PATH` to search for the program.

* Convert return code to string

* Changed the way the experiment name is being set

* Changed how the notebook installs the SDK

Notebook is overriding the SDK that's being tested.

* Not installing the KFP SDK package

* Removed the experiment_name from samples and configs.

* Changed the SDK installation lines in samples

Otherwise the sample tests do not correctly test the new SDK code.
2019-10-14 14:55:51 -07:00
Alexey Volkov 1e6ce6b571 Samples - Simplified pipeline submission code in samples (#2293)
Reduced boilerplate code in samples by switching to `kfp.Client().create_run_from_pipeline_package` which:
* compiles the pipeline
* gets or creates the experiment (name is optional)
* generates unique run name
* submits the run
2019-10-04 16:11:12 -07:00
Jiaxiao Zheng d6d3785506 Add a convention to make sure experiment_name is parameterized in notebook sample. (#2112)
* add a new convention

* Fix config experiment_name

* fix light weight example

* Fix experiment name

* Update guidelin.

* fix lightweight_component.config.yaml

* Remove config yaml

* Fix guideline.md

* Reword.
2019-09-17 15:37:14 -07:00
Jiaxiao Zheng 7b1c720a47 Improve notebook check automation (#2040)
* Add logic to detect extension name.

* Rename notebook samples

* Change to use config yaml for papermill preprocess.

* Remove ad hoc logic

* Remove duplicated logic

* Refactor

* Add run_pipeline flag in config yaml

* Add run pipeline flag for .py sample as well.

* Fix extension name

* Fix

* Fix problems in docstring.

* refactor run_sample_test.py into two functions

* Refactor the procedure into 3 steps

* Fix bug in exit code format

* Remove two redundant functions.
2019-09-09 13:40:55 -07:00
Alexey Volkov 5360f3fcab SDK - Compiler - Stopped adding mlpipeline artifacts to every compiled template (#2046)
* Explicitly added mlpipeline outputs to the components that actually produce them

* Updated samples

* SDK - DSL - Stopped adding mlpipeline artifacts to every compiled template
Fixes https://github.com/kubeflow/pipelines/issues/1421
Fixes https://github.com/kubeflow/pipelines/issues/1422

* Updated the Lighweight sample

* Updated the compiler tests

* Fixed the lightweight sample

* Reverted the change to one contrib/samples/openvino
The sample will still work fine as it is now.
I'll add the change to that file as a separate PR.
2019-09-05 17:56:57 -07:00
Yuan (Bob) Gong ced9654cd2 Add subprocess pip install example in lightweight component example notebook (#1817) 2019-08-14 19:48:33 -07:00
Jiaxiao Zheng 750c4cd0be Move TF installation to notebooks (#1793)
* Remove redundant import.

* Simplify sample_test.yaml by using withItem syntax.

* Simplify sample_test.yaml by using withItem syntax.

* Change dict to str in withItems.

* Move tensorflow installation into notebooks.
2019-08-12 12:07:04 -07:00
Ning e8a6feb229
Restructure samples (#1710)
* restructure samples
* update apiserver and sample test for the new location
2019-08-01 17:31:37 -07:00