Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
c7d28bc
acceptance: capture notebook-vs-file classification gaps behind #7216
Sankalp-Mittal Oct 28, 2026
b9057f9
acceptance: reduce #7216 tests to the one file shape that triggers it
Sankalp-Mittal Oct 28, 2026
044db69
acceptance: run the #7216 bundle test on cloud too
Sankalp-Mittal Oct 28, 2026
56505fa
Revert "filer: import files the way the legacy import-file endpoint d…
Sankalp-Mittal Oct 28, 2026
76f8cd7
Revert "filer: switch workspace upload from import-file to /workspace…
Sankalp-Mittal Oct 28, 2026
5dad8aa
filer: replace a remote node whose type differs from the upload
Sankalp-Mittal Oct 28, 2026
f746b25
notebook: use errors.Is for io.EOF in the restored readHeader
Sankalp-Mittal Oct 28, 2026
8391877
testserver: restore fault --body-contains, the .R detection test and …
Sankalp-Mittal Oct 28, 2026
323056e
testserver: extract a .zip uploaded through import-file
Sankalp-Mittal Oct 28, 2026
5b50de0
Merge remote-tracking branch 'origin/main' into sankalp-mittal/acc-72…
Sankalp-Mittal Oct 28, 2026
08c6c03
ssh: upload valid zips in TestUploadReleasesSendsEachArchiveOnce
Sankalp-Mittal Oct 28, 2026
443e497
filer: pick the blocking node type from the error message
Sankalp-Mittal Oct 28, 2026
8b6c697
notebook: keep the detect.go refactor from #7034
Sankalp-Mittal Oct 28, 2026
77c5e22
changelog: describe the revert, its cause and impact
Sankalp-Mittal Oct 28, 2026
24c35e2
filer: only delete the node the collision message names
Sankalp-Mittal Oct 28, 2026
caa6cf4
Merge remote-tracking branch 'origin/main' into sankalp-mittal/acc-72…
Sankalp-Mittal Oct 28, 2026
aa0b9d6
acceptance: use ** for import-file fault patterns
Sankalp-Mittal Oct 28, 2026
640e02f
Retrigger CI
Sankalp-Mittal Oct 29, 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
1 change: 1 addition & 0 deletions .nextchanges/bundles/revert-workspace-import.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* Revert bundle file uploads to the legacy `/workspace-files/import-file` endpoint, rolling back [#6149](https://github.com/databricks/cli/pull/6149) and [#7034](https://github.com/databricks/cli/pull/7034) released in [v1.21.0](https://github.com/databricks/cli/releases/tag/v1.21.0). This fixes notebooks being uploaded as plain files and deployments failing (for example SQL notebooks in [#7216](https://github.com/databricks/cli/issues/7216)). A remote file or notebook whose type differs from the local one is now deleted and replaced instead of blocking the deploy. ([#7218](https://github.com/databricks/cli/pull/7218))
6 changes: 3 additions & 3 deletions acceptance/air/run-submit-deps/output.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ Stream logs after submission using:
databricks air logs 555

=== only config + command are uploaded; no requirements.yaml
>>> print_requests.py //api/2.0/workspace/import --oneline --sort --unique --keep
{"method": "POST", "path": "/api/2.0/workspace/import", "body": {"multipart_form": {"content": "experiment_name: deps-smoke\ncommand: python train.py\ncompute:\n accelerator_type: GPU_1xH100\n num_accelerators: 1\n pool_id: capacity-123\nenvironment:\n version: 5\n dependencies:\n - numpy\n - torch==2.3.0\nmlflow_artifact_location: /Volumes/main/default/air-artifacts\n", "format": "RAW", "overwrite": "true", "path": "/Workspace/Users/[USERNAME]/.air/cli_launch/deps-smoke/deps-smoke_[RUN_ID]/training_config.yaml"}}}
{"method": "POST", "path": "/api/2.0/workspace/import", "body": {"multipart_form": {"content": "python train.py", "format": "RAW", "overwrite": "true", "path": "/Workspace/Users/[USERNAME]/.air/cli_launch/deps-smoke/deps-smoke_[RUN_ID]/command.sh"}}}
>>> print_requests.py //api/2.0/workspace-files/import-file --oneline --sort --unique --keep
{"method": "POST", "path": "/api/2.0/workspace-files/import-file/Workspace/Users/[USERNAME]/.air/cli_launch/deps-smoke/deps-smoke_[RUN_ID]/command.sh", "q": {"overwrite": "true"}, "raw_body": "python train.py"}
{"method": "POST", "path": "/api/2.0/workspace-files/import-file/Workspace/Users/[USERNAME]/.air/cli_launch/deps-smoke/deps-smoke_[RUN_ID]/training_config.yaml", "q": {"overwrite": "true"}, "raw_body": "experiment_name: deps-smoke\ncommand: python train.py\ncompute:\n accelerator_type: GPU_1xH100\n num_accelerators: 1\n pool_id: capacity-123\nenvironment:\n version: 5\n dependencies:\n - numpy\n - torch==2.3.0\nmlflow_artifact_location: /Volumes/main/default/air-artifacts\n"}

=== inline deps, artifact location, and capacity id reach the submit payload
>>> print_requests.py //api/2.2/jobs/runs/submit
Expand Down
5 changes: 1 addition & 4 deletions acceptance/air/run-submit-deps/script
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@ title "submit with inline dependencies"
trace $CLI air run -f run.yaml

title "only config + command are uploaded; no requirements.yaml"
# Uploads go to POST /workspace/import, which carries the target filename in the
# multipart body rather than the URL, so each uploaded path shows up under
# body.multipart_form.path instead of in the request path.
trace print_requests.py //api/2.0/workspace/import --oneline --sort --unique --keep
trace print_requests.py //api/2.0/workspace-files/import-file --oneline --sort --unique --keep

title "inline deps, artifact location, and capacity id reach the submit payload"
trace print_requests.py //api/2.2/jobs/runs/submit
Expand Down
8 changes: 4 additions & 4 deletions acceptance/air/run-submit-overrides/output.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Stream logs after submission using:
databricks air logs 555

=== the uploaded config preserves source order and contains overrides
>>> print_requests.py //api/2.0/workspace/import --oneline --sort --unique
{"method": "POST", "path": "/api/2.0/workspace/import", "body": {"multipart_form": {"content": "experiment_name: overrides-smoke\ncommand: python train.py\ncompute:\n accelerator_type: GPU_1xH100\n num_accelerators: 2\nparameters:\n model:\n hidden_size: 2048\n optimizer:\n name: adamw\n learning_rate: 0.001\nmlflow_artifact_location: /Volumes/main/default/air-artifacts\n", "format": "RAW", "overwrite": "true", "path": "/Workspace/Users/[USERNAME]/.air/cli_launch/overrides-smoke/overrides-smoke_[RUN_ID]/training_config.yaml"}}}
{"method": "POST", "path": "/api/2.0/workspace/import", "body": {"multipart_form": {"content": "model:\n hidden_size: 2048\noptimizer:\n learning_rate: 0.001\n name: adamw\n", "format": "RAW", "overwrite": "true", "path": "/Workspace/Users/[USERNAME]/.air/cli_launch/overrides-smoke/overrides-smoke_[RUN_ID]/hyperparameters.yaml"}}}
{"method": "POST", "path": "/api/2.0/workspace/import", "body": {"multipart_form": {"content": "python train.py", "format": "RAW", "overwrite": "true", "path": "/Workspace/Users/[USERNAME]/.air/cli_launch/overrides-smoke/overrides-smoke_[RUN_ID]/command.sh"}}}
>>> print_requests.py //api/2.0/workspace-files/import-file --oneline --sort --unique
{"method": "POST", "path": "/api/2.0/workspace-files/import-file/Workspace/Users/[USERNAME]/.air/cli_launch/overrides-smoke/overrides-smoke_[RUN_ID]/command.sh", "q": {"overwrite": "true"}, "raw_body": "python train.py"}
{"method": "POST", "path": "/api/2.0/workspace-files/import-file/Workspace/Users/[USERNAME]/.air/cli_launch/overrides-smoke/overrides-smoke_[RUN_ID]/hyperparameters.yaml", "q": {"overwrite": "true"}, "raw_body": "model:\n hidden_size: 2048\noptimizer:\n learning_rate: 0.001\n name: adamw\n"}
{"method": "POST", "path": "/api/2.0/workspace-files/import-file/Workspace/Users/[USERNAME]/.air/cli_launch/overrides-smoke/overrides-smoke_[RUN_ID]/training_config.yaml", "q": {"overwrite": "true"}, "raw_body": "experiment_name: overrides-smoke\ncommand: python train.py\ncompute:\n accelerator_type: GPU_1xH100\n num_accelerators: 2\nparameters:\n model:\n hidden_size: 2048\n optimizer:\n name: adamw\n learning_rate: 0.001\nmlflow_artifact_location: /Volumes/main/default/air-artifacts\n"}
2 changes: 1 addition & 1 deletion acceptance/air/run-submit-overrides/script
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ trace $CLI air run -f run.yaml \
--override parameters.optimizer.learning_rate=0.001

title "the uploaded config preserves source order and contains overrides"
trace print_requests.py //api/2.0/workspace/import --oneline --sort --unique
trace print_requests.py //api/2.0/workspace-files/import-file --oneline --sort --unique
14 changes: 5 additions & 9 deletions acceptance/bundle/apps/app_yaml/out.app.yml.txt
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
{
"method": "POST",
"path": "/api/2.0/workspace/import",
"body": {
"multipart_form": {
"content": "command:\n - python\n - app.py\n",
"format": "RAW",
"overwrite": "true",
"path": "/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files/app/app.yml"
}
}
"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"
}
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 @@ Created apps.myapp
Files: 3 uploaded, 0 deleted
Resources: 1 created, 0 changed, 0 deleted, 0 unchanged

>>> jq select(.body.multipart_form.path | strings | test("app.yml")) [OUTPUT_DIR]/out.requests.txt
>>> jq select(.path | test("app.yml")) [OUTPUT_DIR]/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(.body.multipart_form.path | strings | test("app.yml"))' "$OUT_REQUESTS" | sed 's/\\r//g' > out.app.yml.txt
trace jq 'select(.path | test("app.yml"))' "$OUT_REQUESTS" | sed 's/\\r//g' > out.app.yml.txt
#trace print_requests.py //apps # currently fails due to TF inserting description=""
rm "$OUT_REQUESTS"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@
}

