Skip to content

fix(release): retry the tag verify read after createRef - #11

Merged
chhoumann merged 1 commit into
mainfrom
fix/tag-verify-replication-race
Jul 11, 2026
Merged

fix(release): retry the tag verify read after createRef#11
chhoumann merged 1 commit into
mainfrom
fix/tag-verify-replication-race

Conversation

@chhoumann

Copy link
Copy Markdown
Owner

The tag-registration step creates refs/tags/ and immediately re-reads it to verify the SHA. That read-after-write can lag GitHub's replication: 2 of the first 3 production releases (quickadd 2.19.1, MetaEdit 1.10.2) failed with 'Tag X points to null, expected ' while the tag already existed at exactly the expected SHA - both recovered on a plain rerun.

This bounds the verify with a retry loop (10 attempts, 2s backoff, ~20s ceiling) mirroring the existing waitForDraftReleaseTag pattern further down the file. The mismatch error is unchanged when the tag resolves to a genuinely wrong SHA.

The read-after-write of refs/tags/<version> can lag GitHub's replication;
2 of the first 3 production releases failed with 'Tag X points to null'
despite the tag existing at the expected SHA moments later. Retry the
verify up to 10 times with a 2s backoff before failing. Reruns recovered
both incidents, confirming the create itself succeeds.
@chhoumann
chhoumann merged commit 8471ad7 into main Jul 11, 2026
1 check passed
@chhoumann
chhoumann deleted the fix/tag-verify-replication-race branch July 11, 2026 15:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant