Skip to content

Commit 91b74e0

Browse files
committed
acc: the pause-status presets work with a whole schedule or trigger reference; record the schedule warnings as Badness
1 parent 268de4a commit 91b74e0

6 files changed

Lines changed: 14 additions & 11 deletions

File tree

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,17 @@
11

2-
>>> musterr [CLI] bundle validate
3-
Error: expected a map to index "pause_status", found string
2+
>>> [CLI] bundle validate
3+
Warning: required field "quartz_cron_expression" is not set
4+
at resources.jobs.viaref.schedule
5+
in databricks.yml:16:17
6+
7+
Warning: required field "timezone_id" is not set
8+
at resources.jobs.viaref.schedule
9+
in databricks.yml:16:17
410

511
Name: test-bundle
612
Target: default
713
Workspace:
814
User: [USERNAME]
915
Path: /Workspace/Users/[USERNAME]/.bundle/test-bundle/default
1016

11-
Found 1 error
17+
Found 2 warnings
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# trigger_pause_status needs to set pause_status inside the schedule, but the schedule of viaref is a reference to the whole
22
# schedule of another job and is still unresolved at that point.
3-
trace musterr $CLI bundle validate
3+
trace $CLI bundle validate
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Badness = "trigger_pause_status fails with a confusing error when the schedule is a reference to the whole schedule of another job."
1+
Badness = "Required-field warnings are reported for a schedule that is a reference to a complete schedule."
Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11

2-
>>> musterr [CLI] bundle validate
3-
Error: expected a map to index "pause_status", found string
4-
2+
>>> [CLI] bundle validate
53
Name: test-bundle
64
Target: default
75
Workspace:
86
User: [USERNAME]
97
Path: /Workspace/Users/[USERNAME]/.bundle/test-bundle/default
108

11-
Found 1 error
9+
Validation OK!
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# Same as with a schedule: pause_status cannot be set inside a trigger that is a reference to the whole trigger of another job.
2-
trace musterr $CLI bundle validate
2+
trace $CLI bundle validate

‎acceptance/bundle/presets/trigger_pause_status_whole_trigger_reference/test.toml‎

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)