Use chunked transfer encoding for tar uploads#1118
Merged
mishushakov merged 2 commits intomainfrom Feb 6, 2026
Merged
Conversation
Replace Content-Length header with chunked transfer encoding to avoid buffering entire tar stream in memory. Simplify tarFileStreamUpload to directly return the stream from tarFileStream. Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
🦋 Changeset detectedLatest commit: 0ff7ad3 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
Just tested it and it works for me. Thanks @mishushakov! |
0697a0d to
884eb81
Compare
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Contributor
|
Works for me, thanks @mishushakov! |
jakubno
approved these changes
Feb 6, 2026
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Simplify tar upload to use chunked transfer encoding instead of calculating Content-Length upfront. This eliminates the need to buffer the entire compressed tar stream in memory.
Changes:
Note
Medium Risk
Changes the upload transport semantics (no
Content-Length, chunked streaming), which can affect compatibility with servers/proxies expecting a known length and could alter upload failure modes.Overview
Switches template tarball uploads to stream directly via chunked transfer encoding instead of precomputing a
Content-Length.tarFileStreamUploadis simplified to return a single tar/gzip stream (removing the extra pass that buffered/read the stream to compute size), anduploadFileno longer sets theContent-Lengthheader, relying on Node fetch streaming behavior. Adds a changeset to release this as ane2bpatch.Written by Cursor Bugbot for commit 0ff7ad3. This will update automatically on new commits. Configure here.