Repository navigation
fix(release): dispatch validation through a client-pushed target ref - #120613
Merged
Merged
Conversation
steipete
marked this pull request as ready for review
August 8, 2026 15:22
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
scripts/full-release-validation-at-sha.mjsfails when--shatargets a GitHub-API-created squash-merge commit on a release branch: both the script's local git preflight and everyactions/checkout ref=<sha>in the workflow die withupload-pack: not our ref <sha>— persistently, even when the SHA is the advertised branch tip. Client-pushed SHAs fetch fine; API-created squash commits (8ff1724, 0cd3075, 06ceff1) consistently refuse. This silently consumed three dispatch attempts during the 2026.8.1-beta.1 push (runner-side failures: run 31256980937); ref-name dispatch (run 31257301355) went fully green and proved the mechanism.Why This Change Was Made
The script now pushes the exact target SHA to a script-owned temporary ref (
validation/target-<sha12>-<ts>) and dispatches that ref name, preserving the canonicaltarget_context_ref. Exact-SHA pinning is kept (the temp ref is immutable and script-owned) and the workflow's seven internal bare-SHA checkouts become safe because the client-pushed ref advertises that exact object for the run's lifetime. Both temporary refs (workflow branch + target ref) share the existing cleanup and--keep-branchsemantics; refs are retained after failed runs for rerun/diagnosis. Ergonomics hardened per the script-wrapper rule: the parent run URL prints to stdout before any waiting, and every fatal path ends with a single reason-bearingFAILED (exit 1)stderr trailer.Sibling audit:
scripts/release-candidate-checklist.mjs:1566is a separate bare-SHA dispatcher with the same latent exposure — flagged as follow-up, not changed here.User Impact
Release operators can dispatch validation for any candidate SHA — including squash-merged release-branch tips — without silent fetch failures.
Evidence
--keep-branch, loud-failure trailer, and stdout run URL.pnpm tsgo:core+tsgo:core:test, dead-export scans, script-declaration contracts (254 matched), formatting,git diff --check: all green.gpt-5.6-sol, high): clean (0.98).