26
26
27
27
>>> [CLI] bundle deploy
28
28
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...
31
31
Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files...
32
32
Deploying resources...
33
33
Updating deployment state...
34
34
Deployment complete!
35
35
36
36
=== There are 2 original wheels and 2 patched ones
37
37
>>> 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
40
40
my_test_code/dist/my_test_code-0.0.1-py3-none-any.whl
41
41
prebuilt/other_test_code-0.0.1-py3-none-any.whl
42
42
43
43
=== Verify contents of the zip file
44
44
>>> find.py --expect 1 .databricks/.*my_test_code.*whl
45
45
src/__init__.py
46
46
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
52
52
53
53
=== Expecting 2 patched wheels in libraries section in /jobs/create
54
54
>>> 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
69
69
"existing_cluster_id": "0717-132531-5opeqon1",
70
70
"libraries": [
71
71
{
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"
73
73
}
74
74
],
75
75
"python_wheel_task": {
@@ -81,10 +81,10 @@ my_test_code-0.0.1+[UNIX_TIME_NANOS].dist-info/RECORD
81
81
},
82
82
"libraries": [
83
83
{
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"
85
85
},
86
86
{
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"
88
88
}
89
89
],
90
90
"python_wheel_task": {
@@ -97,16 +97,16 @@ my_test_code-0.0.1+[UNIX_TIME_NANOS].dist-info/RECORD
97
97
98
98
=== Expecting 2 patched wheels to be uploaded
99
99
>>> 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"
102
102
"/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"
103
103
"/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"
104
104
105
105
=== Updating the local wheel and deploying again
106
106
>>> [CLI] bundle deploy
107
107
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...
110
110
Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files...
111
111
Deploying resources...
112
112
Updating deployment state...
@@ -117,11 +117,11 @@ Deployment complete!
117
117
src/__init__.py
118
118
src/__main__.py
119
119
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
125
125
126
126
=== Expecting 2 patched wheels in libraries section in /jobs/reset
127
127
>>> 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
142
142
"existing_cluster_id": "0717-132531-5opeqon1",
143
143
"libraries": [
144
144
{
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"
146
146
}
147
147
],
148
148
"python_wheel_task": {
@@ -154,10 +154,10 @@ my_test_code-0.0.1+[UNIX_TIME_NANOS].dist-info/RECORD
154
154
},
155
155
"libraries": [
156
156
{
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"
158
158
},
159
159
{
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"
161
161
}
162
162
],
163
163
"python_wheel_task": {
@@ -170,6 +170,6 @@ my_test_code-0.0.1+[UNIX_TIME_NANOS].dist-info/RECORD
170
170
171
171
=== Expecting 2 pached wheels to be uploaded (Bad: it is currently uploaded twice)
172
172
>>> 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"
175
175
"/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