Skip to content

ci: poll scratch-branch head in smoke verify steps to absorb replication lag - #97

Merged
c-vigo merged 1 commit into
devfrom
bugfix/96-smoke-verify-poll-branch-head
Jul 15, 2026
Merged

c-vigo merged 1 commit into
devfrom
bugfix/96-smoke-verify-poll-branch-head

Conversation

@c-vigo

@c-vigo c-vigo commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

Summary

Fixes the read-after-write race in both smoke workflows' verify steps (#96).

The e2e-smoke and published-tag-smoke "branch head points at the reported commit" checks read the scratch-branch head via gh api .../commits/${SCRATCH_BRANCH} immediately after the action's updateRef returns. GitHub's replication lag can serve the stale pre-commit head, so the check fails even though the action committed correctly — exactly what happened in run 29433505922, which an unchanged re-dispatch then passed.

Change

Both verify steps now poll the branch head for the reported commit-sha with a bounded retry (up to 5 attempts, 3s apart) before declaring a mismatch. The hard failure after the retry budget is preserved, so a genuine no-op (the #58 class of bug this assertion exists to catch) still fails the job.

Steps 1 (empty commit-sha), 3 (signature), and 4 (content round-trip) are unchanged.

Testing

  • prek run --all-files green (yamllint, shellcheck, etc.).
  • The retry path exercises on the next PR/tag smoke run.

Refs: #96

…ion lag

The e2e-smoke and published-tag-smoke verify steps read the scratch-branch
head via the REST API immediately after the action's updateRef returns, and
can observe GitHub's stale pre-commit head (read-after-write replication lag).
The action had committed correctly, but the "branch head == reported commit"
assertion failed spuriously — as seen in run 29433505922 (#96), which an
unchanged re-dispatch then passed.

Both verify steps now poll the branch head for the reported commit-sha with a
bounded retry (up to 5 attempts, 3s apart) before declaring a mismatch. The
hard failure after the retry budget is kept, so a genuine no-op (the #58 class
of bug this check exists for) is still caught.

Refs: #96
@c-vigo
c-vigo merged commit 5cc5801 into dev Jul 15, 2026
13 checks passed
@c-vigo
c-vigo deleted the bugfix/96-smoke-verify-poll-branch-head branch July 15, 2026 17:19
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