Fix S3 PutObject missing Content-Length header and add E2E tests#40
Open
Fix S3 PutObject missing Content-Length header and add E2E tests#40
Conversation
Co-authored-by: moshloop <1489660+moshloop@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix S3 Put error in artifact saving
Fix S3 PutObject missing Content-Length header
Feb 20, 2026
Member
|
@copilot add E2E integration tests via localstack |
Co-authored-by: moshloop <1489660+moshloop@users.noreply.github.com>
Contributor
Author
Added comprehensive E2E integration tests with LocalStack in commit 9339f3a. What's included:
The tests specifically validate the Content-Length fix works correctly with io.Reader chains as used in the artifact system. |
Co-authored-by: moshloop <1489660+moshloop@users.noreply.github.com>
Copilot
AI
changed the title
Fix S3 PutObject missing Content-Length header
Fix S3 PutObject missing Content-Length header and add E2E tests
Feb 20, 2026
Member
|
@copilot fix failing github actions |
Co-authored-by: moshloop <1489660+moshloop@users.noreply.github.com>
auto-merge was automatically disabled
February 20, 2026 14:35
Head branch was pushed to by a user without write access
Contributor
Author
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.
Fix S3 PutObject Missing Content-Length Header
Summary
Fixed S3 PutObject error "MissingContentLength: You must provide the Content-Length HTTP header" and added comprehensive E2E tests with LocalStack to validate the fix.
Bug Fix
fs/s3.goWrite method to buffer content and explicitly set ContentLengthE2E Tests Added
s3_e2e_test.go) with 4 test scenarios testing TeeReader chainsGitHub Actions Fix
Original prompt
🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.