Skip to content

Commit

Permalink
Update pipeline version to 6 and pin versions (#2321)
Browse files Browse the repository at this point in the history
Fixes #2262

Sister PR to elyra-ai/pipeline-editor#172

Update the pipeline version and migration code to handle the changes
in Elyra 3.3

Pin package versions to prevent future backwards compatibility errors

Co-authored-by: Alan Chin <[email protected]>
  • Loading branch information
ajbozarth and akchinSTC authored Nov 30, 2021
1 parent af6e7a8 commit cd0aea5
Show file tree
Hide file tree
Showing 40 changed files with 167 additions and 127 deletions.
2 changes: 1 addition & 1 deletion elyra/pipeline/pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

# TODO: Make pipeline version available more widely
# as today is only available on the pipeline editor
PIPELINE_CURRENT_VERSION = 5
PIPELINE_CURRENT_VERSION = 6
PIPELINE_CURRENT_SCHEMA = 3.0


Expand Down
5 changes: 2 additions & 3 deletions elyra/tests/cli/resources/kfp_3_node_custom.pipeline
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,7 @@
"ui_data": {
"comments": []
},
"version": 5,
"runtime": "kfp",
"version": 6,
"runtime_type": "KUBEFLOW_PIPELINES",
"properties": {
"name": "kfp_custom",
Expand All @@ -187,4 +186,4 @@
}
],
"schemas": []
}
}
2 changes: 1 addition & 1 deletion elyra/tests/pipeline/airflow/test_processor_airflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,7 @@ def test_process_dictionary_value_function(processor):