=== Expecting the code_source tarball to be uploaded
>>> print_workspace_imports
/Workspace/foo/bar/artifacts/.internal/code.tgz
>>> jq .path
"/api/2.0/workspace-files/import-file/Workspace/foo/bar/artifacts/.internal/code.tgz"
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ title "Expecting code_source_path rewritten to the uploaded artifact remote path
trace jq -s '.[] | select(.path=="/api/2.2/jobs/create") | .body.tasks[].ai_runtime_task' "$OUT_REQUESTS"

title "Expecting the code_source tarball to be uploaded"
trace print_workspace_imports | grep code.tgz | sort
trace jq .path < "$OUT_REQUESTS" | grep import | grep code.tgz | sort

rm "$OUT_REQUESTS"
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ Resources: 1 created, 0 changed, 0 deleted, 0 unchanged
]

=== Expecting wheel to be uploaded
>>> print_workspace_imports
/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files/whl/source.whl
/Workspace/foo/bar/artifacts/.internal/source.whl
>>> 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"

=== Expecting environment dependencies to be updated
>>> jq -s .[] | select(.path=="/api/2.2/jobs/create") | .body.environments [OUTPUT_DIR]/out.requests.txt
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,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"

title "Expecting wheel to be uploaded"
trace print_workspace_imports | grep whl | sort
trace jq .path < "$OUT_REQUESTS" | grep import | grep whl | sort

