Commit Graph

5 Commits

Author SHA1 Message Date
Judah Rand 866dfc7672
fix(sdk.v2): fixes broken output parameter type checking in `_handle_single_return_value` (#6566)
* Add tests for output parameter `list` and `dict`

* Parse parameter annotation type correctly

* Add release note
2021-09-16 10:32:55 -07:00
Chen Sun 7626abf60d
fix(sdk.v2): fix `Optional` type hint causing executor to ignore user inputs for parameters. (#6541)
* fix `Optional` type hint causing issue in executor.

* update release note

* add a pipeline test case
2021-09-10 12:16:58 -07:00
Chen Sun 38e826bf80
fix(sdk.v2): Fix passing in "" to a `str` parameter causes the parameter to receive it as None instead (#6533)
* fix empty string not passed through

* update release note
2021-09-08 18:13:00 -07:00
Chen Sun 2f19a26ffd
chore(sdk): Format all Python files under SDK folder. (#6501)
* Reformat sdk only using the new yapf config.

* Reformat docstrings using docformatter.

* update golden files to resolve diff caused by whitespaces

* fix some tests

* format .py files under sdk/python/tests using yapf

* additional docformatter

* fix some tests
2021-09-03 11:25:11 -07: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