2121
2222>>> [CLI] bundle deploy
2323Building my_test_code...
24- Uploading .databricks/bundle/default/patched_wheels/my_prebuilt_whl_other_test_code/other_test_code-0.0.1+[TIMESTAMP_NS ]-py3-none-any.whl...
25- Uploading .databricks/bundle/default/patched_wheels/my_test_code_my_test_code/my_test_code-0.0.1+[TIMESTAMP_NS ]-py3-none-any.whl...
24+ 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...
25+ 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...
2626Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files...
2727Deploying resources...
2828Updating deployment state...
2929Deployment complete!
3030
3131=== There are 2 original wheels and 2 patched ones
3232>>> find.py --expect 4 whl
33- .databricks/bundle/default/patched_wheels/my_prebuilt_whl_other_test_code/other_test_code-0.0.1+[TIMESTAMP_NS ]-py3-none-any.whl
34- .databricks/bundle/default/patched_wheels/my_test_code_my_test_code/my_test_code-0.0.1+[TIMESTAMP_NS ]-py3-none-any.whl
33+ .databricks/bundle/default/patched_wheels/my_prebuilt_whl_other_test_code/other_test_code-0.0.1+[UNIX_TIME_NANOS ]-py3-none-any.whl
34+ .databricks/bundle/default/patched_wheels/my_test_code_my_test_code/my_test_code-0.0.1+[UNIX_TIME_NANOS ]-py3-none-any.whl
3535my_test_code/dist/my_test_code-0.0.1-py3-none-any.whl
3636prebuilt/other_test_code-0.0.1-py3-none-any.whl
3737
3838=== Verify contents of the zip file
3939>>> find.py --expect 1 .databricks/.*my_test_code.*whl
4040src/__init__.py
4141src/__main__.py
42- my_test_code-0.0.1+[TIMESTAMP_NS ].dist-info/METADATA
43- my_test_code-0.0.1+[TIMESTAMP_NS ].dist-info/WHEEL
44- my_test_code-0.0.1+[TIMESTAMP_NS ].dist-info/entry_points.txt
45- my_test_code-0.0.1+[TIMESTAMP_NS ].dist-info/top_level.txt
46- my_test_code-0.0.1+[TIMESTAMP_NS ].dist-info/RECORD
42+ my_test_code-0.0.1+[UNIX_TIME_NANOS ].dist-info/METADATA
43+ my_test_code-0.0.1+[UNIX_TIME_NANOS ].dist-info/WHEEL
44+ my_test_code-0.0.1+[UNIX_TIME_NANOS ].dist-info/entry_points.txt
45+ my_test_code-0.0.1+[UNIX_TIME_NANOS ].dist-info/top_level.txt
46+ my_test_code-0.0.1+[UNIX_TIME_NANOS ].dist-info/RECORD
4747
4848=== Expecting 2 patched wheels in libraries section in /jobs/create
4949>>> jq -s .[] | select(.path=="/api/2.2/jobs/create") | .body.tasks out.requests.txt
@@ -64,7 +64,7 @@ my_test_code-0.0.1+[TIMESTAMP_NS].dist-info/RECORD
6464 "existing_cluster_id": "0717-132531-5opeqon1",
6565 "libraries": [
6666 {
67- "whl": "/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/artifacts/.internal/my_test_code-0.0.1+[TIMESTAMP_NS ]-py3-none-any.whl"
67+ "whl": "/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/artifacts/.internal/my_test_code-0.0.1+[UNIX_TIME_NANOS ]-py3-none-any.whl"
6868 }
6969 ],
7070 "python_wheel_task": {
@@ -76,10 +76,10 @@ my_test_code-0.0.1+[TIMESTAMP_NS].dist-info/RECORD
7676 },
7777 "libraries": [
7878 {
79- "whl": "/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/artifacts/.internal/my_test_code-0.0.1+[TIMESTAMP_NS ]-py3-none-any.whl"
79+ "whl": "/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/artifacts/.internal/my_test_code-0.0.1+[UNIX_TIME_NANOS ]-py3-none-any.whl"
8080 },
8181 {
82- "whl": "/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/artifacts/.internal/other_test_code-0.0.1+[TIMESTAMP_NS ]-py3-none-any.whl"
82+ "whl": "/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/artifacts/.internal/other_test_code-0.0.1+[UNIX_TIME_NANOS ]-py3-none-any.whl"
8383 }
8484 ],
8585 "python_wheel_task": {
@@ -92,16 +92,16 @@ my_test_code-0.0.1+[TIMESTAMP_NS].dist-info/RECORD
9292
9393=== Expecting 2 patched wheels to be uploaded
9494>>> jq .path
95- "/api/2.0/workspace-files/import-file/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/artifacts/.internal/my_test_code-0.0.1+[TIMESTAMP_NS ]-py3-none-any.whl"
96- "/api/2.0/workspace-files/import-file/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/artifacts/.internal/other_test_code-0.0.1+[TIMESTAMP_NS ]-py3-none-any.whl"
95+ "/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"
96+ "/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"
9797"/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"
9898"/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"
9999
100100=== Updating the local wheel and deploying again
101101>>> [CLI] bundle deploy
102102Building my_test_code...
103- Uploading .databricks/bundle/default/patched_wheels/my_prebuilt_whl_other_test_code/other_test_code-0.0.1+[TIMESTAMP_NS ]-py3-none-any.whl...
104- Uploading .databricks/bundle/default/patched_wheels/my_test_code_my_test_code/my_test_code-0.0.1+[TIMESTAMP_NS ]-py3-none-any.whl...
103+ 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...
104+ 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...
105105Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files...
106106Deploying resources...
107107Updating deployment state...
@@ -112,11 +112,11 @@ Deployment complete!
112112src/__init__.py
113113src/__main__.py
114114src/new_module.py
115- my_test_code-0.0.1+[TIMESTAMP_NS ].dist-info/METADATA
116- my_test_code-0.0.1+[TIMESTAMP_NS ].dist-info/WHEEL
117- my_test_code-0.0.1+[TIMESTAMP_NS ].dist-info/entry_points.txt
118- my_test_code-0.0.1+[TIMESTAMP_NS ].dist-info/top_level.txt
119- my_test_code-0.0.1+[TIMESTAMP_NS ].dist-info/RECORD
115+ my_test_code-0.0.1+[UNIX_TIME_NANOS ].dist-info/METADATA
116+ my_test_code-0.0.1+[UNIX_TIME_NANOS ].dist-info/WHEEL
117+ my_test_code-0.0.1+[UNIX_TIME_NANOS ].dist-info/entry_points.txt
118+ my_test_code-0.0.1+[UNIX_TIME_NANOS ].dist-info/top_level.txt
119+ my_test_code-0.0.1+[UNIX_TIME_NANOS ].dist-info/RECORD
120120
121121=== Expecting 2 patched wheels in libraries section in /jobs/reset
122122>>> jq -s .[] | select(.path=="/api/2.2/jobs/reset") | .body.new_settings.tasks out.requests.txt
@@ -137,7 +137,7 @@ my_test_code-0.0.1+[TIMESTAMP_NS].dist-info/RECORD
137137 "existing_cluster_id": "0717-132531-5opeqon1",
138138 "libraries": [
139139 {
140- "whl": "/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/artifacts/.internal/my_test_code-0.0.1+[TIMESTAMP_NS ]-py3-none-any.whl"
140+ "whl": "/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/artifacts/.internal/my_test_code-0.0.1+[UNIX_TIME_NANOS ]-py3-none-any.whl"
141141 }
142142 ],
143143 "python_wheel_task": {
@@ -149,10 +149,10 @@ my_test_code-0.0.1+[TIMESTAMP_NS].dist-info/RECORD
149149 },
150150 "libraries": [
151151 {
152- "whl": "/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/artifacts/.internal/my_test_code-0.0.1+[TIMESTAMP_NS ]-py3-none-any.whl"
152+ "whl": "/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/artifacts/.internal/my_test_code-0.0.1+[UNIX_TIME_NANOS ]-py3-none-any.whl"
153153 },
154154 {
155- "whl": "/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/artifacts/.internal/other_test_code-0.0.1+[TIMESTAMP_NS ]-py3-none-any.whl"
155+ "whl": "/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/artifacts/.internal/other_test_code-0.0.1+[UNIX_TIME_NANOS ]-py3-none-any.whl"
156156 }
157157 ],
158158 "python_wheel_task": {
@@ -165,6 +165,6 @@ my_test_code-0.0.1+[TIMESTAMP_NS].dist-info/RECORD
165165
166166=== Expecting 2 pached wheels to be uploaded (Bad: it is currently uploaded twice)
167167>>> jq .path
168- "/api/2.0/workspace-files/import-file/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/artifacts/.internal/my_test_code-0.0.1+[TIMESTAMP_NS ]-py3-none-any.whl"
169- "/api/2.0/workspace-files/import-file/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/artifacts/.internal/other_test_code-0.0.1+[TIMESTAMP_NS ]-py3-none-any.whl"
168+ "/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"
169+ "/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"
170170"/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