Commit Graph

5 Commits

Author SHA1 Message Date
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
Ajay Gopinathan f3f383c2ff
chore(sdk): Refactor and move all v2 related code to under the v2 namespace. (#6358)
* Refactor and move all v2 related code to under the v2 namespace.

Most of the changes are around imports and restructuring of the
codebase. While it looks like a lot of code was added, most of the code
already existed and was simply moved or copied over to v2. The only
exceptions are:
- under kfp/v2/components/component_factory.py: some helper functions
  were copied with simplification from _python_op.py
- we no longer strip the `_path` suffix in v2 components.

Note: there is still some duplication of code (particularly between
component_factory.py and _python_op.py), but it's ok for now since we
intend to replace some of this with v2 ComponentSpec + BaseComponent.

* Update setup.py.

* update tests.

* revert accidental change of gcpc

* Fix component entrypoint.

* Update goldens.

* fix tests.

* fix merge conflict.

* revert gcpc change.

* fix tests.

* fix tests.

* Add type aliases for moved files.

* merge and update goldens.
2021-08-17 19:25:37 -07:00
Yuan (Bob) Gong 9c69e68652
test(v2): v2 sample test supports v2 engine mode (#6193)
* test(v2): v2 sample test supports v2 engine mode

* enable other tests

* chore(v2): prepublish pod info to MLMD before user command

* fix test failure

* update annotations

* fix go tests

* add use-new-run arg to kaniko

* test(v2): add resource request/limit to build image tasks

* verify

* test2

* pin 1.3.0 kaniko image to avoid OOM issues

* simplify the change

* fix

* clean up unnecessary changes
2021-08-01 01:58:37 -07:00
Yuan (Bob) Gong 9f73f91aaf
chore(samples): simplify and update v2 samples (#6076)
* chore(samples): simplify and update hello world v2 sample

* update comment

* add copyright
2021-07-19 19:35:15 -07:00