Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
4ee2844
filer: switch workspace upload from import-file to /workspace/import
shreyas-goenka May 6, 2026
6347aab
acceptance: cover /workspace/import drop-in edge cases + restore dele…
shreyas-goenka May 6, 2026
4c7a525
filer: also catch 409 ALREADY_EXISTS on /workspace/import (concurrent…
shreyas-goenka May 6, 2026
8cbc47a
acceptance: drop unused SKIP_BUILD_YAMLFMT escape hatch
shreyas-goenka May 6, 2026
109793f
acceptance: record literal text content for multipart parts (drop "[c…
shreyas-goenka May 6, 2026
afb52c9
filer: fix comment about multipart endpoint size limits
shreyas-goenka May 6, 2026
6d6b305
filer: refine /workspace/import comment with empirical caps
shreyas-goenka May 7, 2026
27c6322
filer: name endpoints explicitly in /workspace/import comment
shreyas-goenka May 8, 2026
be2029c
filer: drop dead INVALID_PARAMETER_VALUE branch (real conflicts use e…
shreyas-goenka May 8, 2026
875f755
filer: restore INVALID_PARAMETER_VALUE branch (it does fire, with ove…
shreyas-goenka May 8, 2026
f3b16c9
filer: rewrite /workspace/import error-shape comment with concrete ex…
shreyas-goenka May 8, 2026
d4e962c
acceptance: narrow bind/pipelines/update print_requests filter back
shreyas-goenka May 8, 2026
ad164ca
acceptance: assert object_type/language via /workspace/list, cover sq…
shreyas-goenka May 8, 2026
5d5c68a
acceptance: drop redundant 12 MiB summarization assertion in upload-e…
shreyas-goenka May 8, 2026
d675d30
filer: switch workspace upload from import-file to /workspace/import
shreyas-goenka Jun 12, 2026
8a3d6c2
filer: branch on AIP-193 ErrorInfo reason for import type-mismatch co…
shreyas-goenka Jun 12, 2026
c9b39a5
acceptance: fix CI failures in upload-edge-cases and bind scripts
shreyas-goenka Jun 12, 2026
c6c85f0
acceptance: regenerate fixtures added on main since the branch point
shreyas-goenka Jun 12, 2026
d2fbde0
Merge superseded import-api history (squash-rebased onto main)
shreyas-goenka Jun 12, 2026
5a38b31
Merge origin/main into import-api branch
shreyas-goenka Jun 12, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 9 additions & 5 deletions acceptance/bundle/apps/app_yaml/out.app.yml.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
{
"method": "POST",
"path": "/api/2.0/workspace-files/import-file/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files/app/app.yml",
"q": {
"overwrite": "true"
},
"raw_body": "command:\n - python\n - app.py\n"
"path": "/api/2.0/workspace/import",
"body": {
"multipart_form": {
"content": "command:\n - python\n - app.py\n",
"format": "AUTO",
"overwrite": "true",
"path": "/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files/app/app.yml"
}
}
}
2 changes: 1 addition & 1 deletion acceptance/bundle/apps/app_yaml/output.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Deploying resources...
Updating deployment state...
Deployment complete!

>>> jq select(.path | test("app.yml")) out.requests.txt
>>> jq select(.body.multipart_form.path | strings | test("app.yml")) out.requests.txt

>>> [CLI] bundle destroy --auto-approve
The following resources will be deleted:
Expand Down
2 changes: 1 addition & 1 deletion acceptance/bundle/apps/app_yaml/script
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
trace $CLI bundle validate
trace $CLI bundle plan
trace $CLI bundle deploy
trace jq 'select(.path | test("app.yml"))' out.requests.txt | sed 's/\\r//g' > out.app.yml.txt
trace jq 'select(.body.multipart_form.path | strings | test("app.yml"))' out.requests.txt | sed 's/\\r//g' > out.app.yml.txt
#trace print_requests.py //apps # currently fails due to TF inserting description=""
rm out.requests.txt

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ Deployment complete!
]

=== Expecting wheel to be uploaded
>>> jq .path
"/api/2.0/workspace-files/import-file/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files/whl/source.whl"
"/api/2.0/workspace-files/import-file/Workspace/foo/bar/artifacts/.internal/source.whl"
>>> jq -r .body.multipart_form.path | strings
/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files/whl/source.whl
/Workspace/foo/bar/artifacts/.internal/source.whl

=== Expecting environment dependencies to be updated
>>> jq -s .[] | select(.path=="/api/2.2/jobs/create") | .body.environments out.requests.txt
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ title "Expecting 2 wheels in libraries section in /jobs/create"
trace jq -s '.[] | select(.path=="/api/2.2/jobs/create") | .body.tasks' out.requests.txt

title "Expecting wheel to be uploaded"
trace jq .path < out.requests.txt | grep import | grep whl | sort
trace jq -r '.body.multipart_form.path | strings' < out.requests.txt | grep whl | sort

title "Expecting environment dependencies to be updated"
trace jq -s '.[] | select(.path=="/api/2.2/jobs/create") | .body.environments' out.requests.txt
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ Deploying resources...
Deployment complete!

=== Expecting wheel to be uploaded
>>> jq .path
"/api/2.0/workspace-files/import-file/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files/whl/source.whl"
"/api/2.0/workspace-files/import-file/Workspace/foo/bar/artifacts/.internal/source.whl"
>>> jq -r .body.multipart_form.path | strings
/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files/whl/source.whl
/Workspace/foo/bar/artifacts/.internal/source.whl

=== Expecting delete request to artifact_path/.internal folder
>>> jq -s .[] | select(.path=="/api/2.0/workspace/delete") | select(.body.path | test(".*/artifacts/.internal")) out.requests.txt
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ echo "test wheel content" > whl/source.whl
trace $CLI bundle deploy

title "Expecting wheel to be uploaded"
trace jq .path < out.requests.txt | grep import | grep whl | sort
trace jq -r '.body.multipart_form.path | strings' < out.requests.txt | grep whl | sort

title "Expecting delete request to artifact_path/.internal folder"
trace jq -s '.[] | select(.path=="/api/2.0/workspace/delete") | select(.body.path | test(".*/artifacts/.internal"))' out.requests.txt
Expand Down
18 changes: 9 additions & 9 deletions acceptance/bundle/artifacts/upload_multiple_libraries/output.txt
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,15 @@ Deployment complete!
]

=== Expecting 4 wheels to be uploaded
>>> jq .path
"/api/2.0/workspace-files/import-file/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files/whl/source1.whl"
"/api/2.0/workspace-files/import-file/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files/whl/source2.whl"
"/api/2.0/workspace-files/import-file/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files/whl/source3.whl"
"/api/2.0/workspace-files/import-file/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files/whl/source4.whl"
"/api/2.0/workspace-files/import-file/Workspace/foo/bar/artifacts/.internal/source1.whl"
"/api/2.0/workspace-files/import-file/Workspace/foo/bar/artifacts/.internal/source2.whl"
"/api/2.0/workspace-files/import-file/Workspace/foo/bar/artifacts/.internal/source3.whl"
"/api/2.0/workspace-files/import-file/Workspace/foo/bar/artifacts/.internal/source4.whl"
>>> jq -r .body.multipart_form.path | strings
/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files/whl/source1.whl
/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files/whl/source2.whl
/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files/whl/source3.whl
/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files/whl/source4.whl
/Workspace/foo/bar/artifacts/.internal/source1.whl
/Workspace/foo/bar/artifacts/.internal/source2.whl
/Workspace/foo/bar/artifacts/.internal/source3.whl
/Workspace/foo/bar/artifacts/.internal/source4.whl

=== Expecting environment dependencies to be updated
>>> jq -s .[] | select(.path=="/api/2.2/jobs/create") | .body.environments out.requests.txt
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ title "Expecting 5 wheels in libraries section in /jobs/create"
trace jq -s '.[] | select(.path=="/api/2.2/jobs/create") | .body.tasks' out.requests.txt

title "Expecting 4 wheels to be uploaded"
trace jq .path < out.requests.txt | grep import | grep whl | sort
trace jq -r '.body.multipart_form.path | strings' < out.requests.txt | grep whl | sort

title "Expecting environment dependencies to be updated"
trace jq -s '.[] | select(.path=="/api/2.2/jobs/create") | .body.environments' out.requests.txt
Expand Down
76 changes: 38 additions & 38 deletions acceptance/bundle/artifacts/whl_change_version/output.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,23 +29,23 @@ dist/my_test_code-0.1.0-py3-none-any.whl
]

=== Expecting 1 wheel to be uploaded
>>> jq .path out.requests.txt
"/api/2.0/workspace-files/import-file/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/artifacts/.internal/my_test_code-0.1.0-py3-none-any.whl"
"/api/2.0/workspace-files/import-file/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files/.gitignore"
"/api/2.0/workspace-files/import-file/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files/databricks.yml"
"/api/2.0/workspace-files/import-file/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files/dist/my_test_code-0.1.0-py3-none-any.whl"
"/api/2.0/workspace-files/import-file/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files/my_test_code/__init__.py"
"/api/2.0/workspace-files/import-file/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files/my_test_code/__main__.py"
"/api/2.0/workspace-files/import-file/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files/out.requests.txt"
"/api/2.0/workspace-files/import-file/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files/output.txt"
"/api/2.0/workspace-files/import-file/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files/repls.json"
"/api/2.0/workspace-files/import-file/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files/script"
"/api/2.0/workspace-files/import-file/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files/setup.py"
"/api/2.0/workspace-files/import-file/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files/test.toml"
"/api/2.0/workspace-files/import-file/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/state/deploy.lock"
"/api/2.0/workspace-files/import-file/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/state/deployment.json"
"/api/2.0/workspace-files/import-file/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/state/metadata.json"
"/api/2.0/workspace-files/import-file/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/state/STATE_FILENAME"
>>> jq -r .body.multipart_form.path | strings out.requests.txt
/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/artifacts/.internal/my_test_code-0.1.0-py3-none-any.whl
/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files/.gitignore
/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files/databricks.yml
/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files/dist/my_test_code-0.1.0-py3-none-any.whl
/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files/my_test_code/__init__.py
/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files/my_test_code/__main__.py
/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files/out.requests.txt
/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files/output.txt
/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files/repls.json
/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files/script
/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files/setup.py
/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files/test.toml
/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/state/deploy.lock
/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/state/deployment.json
/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/state/metadata.json
/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/state/STATE_FILENAME

>>> update_file.py my_test_code/__init__.py 0.1.0 0.2.0

Expand All @@ -66,16 +66,16 @@ dist/my_test_code-0.2.0-py3-none-any.whl
json[0].libraries[0].whl = "/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/artifacts/.internal/my_test_code-0.2.0-py3-none-any.whl";

=== Expecting 1 wheel to be uploaded
>>> jq .path out.requests.txt
"/api/2.0/workspace-files/import-file/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/artifacts/.internal/my_test_code-0.2.0-py3-none-any.whl"
"/api/2.0/workspace-files/import-file/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files/dist/my_test_code-0.2.0-py3-none-any.whl"
"/api/2.0/workspace-files/import-file/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files/my_test_code/__init__.py"
"/api/2.0/workspace-files/import-file/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files/out.requests.txt"
"/api/2.0/workspace-files/import-file/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files/output.txt"
"/api/2.0/workspace-files/import-file/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/state/deploy.lock"
"/api/2.0/workspace-files/import-file/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/state/deployment.json"
"/api/2.0/workspace-files/import-file/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/state/metadata.json"
"/api/2.0/workspace-files/import-file/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/state/STATE_FILENAME"
>>> jq -r .body.multipart_form.path | strings out.requests.txt
/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/artifacts/.internal/my_test_code-0.2.0-py3-none-any.whl
/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files/dist/my_test_code-0.2.0-py3-none-any.whl
/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files/my_test_code/__init__.py
/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files/out.requests.txt
/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files/output.txt
/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/state/deploy.lock
/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/state/deployment.json
/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/state/metadata.json
/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/state/STATE_FILENAME

=== Restore config to target old wheel
>>> update_file.py databricks.yml ./dist/*.whl ./dist/my*0.1.0*.whl
Expand All @@ -98,14 +98,14 @@ dist/my_test_code-0.2.0-py3-none-any.whl
json[0].libraries[0].whl = "/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/artifacts/.internal/my_test_code-0.1.0-py3-none-any.whl";

=== Expecting 1 wheel to be uploaded
>>> jq .path out.requests.txt
"/api/2.0/workspace-files/import-file/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/artifacts/.internal/my_test_code-0.1.0-py3-none-any.whl"
"/api/2.0/workspace-files/import-file/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/artifacts/.internal/my_test_code-0.2.0-py3-none-any.whl"
"/api/2.0/workspace-files/import-file/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files/databricks.yml"
"/api/2.0/workspace-files/import-file/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files/dist/my_test_code-0.2.0-py3-none-any.whl"
"/api/2.0/workspace-files/import-file/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files/out.requests.txt"
"/api/2.0/workspace-files/import-file/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files/output.txt"
"/api/2.0/workspace-files/import-file/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/state/deploy.lock"
"/api/2.0/workspace-files/import-file/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/state/deployment.json"
"/api/2.0/workspace-files/import-file/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/state/metadata.json"
"/api/2.0/workspace-files/import-file/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/state/STATE_FILENAME"
>>> jq -r .body.multipart_form.path | strings out.requests.txt
/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/artifacts/.internal/my_test_code-0.1.0-py3-none-any.whl
/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/artifacts/.internal/my_test_code-0.2.0-py3-none-any.whl
/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files/databricks.yml
/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files/dist/my_test_code-0.2.0-py3-none-any.whl
/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files/out.requests.txt
/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files/output.txt
/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/state/deploy.lock
/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/state/deployment.json
/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/state/metadata.json
/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/state/STATE_FILENAME
6 changes: 3 additions & 3 deletions acceptance/bundle/artifacts/whl_change_version/script
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ title "Expecting 1 wheel in libraries section in /jobs/create"
trace jq -s '.[] | select(.path=="/api/2.2/jobs/create") | .body.tasks' out.requests.txt

title "Expecting 1 wheel to be uploaded"
trace jq .path out.requests.txt | grep import | sort
trace jq -r '.body.multipart_form.path | strings' out.requests.txt | sort

rm out.requests.txt

Expand All @@ -20,7 +20,7 @@ title "Expecting 1 wheel in libraries section in /jobs/reset"
trace jq -s '.[] | select(.path=="/api/2.2/jobs/reset") | .body.new_settings.tasks' out.requests.txt | gron.py | grep -w libraries

title "Expecting 1 wheel to be uploaded"
trace jq .path out.requests.txt | grep import | sort
trace jq -r '.body.multipart_form.path | strings' out.requests.txt | sort

rm out.requests.txt

Expand All @@ -34,6 +34,6 @@ title "Expecting 1 wheel in libraries section in /jobs/reset"
trace jq -s '.[] | select(.path=="/api/2.2/jobs/reset") | .body.new_settings.tasks' out.requests.txt | gron.py | grep -w libraries

title "Expecting 1 wheel to be uploaded"
trace jq .path out.requests.txt | grep import | sort
trace jq -r '.body.multipart_form.path | strings' out.requests.txt | sort

rm out.requests.txt
2 changes: 1 addition & 1 deletion acceptance/bundle/artifacts/whl_dbfs/output.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@ Deployment complete!
]

=== Expecting no wheels to be uploaded
>>> errcode sh -c jq .path < out.requests.txt | grep import | grep whl
>>> errcode sh -c jq -r '.body.multipart_form.path | strings' < out.requests.txt | grep whl

Exit code: 1
2 changes: 1 addition & 1 deletion acceptance/bundle/artifacts/whl_dbfs/script
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ title "Expecting 1 wheel in libraries section in /jobs/create"
trace jq -s '.[] | select(.path=="/api/2.2/jobs/create") | .body.tasks' out.requests.txt

title "Expecting no wheels to be uploaded"
trace errcode sh -c 'jq .path < out.requests.txt | grep import | grep whl'
trace errcode sh -c "jq -r '.body.multipart_form.path | strings' < out.requests.txt | grep whl"

rm out.requests.txt
18 changes: 9 additions & 9 deletions acceptance/bundle/artifacts/whl_dynamic/output.txt
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,11 @@ json[1].libraries[0].whl = "/Workspace/Users/[USERNAME]/.bundle/test-bundle/defa
json[1].libraries[1].whl = "/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/artifacts/.internal/other_test_code-0.0.1+[UNIX_TIME_NANOS][0]-py3-none-any.whl";

=== Expecting 2 patched wheels to be uploaded
>>> jq .path
"/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"
"/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"
"/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"
"/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"
>>> jq -r .body.multipart_form.path | strings
/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/artifacts/.internal/my_test_code-0.0.1+[UNIX_TIME_NANOS][1]-py3-none-any.whl
/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/artifacts/.internal/other_test_code-0.0.1+[UNIX_TIME_NANOS][0]-py3-none-any.whl
/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files/my_test_code/dist/my_test_code-0.0.1-py3-none-any.whl
/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files/prebuilt/other_test_code-0.0.1-py3-none-any.whl

=== Updating the local wheel and deploying again
Building my_test_code...
Expand Down Expand Up @@ -94,7 +94,7 @@ json[1].libraries[0].whl = "/Workspace/Users/[USERNAME]/.bundle/test-bundle/defa
json[1].libraries[1].whl = "/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/artifacts/.internal/other_test_code-0.0.1+[UNIX_TIME_NANOS][0]-py3-none-any.whl";

=== Expecting 2 pached wheels to be uploaded (Bad: it is currently uploaded twice)
>>> jq .path
"/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"
"/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"
"/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"
>>> jq -r .body.multipart_form.path | strings
/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/artifacts/.internal/my_test_code-0.0.1+[UNIX_TIME_NANOS][2]-py3-none-any.whl
/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/artifacts/.internal/other_test_code-0.0.1+[UNIX_TIME_NANOS][0]-py3-none-any.whl
/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files/my_test_code/dist/my_test_code-0.0.1-py3-none-any.whl
4 changes: 2 additions & 2 deletions acceptance/bundle/artifacts/whl_dynamic/script
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ title "Expecting 2 patched wheels in libraries section in /jobs/create"
trace jq -s '.[] | select(.path=="/api/2.2/jobs/create") | .body.tasks' out.requests.txt | gron.py | grep -w libraries

title "Expecting 2 patched wheels to be uploaded"
trace jq .path < out.requests.txt | grep import | grep whl | sort
trace jq -r '.body.multipart_form.path | strings' < out.requests.txt | grep whl | sort

rm out.requests.txt

Expand All @@ -35,4 +35,4 @@ title "Expecting 2 patched wheels in libraries section in /jobs/reset"
trace jq -s '.[] | select(.path=="/api/2.2/jobs/reset") | .body.new_settings.tasks' out.requests.txt | gron.py | grep -w libraries

title "Expecting 2 pached wheels to be uploaded (Bad: it is currently uploaded twice)"
trace jq .path < out.requests.txt | grep import | grep whl | sort
trace jq -r '.body.multipart_form.path | strings' < out.requests.txt | grep whl | sort
Loading
Loading