From 7a158d1adc7e309c8f1aeedba3a0ca9348157c52 Mon Sep 17 00:00:00 2001 From: Yaqi Date: Tue, 8 Mar 2022 16:14:08 -0800 Subject: [PATCH 1/2] feat(sdk)!: throw error for output_component_file --- sdk/python/kfp/components/component_decorator.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sdk/python/kfp/components/component_decorator.py b/sdk/python/kfp/components/component_decorator.py index 9260cea1d5a..a95d5b66789 100644 --- a/sdk/python/kfp/components/component_decorator.py +++ b/sdk/python/kfp/components/component_decorator.py @@ -91,6 +91,10 @@ def pipeline(): Returns: A component task factory that can be used in pipeline definitions. """ + if output_component_file is not None: + raise Exception("output_component_file is not supported yet in v2 early" + "releases ad will be added back for v2.0.0 ") + if func is None: return functools.partial( component, From f533583228ffef5c8cc8023752e8ac9a211c8a61 Mon Sep 17 00:00:00 2001 From: Yaqi Date: Tue, 8 Mar 2022 16:21:44 -0800 Subject: [PATCH 2/2] Update readme --- sdk/RELEASE.md | 1 + sdk/python/kfp/components/component_decorator.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/sdk/RELEASE.md b/sdk/RELEASE.md index 5fc37cc83f3..9b6ff179243 100644 --- a/sdk/RELEASE.md +++ b/sdk/RELEASE.md @@ -20,6 +20,7 @@ * Deprecate v2 compatible mode in v1 compiler. [\#6958](https://github.com/kubeflow/pipelines/pull/6958) * Drop support for python 3.6 [\#7303](https://github.com/kubeflow/pipelines/pull/7303) * Deprecate v1 code to deprecated folder [\#7291](https://github.com/kubeflow/pipelines/pull/7291) +* Disable output_component_file temporarily for v2 early release [\#7390](https://github.com/kubeflow/pipelines/pull/7390) ### For Pipeline Authors diff --git a/sdk/python/kfp/components/component_decorator.py b/sdk/python/kfp/components/component_decorator.py index a95d5b66789..5a521e5ac47 100644 --- a/sdk/python/kfp/components/component_decorator.py +++ b/sdk/python/kfp/components/component_decorator.py @@ -93,7 +93,7 @@ def pipeline(): """ if output_component_file is not None: raise Exception("output_component_file is not supported yet in v2 early" - "releases ad will be added back for v2.0.0 ") + "releases and will be added back for v2.0.0 ") if func is None: return functools.partial(