title "Expecting environment dependencies to be updated"
trace jq -s '.[] | select(.path=="/api/2.2/jobs/create") | .body.environments' "$OUT_REQUESTS"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ Files: 4 uploaded, 0 deleted
Resources: 0 created, 0 changed, 0 deleted, 0 unchanged

=== Expecting wheel to be uploaded
>>> print_workspace_imports
/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files/whl/source.whl
/Workspace/foo/bar/artifacts/.internal/source.whl
>>> 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"

=== Expecting delete request to artifact_path/.internal folder
>>> jq -s .[] | select(.path=="/api/2.0/workspace/delete") | select(.body.path | test(".*/artifacts/.internal")) [OUTPUT_DIR]/out.requests.txt
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ $CLI bundle plan -o json > tmp.plan.json 2>>LOG.plan
$CLI bundle deploy $(readplanarg tmp.plan.json)

title "Expecting wheel to be uploaded"
trace print_workspace_imports | grep whl | sort
trace jq .path < "$OUT_REQUESTS" | grep import | 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"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,15 @@ Resources: 1 created, 0 changed, 0 deleted, 0 unchanged
]

=== Expecting 4 wheels to be uploaded
>>> print_workspace_imports
/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
>>> 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"

=== Expecting environment dependencies to be updated
>>> jq -s .[] | select(.path=="/api/2.2/jobs/create") | .body.environments [OUTPUT_DIR]/out.requests.txt
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,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"

title "Expecting 4 wheels to be uploaded"
trace print_workspace_imports | grep whl | sort
trace jq .path < "$OUT_REQUESTS" | grep import | grep whl | sort

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

=== Expecting 1 wheel to be uploaded
>>> print_workspace_imports
/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/setup.py
/Workspace/Users/[USERNAME]/.bundle/test-bundle/default/state/deploy.lock
/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
>>> jq .path [OUTPUT_DIR]/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/setup.py"
"/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/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"

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

Expand All @@ -62,14 +62,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.2.0-py3-none-any.whl";

=== Expecting 1 wheel to be uploaded
>>> print_workspace_imports
/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/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
>>> jq .path [OUTPUT_DIR]/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/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"

=== Restore config to target old wheel
>>> update_file.py databricks.yml ./dist/*.whl ./dist/my*0.1.0*.whl
Expand All @@ -92,12 +92,12 @@ 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
>>> print_workspace_imports
/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/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
>>> jq .path [OUTPUT_DIR]/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/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"
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"

title "Expecting 1 wheel to be uploaded"
trace print_workspace_imports | sort
trace jq .path "$OUT_REQUESTS" | grep import | sort

rm "$OUT_REQUESTS"

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" | gron.py | grep -w libraries

title "Expecting 1 wheel to be uploaded"
trace print_workspace_imports | sort
trace jq .path "$OUT_REQUESTS" | grep import | sort

rm "$OUT_REQUESTS"

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" | gron.py | grep -w libraries

title "Expecting 1 wheel to be uploaded"
trace print_workspace_imports | sort
trace jq .path "$OUT_REQUESTS" | grep import | sort

rm "$OUT_REQUESTS"
Loading
Loading