Repository navigation
acc: record config edge cases for variables, YAML merge keys and diagnostic locations #7029
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
a02b6c0
acc: record config edge cases for variables, YAML merge keys and diag…
denik 45996ee
acc: single pipeline warning in pipeline_development_reference (no sort)
denik 832e865
acc: normalize Windows path separators in two new tests
denik 6e6bb75
acc: mark known-bad recorded behaviour with Badness
denik a010dd4
acc: check that foo's run_job_task points at bar's job id
denik 32c476a
acc: explain dashboard_key_special_chars
denik 12d9d3e
acc: keep variable-overrides.json at the test root; move it in the sc…
denik cd981bc
acc: give the overrides test task a cluster so only path handling is …
denik File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,13 @@ | ||
| bundle: | ||
| name: test-bundle | ||
|
|
||
| resources: | ||
| jobs: | ||
| bar: | ||
| name: job bar | ||
| foo: | ||
| name: job foo | ||
| tasks: | ||
| - task_key: job_task | ||
| run_job_task: | ||
| job_id: ${resources.jobs.bar.id} |
This file contains hidden or 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,2 @@ | ||
| Cloud = false | ||
| EnvMatrix.DMS = ["", "true"] |
This file contains hidden or 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,20 @@ | ||
|
|
||
| >>> [CLI] bundle deploy | ||
| Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files... | ||
| Created jobs.bar | ||
| Created jobs.foo | ||
| Files: 1 uploaded, 0 deleted | ||
| Resources: 2 created, 0 changed, 0 deleted, 0 unchanged | ||
|
|
||
| === foo's task points at bar's job id | ||
| >>> [CLI] jobs get [FOO_ID] | ||
| { | ||
| "job_id": [BAR_ID] | ||
| } | ||
|
|
||
| === run resolves the referenced job id into the int job_id field | ||
| >>> [CLI] bundle run foo | ||
| Run URL: [DATABRICKS_URL]/jobs/[FOO_ID]/runs/[RUN_ID]?o=[WORKSPACE_ID] | ||
|
|
||
| [TIMESTAMP] "job foo" RUNNING | ||
| [TIMESTAMP] "job foo" TERMINATED SUCCESS |
This file contains hidden or 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,8 @@ | ||
| trace $CLI bundle deploy | ||
| replace_ids.py | ||
|
|
||
| title "foo's task points at bar's job id" | ||
| trace $CLI jobs get $(read_id.py foo) | jq '.settings.tasks[0].run_job_task' | ||
|
|
||
| title "run resolves the referenced job id into the int job_id field" | ||
| trace $CLI bundle run foo |
This file contains hidden or 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,3 @@ | ||
| [[Repls]] | ||
| Old = '/runs/\d+' | ||
| New = '/runs/[RUN_ID]' |
6 changes: 6 additions & 0 deletions
6
acceptance/bundle/validate/complex_variable_default_merge/a.yml
This file contains hidden or 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,6 @@ | ||
| variables: | ||
| libs: | ||
| type: complex | ||
| default: | ||
| - one | ||
| - two |
5 changes: 5 additions & 0 deletions
5
acceptance/bundle/validate/complex_variable_default_merge/b.yml
This file contains hidden or 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,5 @@ | ||
| variables: | ||
| libs: | ||
| type: complex | ||
| default: | ||
| - three |
6 changes: 6 additions & 0 deletions
6
acceptance/bundle/validate/complex_variable_default_merge/databricks.yml
This file contains hidden or 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,6 @@ | ||
| bundle: | ||
| name: test-bundle | ||
|
|
||
| include: | ||
| - a.yml | ||
| - b.yml |
2 changes: 2 additions & 0 deletions
2
acceptance/bundle/validate/complex_variable_default_merge/out.test.toml
This file contains hidden or 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,2 @@ | ||
| Cloud = false | ||
| EnvMatrix.DMS = ["", "true"] |
15 changes: 15 additions & 0 deletions
15
acceptance/bundle/validate/complex_variable_default_merge/output.txt
This file contains hidden or 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,15 @@ | ||
|
|
||
| >>> [CLI] bundle validate -o json | ||
| { | ||
| "default": [ | ||
| "one", | ||
| "two", | ||
| "three" | ||
| ], | ||
| "type": "complex", | ||
| "value": [ | ||
| "one", | ||
| "two", | ||
| "three" | ||
| ] | ||
| } |
1 change: 1 addition & 0 deletions
1
acceptance/bundle/validate/complex_variable_default_merge/script
This file contains hidden or 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 @@ | ||
| trace $CLI bundle validate -o json | jq .variables.libs |
9 changes: 9 additions & 0 deletions
9
acceptance/bundle/validate/compute_id_location/databricks.yml
This file contains hidden or 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,9 @@ | ||
| bundle: | ||
| name: test-bundle | ||
| compute_id: root-cluster | ||
|
|
||
| targets: | ||
| dev: | ||
| compute_id: dev-cluster | ||
| other: | ||
| default: true |
This file contains hidden or 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,2 @@ | ||
| Cloud = false | ||
| EnvMatrix.DMS = ["", "true"] |
This file contains hidden or 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,36 @@ | ||
|
|
||
| === default target without compute_id | ||
| >>> [CLI] bundle validate | ||
| Warning: compute_id is deprecated, please use cluster_id instead | ||
| at bundle.compute_id | ||
| in databricks.yml:3:15 | ||
|
|
||
| Warning: compute_id is deprecated, please use cluster_id instead | ||
| at compute_id | ||
| in databricks.yml:7:17 | ||
|
|
||
| Name: test-bundle | ||
| Target: other | ||
| Workspace: | ||
| User: [USERNAME] | ||
| Path: /Workspace/Users/[USERNAME]/.bundle/test-bundle/other | ||
|
|
||
| Found 2 warnings | ||
|
|
||
| === target with compute_id | ||
| >>> [CLI] bundle validate -t dev | ||
| Warning: compute_id is deprecated, please use cluster_id instead | ||
| at bundle.compute_id | ||
| in databricks.yml:3:15 | ||
|
|
||
| Warning: compute_id is deprecated, please use cluster_id instead | ||
| at compute_id | ||
| in databricks.yml:7:17 | ||
|
|
||
| Name: test-bundle | ||
| Target: dev | ||
| Workspace: | ||
| User: [USERNAME] | ||
| Path: /Workspace/Users/[USERNAME]/.bundle/test-bundle/dev | ||
|
|
||
| Found 2 warnings |
This file contains hidden or 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,5 @@ | ||
| title "default target without compute_id" | ||
| trace $CLI bundle validate | ||
|
|
||
| title "target with compute_id" | ||
| trace $CLI bundle validate -t dev |
This file contains hidden or 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 @@ | ||
| Badness = "Target-level compute_id is reported without the target in the path (at compute_id instead of at targets.dev.compute_id), and is reported even when that target is not selected." |
14 changes: 14 additions & 0 deletions
14
acceptance/bundle/validate/dashboard_key_special_chars/databricks.yml
This file contains hidden or 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,14 @@ | ||
| bundle: | ||
| name: test-bundle | ||
|
|
||
| targets: | ||
| bracket: | ||
| resources: | ||
| dashboards: | ||
| "reports[": | ||
| serialized_dashboard: "{}" | ||
| comma: | ||
| resources: | ||
| dashboards: | ||
| "a,b": | ||
| serialized_dashboard: "{}" |
2 changes: 2 additions & 0 deletions
2
acceptance/bundle/validate/dashboard_key_special_chars/out.test.toml
This file contains hidden or 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,2 @@ | ||
| Cloud = false | ||
| EnvMatrix.DMS = ["", "true"] |
38 changes: 38 additions & 0 deletions
38
acceptance/bundle/validate/dashboard_key_special_chars/output.txt
This file contains hidden or 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,38 @@ | ||
|
|
||
| >>> [CLI] bundle validate -t bracket | ||
| Error: dashboard display_name is required | ||
| at resources.dashboards['reports['] | ||
| in databricks.yml:9:11 | ||
|
|
||
| Error: dashboard warehouse_id is required | ||
| at resources.dashboards['reports['] | ||
| in databricks.yml:9:11 | ||
|
|
||
| Name: test-bundle | ||
| Target: bracket | ||
| Workspace: | ||
| User: [USERNAME] | ||
| Path: /Workspace/Users/[USERNAME]/.bundle/test-bundle/bracket | ||
|
|
||
| Found 2 errors | ||
|
|
||
| Exit code: 1 | ||
|
|
||
| >>> [CLI] bundle validate -t comma | ||
| Error: dashboard display_name is required | ||
| at resources.dashboards['a,b'] | ||
| in databricks.yml:14:11 | ||
|
|
||
| Error: dashboard warehouse_id is required | ||
| at resources.dashboards['a,b'] | ||
| in databricks.yml:14:11 | ||
|
|
||
| Name: test-bundle | ||
| Target: comma | ||
| Workspace: | ||
| User: [USERNAME] | ||
| Path: /Workspace/Users/[USERNAME]/.bundle/test-bundle/comma | ||
|
|
||
| Found 2 errors | ||
|
|
||
| Exit code: 1 |
9 changes: 9 additions & 0 deletions
9
acceptance/bundle/validate/dashboard_key_special_chars/script
This file contains hidden or 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,9 @@ | ||
| # Dashboards missing display_name / warehouse_id must be reported even when the | ||
| # resource key contains characters that are path syntax ("[", ","). The required-field | ||
| # check looks the dashboard up by path, so a key that does not survive being turned | ||
| # into a path string would silently drop these errors. | ||
| # | ||
| # Each key is in its own target: with both in one config the errors are reported in | ||
| # a nondeterministic order. | ||
| errcode trace $CLI bundle validate -t bracket | ||
| errcode trace $CLI bundle validate -t comma |
21 changes: 21 additions & 0 deletions
21
acceptance/bundle/validate/override_effective_location/databricks.yml
This file contains hidden or 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,21 @@ | ||
| bundle: | ||
| name: test-bundle | ||
| engine: direct | ||
|
|
||
| presets: | ||
| trigger_pause_status: PAUSED | ||
| name_prefix: "${workspace.current_user.short_name}_" | ||
|
|
||
| targets: | ||
| bad_engine: | ||
| bundle: | ||
| engine: invalid_value | ||
| dev_trigger: | ||
| mode: development | ||
| default: true | ||
| presets: | ||
| trigger_pause_status: UNPAUSED | ||
| dev_prefix: | ||
| mode: development | ||
| presets: | ||
| name_prefix: nouser_ |
2 changes: 2 additions & 0 deletions
2
acceptance/bundle/validate/override_effective_location/out.test.toml
This file contains hidden or 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,2 @@ | ||
| Cloud = false | ||
| EnvMatrix.DMS = ["", "true"] |
42 changes: 42 additions & 0 deletions
42
acceptance/bundle/validate/override_effective_location/output.txt
This file contains hidden or 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,42 @@ | ||
|
|
||
| === engine overridden in target | ||
| >>> [CLI] bundle validate -t bad_engine | ||
| Error: invalid value "invalid_value" for bundle.engine (expected "direct") | ||
| in databricks.yml:12:15 | ||
|
|
||
| Name: test-bundle | ||
| Target: bad_engine | ||
|
|
||
| Found 1 error | ||
|
|
||
| Exit code: 1 | ||
|
|
||
| === trigger_pause_status overridden in development target | ||
| >>> [CLI] bundle validate -t dev_trigger | ||
| Error: target with 'mode: development' cannot set trigger pause status to UNPAUSED by default | ||
| in databricks.yml:17:29 | ||
|
|
||
| Name: test-bundle | ||
| Target: dev_trigger | ||
| Workspace: | ||
| User: [USERNAME] | ||
| Path: /Workspace/Users/[USERNAME]/.bundle/test-bundle/dev_trigger | ||
|
|
||
| Found 1 error | ||
|
|
||
| Exit code: 1 | ||
|
|
||
| === name_prefix overridden in development target | ||
| >>> [CLI] bundle validate -t dev_prefix | ||
| Error: prefix should contain the current username or ${workspace.current_user.short_name} to ensure uniqueness when using 'mode: development' | ||
| in databricks.yml:21:20 | ||
|
|
||
| Name: test-bundle | ||
| Target: dev_prefix | ||
| Workspace: | ||
| User: [USERNAME] | ||
| Path: /Workspace/Users/[USERNAME]/.bundle/test-bundle/dev_prefix | ||
|
|
||
| Found 1 error | ||
|
|
||
| Exit code: 1 |
8 changes: 8 additions & 0 deletions
8
acceptance/bundle/validate/override_effective_location/script
This file contains hidden or 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,8 @@ | ||
| title "engine overridden in target" | ||
| errcode trace $CLI bundle validate -t bad_engine | ||
|
|
||
| title "trigger_pause_status overridden in development target" | ||
| errcode trace $CLI bundle validate -t dev_trigger | ||
|
|
||
| title "name_prefix overridden in development target" | ||
| errcode trace $CLI bundle validate -t dev_prefix |
10 changes: 10 additions & 0 deletions
10
acceptance/bundle/validate/pipeline_development_reference/databricks.yml
This file contains hidden or 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,10 @@ | ||
| bundle: | ||
| name: test-bundle | ||
|
|
||
| resources: | ||
| pipelines: | ||
| other: | ||
| name: other | ||
| main: | ||
| name: main | ||
| development: ${resources.pipelines.other.development} |
2 changes: 2 additions & 0 deletions
2
acceptance/bundle/validate/pipeline_development_reference/out.test.toml
This file contains hidden or 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,2 @@ | ||
| Cloud = false | ||
| EnvMatrix.DMS = ["", "true"] |
14 changes: 14 additions & 0 deletions
14
acceptance/bundle/validate/pipeline_development_reference/output.txt
This file contains hidden or 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,14 @@ | ||
|
|
||
| >>> [CLI] bundle validate | ||
| Warning: The "development" property of pipelines is deprecated. Use "mode: development" in your databricks.yml instead. See https://docs.databricks.com/dev-tools/bundles/deployment-modes. | ||
| at resources.pipelines.main.development | ||
| in databricks.yml:10:20 | ||
|
|
||
| Name: test-bundle | ||
| Target: default | ||
| Workspace: | ||
| User: [USERNAME] | ||
| Path: /Workspace/Users/[USERNAME]/.bundle/test-bundle/default | ||
|
|
||
| Found 1 warning | ||
| "${resources.pipelines.other.development}" |
3 changes: 3 additions & 0 deletions
3
acceptance/bundle/validate/pipeline_development_reference/script
This file contains hidden or 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,3 @@ | ||
| trace $CLI bundle validate | ||
|
|
||
| trace $CLI bundle validate -o json 2>/dev/null | jq .resources.pipelines.main.development |
13 changes: 13 additions & 0 deletions
13
acceptance/bundle/validate/target_variable_full_def_merge_key/databricks.yml
This file contains hidden or 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,13 @@ | ||
| bundle: | ||
| name: test-bundle | ||
|
|
||
| variables: | ||
| x: &x | ||
| default: old | ||
|
|
||
| targets: | ||
| dev: | ||
| variables: | ||
| x: | ||
| <<: *x | ||
| default: new |
2 changes: 2 additions & 0 deletions
2
acceptance/bundle/validate/target_variable_full_def_merge_key/out.test.toml
This file contains hidden or 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,2 @@ | ||
| Cloud = false | ||
| EnvMatrix.DMS = ["", "true"] |
6 changes: 6 additions & 0 deletions
6
acceptance/bundle/validate/target_variable_full_def_merge_key/output.txt
This file contains hidden or 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,6 @@ | ||
|
|
||
| >>> [CLI] bundle validate -t dev -o json | ||
| { | ||
| "default": "new", | ||
| "value": "new" | ||
| } |
1 change: 1 addition & 0 deletions
1
acceptance/bundle/validate/target_variable_full_def_merge_key/script
This file contains hidden or 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 @@ | ||
| trace $CLI bundle validate -t dev -o json | jq .variables.x |
16 changes: 16 additions & 0 deletions
16
acceptance/bundle/validate/target_variable_merge_key_precedence/databricks.yml
This file contains hidden or 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,16 @@ | ||
| bundle: | ||
| name: test-bundle | ||
|
|
||
| variables: | ||
| x: | ||
|
|
||
| definitions: | ||
| a: &a | ||
| x: from-a | ||
| b: &b | ||
| x: from-b | ||
|
|
||
| targets: | ||
| dev: | ||
| variables: | ||
| <<: [*a, *b] |
2 changes: 2 additions & 0 deletions
2
acceptance/bundle/validate/target_variable_merge_key_precedence/out.test.toml
This file contains hidden or 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,2 @@ | ||
| Cloud = false | ||
| EnvMatrix.DMS = ["", "true"] |
8 changes: 8 additions & 0 deletions
8
acceptance/bundle/validate/target_variable_merge_key_precedence/output.txt
This file contains hidden or 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,8 @@ | ||
|
|
||
| >>> [CLI] bundle validate -t dev -o json | ||
| { | ||
| "x": { | ||
| "default": "from-b", | ||
| "value": "from-b" | ||
| } | ||
| } |
1 change: 1 addition & 0 deletions
1
acceptance/bundle/validate/target_variable_merge_key_precedence/script
This file contains hidden or 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 @@ | ||
| trace $CLI bundle validate -t dev -o json | jq .variables |
1 change: 1 addition & 0 deletions
1
acceptance/bundle/validate/target_variable_merge_key_precedence/test.toml
This file contains hidden or 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 @@ | ||
| Badness = "With <<: [*a, *b] the later anchor wins; the YAML merge key spec gives precedence to the earlier one." | ||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://yaml-online-parser.appspot.com/?yaml=a%3A%20%26a%0A%20%20x%3A%20from-a%0Ab%3A%20%26b%0A%20%20x%3A%20from-b%0Amerged%3A%0A%20%20%3C%3C%3A%20%5B%2Aa%2C%20%2Ab%5D%0A&type=json
@pietern I wonder if we should change this.
merged.xgo.yaml.in/yaml/v3(used by the CLI)from-agopkg.in/yaml.v3from-agopkg.in/yaml.v2from-asigs.k8s.io/yaml(wraps yaml.v2)from-agithub.com/goccy/go-yamlfrom-byaml.safe_load)uvfrom-afrom-alibs/dyn/yamlloader)from-b