2626
2727>>> [CLI] bundle deploy
2828Building 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...
3131Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files...
3232Deploying resources...
3333Updating deployment state...
3434Deployment 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
4040my_test_code/dist/my_test_code-0.0.1-py3-none-any.whl
4141prebuilt/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
4545src/__init__.py
4646src/__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
107107Building 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...
110110Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files...
111111Deploying resources...
112112Updating deployment state...
@@ -117,11 +117,11 @@ Deployment complete!
117117src/__init__.py
118118src/__main__.py
119119src/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