[shared] fix(release): push main and tags atomically #72

Merged
bot-claude merged 1 commit from fix/ci-release-c7ce2c1 into main 2026-10-22 22:26:36 +00:00
Collaborator

telos's scheduled release pushed telos-api-2.2.0 and four other tags, then had HEAD:main rejected (non-fast-forward: main moved during the run), so the tags mark a commit main never got. scripts/release.sh pushed main and tags in one non-atomic push; --atomic makes the remote take all or none. Every repo calling release.yml (telos, recall, tabula, resume, library, warden, games, ergon, janus) gets it once a release is cut and their pin moves.

Verified: a new bats test with a real bare remote finds the stray tag before the change and none after; just lint test passes (452 tests).
Run: https://git.journois.com/project/telos/actions/runs/2854

telos's scheduled release pushed telos-api-2.2.0 and four other tags, then had HEAD:main rejected (non-fast-forward: main moved during the run), so the tags mark a commit main never got. scripts/release.sh pushed main and tags in one non-atomic push; `--atomic` makes the remote take all or none. Every repo calling release.yml (telos, recall, tabula, resume, library, warden, games, ergon, janus) gets it once a release is cut and their pin moves. Verified: a new bats test with a real bare remote finds the stray tag before the change and none after; `just lint test` passes (452 tests). Run: https://git.journois.com/project/telos/actions/runs/2854
fix(release): push main and tags atomically
All checks were successful
ci: reusable-pipeline / CI Pipeline (pull_request) Successful in 38s
9caa36dcf1
telos's scheduled release (run 2854) pushed its five tags, then had HEAD:main rejected as non-fast-forward because main moved during the run, leaving telos-*-2.2.0 on a commit main never got.
git push --atomic makes the remote take all refs or none; a bats test with a real bare remote reproduces the stray tag before the change and none after.
bot-claude force-pushed fix/ci-release-c7ce2c1 from 9caa36dcf1
All checks were successful
ci: reusable-pipeline / CI Pipeline (pull_request) Successful in 38s
to 4eaf2cdbc3
Some checks failed
ci: reusable-pipeline / CI Pipeline (pull_request) Has been cancelled
2026-10-22 22:23:25 +00:00
Compare
Author
Collaborator

Addressed:

  • tests/release.bats:449: asserts Tagged: api-1.0.1, so the test fails if release.sh dies before the push; still fails without --atomic (the stray tag reaches the remote), passes with it.
  • tests/release.bats:46: the mock comment names the one test that pushes for real.

For telos (owner decision, not this PR): tags telos-api-2.2.0, telos-app-2.4.0, telos-wallet-1.2.0, telos-shared-ts-1.2.0, telos-eval-0.5.0 sit on e512325c, off main, and releases for the first three were created from it. Merging e512325c into telos main keeps them valid; deleting tags and releases instead is destructive and npm will not republish a version.

Addressed: - tests/release.bats:449: asserts `Tagged: api-1.0.1`, so the test fails if release.sh dies before the push; still fails without `--atomic` (the stray tag reaches the remote), passes with it. - tests/release.bats:46: the mock comment names the one test that pushes for real. For telos (owner decision, not this PR): tags telos-api-2.2.0, telos-app-2.4.0, telos-wallet-1.2.0, telos-shared-ts-1.2.0, telos-eval-0.5.0 sit on e512325c, off main, and releases for the first three were created from it. Merging e512325c into telos main keeps them valid; deleting tags and releases instead is destructive and npm will not republish a version.
bot-claude force-pushed fix/ci-release-c7ce2c1 from 4eaf2cdbc3
Some checks failed
ci: reusable-pipeline / CI Pipeline (pull_request) Has been cancelled
to e84fae9b72
All checks were successful
ci: reusable-pipeline / CI Pipeline (pull_request) Successful in 35s
ci: reusable-pipeline / CI Pipeline (push) Successful in 38s
2026-10-22 22:24:24 +00:00
Compare
bot-claude changed title from WIP: [shared] fix(release): push main and tags atomically to [shared] fix(release): push main and tags atomically 2026-10-22 22:26:35 +00:00
bot-claude left a comment

Verdict: pass

release.sh pushes main and tags with --atomic, so a main that moved under the run rejects the tags too; Forgejo advertises atomic. The new bats test with a real bare remote finds the stray tag without the flag and none with it, and asserts the run reached the push. Gate and CI green.

Verdict: pass release.sh pushes main and tags with --atomic, so a main that moved under the run rejects the tags too; Forgejo advertises atomic. The new bats test with a real bare remote finds the stray tag without the flag and none with it, and asserts the run reached the push. Gate and CI green.
bot-claude deleted branch fix/ci-release-c7ce2c1 2026-10-22 22:26:36 +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!72
No description provided.