Repository navigation
fix(ci): release validation ignores GitHub runner override - #136434
Conversation
Resolve release branch, tag, correction, and manual default-branch identities through the authenticated commit API instead of anonymous Git transport. Keep correction credentials in a trusted producer before candidate execution and pass only the resolved commit to the manifest and cache consumers. Cover failed anonymous transport, exact identity and ancestry admission, annotated tags, API errors, and candidate-before-token ordering.
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed September 2, 2026, 3:40 PM ET / 19:40 UTC. ClawSweeper reviewWhat this changesThe PR routes release-validation CI through GitHub-hosted runners when the existing backend override is set, replaces anonymous release-ref lookups with authenticated GitHub API reads, and updates related workflow tests. Regression provenancePossible regression — probable (reviewed change; failure trace). No predecessor PR is attributed. Merge readinessNo introduced correctness defect was found in the reviewed workflow changes. This maintainer-labelled PR should remain open for exact-head CI completion and release-workflow maintainer sign-off. Priority: P1 Review scores
Verification
How this fits togetherRelease workflows resolve a target revision and choose runner infrastructure before dispatching package, QA, performance, and release checks. The changed layer controls trusted ref validation and where those checks execute. flowchart LR
A[Release request] --> B[Target reference validation]
B --> C[Runner backend selection]
C --> D[Release and QA jobs]
D --> E[Evidence collection]
E --> F[Release decision]
Decision needed
Why: The PR changes release automation placement and trusted reference resolution; the remaining gate is an operator-owned acceptance decision rather than a mechanical code repair. Before merge
Agent review detailsSecurityNone. PR surfaceTests +424, Docs +8, Config +12, Other +1. Total +445 across 19 files. View PR surface stats
Review metrics
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep the authenticated workflow-only ref-resolution boundary and runner override, then land only after the exact head has green required CI and a release-workflow owner accepts the infrastructure capacity trade-off. Do we have a high-confidence way to reproduce the issue? Yes, source-reproducible: current main still hard-codes the affected OpenWebUI job to Blacksmith, while the PR adds the existing backend override at that decision point. I did not independently execute GitHub Actions in this read-only review. Is this the best way to solve the issue? Yes: applying the existing backend override at each release workflow runner-selection owner, while resolving protected refs in token-scoped trusted steps, is preferable to passing credentials into candidate-owned code or adding a parallel override. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against f48206d68b0b. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (4 earlier review cycles)
|
Combine authenticated release ref checks with checkout-owned comparison base prefetch, complete CLI output capture, and focused fixture repairs. Accept the current disabled Codex owner diagnostic in the uninstall proof without weakening its nonzero exit or plugin-removal checks. Includes the release ref work from #136372 in #136434. Reuses only the CI owner changes from29bf3e8c9f8aba323ad92a63571588e92dc0bd53 and the CLI fixture cleanup from667ce2bf86157ca7e2414efbe6a203da77e3afb6. Co-authored-by: Masato Hoshino <[email protected]> Co-authored-by: Ayaan Zaidi <[email protected]>
Integrate the pinned main baseline required to restore PR CI attachment. Keep its canonical CLI process-test split and exact queued-message recovery assertions unchanged, replacing the duplicate release-branch test fixes. The full resulting PR delta passed independent P0 review and workflow checks; the original 16-file Gateway order and 11 affected CLI cases pass. Release Code46dc remains unchanged.
|
Release-owner disposition: exact-head CI for The latest ClawSweeper review has no actionable findings. Its remaining rank-up items are satisfied by exact-head CI and the operator's explicit acceptance of working runner routing. The trusted-SHA handoff's small tooling increase is necessary to preserve immutable release provenance. Current-main merge-tree validation is conflict-free; canonical prepare-run passed hosted gates without changing the reviewed head. No release runtime changes are included in this tooling landing. |
|
Merged via squash.
|
…f fails When the built-CLI SQLite lifecycle proof cannot inspect the bundled OpenAI plugin, the Gateway has not started yet, so the failure's "Gateway diagnostics" block is always empty and CI readers learn nothing (main runs 33636023408 and 33642826781, PR run 33638802946 on 2026-09-02 all reported an empty block). Carry the inspect command's exit code, signal, and stdout/stderr tails in the thrown error instead. Also drop the comment claiming a log-tail bound applies to command results: #136434 made `cli()` return complete stdout and fail loudly on overflow, so the proof inspects one plugin only because that is the provider it exercises. Residual of the original #136478 change after #136434 landed the shared command-capture repair on main.
…f fails (#136478) When the built-CLI SQLite lifecycle proof cannot inspect the bundled OpenAI plugin, the Gateway has not started yet, so the failure's "Gateway diagnostics" block is always empty and CI readers learn nothing (main runs 33636023408 and 33642826781, PR run 33638802946 on 2026-09-02 all reported an empty block). Carry the inspect command's exit code, signal, and stdout/stderr tails in the thrown error instead. Also drop the comment claiming a log-tail bound applies to command results: #136434 made `cli()` return complete stdout and fail loudly on overflow, so the proof inspects one plugin only because that is the provider it exercises. Residual of the original #136478 change after #136434 landed the shared command-capture repair on main.
Apply the canonical complete CLI stdout and bounded diagnostic capture from main commit a8fe1a5 (#136434), preserving this branch's Windows failure diagnostics. Keep command overflow explicit instead of returning successful but truncated plugin-list JSON. Adopt the Android admission/publication fixture correction from main commit 65e5b2e (#136335), reusing its bounded published-outbox condition without changing durability or deadlines. Proof: the unchanged built-CLI SQLite lifecycle fails before the capture repair and passes afterward; all 40 helper tests and changed gates pass. Android branch/outbox suites pass 244 cases across both variants. Fresh isolated P0 review has no actionable findings. Runtime and dependency graph are unchanged; exact-head CI and separate live-proof gates still apply. Co-authored-by: Masato Hoshino <[email protected]> Co-authored-by: Ayaan Zaidi <[email protected]>
…136434) * fix(ci): authenticate release reference resolution Resolve release branch, tag, correction, and manual default-branch identities through the authenticated commit API instead of anonymous Git transport. Keep correction credentials in a trusted producer before candidate execution and pass only the resolved commit to the manifest and cache consumers. Cover failed anonymous transport, exact identity and ancestry admission, annotated tags, API errors, and candidate-before-token ordering. * test(ci): scope correction shim to POSIX hosts * fix(ci): honor GitHub runner override in release validation * test(ci): repair release validation output and ref fixtures * test(ci): repair hosted runner verification fixtures --------- Co-authored-by: Masato Hoshino <[email protected]> Co-authored-by: Ayaan Zaidi <[email protected]>
…f fails (openclaw#136478) When the built-CLI SQLite lifecycle proof cannot inspect the bundled OpenAI plugin, the Gateway has not started yet, so the failure's "Gateway diagnostics" block is always empty and CI readers learn nothing (main runs 33636023408 and 33642826781, PR run 33638802946 on 2026-09-02 all reported an empty block). Carry the inspect command's exit code, signal, and stdout/stderr tails in the thrown error instead. Also drop the comment claiming a log-tail bound applies to command results: openclaw#136434 made `cli()` return complete stdout and fail loudly on overflow, so the proof inspects one plugin only because that is the provider it exercises. Residual of the original openclaw#136478 change after openclaw#136434 landed the shared command-capture repair on main.
What Problem This Solves
Makes the existing GitHub-runner override effective across required release workflows and consolidates the release-ref repair from #136372 into this one release-tooling change.
The original run recorded runner disconnections and a pre-commit dependency-fetch failure. Those symptoms do not prove a single Blacksmith root cause; the operator explicitly requested working GitHub-hosted failover. Subsequent validation exposed unauthenticated release-ref reads, late comparison-base fetches, and test fixtures that could truncate or misinterpret valid output.
Why This Change Was Made
OPENCLAW_CI_RUNNER_BACKEND=githubin the 27 affected job families across seven release workflows. Preserve existing explicit hosted inputs and default labels; do not change capacity limits, permissions, timeouts, required checks, or coverage.Two real conflicts with current
mainprevented pull-request CI from attaching. Both were resolved with the exact canonical-main test versions: the CLI process/health suite split and the stronger WebChat queued-identity/content assertions. The earlier duplicate CLI fixture and queue-test alternatives are no longer part of this PR's delta. This refresh does not change the frozen release Code SHA.User Impact
Release maintainers can use the requested hosted-runner path without bypassing verification. There are no application runtime, public API, configuration, dependency, or release-version changes in this PR.
Relative to the refreshed main baseline, application runtime delta is zero. Workflow/tooling changes are +81/-68; test support is +30/-51; tests are +706/-261; documentation is +11/-3. Added workflow lines protect authenticated release identity, and the one harness line recognizes the existing runtime diagnostic.
Evidence
The original routing cases fail on the old expressions and pass all 216 backend/input combinations after repair. Parsed workflow objects are unchanged except for the intended routing expressions and documented release-ref repair. The consolidated pre-refresh tree passed 938 owner tests with 67 natural macOS platform skips, all 11 affected real CLI process cases, typed lint/max-lines, formatting, workflow/security/generator checks, and the canonical changed-file gate. These are scoped checks, not a claim of Linux coverage for skipped cases or final release acceptance.
The GitHub-hosted OpenWebUI diagnostic completed successfully on its first attempt: all four executed jobs used GitHub Ubuntu 24.04; the canonical real-provider chat check passed in 121 seconds, with a 745 MiB memory peak and 138.3% CPU peak. It is immutable readiness evidence from tooling
b6b06a2e2e48cc8bf63b7b03055e1cd48be8e5c9and Coded3deb20a78e3c4c10997d9df022500e6799f52fa, not full validation of a newer candidate. The separate cleanup-smoke lane was not selected; the scenario cleanup trap completed.The repaired canonical Codex npm-pack Docker scenario also passed end to end with those exact existing D3 packages: managed Codex 0.152.1 inference, three OpenClaw turns, tool/write follow-through, uninstall, and the expected post-uninstall agent exit 1. All four responses used
openai/gpt-5.4without fallback; actual npm-origin install integrity matched the package. The scenario and launcher exited 0, and container, temporary state, and credential-window cleanup were verified. This was Linux x64 emulation with Node 24.19.0/npm 11.17.0, not npm 12, default-runtime selection, final-candidate FRV, or registry-provenance qualification.Independent managed Codex review found no accepted P0 findings on the consolidation and on the full refreshed PR delta. The refreshed workflow check and exact original-order Gateway cohort passed (30 tests, one natural macOS loopback skip); the 11 selected CLI cases passed across both canonical test files. Exact-head Actions CI for 0c8b6929c63d0ade41901daf95de647c5a21e6b2 is now running. Its completion and the repository-native prepare/merge flow remain required before landing; full Code/Release validation and publication verification remain required afterward.
Review disposition
The latest nested-runner finding confuses the workflow's two event contracts. At the reviewed head,
workflow_callexplicitly defaults the hosted input to true, while manualworkflow_dispatchdefaults it to false. Both release callers therefore inherit true, and both deeper repository-E2E calls explicitly forward it. This follows the declared reusable-workflow input default contract.Read-only evaluation of the actual expressions verifies both callers under unset, Blacksmith, hybrid, and GitHub backend values: all 17 direct Linux placements select Ubuntu 24.04, and the deeper repository-E2E build/test jobs do too. Passing only
vars.OPENCLAW_CI_RUNNER_BACKEND == 'github'would instead disable the existing true default for other backend values. Accordingly, the suggested redundant forwarding change is not applied. The stale input-help descriptions are corrected, and the requested hosted capacity/provider proof is now complete. No review finding is silently skipped and no release gate is waived.