Skip to content

Commit 676a867

Browse files
committed
update
1 parent b96f7be commit 676a867

File tree

2 files changed

+96
-0
lines changed

2 files changed

+96
-0
lines changed

acceptance/bundle/migrate/default-python/output.txt

Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,53 @@ Plan: 0 to add, 1 to change, 0 to delete, 1 unchanged
6363
>>> DATABRICKS_BUNDLE_ENGINE=direct [CLI] bundle plan -o json
6464
Building python_artifact...
6565

66+
>>> jq .plan[] | .changes ../out.plan_after_migration.json
67+
{
68+
"local": {
69+
"tasks[task_key='notebook_task'].libraries[0].whl": {
70+
"action": "update"
71+
},
72+
"tasks[task_key='python_wheel_task'].libraries[0].whl": {
73+
"action": "update"
74+
}
75+
},
76+
"remote": {
77+
"email_notifications": {
78+
"action": "skip",
79+
"reason": "server_side_default"
80+
},
81+
"job_clusters[0].new_cluster.num_workers": {
82+
"action": "update"
83+
},
84+
"tasks[task_key='notebook_task'].libraries[0].whl": {
85+
"action": "update"
86+
},
87+
"tasks[task_key='notebook_task'].notebook_task.source": {
88+
"action": "skip",
89+
"reason": "server_side_default"
90+
},
91+
"tasks[task_key='python_wheel_task'].libraries[0].whl": {
92+
"action": "update"
93+
},
94+
"timeout_seconds": {
95+
"action": "skip",
96+
"reason": "server_side_default"
97+
},
98+
"webhook_notifications": {
99+
"action": "skip",
100+
"reason": "server_side_default"
101+
}
102+
}
103+
}
104+
{
105+
"remote": {
106+
"storage": {
107+
"action": "skip",
108+
"reason": "server_side_default"
109+
}
110+
}
111+
}
112+
66113
>>> DATABRICKS_BUNDLE_ENGINE= [CLI] bundle deploy
67114
Building python_artifact...
68115
Uploading .databricks/bundle/dev/patched_wheels/python_artifact_my_default_python/my_default_python-0.0.1+[UNIX_TIME_NANOS][2]-py3-none-any.whl...
@@ -84,3 +131,50 @@ Plan: 0 to add, 1 to change, 0 to delete, 1 unchanged
84131

85132
>>> DATABRICKS_BUNDLE_ENGINE=direct [CLI] bundle plan -o json
86133
Building python_artifact...
134+
135+
>>> jq .plan[] | .changes ../out.plan_after_migration.json
136+
{
137+
"local": {
138+
"tasks[task_key='notebook_task'].libraries[0].whl": {
139+
"action": "update"
140+
},
141+
"tasks[task_key='python_wheel_task'].libraries[0].whl": {
142+
"action": "update"
143+
}
144+
},
145+
"remote": {
146+
"email_notifications": {
147+
"action": "skip",
148+
"reason": "server_side_default"
149+
},
150+
"job_clusters[0].new_cluster.num_workers": {
151+
"action": "update"
152+
},
153+
"tasks[task_key='notebook_task'].libraries[0].whl": {
154+
"action": "update"
155+
},
156+
"tasks[task_key='notebook_task'].notebook_task.source": {
157+
"action": "skip",
158+
"reason": "server_side_default"
159+
},
160+
"tasks[task_key='python_wheel_task'].libraries[0].whl": {
161+
"action": "update"
162+
},
163+
"timeout_seconds": {
164+
"action": "skip",
165+
"reason": "server_side_default"
166+
},
167+
"webhook_notifications": {
168+
"action": "skip",
169+
"reason": "server_side_default"
170+
}
171+
}
172+
}
173+
{
174+
"remote": {
175+
"storage": {
176+
"action": "skip",
177+
"reason": "server_side_default"
178+
}
179+
}
180+
}

acceptance/bundle/migrate/default-python/script

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ trace jq '.. | .libraries? | select(.)' ../out.state_after_migration.json
99

1010
trace DATABRICKS_BUNDLE_ENGINE=direct $CLI bundle plan
1111
trace DATABRICKS_BUNDLE_ENGINE=direct $CLI bundle plan -o json > ../out.plan_after_migration.json
12+
trace jq '.plan[] | .changes' ../out.plan_after_migration.json # Badness: contains changes for whl and num_workers
1213
trace DATABRICKS_BUNDLE_ENGINE="" $CLI bundle deploy
1314

1415
trace print_state.py > ../out.state_after_deploy.json
@@ -18,3 +19,4 @@ rm ../out.state_after_deploy.json
1819
title "Extra plan: should have no drift"
1920
trace DATABRICKS_BUNDLE_ENGINE= $CLI bundle plan
2021
trace DATABRICKS_BUNDLE_ENGINE=direct $CLI bundle plan -o json > ../out.plan_after_deploy.json
22+
trace jq '.plan[] | .changes' ../out.plan_after_migration.json # Badness: contains changes for whl

0 commit comments

Comments
 (0)