Skip to content

Commit 413913c

Browse files
committed
acc: say plainly that the preset tag is not applied, mark it as Badness, and show has_queue
1 parent 0cbf982 commit 413913c

8 files changed

Lines changed: 13 additions & 7 deletions

File tree

acceptance/bundle/resource_deps/whole_map_reference_hides_entries/databricks.yml renamed to acceptance/bundle/resource_deps/preset_tags_not_applied_to_whole_map_reference/databricks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@ resources:
1414
jobs:
1515
j:
1616
name: j
17-
# The whole tags map is a reference, so the preset tag above is not added to it.
17+
# tags is a reference to a whole map, and the preset tag above is not added to it.
1818
tags: ${resources.schemas.s.properties}

acceptance/bundle/resource_deps/whole_map_reference_hides_entries/out.test.toml renamed to acceptance/bundle/resource_deps/preset_tags_not_applied_to_whole_map_reference/out.test.toml

File renamed without changes.

acceptance/bundle/resource_deps/whole_map_reference_hides_entries/output.txt renamed to acceptance/bundle/resource_deps/preset_tags_not_applied_to_whole_map_reference/output.txt

File renamed without changes.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# The preset tag is not applied to a job whose tags is a reference to a whole map: the job gets the
2+
# tags of the referenced schema only, and depends on the schema.
3+
# The preset value references the job itself. If the preset tag were applied, this plan would fail
4+
# with a cycle error.
5+
trace $CLI bundle plan -o json | jq '.plan["resources.jobs.j"] | {tags: .new_state.value.tags, depends_on}'
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Badness = "presets.tags are silently not applied to a job whose tags is a reference to a whole map."

‎acceptance/bundle/resource_deps/whole_map_reference_hides_entries/script‎

Lines changed: 0 additions & 3 deletions
This file was deleted.

‎acceptance/bundle/validate/nulls/target_adds_null_keeps_it/output.txt‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,7 @@ Warning: required field "enabled" is not set
44
at resources.jobs.j.queue
55
in databricks.yml:18:18
66

7-
null
7+
{
8+
"has_queue": true,
9+
"queue": null
10+
}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
# A target can add an explicit null that is kept, like a null in the base file: the default queue is not applied.
2-
trace $CLI bundle validate -t dev -o json | jq '.resources.jobs.j.queue'
1+
# A target can add an explicit null that is kept, like a null in the base file: queue stays null and the default queue is not applied.
2+
trace $CLI bundle validate -t dev -o json | jq '.resources.jobs.j | {has_queue: has("queue"), queue}'

0 commit comments

Comments
 (0)