Commit Graph

8 Commits

Author SHA1 Message Date
Connor McCarthy c7301c449c
feat(sdk)!: use yaml for IR package (#7431)
* change serialization format from json to yaml

* refactor: use guard clause for clarity

* convert test data from json to yaml

* add and update tests

* permit deprecated compile to json

* re-add json test data

* update compiler tests

* refactor Compiler._write_pipeline_spec_file

* update golden snapshots

* update sample output extensions

* test file extension exceptions and warnings

* update release notes

* remove json golden snapshots
2022-03-21 21:45:31 +00:00
Yaqi Ji 8bb0d0e025
feat(sdk)!: move v2 to main namespace (#7376)
* feat(sdk)!: move v2 to main namespace

* edit samples
2022-03-04 21:56:51 +00:00
Chen Sun 73804f8928
test(sample): reenable samples tests run with V2_ENGINE mode (#6932)
* reenable v2 engine

* fix

* fix

* fix

* log v2 engine test

* don't fill in default value at test util

* fix

* pass to job instead of spec
2021-11-20 18:18:35 +00:00
Yuan (Bob) Gong afd28c605d
test(v2): add more samples. Part of #6150 (#6353)
* test(v2): add all samples using parameter + artifact passing features to v2 engine

* fix some samples

* fix output file

* comment failing samples

* improve comments
2021-08-16 21:38:41 -07:00
Ajay Gopinathan c5591f2652
feat(sdk): Enable the use of Executor from KFP package for v2 lightweight components (#6202)
* Enable the use of v2 Executor from KFP package.

This avoids the need to paste Executor code for v2 components into
the entrypoint of lightweight components.

* Update tests.

* quote package path.

* quote package path.

* escape fragment

* Update golden files.

* update goldens.

* Cleanup.

* More cleanup.

* update goldens.

* style updates.

* clean up sample tests.

* fix trailing comma

* Try using signed urls.

* fix

* fix presubmit

* try /bin/bash for Makefile shell

* undo signed url change.

Co-authored-by: Yuan (Bob) Gong <4957653+Bobgy@users.noreply.github.com>
2021-08-05 14:53:03 -07:00
Alexey Volkov cc83e1089b
Assigned copyright to the project authors (#5587) 2021-05-05 13:53:22 +08:00
Ajay Gopinathan b46f1b86f1
fix(sdk): Update syntax for lightweight components v2. (#5568)
* Update syntax for lightweight components v2.

Use Input[T] and Output[T] for representing input/output artifacts
of type T. This enables users to see these annotations as merely the
classes T, enabling autocompletion, reducing verbosity and simplifying
I/O types code. Users also no longer

Other changes include:
- no longer need to use .get() to obtain the artifact class
- no auto-creation of the `data` file for output artifacts. This enables
  artifacts to be either directories or files.

* fix for Py 3.6

* Remove stray file.

* Add error message if Input/Output are used with non Artifact types.

* Fix e2e test.
2021-04-29 19:27:30 -07:00
Yuan (Bob) Gong 02dbcfa062
test: more samples in v2 sample test (#5431)
* test: set up sample test for many samples

* test: rm loop_* tests from v1 sample test, they are already covered in v2 sample test

* fix condition pipeline for basic e2e test

* remove condition from e2e test
2021-04-09 08:34:03 -07:00