diff --git a/acceptance/bundle/config-remote-sync/merge_key_inherited/output.txt b/acceptance/bundle/config-remote-sync/merge_key_inherited/output.txt index f149da1ebe7..42578ad7bcd 100644 --- a/acceptance/bundle/config-remote-sync/merge_key_inherited/output.txt +++ b/acceptance/bundle/config-remote-sync/merge_key_inherited/output.txt @@ -9,22 +9,29 @@ Resources: 4 created, 0 changed, 0 deleted, 0 unchanged === Edit fields inherited through YAML merge keys === Detect and save changes -Detected changes in 3 resource(s): +Detected changes in 4 resource(s): Resource: resources.jobs.my_job job_clusters[job_cluster_key='derived'].new_cluster.autoscale: add job_clusters[job_cluster_key='derived'].new_cluster.num_workers: skip (the file does not write it where it is defined) + tasks[task_key='a_task'].timeout_seconds: skip (the mapping it would be added to is shared or inherited through a YAML anchor) tasks[task_key='b_task'].depends_on[task_key='a_task']: skip (the file does not write it where it is defined) tasks[task_key='b_task'].depends_on[task_key='prep']: skip (the file does not write it where it is defined) tasks[task_key='b_task'].max_retries: skip (the file does not write it where it is defined) tasks[task_key='b_task'].min_retry_interval_millis: add + tasks[task_key='b_task'].notebook_task.base_parameters['added']: add tasks[task_key='b_task'].notebook_task.base_parameters['input_file_name']: add tasks[task_key='c_task'].depends_on[task_key='a_task']: skip (the file does not write it where it is defined) tasks[task_key='c_task'].depends_on[task_key='setup']: skip (the file does not write it where it is defined) + tasks[task_key='c_task'].notebook_task.base_parameters['added']: skip (the mapping it would be added to is shared or inherited through a YAML anchor) tasks[task_key='prep']: skip (the file does not write it where it is defined) tasks[task_key='setup']: remove timeout_seconds: add +Resource: resources.jobs.other_job + max_concurrent_runs: skip (the mapping it would be added to is shared or inherited through a YAML anchor) + tasks[task_key='extra']: skip (the list it would be added to is shared through a YAML anchor) + Resource: resources.jobs.rename_job tasks[task_key='main']: skip (the file does not write it where it is defined) tasks[task_key='main2']: skip (the file does not write it where it is defined) @@ -62,9 +69,10 @@ Resource: resources.pipelines.my_pipeline - notebook_path: /Users/{{workspace_user_name}}/setup - &base_task task_key: a_task -@@ -84,4 +84,6 @@ +@@ -84,4 +84,7 @@ <<: *base_params extra: b ++ added: b + input_file_name: ${var.input_b} + min_retry_interval_millis: 5000 - <<: *base_task @@ -75,6 +83,13 @@ Resource: resources.pipelines.my_pipeline === Effective configuration after the sync { "timeout_seconds": 1200, + "max_concurrent_runs": 4, + "task_keys": [ + "a_task", + "b_task", + "c_task", + "prep" + ], "b_task": { "max_retries": 2, "min_retry_interval_millis": 5000, @@ -87,6 +102,15 @@ Resource: resources.pipelines.my_pipeline } ], "input_file_name": "other" + }, + "c_task": { + "timeout_seconds": null, + "notebook_task": { + "base_parameters": { + "input_file_name": "original" + }, + "notebook_path": "/Users/{{workspace_user_name}}/notebook" + } } } diff --git a/acceptance/bundle/config-remote-sync/merge_key_inherited/script b/acceptance/bundle/config-remote-sync/merge_key_inherited/script index 6e2a0514521..b95770cbfe4 100644 --- a/acceptance/bundle/config-remote-sync/merge_key_inherited/script +++ b/acceptance/bundle/config-remote-sync/merge_key_inherited/script @@ -10,6 +10,7 @@ $CLI bundle deploy job_id="$(read_id.py my_job)" pipeline_id="$(read_id.py my_pipeline)" rename_job_id="$(read_id.py rename_job)" +other_job_id="$(read_id.py other_job)" title "Edit fields inherited through YAML merge keys" edit_resource.py jobs $job_id <