diff --git a/sdk/python/kfp/compiler/testdata/v2_compatible_two_step_pipeline.yaml b/sdk/python/kfp/compiler/testdata/v2_compatible_two_step_pipeline.yaml index ea11ec0f440..9dc7dc8f79d 100644 --- a/sdk/python/kfp/compiler/testdata/v2_compatible_two_step_pipeline.yaml +++ b/sdk/python/kfp/compiler/testdata/v2_compatible_two_step_pipeline.yaml @@ -101,7 +101,7 @@ spec: "INT"}, "uri": {"type": "STRING"}}, "inputArtifacts": {}, "outputParameters": {"output_parameter_one": {"type": "INT", "path": "/tmp/outputs/output_parameter_one/data"}}, "outputArtifacts": {"output_dataset_one": {"schemaTitle": "system.Dataset", - "instanceSchema": "", "metadataPath": "/tmp/outputs/output_dataset_one/data"}}}'} + "instanceSchema": "", "schemaVersion": "0.0.1", "metadataPath": "/tmp/outputs/output_dataset_one/data"}}}'} envFrom: - configMapRef: {name: metadata-grpc-configmap, optional: true} image: python:3.7 @@ -200,9 +200,9 @@ spec: - {name: KFP_V2_IMAGE, value: 'python:3.7'} - {name: KFP_V2_RUNTIME_INFO, value: '{"inputParameters": {"num_steps": {"type": "INT"}}, "inputArtifacts": {"dataset": {"metadataPath": "/tmp/inputs/dataset/data", - "schemaTitle": "system.Dataset", "instanceSchema": ""}}, "outputParameters": + "schemaTitle": "system.Dataset", "instanceSchema": "", "schemaVersion": "0.0.1"}}, "outputParameters": {}, "outputArtifacts": {"model": {"schemaTitle": "system.Model", "instanceSchema": - "", "metadataPath": "/tmp/outputs/model/data"}}}'} + "", "schemaVersion": "0.0.1", "metadataPath": "/tmp/outputs/model/data"}}}'} envFrom: - configMapRef: {name: metadata-grpc-configmap, optional: true} image: python:3.7 diff --git a/sdk/python/kfp/compiler/testdata/v2_compatible_two_step_pipeline_with_custom_launcher.yaml b/sdk/python/kfp/compiler/testdata/v2_compatible_two_step_pipeline_with_custom_launcher.yaml index 8f1e7837785..8aae4a008db 100644 --- a/sdk/python/kfp/compiler/testdata/v2_compatible_two_step_pipeline_with_custom_launcher.yaml +++ b/sdk/python/kfp/compiler/testdata/v2_compatible_two_step_pipeline_with_custom_launcher.yaml @@ -101,7 +101,7 @@ spec: "INT"}, "uri": {"type": "STRING"}}, "inputArtifacts": {}, "outputParameters": {"output_parameter_one": {"type": "INT", "path": "/tmp/outputs/output_parameter_one/data"}}, "outputArtifacts": {"output_dataset_one": {"schemaTitle": "system.Dataset", - "instanceSchema": "", "metadataPath": "/tmp/outputs/output_dataset_one/data"}}}'} + "instanceSchema": "", "schemaVersion": "0.0.1", "metadataPath": "/tmp/outputs/output_dataset_one/data"}}}'} envFrom: - configMapRef: {name: metadata-grpc-configmap, optional: true} image: python:3.7 @@ -200,9 +200,9 @@ spec: - {name: KFP_V2_IMAGE, value: 'python:3.7'} - {name: KFP_V2_RUNTIME_INFO, value: '{"inputParameters": {"num_steps": {"type": "INT"}}, "inputArtifacts": {"dataset": {"metadataPath": "/tmp/inputs/dataset/data", - "schemaTitle": "system.Dataset", "instanceSchema": ""}}, "outputParameters": + "schemaTitle": "system.Dataset", "instanceSchema": "", "schemaVersion": "0.0.1"}}, "outputParameters": {}, "outputArtifacts": {"model": {"schemaTitle": "system.Model", "instanceSchema": - "", "metadataPath": "/tmp/outputs/model/data"}}}'} + "", "schemaVersion": "0.0.1", "metadataPath": "/tmp/outputs/model/data"}}}'} envFrom: - configMapRef: {name: metadata-grpc-configmap, optional: true} image: python:3.7 diff --git a/sdk/python/kfp/compiler/v2_compat.py b/sdk/python/kfp/compiler/v2_compat.py index 55dddf82069..97017335250 100644 --- a/sdk/python/kfp/compiler/v2_compat.py +++ b/sdk/python/kfp/compiler/v2_compat.py @@ -153,6 +153,7 @@ def update_op(op: dsl.ContainerOp, "metadataPath": op.input_artifact_paths[artifact_name], "schemaTitle": spec.artifact_type.schema_title, "instanceSchema": spec.artifact_type.instance_schema, + "schemaVersion": spec.artifact_type.schema_version, } runtime_info["inputArtifacts"][artifact_name] = artifact_info @@ -173,6 +174,7 @@ def update_op(op: dsl.ContainerOp, # Type used to register output artifacts. "schemaTitle": spec.artifact_type.schema_title, "instanceSchema": spec.artifact_type.instance_schema, + "schemaVersion": spec.artifact_type.schema_version, # File used to write out the registered artifact ID. "metadataPath": op.file_outputs[artifact_name], } diff --git a/sdk/python/kfp/dsl/component_spec_test.py b/sdk/python/kfp/dsl/component_spec_test.py index 70a4afe6da0..12b10077eb0 100644 --- a/sdk/python/kfp/dsl/component_spec_test.py +++ b/sdk/python/kfp/dsl/component_spec_test.py @@ -64,7 +64,8 @@ def test_build_component_spec_from_structure(self): 'artifacts': { 'input1': { 'artifactType': { - 'schemaTitle': 'system.Dataset' + 'schemaTitle': 'system.Dataset', + 'schemaVersion': '0.0.1' } } }, @@ -81,7 +82,8 @@ def test_build_component_spec_from_structure(self): 'artifacts': { 'output1': { 'artifactType': { - 'schemaTitle': 'system.Model' + 'schemaTitle': 'system.Model', + 'schemaVersion': '0.0.1' } } } @@ -108,7 +110,8 @@ def test_build_component_spec_from_structure(self): 'artifacts': { 'input1': { 'artifactType': { - 'schemaTitle': 'system.Dataset' + 'schemaTitle': 'system.Dataset', + 'schemaVersion':'0.0.1' } } }, @@ -133,7 +136,8 @@ def test_build_component_spec_from_structure(self): 'artifacts': { 'pipelineparam--input1': { 'artifactType': { - 'schemaTitle': 'system.Dataset' + 'schemaTitle': 'system.Dataset', + 'schemaVersion':'0.0.1' } } }, @@ -182,7 +186,8 @@ def test_build_component_outputs_spec(self): 'artifacts': { 'output1': { 'artifactType': { - 'schemaTitle': 'system.Dataset' + 'schemaTitle': 'system.Dataset', + 'schemaVersion': '0.0.1' } } }, diff --git a/sdk/python/kfp/dsl/type_utils.py b/sdk/python/kfp/dsl/type_utils.py index e0910a0eb6d..473a8eb67de 100644 --- a/sdk/python/kfp/dsl/type_utils.py +++ b/sdk/python/kfp/dsl/type_utils.py @@ -27,4 +27,4 @@ get_artifact_type_schema = type_utils.type_utils.get_artifact_type_schema get_parameter_type = type_utils.get_parameter_type get_parameter_type_field_name = type_utils.get_parameter_type_field_name -get_input_artifact_type_schema = type_utils.type_utils.get_input_artifact_type_schema \ No newline at end of file +get_input_artifact_type_schema = type_utils.type_utils.get_input_artifact_type_schema diff --git a/sdk/python/kfp/v2/compiler_cli_tests/test_data/experimental_v2_component.json b/sdk/python/kfp/v2/compiler_cli_tests/test_data/experimental_v2_component.json index 9bac02b0b9d..f0ec0bb512b 100644 --- a/sdk/python/kfp/v2/compiler_cli_tests/test_data/experimental_v2_component.json +++ b/sdk/python/kfp/v2/compiler_cli_tests/test_data/experimental_v2_component.json @@ -123,7 +123,7 @@ } }, "schemaVersion": "2.0.0", - "sdkVersion": "kfp-1.6.6" + "sdkVersion": "kfp-1.7.0" }, "runtimeConfig": { "gcsOutputDirectory": "dummy_root", diff --git a/sdk/python/kfp/v2/compiler_cli_tests/test_data/lightweight_python_functions_v2_pipeline.json b/sdk/python/kfp/v2/compiler_cli_tests/test_data/lightweight_python_functions_v2_pipeline.json index 40cb3262571..83855373868 100644 --- a/sdk/python/kfp/v2/compiler_cli_tests/test_data/lightweight_python_functions_v2_pipeline.json +++ b/sdk/python/kfp/v2/compiler_cli_tests/test_data/lightweight_python_functions_v2_pipeline.json @@ -14,12 +14,14 @@ "artifacts": { "output_dataset_one": { "artifactType": { - "schemaTitle": "system.Dataset" + "schemaTitle": "system.Dataset", + "schemaVersion": "0.0.1" } }, "output_dataset_two_path": { "artifactType": { - "schemaTitle": "system.Dataset" + "schemaTitle": "system.Dataset", + "schemaVersion": "0.0.1" } } }, @@ -45,12 +47,14 @@ "artifacts": { "dataset_one_path": { "artifactType": { - "schemaTitle": "system.Dataset" + "schemaTitle": "system.Dataset", + "schemaVersion": "0.0.1" } }, "dataset_two": { "artifactType": { - "schemaTitle": "system.Dataset" + "schemaTitle": "system.Dataset", + "schemaVersion": "0.0.1" } } }, @@ -76,7 +80,8 @@ "artifacts": { "model": { "artifactType": { - "schemaTitle": "system.Model" + "schemaTitle": "system.Model", + "schemaVersion": "0.0.1" } } } diff --git a/sdk/python/kfp/v2/compiler_cli_tests/test_data/lightweight_python_functions_v2_with_outputs.json b/sdk/python/kfp/v2/compiler_cli_tests/test_data/lightweight_python_functions_v2_with_outputs.json index a19bd072c99..d2fcc429589 100644 --- a/sdk/python/kfp/v2/compiler_cli_tests/test_data/lightweight_python_functions_v2_with_outputs.json +++ b/sdk/python/kfp/v2/compiler_cli_tests/test_data/lightweight_python_functions_v2_with_outputs.json @@ -57,7 +57,8 @@ "artifacts": { "Output": { "artifactType": { - "schemaTitle": "system.Dataset" + "schemaTitle": "system.Dataset", + "schemaVersion": "0.0.1" } } } @@ -69,7 +70,8 @@ "artifacts": { "artifact": { "artifactType": { - "schemaTitle": "system.Dataset" + "schemaTitle": "system.Dataset", + "schemaVersion": "0.0.1" } } } @@ -78,12 +80,14 @@ "artifacts": { "metrics": { "artifactType": { - "schemaTitle": "system.Metrics" + "schemaTitle": "system.Metrics", + "schemaVersion": "0.0.1" } }, "model": { "artifactType": { - "schemaTitle": "system.Model" + "schemaTitle": "system.Model", + "schemaVersion": "0.0.1" } } }, @@ -316,7 +320,8 @@ "artifacts": { "output-named-tuple-metrics": { "artifactType": { - "schemaTitle": "system.Metrics" + "schemaTitle": "system.Metrics", + "schemaVersion": "0.0.1" } } } diff --git a/sdk/python/kfp/v2/compiler_cli_tests/test_data/pipeline_with_after.json b/sdk/python/kfp/v2/compiler_cli_tests/test_data/pipeline_with_after.json index 94f265b35b4..4473ec33424 100644 --- a/sdk/python/kfp/v2/compiler_cli_tests/test_data/pipeline_with_after.json +++ b/sdk/python/kfp/v2/compiler_cli_tests/test_data/pipeline_with_after.json @@ -152,7 +152,7 @@ } }, "schemaVersion": "2.0.0", - "sdkVersion": "kfp-1.6.6" + "sdkVersion": "kfp-1.7.0" }, "runtimeConfig": { "gcsOutputDirectory": "dummy_root" diff --git a/sdk/python/kfp/v2/compiler_cli_tests/test_data/pipeline_with_concat_placeholder.json b/sdk/python/kfp/v2/compiler_cli_tests/test_data/pipeline_with_concat_placeholder.json index e02bb84efc2..3406b08d1c1 100644 --- a/sdk/python/kfp/v2/compiler_cli_tests/test_data/pipeline_with_concat_placeholder.json +++ b/sdk/python/kfp/v2/compiler_cli_tests/test_data/pipeline_with_concat_placeholder.json @@ -57,7 +57,7 @@ } }, "schemaVersion": "2.0.0", - "sdkVersion": "kfp-1.6.6" + "sdkVersion": "kfp-1.7.0" }, "runtimeConfig": { "gcsOutputDirectory": "dummy_root" diff --git a/sdk/python/kfp/v2/compiler_cli_tests/test_data/pipeline_with_condition.json b/sdk/python/kfp/v2/compiler_cli_tests/test_data/pipeline_with_condition.json index 75f0ce06524..60b2054ed89 100644 --- a/sdk/python/kfp/v2/compiler_cli_tests/test_data/pipeline_with_condition.json +++ b/sdk/python/kfp/v2/compiler_cli_tests/test_data/pipeline_with_condition.json @@ -275,7 +275,7 @@ } }, "schemaVersion": "2.0.0", - "sdkVersion": "kfp-1.6.6" + "sdkVersion": "kfp-1.7.0" }, "runtimeConfig": { "gcsOutputDirectory": "dummy_root", diff --git a/sdk/python/kfp/v2/compiler_cli_tests/test_data/pipeline_with_importer.json b/sdk/python/kfp/v2/compiler_cli_tests/test_data/pipeline_with_importer.json index 338a5dd9b29..9a7a605788c 100644 --- a/sdk/python/kfp/v2/compiler_cli_tests/test_data/pipeline_with_importer.json +++ b/sdk/python/kfp/v2/compiler_cli_tests/test_data/pipeline_with_importer.json @@ -72,7 +72,8 @@ "artifacts": { "artifact": { "artifactType": { - "schemaTitle": "system.Dataset" + "schemaTitle": "system.Dataset", + "schemaVersion": "0.0.1" } } } @@ -91,7 +92,8 @@ "artifacts": { "artifact": { "artifactType": { - "schemaTitle": "system.Dataset" + "schemaTitle": "system.Dataset", + "schemaVersion": "0.0.1" } } } @@ -103,7 +105,8 @@ "artifacts": { "dataset": { "artifactType": { - "schemaTitle": "system.Dataset" + "schemaTitle": "system.Dataset", + "schemaVersion": "0.0.1" } } } @@ -112,7 +115,8 @@ "artifacts": { "model": { "artifactType": { - "schemaTitle": "system.Model" + "schemaTitle": "system.Model", + "schemaVersion": "0.0.1" } } }, @@ -129,7 +133,8 @@ "artifacts": { "dataset": { "artifactType": { - "schemaTitle": "system.Dataset" + "schemaTitle": "system.Dataset", + "schemaVersion": "0.0.1" } } } @@ -138,7 +143,8 @@ "artifacts": { "model": { "artifactType": { - "schemaTitle": "system.Model" + "schemaTitle": "system.Model", + "schemaVersion": "0.0.1" } } }, @@ -160,7 +166,8 @@ } }, "typeSchema": { - "schemaTitle": "system.Dataset" + "schemaTitle": "system.Dataset", + "schemaVersion": "0.0.1" } } }, @@ -170,7 +177,8 @@ "runtimeParameter": "uri" }, "typeSchema": { - "schemaTitle": "system.Dataset" + "schemaTitle": "system.Dataset", + "schemaVersion": "0.0.1" } } }, diff --git a/sdk/python/kfp/v2/compiler_cli_tests/test_data/pipeline_with_loop_output.json b/sdk/python/kfp/v2/compiler_cli_tests/test_data/pipeline_with_loop_output.json index cb7056df7d1..1644b2b023b 100644 --- a/sdk/python/kfp/v2/compiler_cli_tests/test_data/pipeline_with_loop_output.json +++ b/sdk/python/kfp/v2/compiler_cli_tests/test_data/pipeline_with_loop_output.json @@ -226,7 +226,7 @@ } }, "schemaVersion": "2.0.0", - "sdkVersion": "kfp-1.6.6" + "sdkVersion": "kfp-1.7.0" }, "runtimeConfig": { "gcsOutputDirectory": "dummy_root" diff --git a/sdk/python/kfp/v2/compiler_cli_tests/test_data/pipeline_with_loop_parameter.json b/sdk/python/kfp/v2/compiler_cli_tests/test_data/pipeline_with_loop_parameter.json index 27e2e4d80d8..be3b42145cf 100644 --- a/sdk/python/kfp/v2/compiler_cli_tests/test_data/pipeline_with_loop_parameter.json +++ b/sdk/python/kfp/v2/compiler_cli_tests/test_data/pipeline_with_loop_parameter.json @@ -191,7 +191,7 @@ } }, "schemaVersion": "2.0.0", - "sdkVersion": "kfp-1.6.6" + "sdkVersion": "kfp-1.7.0" }, "runtimeConfig": { "gcsOutputDirectory": "dummy_root", diff --git a/sdk/python/kfp/v2/compiler_cli_tests/test_data/pipeline_with_loop_static.json b/sdk/python/kfp/v2/compiler_cli_tests/test_data/pipeline_with_loop_static.json index e803dfd2ab4..6debde08ab2 100644 --- a/sdk/python/kfp/v2/compiler_cli_tests/test_data/pipeline_with_loop_static.json +++ b/sdk/python/kfp/v2/compiler_cli_tests/test_data/pipeline_with_loop_static.json @@ -174,7 +174,7 @@ } }, "schemaVersion": "2.0.0", - "sdkVersion": "kfp-1.6.6" + "sdkVersion": "kfp-1.7.0" }, "runtimeConfig": { "gcsOutputDirectory": "dummy_root" diff --git a/sdk/python/kfp/v2/compiler_cli_tests/test_data/pipeline_with_loops_and_conditions.json b/sdk/python/kfp/v2/compiler_cli_tests/test_data/pipeline_with_loops_and_conditions.json index e5237831a2f..9991f39a836 100644 --- a/sdk/python/kfp/v2/compiler_cli_tests/test_data/pipeline_with_loops_and_conditions.json +++ b/sdk/python/kfp/v2/compiler_cli_tests/test_data/pipeline_with_loops_and_conditions.json @@ -678,7 +678,7 @@ } }, "schemaVersion": "2.0.0", - "sdkVersion": "kfp-1.6.6" + "sdkVersion": "kfp-1.7.0" }, "runtimeConfig": { "gcsOutputDirectory": "dummy_root", diff --git a/sdk/python/kfp/v2/compiler_cli_tests/test_data/pipeline_with_metrics_outputs.json b/sdk/python/kfp/v2/compiler_cli_tests/test_data/pipeline_with_metrics_outputs.json index 960d4f8682a..54fa8be2c68 100644 --- a/sdk/python/kfp/v2/compiler_cli_tests/test_data/pipeline_with_metrics_outputs.json +++ b/sdk/python/kfp/v2/compiler_cli_tests/test_data/pipeline_with_metrics_outputs.json @@ -40,7 +40,8 @@ "artifacts": { "output-metrics-2-metrics": { "artifactType": { - "schemaTitle": "system.Metrics" + "schemaTitle": "system.Metrics", + "schemaVersion": "0.0.1" } } } @@ -52,7 +53,8 @@ "artifacts": { "metrics": { "artifactType": { - "schemaTitle": "system.Metrics" + "schemaTitle": "system.Metrics", + "schemaVersion": "0.0.1" } } } @@ -64,7 +66,8 @@ "artifacts": { "metrics": { "artifactType": { - "schemaTitle": "system.Metrics" + "schemaTitle": "system.Metrics", + "schemaVersion": "0.0.1" } } } @@ -172,12 +175,14 @@ "artifacts": { "output-metrics-2-metrics": { "artifactType": { - "schemaTitle": "system.Metrics" + "schemaTitle": "system.Metrics", + "schemaVersion": "0.0.1" } }, "output-metrics-metrics": { "artifactType": { - "schemaTitle": "system.Metrics" + "schemaTitle": "system.Metrics", + "schemaVersion": "0.0.1" } } } diff --git a/sdk/python/kfp/v2/compiler_cli_tests/test_data/pipeline_with_nested_conditions.json b/sdk/python/kfp/v2/compiler_cli_tests/test_data/pipeline_with_nested_conditions.json index ca7d509f746..8fd8f15aa52 100644 --- a/sdk/python/kfp/v2/compiler_cli_tests/test_data/pipeline_with_nested_conditions.json +++ b/sdk/python/kfp/v2/compiler_cli_tests/test_data/pipeline_with_nested_conditions.json @@ -452,7 +452,7 @@ } }, "schemaVersion": "2.0.0", - "sdkVersion": "kfp-1.6.6" + "sdkVersion": "kfp-1.7.0" }, "runtimeConfig": { "gcsOutputDirectory": "dummy_root" diff --git a/sdk/python/kfp/v2/compiler_cli_tests/test_data/pipeline_with_nested_conditions_yaml.json b/sdk/python/kfp/v2/compiler_cli_tests/test_data/pipeline_with_nested_conditions_yaml.json index d6854cbd441..9300f19e289 100644 --- a/sdk/python/kfp/v2/compiler_cli_tests/test_data/pipeline_with_nested_conditions_yaml.json +++ b/sdk/python/kfp/v2/compiler_cli_tests/test_data/pipeline_with_nested_conditions_yaml.json @@ -544,7 +544,7 @@ } }, "schemaVersion": "2.0.0", - "sdkVersion": "kfp-1.6.6" + "sdkVersion": "kfp-1.7.0" }, "runtimeConfig": { "gcsOutputDirectory": "dummy_root" diff --git a/sdk/python/kfp/v2/compiler_cli_tests/test_data/pipeline_with_nested_loops.json b/sdk/python/kfp/v2/compiler_cli_tests/test_data/pipeline_with_nested_loops.json index fc6e8074f23..0c94aed4dd3 100644 --- a/sdk/python/kfp/v2/compiler_cli_tests/test_data/pipeline_with_nested_loops.json +++ b/sdk/python/kfp/v2/compiler_cli_tests/test_data/pipeline_with_nested_loops.json @@ -142,7 +142,7 @@ } }, "schemaVersion": "2.0.0", - "sdkVersion": "kfp-1.6.6" + "sdkVersion": "kfp-1.7.0" }, "runtimeConfig": { "gcsOutputDirectory": "dummy_root", diff --git a/sdk/python/kfp/v2/compiler_cli_tests/test_data/pipeline_with_ontology.json b/sdk/python/kfp/v2/compiler_cli_tests/test_data/pipeline_with_ontology.json index 962bd0f8201..cb4752a5d07 100644 --- a/sdk/python/kfp/v2/compiler_cli_tests/test_data/pipeline_with_ontology.json +++ b/sdk/python/kfp/v2/compiler_cli_tests/test_data/pipeline_with_ontology.json @@ -14,7 +14,8 @@ "artifacts": { "examples": { "artifactType": { - "schemaTitle": "system.Dataset" + "schemaTitle": "system.Dataset", + "schemaVersion": "0.0.1" } } } @@ -26,7 +27,8 @@ "artifacts": { "examples": { "artifactType": { - "schemaTitle": "system.Dataset" + "schemaTitle": "system.Dataset", + "schemaVersion": "0.0.1" } } }, @@ -43,7 +45,8 @@ "artifacts": { "model": { "artifactType": { - "schemaTitle": "system.Model" + "schemaTitle": "system.Model", + "schemaVersion": "0.0.1" } } } @@ -153,7 +156,7 @@ } }, "schemaVersion": "2.0.0", - "sdkVersion": "kfp-1.6.6" + "sdkVersion": "kfp-1.7.0" }, "runtimeConfig": { "gcsOutputDirectory": "dummy_root", diff --git a/sdk/python/kfp/v2/compiler_cli_tests/test_data/pipeline_with_params_containing_format.json b/sdk/python/kfp/v2/compiler_cli_tests/test_data/pipeline_with_params_containing_format.json index ebcfa635387..f6d5ddb383f 100644 --- a/sdk/python/kfp/v2/compiler_cli_tests/test_data/pipeline_with_params_containing_format.json +++ b/sdk/python/kfp/v2/compiler_cli_tests/test_data/pipeline_with_params_containing_format.json @@ -251,7 +251,7 @@ } }, "schemaVersion": "2.0.0", - "sdkVersion": "kfp-1.6.6" + "sdkVersion": "kfp-1.7.0" }, "runtimeConfig": { "gcsOutputDirectory": "dummy_root", diff --git a/sdk/python/kfp/v2/compiler_cli_tests/test_data/pipeline_with_resource_spec.json b/sdk/python/kfp/v2/compiler_cli_tests/test_data/pipeline_with_resource_spec.json index 56f780a606f..9764e9b615f 100644 --- a/sdk/python/kfp/v2/compiler_cli_tests/test_data/pipeline_with_resource_spec.json +++ b/sdk/python/kfp/v2/compiler_cli_tests/test_data/pipeline_with_resource_spec.json @@ -14,7 +14,8 @@ "artifacts": { "examples": { "artifactType": { - "schemaTitle": "system.Dataset" + "schemaTitle": "system.Dataset", + "schemaVersion": "0.0.1" } } } @@ -26,7 +27,8 @@ "artifacts": { "examples": { "artifactType": { - "schemaTitle": "system.Dataset" + "schemaTitle": "system.Dataset", + "schemaVersion": "0.0.1" } } }, @@ -43,7 +45,8 @@ "artifacts": { "model": { "artifactType": { - "schemaTitle": "system.Model" + "schemaTitle": "system.Model", + "schemaVersion": "0.0.1" } } } @@ -161,7 +164,7 @@ } }, "schemaVersion": "2.0.0", - "sdkVersion": "kfp-1.6.6" + "sdkVersion": "kfp-1.7.0" }, "runtimeConfig": { "gcsOutputDirectory": "dummy_root", diff --git a/sdk/python/kfp/v2/compiler_cli_tests/test_data/pipeline_with_reused_component.json b/sdk/python/kfp/v2/compiler_cli_tests/test_data/pipeline_with_reused_component.json index eb7673ef028..600bcda93dd 100644 --- a/sdk/python/kfp/v2/compiler_cli_tests/test_data/pipeline_with_reused_component.json +++ b/sdk/python/kfp/v2/compiler_cli_tests/test_data/pipeline_with_reused_component.json @@ -208,7 +208,7 @@ } }, "schemaVersion": "2.0.0", - "sdkVersion": "kfp-1.6.6" + "sdkVersion": "kfp-1.7.0" }, "runtimeConfig": { "gcsOutputDirectory": "dummy_root", diff --git a/sdk/python/kfp/v2/compiler_cli_tests/test_data/pipeline_with_various_io_types.json b/sdk/python/kfp/v2/compiler_cli_tests/test_data/pipeline_with_various_io_types.json index a5f64993700..291b250a9df 100644 --- a/sdk/python/kfp/v2/compiler_cli_tests/test_data/pipeline_with_various_io_types.json +++ b/sdk/python/kfp/v2/compiler_cli_tests/test_data/pipeline_with_various_io_types.json @@ -7,37 +7,44 @@ "artifacts": { "input_b": { "artifactType": { - "schemaTitle": "system.Model" + "schemaTitle": "system.Model", + "schemaVersion": "0.0.1" } }, "input_c": { "artifactType": { - "schemaTitle": "system.Artifact" + "schemaTitle": "system.Artifact", + "schemaVersion": "0.0.1" } }, "input_d": { "artifactType": { - "schemaTitle": "system.Model" + "schemaTitle": "system.Model", + "schemaVersion": "0.0.1" } }, "input_e": { "artifactType": { - "schemaTitle": "system.Artifact" + "schemaTitle": "system.Artifact", + "schemaVersion": "0.0.1" } }, "input_f": { "artifactType": { - "schemaTitle": "system.Artifact" + "schemaTitle": "system.Artifact", + "schemaVersion": "0.0.1" } }, "input_g": { "artifactType": { - "schemaTitle": "system.Artifact" + "schemaTitle": "system.Artifact", + "schemaVersion": "0.0.1" } }, "input_h": { "artifactType": { - "schemaTitle": "system.HTML" + "schemaTitle": "system.HTML", + "schemaVersion": "0.0.1" } } }, @@ -70,37 +77,44 @@ "artifacts": { "output_2": { "artifactType": { - "schemaTitle": "system.Model" + "schemaTitle": "system.Model", + "schemaVersion": "0.0.1" } }, "output_3": { "artifactType": { - "schemaTitle": "system.Artifact" + "schemaTitle": "system.Artifact", + "schemaVersion": "0.0.1" } }, "output_4": { "artifactType": { - "schemaTitle": "system.Model" + "schemaTitle": "system.Model", + "schemaVersion": "0.0.1" } }, "output_5": { "artifactType": { - "schemaTitle": "system.Artifact" + "schemaTitle": "system.Artifact", + "schemaVersion": "0.0.1" } }, "output_6": { "artifactType": { - "schemaTitle": "system.Artifact" + "schemaTitle": "system.Artifact", + "schemaVersion": "0.0.1" } }, "output_7": { "artifactType": { - "schemaTitle": "system.Artifact" + "schemaTitle": "system.Artifact", + "schemaVersion": "0.0.1" } }, "output_8": { "artifactType": { - "schemaTitle": "system.HTML" + "schemaTitle": "system.HTML", + "schemaVersion": "0.0.1" } } }, @@ -272,7 +286,7 @@ } }, "schemaVersion": "2.0.0", - "sdkVersion": "kfp-1.6.6" + "sdkVersion": "kfp-1.7.0" }, "runtimeConfig": { "gcsOutputDirectory": "dummy_root", diff --git a/sdk/python/kfp/v2/compiler_cli_tests/test_data/two_step_pipeline.json b/sdk/python/kfp/v2/compiler_cli_tests/test_data/two_step_pipeline.json index e86a6136416..4bd4a87a4ee 100644 --- a/sdk/python/kfp/v2/compiler_cli_tests/test_data/two_step_pipeline.json +++ b/sdk/python/kfp/v2/compiler_cli_tests/test_data/two_step_pipeline.json @@ -7,7 +7,8 @@ "artifacts": { "input_gcs_path": { "artifactType": { - "schemaTitle": "system.Artifact" + "schemaTitle": "system.Artifact", + "schemaVersion": "0.0.1" } } } @@ -26,7 +27,8 @@ "artifacts": { "output_gcs_path": { "artifactType": { - "schemaTitle": "system.Artifact" + "schemaTitle": "system.Artifact", + "schemaVersion": "0.0.1" } } } @@ -119,7 +121,7 @@ } }, "schemaVersion": "2.0.0", - "sdkVersion": "kfp-1.6.6" + "sdkVersion": "kfp-1.7.0" }, "runtimeConfig": { "gcsOutputDirectory": "dummy_root", diff --git a/sdk/python/kfp/v2/compiler_cli_tests/test_data/xgboost_sample_pipeline.json b/sdk/python/kfp/v2/compiler_cli_tests/test_data/xgboost_sample_pipeline.json index bfcf2bd1960..28fbe9e5810 100644 --- a/sdk/python/kfp/v2/compiler_cli_tests/test_data/xgboost_sample_pipeline.json +++ b/sdk/python/kfp/v2/compiler_cli_tests/test_data/xgboost_sample_pipeline.json @@ -23,7 +23,8 @@ "artifacts": { "Table": { "artifactType": { - "schemaTitle": "system.Artifact" + "schemaTitle": "system.Artifact", + "schemaVersion": "0.0.1" } } } @@ -35,7 +36,8 @@ "artifacts": { "data": { "artifactType": { - "schemaTitle": "system.Artifact" + "schemaTitle": "system.Artifact", + "schemaVersion": "0.0.1" } } } @@ -44,7 +46,8 @@ "artifacts": { "output_data": { "artifactType": { - "schemaTitle": "system.Artifact" + "schemaTitle": "system.Artifact", + "schemaVersion": "0.0.1" } } } @@ -56,12 +59,14 @@ "artifacts": { "data": { "artifactType": { - "schemaTitle": "system.Artifact" + "schemaTitle": "system.Artifact", + "schemaVersion": "0.0.1" } }, "model": { "artifactType": { - "schemaTitle": "system.Artifact" + "schemaTitle": "system.Artifact", + "schemaVersion": "0.0.1" } } }, @@ -75,7 +80,8 @@ "artifacts": { "predictions": { "artifactType": { - "schemaTitle": "system.Artifact" + "schemaTitle": "system.Artifact", + "schemaVersion": "0.0.1" } } } @@ -87,12 +93,14 @@ "artifacts": { "data": { "artifactType": { - "schemaTitle": "system.Artifact" + "schemaTitle": "system.Artifact", + "schemaVersion": "0.0.1" } }, "model": { "artifactType": { - "schemaTitle": "system.Artifact" + "schemaTitle": "system.Artifact", + "schemaVersion": "0.0.1" } } }, @@ -106,7 +114,8 @@ "artifacts": { "predictions": { "artifactType": { - "schemaTitle": "system.Artifact" + "schemaTitle": "system.Artifact", + "schemaVersion": "0.0.1" } } } @@ -118,12 +127,14 @@ "artifacts": { "data": { "artifactType": { - "schemaTitle": "system.Artifact" + "schemaTitle": "system.Artifact", + "schemaVersion": "0.0.1" } }, "model": { "artifactType": { - "schemaTitle": "system.Artifact" + "schemaTitle": "system.Artifact", + "schemaVersion": "0.0.1" } } }, @@ -137,7 +148,8 @@ "artifacts": { "predictions": { "artifactType": { - "schemaTitle": "system.Artifact" + "schemaTitle": "system.Artifact", + "schemaVersion": "0.0.1" } } } @@ -149,12 +161,14 @@ "artifacts": { "data": { "artifactType": { - "schemaTitle": "system.Artifact" + "schemaTitle": "system.Artifact", + "schemaVersion": "0.0.1" } }, "model": { "artifactType": { - "schemaTitle": "system.Artifact" + "schemaTitle": "system.Artifact", + "schemaVersion": "0.0.1" } } }, @@ -168,7 +182,8 @@ "artifacts": { "predictions": { "artifactType": { - "schemaTitle": "system.Artifact" + "schemaTitle": "system.Artifact", + "schemaVersion": "0.0.1" } } } @@ -180,7 +195,8 @@ "artifacts": { "training_data": { "artifactType": { - "schemaTitle": "system.Artifact" + "schemaTitle": "system.Artifact", + "schemaVersion": "0.0.1" } } }, @@ -212,12 +228,14 @@ "artifacts": { "model": { "artifactType": { - "schemaTitle": "system.Artifact" + "schemaTitle": "system.Artifact", + "schemaVersion": "0.0.1" } }, "model_config": { "artifactType": { - "schemaTitle": "system.Artifact" + "schemaTitle": "system.Artifact", + "schemaVersion": "0.0.1" } } } @@ -229,7 +247,8 @@ "artifacts": { "training_data": { "artifactType": { - "schemaTitle": "system.Artifact" + "schemaTitle": "system.Artifact", + "schemaVersion": "0.0.1" } } }, @@ -261,12 +280,14 @@ "artifacts": { "model": { "artifactType": { - "schemaTitle": "system.Artifact" + "schemaTitle": "system.Artifact", + "schemaVersion": "0.0.1" } }, "model_config": { "artifactType": { - "schemaTitle": "system.Artifact" + "schemaTitle": "system.Artifact", + "schemaVersion": "0.0.1" } } } diff --git a/sdk/python/kfp/v2/components/types/artifact_types.py b/sdk/python/kfp/v2/components/types/artifact_types.py index bb555c625a5..f43af43f91b 100644 --- a/sdk/python/kfp/v2/components/types/artifact_types.py +++ b/sdk/python/kfp/v2/components/types/artifact_types.py @@ -36,6 +36,7 @@ class Artifact(object): metadata related to this artifact. """ TYPE_NAME = 'system.Artifact' + VERSION = '0.0.1' def __init__(self, name: Optional[str] = None, @@ -448,4 +449,4 @@ def create_runtime_artifact(runtime_artifact: Dict) -> Artifact: uri=runtime_artifact.get('uri', ''), name=runtime_artifact.get('name', ''), metadata=runtime_artifact.get('metadata', {}), - ) \ No newline at end of file + ) diff --git a/sdk/python/kfp/v2/components/types/type_utils.py b/sdk/python/kfp/v2/components/types/type_utils.py index dd97bb24819..423c2f8636b 100644 --- a/sdk/python/kfp/v2/components/types/type_utils.py +++ b/sdk/python/kfp/v2/components/types/type_utils.py @@ -91,7 +91,8 @@ def get_artifact_type_schema( artifact_class = artifact_class_or_type_name return pipeline_spec_pb2.ArtifactTypeSchema( - schema_title=artifact_class.TYPE_NAME) + schema_title=artifact_class.TYPE_NAME, + schema_version=artifact_class.VERSION) def get_parameter_type( diff --git a/sdk/python/kfp/v2/components/types/type_utils_test.py b/sdk/python/kfp/v2/components/types/type_utils_test.py index 234e83fa06f..3cb4eb841d5 100644 --- a/sdk/python/kfp/v2/components/types/type_utils_test.py +++ b/sdk/python/kfp/v2/components/types/type_utils_test.py @@ -62,87 +62,101 @@ def test_is_parameter_type(self): 'artifact_class_or_type_name': 'Model', 'expected_result': - pb.ArtifactTypeSchema(schema_title='system.Model') + pb.ArtifactTypeSchema(schema_title='system.Model', + schema_version='0.0.1') }, { 'artifact_class_or_type_name': artifact_types.Model, 'expected_result': - pb.ArtifactTypeSchema(schema_title='system.Model') + pb.ArtifactTypeSchema(schema_title='system.Model', + schema_version='0.0.1') }, { 'artifact_class_or_type_name': 'Dataset', 'expected_result': - pb.ArtifactTypeSchema(schema_title='system.Dataset') + pb.ArtifactTypeSchema(schema_title='system.Dataset', + schema_version='0.0.1') }, { 'artifact_class_or_type_name': artifact_types.Dataset, 'expected_result': - pb.ArtifactTypeSchema(schema_title='system.Dataset') + pb.ArtifactTypeSchema(schema_title='system.Dataset', + schema_version='0.0.1') }, { 'artifact_class_or_type_name': 'Metrics', 'expected_result': - pb.ArtifactTypeSchema(schema_title='system.Metrics') + pb.ArtifactTypeSchema(schema_title='system.Metrics', + schema_version='0.0.1') }, { 'artifact_class_or_type_name': artifact_types.Metrics, 'expected_result': - pb.ArtifactTypeSchema(schema_title='system.Metrics') + pb.ArtifactTypeSchema(schema_title='system.Metrics', + schema_version='0.0.1') }, { 'artifact_class_or_type_name': 'ClassificationMetrics', 'expected_result': pb.ArtifactTypeSchema( - schema_title='system.ClassificationMetrics') + schema_title='system.ClassificationMetrics', + schema_version='0.0.1') }, { 'artifact_class_or_type_name': artifact_types.ClassificationMetrics, 'expected_result': pb.ArtifactTypeSchema( - schema_title='system.ClassificationMetrics') + schema_title='system.ClassificationMetrics', + schema_version='0.0.1') }, { 'artifact_class_or_type_name': 'SlicedClassificationMetrics', 'expected_result': pb.ArtifactTypeSchema( - schema_title='system.SlicedClassificationMetrics') + schema_title='system.SlicedClassificationMetrics', + schema_version='0.0.1') }, { 'artifact_class_or_type_name': artifact_types.SlicedClassificationMetrics, 'expected_result': pb.ArtifactTypeSchema( - schema_title='system.SlicedClassificationMetrics') + schema_title='system.SlicedClassificationMetrics', + schema_version='0.0.1') }, { 'artifact_class_or_type_name': 'arbitrary name', 'expected_result': - pb.ArtifactTypeSchema(schema_title='system.Artifact') + pb.ArtifactTypeSchema(schema_title='system.Artifact', + schema_version='0.0.1') }, { 'artifact_class_or_type_name': _ArbitraryClass, 'expected_result': - pb.ArtifactTypeSchema(schema_title='system.Artifact') + pb.ArtifactTypeSchema(schema_title='system.Artifact', + schema_version='0.0.1') }, { 'artifact_class_or_type_name': artifact_types.HTML, - 'expected_result': pb.ArtifactTypeSchema(schema_title='system.HTML') + 'expected_result': pb.ArtifactTypeSchema(schema_title='system.HTML', + schema_version='0.0.1') }, { 'artifact_class_or_type_name': artifact_types.Markdown, 'expected_result': - pb.ArtifactTypeSchema(schema_title='system.Markdown') + pb.ArtifactTypeSchema(schema_title='system.Markdown', + schema_version='0.0.1') }, ) def test_get_artifact_type_schema(self, artifact_class_or_type_name, diff --git a/sdk/python/requirements.in b/sdk/python/requirements.in index f74b4c5669d..35efef9d8ba 100644 --- a/sdk/python/requirements.in +++ b/sdk/python/requirements.in @@ -29,7 +29,7 @@ click>=7.1.1,<8 # kfp.v2 absl-py>=0.9,<=0.11 -kfp-pipeline-spec>=0.1.8,<0.2.0 +kfp-pipeline-spec>=0.1.9,<0.2.0 fire>=0.3.1,<1 google-api-python-client>=1.7.8,<2 dataclasses>=0.8,<1; python_version<"3.7" diff --git a/sdk/python/requirements.txt b/sdk/python/requirements.txt index 14b3cbdadcf..cf7c40a3de0 100644 --- a/sdk/python/requirements.txt +++ b/sdk/python/requirements.txt @@ -1,5 +1,5 @@ # -# This file is autogenerated by pip-compile +# This file is autogenerated by pip-compile with python 3.9 # To update, run: # # pip-compile requirements.in @@ -35,8 +35,6 @@ google-api-core==1.26.0 # google-cloud-core google-api-python-client==1.12.8 # via -r requirements.in -google-auth-httplib2==0.1.0 - # via google-api-python-client google-auth==1.27.0 # via # -r requirements.in @@ -46,6 +44,8 @@ google-auth==1.27.0 # google-cloud-core # google-cloud-storage # kubernetes +google-auth-httplib2==0.1.0 + # via google-api-python-client google-cloud-core==1.6.0 # via google-cloud-storage google-cloud-storage==1.36.1 @@ -64,7 +64,7 @@ idna==2.10 # via requests jsonschema==3.2.0 # via -r requirements.in -kfp-pipeline-spec==0.1.8 +kfp-pipeline-spec==0.1.9 # via -r requirements.in kfp-server-api==1.3.0 # via -r requirements.in @@ -79,12 +79,12 @@ protobuf==3.15.2 # google-api-core # googleapis-common-protos # kfp-pipeline-spec -pyasn1-modules==0.2.8 - # via google-auth pyasn1==0.4.8 # via # pyasn1-modules # rsa +pyasn1-modules==0.2.8 + # via google-auth pycparser==2.20 # via cffi pyparsing==2.4.7 @@ -103,10 +103,6 @@ pyyaml==5.4.1 # via # -r requirements.in # kubernetes -requests-oauthlib==1.3.0 - # via kubernetes -requests-toolbelt==0.9.1 - # via -r requirements.in requests==2.25.1 # via # google-api-core @@ -114,6 +110,10 @@ requests==2.25.1 # kubernetes # requests-oauthlib # requests-toolbelt +requests-oauthlib==1.3.0 + # via kubernetes +requests-toolbelt==0.9.1 + # via -r requirements.in rsa==4.7.2 # via google-auth six==1.15.0 diff --git a/sdk/python/setup.py b/sdk/python/setup.py index 0af8c5eec53..2426b153ada 100644 --- a/sdk/python/setup.py +++ b/sdk/python/setup.py @@ -46,7 +46,7 @@ 'Deprecated>=1.2.7,<2', 'strip-hints>=0.1.8,<1', 'docstring-parser>=0.7.3,<1', - 'kfp-pipeline-spec>=0.1.8,<0.2.0', + 'kfp-pipeline-spec>=0.1.9,<0.2.0', 'fire>=0.3.1,<1', 'protobuf>=3.13.0,<4', # Standard library backports diff --git a/sdk/python/tests/compiler/compiler_tests.py b/sdk/python/tests/compiler/compiler_tests.py index 2854ae7ed59..e4fa0b696d0 100644 --- a/sdk/python/tests/compiler/compiler_tests.py +++ b/sdk/python/tests/compiler/compiler_tests.py @@ -487,33 +487,33 @@ def my_pipeline(memory: str, cpu: str): template = name_to_template[main_dag_tasks[0]['template']] self.assertEqual(template['podSpecPatch'], '{"containers": [{"name": "main", "resources": {"requests": {"cpu": "{{inputs.parameters.memory}}"}}}]}') - + def test_py_runtime_gpu_request(self): """Test GPU request.""" def my_pipeline(nbr_gpus: int, gpu_vendor: str): some_op().set_gpu_limit(nbr_gpus, gpu_vendor) - + workflow = kfp.compiler.Compiler()._create_workflow(my_pipeline) name_to_template = {template['name']: template for template in workflow['spec']['templates']} main_dag_tasks = name_to_template[workflow['spec']['entrypoint']]['dag']['tasks'] template = name_to_template[main_dag_tasks[0]['template']] self.assertEqual(template['podSpecPatch'], '{"containers": [{"name": "main", "resources": {"limits": {"{{inputs.parameters.gpu_vendor}}": "{{inputs.parameters.nbr_gpus}}"}}}]}') - + def test_py_runtime_node_selection(self): """Test node selection request.""" def my_pipeline(constrain_type: str, constrain_value: str): some_op().add_node_selector_constraint(constrain_type, constrain_value) - + workflow = kfp.compiler.Compiler()._create_workflow(my_pipeline) name_to_template = {template['name']: template for template in workflow['spec']['templates']} main_dag_tasks = name_to_template[workflow['spec']['entrypoint']]['dag']['tasks'] template = name_to_template[main_dag_tasks[0]['template']] self.assertEqual(template['podSpecPatch'], '{"nodeSelector": [{"{{inputs.parameters.constrain_type}}": "{{inputs.parameters.constrain_value}}"}]}') - + def test_py_retry_policy_invalid(self): def my_pipeline(): diff --git a/sdk/python/tests/compiler/testdata/uri_artifacts.yaml b/sdk/python/tests/compiler/testdata/uri_artifacts.yaml index f3a7ea1cf9c..229978c8824 100644 --- a/sdk/python/tests/compiler/testdata/uri_artifacts.yaml +++ b/sdk/python/tests/compiler/testdata/uri_artifacts.yaml @@ -7,8 +7,8 @@ metadata: pipelines.kubeflow.org/pipeline_compilation_time: '2021-08-07T00:27:52.329848' pipelines.kubeflow.org/pipeline_spec: '{"inputs": [{"default": "Hello world!", "name": "text", "optional": true, "type": "String"}, {"default": "gs://my-bucket/my-output-dir", - "name": "pipeline-root"}, {"default": "pipeline/uri-artifact-pipeline", - "name": "pipeline-name"}], "name": "uri-artifact-pipeline"}' + "name": "pipeline-root"}, {"default": "pipeline/uri-artifact-pipeline", "name": + "pipeline-name"}], "name": "uri-artifact-pipeline"}' pipelines.kubeflow.org/v2_pipeline: "true" labels: pipelines.kubeflow.org/v2_pipeline: "true" @@ -154,8 +154,8 @@ spec: - {name: KFP_V2_IMAGE, value: 'google/cloud-sdk:slim'} - {name: KFP_V2_RUNTIME_INFO, value: '{"inputParameters": {}, "inputArtifacts": {"input_gcs_path": {"metadataPath": "/tmp/inputs/input_gcs_path/data", "schemaTitle": - "system.Artifact", "instanceSchema": ""}}, "outputParameters": {}, "outputArtifacts": - {}}'} + "system.Artifact", "instanceSchema": "", "schemaVersion": "0.0.1"}}, "outputParameters": + {}, "outputArtifacts": {}}'} envFrom: - configMapRef: {name: metadata-grpc-configmap, optional: true} image: google/cloud-sdk:slim @@ -221,8 +221,8 @@ spec: - {name: KFP_V2_IMAGE, value: 'google/cloud-sdk:slim'} - {name: KFP_V2_RUNTIME_INFO, value: '{"inputParameters": {}, "inputArtifacts": {"input_gcs_path": {"metadataPath": "/tmp/inputs/input_gcs_path/data", "schemaTitle": - "system.Artifact", "instanceSchema": ""}}, "outputParameters": {}, "outputArtifacts": - {}}'} + "system.Artifact", "instanceSchema": "", "schemaVersion": "0.0.1"}}, "outputParameters": + {}, "outputArtifacts": {}}'} envFrom: - configMapRef: {name: metadata-grpc-configmap, optional: true} image: google/cloud-sdk:slim @@ -288,8 +288,8 @@ spec: - {name: KFP_V2_IMAGE, value: 'google/cloud-sdk:slim'} - {name: KFP_V2_RUNTIME_INFO, value: '{"inputParameters": {}, "inputArtifacts": {"input_gcs_path": {"metadataPath": "/tmp/inputs/input_gcs_path/data", "schemaTitle": - "system.Artifact", "instanceSchema": ""}}, "outputParameters": {}, "outputArtifacts": - {}}'} + "system.Artifact", "instanceSchema": "", "schemaVersion": "0.0.1"}}, "outputParameters": + {}, "outputArtifacts": {}}'} envFrom: - configMapRef: {name: metadata-grpc-configmap, optional: true} image: google/cloud-sdk:slim @@ -408,7 +408,7 @@ spec: - {name: KFP_V2_RUNTIME_INFO, value: '{"inputParameters": {"text": {"type": "STRING"}}, "inputArtifacts": {}, "outputParameters": {}, "outputArtifacts": {"output_gcs_path": {"schemaTitle": "system.Artifact", "instanceSchema": - "", "metadataPath": "/tmp/outputs/output_gcs_path/data"}}}'} + "", "schemaVersion": "0.0.1", "metadataPath": "/tmp/outputs/output_gcs_path/data"}}}'} envFrom: - configMapRef: {name: metadata-grpc-configmap, optional: true} image: google/cloud-sdk:slim