Repository navigation
ci(release): retry child-run adoption through read-after-write lag - #120477
Merged
Merged
Conversation
steipete
marked this pull request as ready for review
August 8, 2026 05:00
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Aug 9, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What Problem This Solves
Full Release Validation run 31236823378 lost its plugin-prerelease child to a second adoption race:
gh workflow runreturned the new run's URL, the immediateGET /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
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 passbash -n;git diff --checkclean.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"..github/workflows/full-release-validation.yml+ one test-string update.