From d4583a50fe230e49ea663a7135d7bfd2f12908dd Mon Sep 17 00:00:00 2001 From: Chen Sun Date: Thu, 13 Oct 2022 03:37:31 -0700 Subject: [PATCH 1/3] Update component.py --- sdk/python/kfp/cli/component.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sdk/python/kfp/cli/component.py b/sdk/python/kfp/cli/component.py index 1cf410fbe83..648dc86c0bd 100644 --- a/sdk/python/kfp/cli/component.py +++ b/sdk/python/kfp/cli/component.py @@ -172,9 +172,9 @@ def _load_components(self): python_file = str(python_file) if not component_modules: - logging.error( + logging.info( f'No KFP components found in file {python_file}') - raise sys.exit(1) + continue logging.info( f'Found {len(component_modules)} component(s) in file {python_file}:' From 57293c8694ec6290d93404e8e3f1a6647262bd48 Mon Sep 17 00:00:00 2001 From: Chen Sun Date: Thu, 13 Oct 2022 10:56:33 -0700 Subject: [PATCH 2/3] Update component.py --- sdk/python/kfp/cli/component.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/sdk/python/kfp/cli/component.py b/sdk/python/kfp/cli/component.py index 648dc86c0bd..2d3e017a1c8 100644 --- a/sdk/python/kfp/cli/component.py +++ b/sdk/python/kfp/cli/component.py @@ -171,11 +171,7 @@ def _load_components(self): module_name=module_name, module_directory=module_directory) python_file = str(python_file) - if not component_modules: - logging.info( - f'No KFP components found in file {python_file}') - continue - + logging.info( f'Found {len(component_modules)} component(s) in file {python_file}:' ) From 249b1c3f399e60d835ada53ea1e9b60931db7d8d Mon Sep 17 00:00:00 2001 From: Chen Sun Date: Thu, 13 Oct 2022 13:52:41 -0700 Subject: [PATCH 3/3] Update component.py --- sdk/python/kfp/cli/component.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/python/kfp/cli/component.py b/sdk/python/kfp/cli/component.py index 2d3e017a1c8..6e01dc65a95 100644 --- a/sdk/python/kfp/cli/component.py +++ b/sdk/python/kfp/cli/component.py @@ -171,7 +171,7 @@ def _load_components(self): module_name=module_name, module_directory=module_directory) python_file = str(python_file) - + logging.info( f'Found {len(component_modules)} component(s) in file {python_file}:' )