Skip to content

Commit 73d674c

Browse files
committed
acc: use the minimal configs of the lower layer; refresh the schedule reference output
1 parent c440056 commit 73d674c

4 files changed

Lines changed: 8 additions & 28 deletions

File tree

‎acceptance/bundle/override/cluster_id_clears_new_cluster_reference/databricks.yml‎

Lines changed: 6 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -6,44 +6,29 @@ variables:
66
cluster:
77
type: complex
88
default:
9-
spark_version: 15.4.x-scala2.12
10-
node_type_id: i3.xlarge
119
num_workers: 1
1210

1311
resources:
1412
clusters:
1513
source:
16-
cluster_name: source
17-
spark_version: 15.4.x-scala2.12
18-
node_type_id: i3.xlarge
1914
num_workers: 2
2015
jobs:
2116
job:
2217
name: job
2318
tasks:
24-
- task_key: task
25-
notebook_task:
26-
notebook_path: /Workspace/notebook
27-
# Replaced by bundle.cluster_id: the reference below new_cluster must go too.
19+
# bundle.cluster_id replaces new_cluster. The reference below it must go too.
20+
- task_key: scalar_ref
2821
new_cluster:
29-
spark_version: 15.4.x-scala2.12
30-
node_type_id: i3.xlarge
3122
num_workers: ${resources.clusters.source.num_workers}
32-
- task_key: task_var
33-
notebook_task:
34-
notebook_path: /Workspace/notebook
35-
# A reference at new_cluster must not bring it back either.
23+
# A reference to the whole new_cluster must not bring it back.
24+
- task_key: variable_ref
3625
new_cluster: ${var.cluster}
37-
- task_key: task_resource_ref
38-
notebook_task:
39-
notebook_path: /Workspace/notebook
40-
# A reference to the new_cluster of another job is resolved after the override.
26+
# A reference to the new_cluster of another job is resolved after the override.
27+
- task_key: resource_ref
4128
new_cluster: ${resources.jobs.other.job_clusters[0].new_cluster}
4229
other:
4330
name: other
4431
job_clusters:
4532
- job_cluster_key: shared
4633
new_cluster:
47-
spark_version: 15.4.x-scala2.12
48-
node_type_id: i3.xlarge
4934
num_workers: 3

‎acceptance/bundle/resource_deps/preset_tags_not_applied_to_whole_map_reference/databricks.yml‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,5 @@ resources:
1313
properties: {owner: fixed}
1414
jobs:
1515
j:
16-
name: j
1716
# tags is a reference to a whole map, and the preset tag above is not added to it.
1817
tags: ${resources.schemas.s.properties}

‎acceptance/bundle/validate/references/job_schedule_whole_reference/output.txt‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
>>> [CLI] bundle validate
33
Warning: required field "quartz_cron_expression" is not set
44
at resources.jobs.viaref.schedule
5-
in databricks.yml:13:17
5+
in databricks.yml:9:17
66

77
Warning: required field "timezone_id" is not set
88
at resources.jobs.viaref.schedule
9-
in databricks.yml:13:17
9+
in databricks.yml:9:17
1010

1111
Name: test-bundle
1212
Target: default

‎acceptance/bundle/validate/required_struct_reference/databricks.yml‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,8 @@ bundle:
44
resources:
55
clusters:
66
source:
7-
cluster_name: source
8-
spark_version: 15.4.x-scala2.12
97
is_single_node: true
108
target:
11-
cluster_name: target
12-
spark_version: 15.4.x-scala2.12
139
# clients is a required field of workload_type. Both of its fields are references.
1410
workload_type:
1511
clients:

0 commit comments

Comments
 (0)