Repository navigation
Use S3 conditional writes to prevent overwriting published artifacts - #11532
Merged
Merged
Conversation
sbin/upload-artifacts now uploads via `aws s3api put-object --if-none-match "*"`
instead of `aws s3 cp`, and the release workflow's copy_object passes
IfNoneMatch="*". Both fail loudly if an object already exists at the target key
instead of silently overwriting it. upload-artifacts also propagates a rejected
upload to the job exit status, which the `{ ...; } || ...` construct swallowed.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #11532 +/- ##
==========================================
- Coverage 83.99% 83.52% -0.48%
==========================================
Files 635 664 +29
Lines 83953 86418 +2465
Branches 38902 40278 +1376
==========================================
+ Hits 70515 72178 +1663
- Misses 13080 13867 +787
- Partials 358 373 +15
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
alonre24
approved these changes
Sep 28, 2026
Contributor
|
🤖 Auto-backport summary
(PR #11532, Workflow run · Retry unfinished targets with |
This was referenced Sep 28, 2026
oshadmi
pushed a commit
that referenced
this pull request
Nov 29, 2026
…ifacts (#11596) Use S3 conditional writes to prevent overwriting published artifacts (#11532) sbin/upload-artifacts now uploads via `aws s3api put-object --if-none-match "*"` instead of `aws s3 cp`, and the release workflow's copy_object passes IfNoneMatch="*". Both fail loudly if an object already exists at the target key instead of silently overwriting it. upload-artifacts also propagates a rejected upload to the job exit status, which the `{ ...; } || ...` construct swallowed. (cherry picked from commit 046c693) Co-authored-by: Angel Yanev <[email protected]>
oshadmi
pushed a commit
that referenced
this pull request
Nov 29, 2026
…facts (#11592) Use S3 conditional writes to prevent overwriting published artifacts (#11532) sbin/upload-artifacts now uploads via `aws s3api put-object --if-none-match "*"` instead of `aws s3 cp`, and the release workflow's copy_object passes IfNoneMatch="*". Both fail loudly if an object already exists at the target key instead of silently overwriting it. upload-artifacts also propagates a rejected upload to the job exit status, which the `{ ...; } || ...` construct swallowed. (cherry picked from commit 046c693) Co-authored-by: Angel Yanev <[email protected]>
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.



Describe the changes in the pull request
aws s3 cp) and the release copy (copy_object) silently overwrite whatever is already at the target key ins3://redismodules.aws s3api put-object --if-none-match "*"and copy withIfNoneMatch="*", so S3 rejects the write if the object exists.Which additional issues this PR fixes
Main objects this PR modified
sbin/upload-artifacts— conditional put, rejected uploads fail the jobevent-release.ymlset-artifacts — conditional copyMark if applicable
Release Notes