fix(release): release from main's tip and retry when main moves #103

Merged
cjournois merged 1 commit from fix/release-from-main-tip into main 2026-11-10 08:59:32 +00:00
Collaborator

A scheduled release checks out the commit main had when the schedule fired. project/tabula run 1166 fired at 10:00:18 on 02fca0c, Renovate merged 8f596cc at 10:01, and the release push was rejected as non-fast-forward. Every rerun of 1166 is pinned to the same stale commit, so the job stays red.

release.sh now fetches origin/main and releases from its tip. If the atomic push is rejected and main moved, it drops its local tags and releases again from the new tip, up to RELEASE_ATTEMPTS (3). Any other push failure still fails at once.

Tests: one for a merge that lands before the run, one for a merge that lands between fetch and push, and one for a plain push failure (no retry). The old "no tag on the remote" test is replaced by these.

Session: 84a475c7-7be2-4b4a-924f-6a98686ace73

A scheduled release checks out the commit main had when the schedule fired. project/tabula run 1166 fired at 10:00:18 on `02fca0c`, Renovate merged `8f596cc` at 10:01, and the release push was rejected as non-fast-forward. Every rerun of 1166 is pinned to the same stale commit, so the job stays red. `release.sh` now fetches `origin/main` and releases from its tip. If the atomic push is rejected and main moved, it drops its local tags and releases again from the new tip, up to `RELEASE_ATTEMPTS` (3). Any other push failure still fails at once. Tests: one for a merge that lands before the run, one for a merge that lands between fetch and push, and one for a plain push failure (no retry). The old "no tag on the remote" test is replaced by these. Session: 84a475c7-7be2-4b4a-924f-6a98686ace73
fix(release): release from main's tip and retry when main moves
All checks were successful
ci: reusable-pipeline / CI Pipeline (pull_request) Successful in 53s
ci: reusable-pipeline / CI Pipeline (push) Successful in 48s
f627915875
A scheduled run checks out the commit main had when it fired. A merge
landing before the push made the release commit non-fast-forward and
the run could never pass again (tabula run 1166). Fetch main's tip
first; on a rejected push with main moved, drop the tags and redo.

Session: 84a475c7-7be2-4b4a-924f-6a98686ace73
cjournois deleted branch fix/release-from-main-tip 2026-11-10 08:59:32 +00:00
Sign in to join this conversation.
No reviewers
No labels
needs-human
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
cjournois/reusable-pipeline!103
No description provided.