-
Notifications
You must be signed in to change notification settings - Fork 73
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
Replace upload mechanism to use a batched mutation with a new API #888
Merged
ghengeveld
merged 19 commits into
main
from
ghengeveld/ap-4034-batch-file-upload-requests-to-handle-thousands-of-files
Jan 16, 2024
Merged
Replace upload mechanism to use a batched mutation with a new API #888
ghengeveld
merged 19 commits into
main
from
ghengeveld/ap-4034-batch-file-upload-requests-to-handle-thousands-of-files
Jan 16, 2024
Conversation
This file contains 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
…uploadbuild-mutation' into ghengeveld/ap-3971-cli-pass-content-hashes-to-uploadbuild-mutation
…o-uploadbuild-mutation
…e finishing upload task
JonathanKolnik
approved these changes
Jan 12, 2024
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.
LGTM
andrewortwein
approved these changes
Jan 12, 2024
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.
👍🏻👍🏻
…s-to-handle-thousands-of-files
…-thousands-of-files' into ghengeveld/ap-3912-index-update-cli-to-wait-for-copy-job-using-sentinel-file
ghengeveld
changed the title
Reintroduce
Replace upload mechanism to use a batched mutation with a more flexible API and enforce some constraints
Jan 16, 2024
uploadBuild
mutation, running in batches
ghengeveld
changed the title
Replace upload mechanism to use a batched mutation with a more flexible API and enforce some constraints
Replace upload mechanism to use a batched mutation with a more flexible API
Jan 16, 2024
ghengeveld
changed the title
Replace upload mechanism to use a batched mutation with a more flexible API
Replace upload mechanism to use a batched mutation with a new API
Jan 16, 2024
…-cli-to-wait-for-copy-job-using-sentinel-file Retrieve `sentinelUrls` from `uploadBuild` and wait for all of them before finishing upload task
ghengeveld
deleted the
ghengeveld/ap-4034-batch-file-upload-requests-to-handle-thousands-of-files
branch
January 16, 2024 12:28
🚀 PR was released in |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
minor
Auto: Increment the minor version when merged
released
Verdict: This issue/pull request has been released
skip-release
Auto: Preserve the current version when merged
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.
This reintroduces the
uploadBuild
mutation after it was reverted. It's now limited to sending 1000 files at a time in order to prevent issues with request/response payload size and/or memory limits. To accommodate that constraint, files are now batched in chunks of 1000 anduploadBuild
runs in a loop.Because S3 does not support uploading empty files directly, those are skipped and a warning is printed. The
zip
option can be used to work around this limitation.The new
uploadBuild
mutation provides a more flexible API so it can support file deduplication.Depends on https://github.com/chromaui/chromatic/pull/8134
📦 Published PR as canary version:
10.2.3--canary.888.7540838602.0
✨ Test out this PR locally via:
npm install chromatic@10.2.3--canary.888.7540838602.0 # or yarn add chromatic@10.2.3--canary.888.7540838602.0