Repository navigation
[2.6] Use S3 conditional writes to prevent overwriting published artifacts - #11600
Conversation
…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)
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## 2.6 #11600 +/- ##
==========================================
- Coverage 86.36% 86.33% -0.04%
==========================================
Files 187 187
Lines 31677 31677
==========================================
- Hits 27359 27347 -12
- Misses 4318 4330 +12
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:
|
|
@AngelYanev this backport had cherry-pick conflicts that the backport agent resolved automatically. Could you please review the conflict resolution (see the conflict log in the PR description), and if everything looks OK, approve it? Auto-merge is enabled, so your approval will queue it for merge. Note: besides porting the conditional write, the agent also changed |



Backport of #11532 to
2.6.Original PR
046c693486a4a3c157a0f685cd299e4c448f98b9Cherry-pick result
Conflict Log
sbin/upload-artifacts.github/workflows/event-release.ymlRelease notes
🤖 Generated by the auto-backport workflow.