-
Notifications
You must be signed in to change notification settings - Fork 209
filer: switch workspace upload from import-file to /workspace/import #6149
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
Sankalp-Mittal
wants to merge
21
commits into
main
Choose a base branch
from
sankalp-mittal/workspace-import-migration
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
567abe6
initial filesystem changes
Sankalp-Mittal 4441110
filer: switch workspace upload from import-file to /workspace/import
Sankalp-Mittal 8e74cf7
update comments
Sankalp-Mittal 3768a81
Source upload size and rate limits from public docs
Sankalp-Mittal c1bcbfe
acceptance: migrate ai_runtime_task snapshot upload assertions
Sankalp-Mittal 976d9b8
filer: fix already-exists detection for errors without an error_code
Sankalp-Mittal c216932
filer: build the import form locally to keep workspace routing correct
Sankalp-Mittal 18880eb
filer: assert Write against a testserver instead of a mocked SDK client
Sankalp-Mittal 2f6113a
filer: condense the upload size-limit and conflict comments
Sankalp-Mittal 24bc85b
testserver: tighten format=AUTO handling in the import fake
Sankalp-Mittal 9289f4c
acceptance: parse fault.py arguments with argparse
Sankalp-Mittal 9ceb9bc
testserver: cover case-insensitive notebook extension detection
Sankalp-Mittal 9d8ebab
acceptance: re-aim run-submit-deps upload assertions at /workspace/im…
Sankalp-Mittal e605ae9
acceptance: pin ai_runtime_task snapshot inputs to LF
Sankalp-Mittal 5d3da9a
acceptance: keep update_file.py from rewriting line endings
Sankalp-Mittal 852256a
add a descriptive error on 500 upload failure
Sankalp-Mittal 8450a26
acceptance: regenerate upload goldens for the descriptive error
Sankalp-Mittal 48f5c53
acceptance: sort auto-migrate-empty-tfstate uploads deterministically
Sankalp-Mittal f718442
acceptance: regenerate sync-upload-edge-cases out.test.toml
Sankalp-Mittal 7d107b0
acceptance: match update_file.py search strings across CRLF
Sankalp-Mittal af88c8f
filer: upload via the SDK's Workspace.Upload
Sankalp-Mittal File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| Bundle file uploads now use the multipart `POST /api/2.0/workspace/import` endpoint instead of the deprecated `POST /api/2.0/workspace-files/import-file`. The new endpoint has a documented rate limit of 30 requests per second per workspace ([API rate limits](https://docs.databricks.com/aws/en/resources/limits)), higher than the limit that applied to the previous endpoint, and is ~1.5–2× faster for typical bundle deployments. | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
acceptance/bundle/ai_runtime_task/local_code_source/.gitattributes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| # These files are packaged verbatim into the .air_snapshots tarballs whose | ||
| # uploaded sizes the test asserts, so their line endings must stay \n on every | ||
| # OS — a Windows \r would change every recorded payload size. | ||
| src/.gitignore text eol=lf | ||
| src/command.sh text eol=lf | ||
| src/data/model.bin text eol=lf | ||
| src/train.py text eol=lf | ||
| src2/command.sh text eol=lf | ||
| src2/train.py text eol=lf |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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" | ||
| } | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks awesome! Did you validate this via some tests?