@pytest.mark.parametrize('parsed_pipeline',
['resources/validation_pipelines/aa_operator_same_name.pipeline'],
['resources/validation_pipelines/aa_operator_same_name.json'],
indirect=True)
@pytest.mark.parametrize('component_cache_instance', [AIRFLOW_COMPONENT_CACHE_INSTANCE], indirect=True)
def test_same_name_operator_in_pipeline(monkeypatch, processor, parsed_pipeline, sample_metadata):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,15 +65,15 @@
},
"comments": []
},
"version": 5,
"runtime": "airflow",
"version": 6,
"properties": {
"name": "aa_invalid_node_op",
"runtime": "Apache Airflow"
}
},
"runtime_type": "APACHE_AIRFLOW"
},
"runtime_ref": ""
}
],
"schemas": []
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -324,16 +324,13 @@
"ui_data": {
"comments": []
},
"version": 5,
"version": 6,
"runtime": "airflow",
"runtime_type": "APACHE_AIRFLOW",
"runtime_config": "kfp-yukked1",
"properties": {
"name": "untitled4"
}
"source": "aa_operator_same_name.json"
},
"runtime_ref": ""
}
],
"schemas": []
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
"ui_data": {
"comments": []
},
"version": 5,
"version": 6,
"properties": {
"name": "generic_basic_filepath_check",
"runtime": "Generic"
Expand All @@ -76,4 +76,4 @@
}
],
"schemas": []
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@
"runtime": null,
"comments": []
},
"version": 5,
"version": 6,
"properties": {
"name": "generic_basic_pipeline_only_notebook",
"runtime": "Generic"
Expand All @@ -369,4 +369,4 @@
}
],
"schemas": []
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@
"runtime": null,
"comments": []
},
"version": 5,
"version": 6,
"properties": {
"name": "generic_basic_pipeline_with_scripts",
"runtime": "Generic"
Expand All @@ -258,4 +258,4 @@
}
],
"schemas": []
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@
"runtime": null,
"comments": []
},
"version": 5,
"version": 6,
"properties": {
"name": "generic_double_cycle",
"runtime": "Generic"
Expand All @@ -322,4 +322,4 @@
}
],
"schemas": []
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@
"runtime": null,
"comments": []
},
"version": 5,
"version": 6,
"properties": {
"name": "generic_invalid_node_property_dependency_file_path",
"runtime": "Generic"
Expand All @@ -371,4 +371,4 @@
}
],
"schemas": []
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@
"runtime": null,
"comments": []
},
"version": 5,
"version": 6,
"properties": {
"name": "generic_invalid_node_property_hardware_resources",
"runtime": "Generic"
Expand All @@ -370,4 +370,4 @@
}
],
"schemas": []
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@
"runtime": null,
"comments": []
},
"version": 5,
"version": 6,
"properties": {
"name": "generic_invalid_node_property_image_name",
"runtime": "Generic"
Expand All @@ -389,4 +389,4 @@
}
],
"schemas": []
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -368,8 +368,7 @@
"runtime": null,
"comments": []
},
"version": 5,
"runtime_type": "GENERIC",
"version": 6,
"properties": {
"name": "generic_invalid_node_property_structure"
}
Expand All @@ -378,4 +377,4 @@
}
],
"schemas": []
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@
"runtime": null,
"comments": []
},
"version": 5,
"version": 6,
"properties": {
"name": "generic_single_cycle",
"runtime": "Generic"
Expand All @@ -317,4 +317,4 @@
}
],
"schemas": []
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@
"runtime": null,
"comments": []
},
"version": 5,
"version": 6,
"properties": {
"name": "generic_singleton",
"runtime": "Generic"
Expand All @@ -187,4 +187,4 @@
}
],
"schemas": []
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,7 @@
"ui_data": {
"comments": []
},
"version": 5,
"runtime": "kfp",
"version": 6,
"runtime_type": "KUBEFLOW_PIPELINES",
"properties": {
"name": "kf_inputpath_parameter"
Expand All @@ -192,4 +191,4 @@
}
],
"schemas": []
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,7 @@
"ui_data": {
"comments": []
},
"version": 5,
"runtime": "kfp",
"version": 6,
"runtime_type": "KUBEFLOW_PIPELINES",
"properties": {
"name": "kf_invalid_inputpath_missing_connection"
Expand All @@ -183,4 +182,4 @@
}
],
"schemas": []
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,7 @@
"ui_data": {
"comments": []
},
"version": 5,
"runtime": "kfp",
"version": 6,
"runtime_type": "KUBEFLOW_PIPELINES",
"properties": {
"name": "kf_invalid_inputpath_parameter"
Expand All @@ -191,4 +190,4 @@
}
],
"schemas": []
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -120,15 +120,15 @@
},
"comments": []
},
"version": 5,
"runtime": "kfp",
"version": 6,
"properties": {
"name": "kf_invalid_node_op",
"runtime": "Kubeflow Pipelines"
}
},
"runtime_type": "KUBEFLOW_PIPELINES"
},
"runtime_ref": ""
}
],
"schemas": []
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"parameters": "{}",
"packages_to_install": "",
"input_data": ""
},
},
"label": "Run notebook using papermill",
"component_source": "/Users/akchin/opt/anaconda3/envs/test-package/lib/python3.8/site-packages/elyra/pipeline/resources/kfp/run_notebook_using_papermill/component.yaml",
"ui_data": {
Expand Down Expand Up @@ -76,7 +76,7 @@
"component_parameters": {
"text": "../B.txt",
"pattern": ".*"
},
},
"label": "Filter text",
"component_source": "/Users/akchin/opt/anaconda3/envs/test-package/lib/python3.8/site-packages/elyra/pipeline/resources/kfp/filter_text_using_shell_and_grep/component.yaml",
"ui_data": {
Expand Down Expand Up @@ -174,12 +174,12 @@
},
"comments": []
},
"version": 5,
"runtime": "kfp",
"version": 6,
"properties": {
"name": "kf_invalid_node_op_with_supernode",
"runtime": "Kubeflow Pipelines"
}
},
"runtime_type": "KUBEFLOW_PIPELINES"
},
"runtime_ref": ""
},
Expand All @@ -192,9 +192,9 @@
"op": "invalid_node_op",
"app_data": {
"component_parameters": {
"text": "B.txt",
"pattern": ".*"
},
"text": "B.txt",
"pattern": ".*"
},
"label": "Filter text",
"component_source": "/Users/akchin/opt/anaconda3/envs/test-package/lib/python3.8/site-packages/elyra/pipeline/resources/kfp/filter_text_using_shell_and_grep/component.yaml",
"ui_data": {
Expand Down Expand Up @@ -269,4 +269,4 @@
}
],
"schemas": []
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -144,15 +144,15 @@
},
"comments": []
},
"version": 5,
"runtime": "kfp",
"version": 6,
"properties": {
"name": "kf_invalid_node_property_in_component",
"runtime": "Kubeflow Pipelines"
}
},
"runtime_type": "KUBEFLOW_PIPELINES"
},
"runtime_ref": ""
}
],
"schemas": []
}
}
Loading

0 comments on commit cd0aea5

Please sign in to comment.