Skip to content

ci(release): retry child-run adoption through read-after-write lag - #120477

Merged
steipete merged 1 commit into
mainfrom
ci/fix-adoption-read-after-write
Aug 8, 2026
Merged

steipete merged 1 commit into
mainfrom
ci/fix-adoption-read-after-write

Conversation

@steipete

@steipete steipete commented Aug 8, 2026

Copy link
Copy Markdown
Contributor

What Problem This Solves

Full Release Validation run 31236823378 lost its plugin-prerelease child to a second adoption race: gh workflow run returned the new run's URL, the immediate GET /actions/runs/<id> answered HTTP 404 (GitHub materializes dispatched runs asynchronously), and the error payload failed the identity check → hard "Refusing to adopt unvalidated" refusal. The first fix (#120427) only covered the display-title race, not run-visibility lag.

Why This Change Was Made

The adoption loop now distinguishes three states: fetch failed or payload isn't the requested run object (no matching .id) → retryable, bounded by the same 12×5s loop; a readable run whose workflow_id/head_branch/event mismatch → immediate refusal, unchanged; title not yet templated → retry as before. The exhaustion diagnostic covers both lag classes and dumps whatever payload was last seen.

User Impact

Release validation no longer dies on GitHub's read-after-write lag; wrong-identity runs are still rejected instantly.

Evidence

  • All 168 dispatch-workflow tests pass (test/scripts/package-acceptance-workflow.test.ts), including the wrong-title refusal path updated for the new exhaustion wording.
  • node scripts/check-workflows.mjs (zizmor) passes; all five extracted job scripts pass bash -n; git diff --check clean.
  • Codex autoreview (gpt-5.6-sol, high): clean (0.98) — "retries transient read-after-write failures … while continuing to reject readable runs whose identity does not match".
  • Harness-only: .github/workflows/full-release-validation.yml + one test-string update.

@steipete
steipete marked this pull request as ready for review August 8, 2026 05:00
@steipete
steipete merged commit c98bd22 into main Aug 8, 2026
67 of 68 checks passed
@steipete
steipete deleted the ci/fix-adoption-read-after-write branch August 8, 2026 05:00
@openclaw-barnacle openclaw-barnacle Bot added the maintainer Maintainer-authored PR label Aug 8, 2026
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer Maintainer-authored PR size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant