Skip to content

Wait for queue validation refs after automated admission - #3

Merged
IanHollow merged 1 commit into
mainfrom
codex/queue-ref-readiness
Sep 8, 2026
Merged

IanHollow merged 1 commit into
mainfrom
codex/queue-ref-readiness

Conversation

@IanHollow

Copy link
Copy Markdown
Member

A passing Dependabot PR could enter the queue before GitHub published its temporary validation ref. The reconciler read refs once and exited, while GITHUB_TOKEN admission suppressed native merge-group events. Framework PR41 then waited without validation until its queue timeout because scheduled reconciliation was delayed.

Track whether a trusted bot PR is queued and wait up to 55 seconds for the live front entry's ref. Verify the live head through GraphQL so an old ref cannot satisfy readiness for a newer group. Stop promptly if the queue disappears. Keep exact-commit dispatch, required-check verification and the refusal to repeatedly re-admit rejected heads.

Validation: a deterministic API regression fails before the fix. All 30 queue tests pass, including delayed ref visibility, a lingering old ref, cancellation, bounded waiting and empty-queue behavior. Actionlint, pedantic Zizmor, YAML and Ruff checks pass. The live GraphQL read was checked against GitHub. Scheduled reconciliation remains a backup for delays beyond the bound.

Signed-off-by: Ian Holloway <72767437+IanHollow@users.noreply.github.com>
@IanHollow
IanHollow enabled auto-merge September 8, 2026 03:00
@IanHollow
IanHollow added this pull request to the merge queue Sep 8, 2026
Merged via the queue into main with commit adabd33 Sep 8, 2026
1 check passed
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