Skip to content

Commit dc23210

Browse files
merge
2 parents 2665367 + ddbf610 commit dc23210

File tree

81 files changed

+830
-558
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

81 files changed

+830
-558
lines changed

.wsignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ acceptance/bundle/artifacts/shell/err-sh/output.txt
2525
acceptance/bundle/templates-machinery/helpers-error/output.txt
2626

2727
# "bundle deploy" with apps has trailing whitespace:
28-
acceptance/bundle/apps/config_section/output.txt
2928
integration/bundle/testdata/apps/bundle_deploy.txt
3029

3130
# Extra whitespace in test output:

NEXT_CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
### Dependency updates
1010

1111
### Bundles
12+
* Remove resources.apps.config section ([#3680](https://github.com/databricks/cli/pull/3680))
13+
* Prompt for serverless compute in `dbt-sql` template (defaults to `yes`) ([#3668](https://github.com/databricks/cli/pull/3668))
1214

1315
### API Changes
1416
* Added `databricks account account-groups-v2` command group.

acceptance/bundle/apps/config_section/app/app.py

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

acceptance/bundle/apps/config_section/databricks.yml

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

acceptance/bundle/apps/config_section/out.app.yml.txt

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

acceptance/bundle/apps/config_section/output.txt

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

acceptance/bundle/apps/config_section/script

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

acceptance/bundle/artifacts/artifact_path_with_volume/volume_doesnot_exist/output.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"browse_only": false,
77
"catalog_name": "main",
88
"catalog_type": "MANAGED_CATALOG",
9-
"created_at": [UNIX_TIME_MILLIS],
9+
"created_at": [UNIX_TIME_MILLIS][0],
1010
"created_by": "[USERNAME]",
1111
"effective_predictive_optimization_flag": {
1212
"inherited_from_type": "METASTORE",
@@ -18,7 +18,7 @@
1818
"name": "schema-[UNIQUE_NAME]",
1919
"owner": "[USERNAME]",
2020
"schema_id": "[UUID]",
21-
"updated_at": [UNIX_TIME_MILLIS],
21+
"updated_at": [UNIX_TIME_MILLIS][0],
2222
"updated_by": "[USERNAME]"
2323
}
2424

acceptance/bundle/artifacts/artifact_path_with_volume/volume_not_deployed/output.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"browse_only": false,
77
"catalog_name": "main",
88
"catalog_type": "MANAGED_CATALOG",
9-
"created_at": [UNIX_TIME_MILLIS],
9+
"created_at": [UNIX_TIME_MILLIS][0],
1010
"created_by": "[USERNAME]",
1111
"effective_predictive_optimization_flag": {
1212
"inherited_from_type": "METASTORE",
@@ -18,7 +18,7 @@
1818
"name": "schema-[UNIQUE_NAME]",
1919
"owner": "[USERNAME]",
2020
"schema_id": "[UUID]",
21-
"updated_at": [UNIX_TIME_MILLIS],
21+
"updated_at": [UNIX_TIME_MILLIS][0],
2222
"updated_by": "[USERNAME]"
2323
}
2424

acceptance/bundle/artifacts/whl_dynamic/output.txt

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -26,29 +26,29 @@
2626

2727
>>> [CLI] bundle deploy
2828
Building my_test_code...
29-
Uploading .databricks/bundle/default/patched_wheels/my_prebuilt_whl_other_test_code/other_test_code-0.0.1+[UNIX_TIME_NANOS]-py3-none-any.whl...
30-
Uploading .databricks/bundle/default/patched_wheels/my_test_code_my_test_code/my_test_code-0.0.1+[UNIX_TIME_NANOS]-py3-none-any.whl...
29+
Uploading .databricks/bundle/default/patched_wheels/my_prebuilt_whl_other_test_code/other_test_code-0.0.1+[UNIX_TIME_NANOS][0]-py3-none-any.whl...
30+
Uploading .databricks/bundle/default/patched_wheels/my_test_code_my_test_code/my_test_code-0.0.1+[UNIX_TIME_NANOS][1]-py3-none-any.whl...
3131
Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files...
3232
Deploying resources...
3333
Updating deployment state...
3434
Deployment complete!
3535

3636
=== There are 2 original wheels and 2 patched ones
3737
>>> find.py --expect 4 whl
38-
.databricks/bundle/default/patched_wheels/my_prebuilt_whl_other_test_code/other_test_code-0.0.1+[UNIX_TIME_NANOS]-py3-none-any.whl
39-
.databricks/bundle/default/patched_wheels/my_test_code_my_test_code/my_test_code-0.0.1+[UNIX_TIME_NANOS]-py3-none-any.whl
38+
.databricks/bundle/default/patched_wheels/my_prebuilt_whl_other_test_code/other_test_code-0.0.1+[UNIX_TIME_NANOS][0]-py3-none-any.whl
39+
.databricks/bundle/default/patched_wheels/my_test_code_my_test_code/my_test_code-0.0.1+[UNIX_TIME_NANOS][1]-py3-none-any.whl
4040
my_test_code/dist/my_test_code-0.0.1-py3-none-any.whl
4141
prebuilt/other_test_code-0.0.1-py3-none-any.whl
4242

4343
=== Verify contents of the zip file
4444
>>> find.py --expect 1 .databricks/.*my_test_code.*whl
4545
src/__init__.py
4646
src/__main__.py
47-
my_test_code-0.0.1+[UNIX_TIME_NANOS].dist-info/METADATA
48-
my_test_code-0.0.1+[UNIX_TIME_NANOS].dist-info/WHEEL
49-
my_test_code-0.0.1+[UNIX_TIME_NANOS].dist-info/entry_points.txt
50-
my_test_code-0.0.1+[UNIX_TIME_NANOS].dist-info/top_level.txt
51-
my_test_code-0.0.1+[UNIX_TIME_NANOS].dist-info/RECORD
47+
my_test_code-0.0.1+[UNIX_TIME_NANOS][1].dist-info/METADATA
48+
my_test_code-0.0.1+[UNIX_TIME_NANOS][1].dist-info/WHEEL
49+
my_test_code-0.0.1+[UNIX_TIME_NANOS][1].dist-info/entry_points.txt
50+
my_test_code-0.0.1+[UNIX_TIME_NANOS][1].dist-info/top_level.txt
51+
my_test_code-0.0.1+[UNIX_TIME_NANOS][1].dist-info/RECORD
5252

5353
=== Expecting 2 patched wheels in libraries section in /jobs/create
5454
>>> jq -s .[] | select(.path=="/api/2.2/jobs/create") | .body.tasks out.requests.txt
@@ -69,7 +69,7 @@ my_test_code-0.0.1+[UNIX_TIME_NANOS].dist-info/RECORD
6969
"existing_cluster_id": "0717-132531-5opeqon1",
7070
"libraries": [
7171
{
72-
"whl": "/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/artifacts/.internal/my_test_code-0.0.1+[UNIX_TIME_NANOS]-py3-none-any.whl"
72+
"whl": "/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/artifacts/.internal/my_test_code-0.0.1+[UNIX_TIME_NANOS][1]-py3-none-any.whl"
7373
}
7474
],
7575
"python_wheel_task": {
@@ -81,10 +81,10 @@ my_test_code-0.0.1+[UNIX_TIME_NANOS].dist-info/RECORD
8181
},
8282
"libraries": [
8383
{
84-
"whl": "/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/artifacts/.internal/my_test_code-0.0.1+[UNIX_TIME_NANOS]-py3-none-any.whl"
84+
"whl": "/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/artifacts/.internal/my_test_code-0.0.1+[UNIX_TIME_NANOS][1]-py3-none-any.whl"
8585
},
8686
{
87-
"whl": "/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/artifacts/.internal/other_test_code-0.0.1+[UNIX_TIME_NANOS]-py3-none-any.whl"
87+
"whl": "/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/artifacts/.internal/other_test_code-0.0.1+[UNIX_TIME_NANOS][0]-py3-none-any.whl"
8888
}
8989
],
9090
"python_wheel_task": {
@@ -97,16 +97,16 @@ my_test_code-0.0.1+[UNIX_TIME_NANOS].dist-info/RECORD
9797

9898
=== Expecting 2 patched wheels to be uploaded
9999
>>> jq .path
100-
"/api/2.0/workspace-files/import-file/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/artifacts/.internal/my_test_code-0.0.1+[UNIX_TIME_NANOS]-py3-none-any.whl"
101-
"/api/2.0/workspace-files/import-file/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/artifacts/.internal/other_test_code-0.0.1+[UNIX_TIME_NANOS]-py3-none-any.whl"
100+
"/api/2.0/workspace-files/import-file/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/artifacts/.internal/my_test_code-0.0.1+[UNIX_TIME_NANOS][1]-py3-none-any.whl"
101+
"/api/2.0/workspace-files/import-file/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/artifacts/.internal/other_test_code-0.0.1+[UNIX_TIME_NANOS][0]-py3-none-any.whl"
102102
"/api/2.0/workspace-files/import-file/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files/my_test_code/dist/my_test_code-0.0.1-py3-none-any.whl"
103103
"/api/2.0/workspace-files/import-file/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files/prebuilt/other_test_code-0.0.1-py3-none-any.whl"
104104

105105
=== Updating the local wheel and deploying again
106106
>>> [CLI] bundle deploy
107107
Building my_test_code...
108-
Uploading .databricks/bundle/default/patched_wheels/my_prebuilt_whl_other_test_code/other_test_code-0.0.1+[UNIX_TIME_NANOS]-py3-none-any.whl...
109-
Uploading .databricks/bundle/default/patched_wheels/my_test_code_my_test_code/my_test_code-0.0.1+[UNIX_TIME_NANOS]-py3-none-any.whl...
108+
Uploading .databricks/bundle/default/patched_wheels/my_prebuilt_whl_other_test_code/other_test_code-0.0.1+[UNIX_TIME_NANOS][0]-py3-none-any.whl...
109+
Uploading .databricks/bundle/default/patched_wheels/my_test_code_my_test_code/my_test_code-0.0.1+[UNIX_TIME_NANOS][2]-py3-none-any.whl...
110110
Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files...
111111
Deploying resources...
112112
Updating deployment state...
@@ -117,11 +117,11 @@ Deployment complete!
117117
src/__init__.py
118118
src/__main__.py
119119
src/new_module.py
120-
my_test_code-0.0.1+[UNIX_TIME_NANOS].dist-info/METADATA
121-
my_test_code-0.0.1+[UNIX_TIME_NANOS].dist-info/WHEEL
122-
my_test_code-0.0.1+[UNIX_TIME_NANOS].dist-info/entry_points.txt
123-
my_test_code-0.0.1+[UNIX_TIME_NANOS].dist-info/top_level.txt
124-
my_test_code-0.0.1+[UNIX_TIME_NANOS].dist-info/RECORD
120+
my_test_code-0.0.1+[UNIX_TIME_NANOS][2].dist-info/METADATA
121+
my_test_code-0.0.1+[UNIX_TIME_NANOS][2].dist-info/WHEEL
122+
my_test_code-0.0.1+[UNIX_TIME_NANOS][2].dist-info/entry_points.txt
123+
my_test_code-0.0.1+[UNIX_TIME_NANOS][2].dist-info/top_level.txt
124+
my_test_code-0.0.1+[UNIX_TIME_NANOS][2].dist-info/RECORD
125125

126126
=== Expecting 2 patched wheels in libraries section in /jobs/reset
127127
>>> jq -s .[] | select(.path=="/api/2.2/jobs/reset") | .body.new_settings.tasks out.requests.txt
@@ -142,7 +142,7 @@ my_test_code-0.0.1+[UNIX_TIME_NANOS].dist-info/RECORD
142142
"existing_cluster_id": "0717-132531-5opeqon1",
143143
"libraries": [
144144
{
145-
"whl": "/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/artifacts/.internal/my_test_code-0.0.1+[UNIX_TIME_NANOS]-py3-none-any.whl"
145+
"whl": "/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/artifacts/.internal/my_test_code-0.0.1+[UNIX_TIME_NANOS][2]-py3-none-any.whl"
146146
}
147147
],
148148
"python_wheel_task": {
@@ -154,10 +154,10 @@ my_test_code-0.0.1+[UNIX_TIME_NANOS].dist-info/RECORD
154154
},
155155
"libraries": [
156156
{
157-
"whl": "/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/artifacts/.internal/my_test_code-0.0.1+[UNIX_TIME_NANOS]-py3-none-any.whl"
157+
"whl": "/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/artifacts/.internal/my_test_code-0.0.1+[UNIX_TIME_NANOS][2]-py3-none-any.whl"
158158
},
159159
{
160-
"whl": "/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/artifacts/.internal/other_test_code-0.0.1+[UNIX_TIME_NANOS]-py3-none-any.whl"
160+
"whl": "/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/artifacts/.internal/other_test_code-0.0.1+[UNIX_TIME_NANOS][0]-py3-none-any.whl"
161161
}
162162
],
163163
"python_wheel_task": {
@@ -170,6 +170,6 @@ my_test_code-0.0.1+[UNIX_TIME_NANOS].dist-info/RECORD
170170

171171
=== Expecting 2 pached wheels to be uploaded (Bad: it is currently uploaded twice)
172172
>>> jq .path
173-
"/api/2.0/workspace-files/import-file/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/artifacts/.internal/my_test_code-0.0.1+[UNIX_TIME_NANOS]-py3-none-any.whl"
174-
"/api/2.0/workspace-files/import-file/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/artifacts/.internal/other_test_code-0.0.1+[UNIX_TIME_NANOS]-py3-none-any.whl"
173+
"/api/2.0/workspace-files/import-file/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/artifacts/.internal/my_test_code-0.0.1+[UNIX_TIME_NANOS][2]-py3-none-any.whl"
174+
"/api/2.0/workspace-files/import-file/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/artifacts/.internal/other_test_code-0.0.1+[UNIX_TIME_NANOS][0]-py3-none-any.whl"
175175
"/api/2.0/workspace-files/import-file/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files/my_test_code/dist/my_test_code-0.0.1-py3-none-any.whl"

0 commit comments

Comments
 (0)