forked from Azure/azure-sdk-for-python
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ML][Pipelines] Fix validation bug for init/finalize (Azure#27466)
* fix: validate init/finalize when _data is str * test: add test for bug fix logic * test: move spark test back to dsl_pipeline class
- Loading branch information
1 parent
e426989
commit c8ebd81
Showing
6 changed files
with
175 additions
and
135 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
sdk/ml/azure-ai-ml/tests/test_configs/pipeline_jobs/pipeline_job_init_finalize_invalid.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
$schema: https://azuremlschemas.azureedge.net/latest/pipelineJob.schema.json | ||
type: pipeline | ||
display_name: hello_pipeline_abc | ||
|
||
inputs: | ||
hello_string_top_level_input: "hello world" | ||
|
||
settings: | ||
continue_on_step_failure: True | ||
default_compute: azureml:cpu-cluster | ||
default_datastore: azureml:workspacefilestore | ||
on_init: a | ||
on_finalize: c | ||
|
||
jobs: | ||
a: | ||
command: echo hello ${{inputs.hello_string}} | ||
environment: azureml:AzureML-sklearn-0.24-ubuntu18.04-py37-cpu@latest | ||
inputs: | ||
hello_string: ${{parent.inputs.hello_string_top_level_input}} | ||
b: | ||
command: echo "world" >> ${{outputs.world_output}}/world.txt | ||
environment: azureml:AzureML-sklearn-0.24-ubuntu18.04-py37-cpu@latest | ||
outputs: | ||
world_output: | ||
c: | ||
command: echo ${{inputs.world_input}}/world.txt | ||
environment: azureml:AzureML-sklearn-0.24-ubuntu18.04-py37-cpu@latest | ||
inputs: | ||
world_input: ${{parent.jobs.b.outputs.world_output}} |