Repository navigation
CLDSRV-1092: Bump arsenal for placeholder delete stamps - #6404
francoisferrand wants to merge 3 commits into
Conversation
Lifecycle expiration of a current version on MongoDB went through a placeholder master delete that always carried the plain delete originOp, so it was notified as s3:ObjectRemoved:Delete. Pick the Arsenal fix (ARSN-669) that keeps the caller's stamps on the master writes. Issue: CLDSRV-1092
Hello francoisferrand,My role is to assist you with the merge of this Available options
Available commands
Status report is not available. |
Incorrect fix versionThe
Considering where you are trying to merge, I ignored possible hotfix versions and I expected to find:
Please check the |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files
@@ Coverage Diff @@
## development/9.5 #6404 +/- ##
===================================================
+ Coverage 90.53% 90.55% +0.02%
===================================================
Files 208 208
Lines 39289 39289
===================================================
+ Hits 35569 35580 +11
+ Misses 3720 3709 -11
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
Branch images were only tagged with the bare commit sha, which can't be compared with release versions when testing a fix. They now also get a dev pre-release tag of the next patch, e.g. 9.5.12-dev.gabc1234, like metadata does. The sha tags are kept, CI jobs pull images by sha. Images also get OCI labels and annotations, with the commit date as creation time, matching SOURCE_DATE_EPOCH. Issue: CLDSRV-1092
Issue: CLDSRV-1092
d19c8f0 to
65c156e
Compare
| MAJOR=$(echo "$LATEST_TAG" | cut -d. -f1) | ||
| MINOR=$(echo "$LATEST_TAG" | cut -d. -f2) | ||
| PATCH=$(echo "$LATEST_TAG" | cut -d. -f3) | ||
| echo "DEV_TAG=${MAJOR}.${MINOR}.$((PATCH + 1))-dev.g${GITHUB_SHA::7}" >> "$GITHUB_ENV" |
There was a problem hiding this comment.
The PR description says the dev tag has a commit count (9.5.12-dev.3.sha-abc1234), but this builds X.Y.Z-dev.g<sha> with no count. Without the count, semver compares the prerelease part as text, so two dev builds of the same patch sort by sha, not by age. Add the count, or fix the description.
| echo "DEV_TAG=${MAJOR}.${MINOR}.$((PATCH + 1))-dev.g${GITHUB_SHA::7}" >> "$GITHUB_ENV" | |
| COUNT=$(git rev-list --count "${LATEST_TAG}..HEAD") | |
| echo "DEV_TAG=${MAJOR}.${MINOR}.$((PATCH + 1))-dev.${COUNT}.sha-${GITHUB_SHA::7}" >> "$GITHUB_ENV" |
Incorrect fix versionThe
Considering where you are trying to merge, I ignored possible hotfix versions and I expected to find:
Please check the |
On MongoDB, deleting the current version goes through a placeholder master, and the master writes didn't keep the caller's stamps. A lifecycle expiration of a current null version (versioning-suspended bucket) was therefore notified as
s3:ObjectRemoved:Deleteinstead ofs3:LifecycleExpiration:Delete. Backbeat also couldn't tell the placeholder delete apart from the version delete, so it sent duplicate notifications and cold GC requests.This bumps Arsenal to 8.6.7, which includes the fix (ARSN-669, scality/Arsenal#2754). Bumping Arsenal also brought in newer
@smithyversions; the lockfile is deduplicated so each package keeps a single version.Branch images also get a dev version tag now, like backbeat and metadata: next patch after the last release, plus the commit count and short sha (e.g.
9.5.12-dev.3.sha-abc1234). That makes them easy to compare with release versions when testing a fix. The sha tags are still pushed, since CI jobs pull images by sha. Dashboards get the same tag, and images get OCI labels and annotations with the commit date (matchingSOURCE_DATE_EPOCH).Issue: CLDSRV-1092