Skip to content

fix(ci): release validation ignores GitHub runner override - #136434

Merged
steipete merged 7 commits into
mainfrom
codex/release-hosted-runners
Sep 2, 2026
Merged

steipete merged 7 commits into
mainfrom
codex/release-hosted-runners

Conversation

@steipete

@steipete steipete commented Sep 2, 2026 •

Copy link
Copy Markdown
Contributor

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

  • Honor OPENCLAW_CI_RUNNER_BACKEND=github in 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.
  • Resolve named branches and tags through authenticated, fully qualified GitHub API refs while retaining exact commit, tag/correction, and ancestry checks. Credentials stay with the trusted workflow rather than candidate scripts.
  • Use the canonical authenticated checkout owner to fetch comparison bases before credentials are discarded. The already-landed checkout-prefetch repair is retained; no second post-checkout token path is introduced.
  • Capture complete CLI fixture output and repair the Git fixtures. Accept only the current disabled-Codex-owner diagnostic in the uninstall proof, retaining its nonzero-exit, removed-install-record, unloaded-plugin, and diagnostic checks.
  • Accept the two equivalent circular CSS serializations in the browser test while retaining radius, non-circular, opt-in, and excluded-surface checks. No application CSS changes.

Two real conflicts with current main prevented 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 b6b06a2e2e48cc8bf63b7b03055e1cd48be8e5c9 and Code d3deb20a78e3c4c10997d9df022500e6799f52fa, 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.4 without 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_call explicitly defaults the hosted input to true, while manual workflow_dispatch defaults 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.

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.
@steipete steipete self-assigned this Sep 2, 2026
@clawsweeper

clawsweeper Bot commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Sep 2, 2026
@clawsweeper

clawsweeper Bot commented Sep 2, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 2, 2026, 3:40 PM ET / 19:40 UTC.

ClawSweeper review

What this changes

The 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 provenance

Possible regression — probable (reviewed change; failure trace). No predecessor PR is attributed.

Merge readiness

⚠️ Ready for maintainer review - 4 items remain

No 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
Reviewed head: 0c8b6929c63d0ade41901daf95de647c5a21e6b2
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The patch is a focused automation repair with targeted workflow and credential-boundary coverage; exact-head CI and maintainer approval remain required before landing.
Proof confidence 🌊 off-meta tidepool Not applicable: This maintainer-labelled PR is exempt from the external-contributor proof gate; its body provides earlier GitHub-hosted workflow evidence, while the normal exact-head CI gate remains pending.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This maintainer-labelled PR is exempt from the external-contributor proof gate; its body provides earlier GitHub-hosted workflow evidence, while the normal exact-head CI gate remains pending.
Evidence reviewed 6 items Current-main behavior: Current main still pins the OpenWebUI release check to a Blacksmith runner, so the central override gap remains unsolved outside this PR.
Trusted correction lookup: The correction-base lookup receives the workflow token, imports the separately checked-out trusted harness, and emits only the resolved SHA for the later candidate manifest step.
Credential-boundary coverage: The workflow guard executes the correction lookup before a deliberately candidate-owned mutation and verifies the token was available only to the trusted lookup.
Findings None None.
Security None None.

How this fits together

Release 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]
Loading

Decision needed

Question Recommendation
Should this maintainer-labelled release-workflow change be approved after the exact-head CI verifies the GitHub-hosted runner path? Verify and approve the exact head: Wait for the exact-head Actions run to finish successfully, then approve the documented GitHub-hosted release-validation route.

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

  • Resolve merge risk (P1) - Production CI tooling grows by 13 lines; the extra trusted SHA handoff is justified by avoiding an authenticated token in candidate-owned manifest code, but exact-head CI must still verify the whole release path.
  • Resolve merge risk (P1) - The available test-merge artifact is stale, so it does not independently prove the pinned base-plus-head merge result; GitHub reports the PR mergeable, while exact-head checks are still running.
  • Complete next step (P2) - Wait for the exact-head Actions run to complete successfully, then obtain release-workflow maintainer approval before merge.
Agent review details

Security

None.

PR surface

Tests +424, Docs +8, Config +12, Other +1. Total +445 across 19 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 9 736 312 +424
Docs 1 11 3 +8
Config 8 80 68 +12
Generated 0 0 0 0
Other 1 1 0 +1
Total 19 828 383 +445

Review metrics

Metric Value Why it matters
Production versus test delta production CI tooling +81/-68; test support +30/-51; tests +706/-261; docs +11/-3 The net +13 production lines are confined to authenticated release-reference and runner-routing logic; the larger test delta covers workflow behavior and test harnesses.

Root-cause cluster

Relationship: canonical
Canonical: #136434
Summary: This PR consolidates the authenticated release-reference repair formerly proposed in a closed unmerged PR; the other related CI PRs address distinct workflow concerns.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Merge-risk options

Maintainer options:

  1. Complete exact-head verification (recommended)
    Require the current exact-head Actions run and release-workflow owner sign-off before merging the runner-routing change.
  2. Pause the routing expansion
    Keep the current Blacksmith routing if the hosted-runner capacity and release-validation trade-off is not accepted.

Technical review

Best 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.

Labels

Label justifications:

  • P1: The PR repairs release-validation automation used by release operators.
  • merge-risk: 🚨 automation: Runner selection and authenticated release-reference checks can prevent release workflows from executing.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This maintainer-labelled PR is exempt from the external-contributor proof gate; its body provides earlier GitHub-hosted workflow evidence, while the normal exact-head CI gate remains pending.

Evidence

What I checked:

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Vincent Koc: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Let the exact-head Actions run complete and have a release-workflow owner confirm the GitHub-hosted routing result.

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (4 earlier review cycles)
  • reviewed 2026-09-02T16:37:16.970Z sha b6b06a2 :: needs real behavior proof before merge. :: [P3] Correct the stale OpenWebUI runner description
  • reviewed 2026-09-02T17:12:39.878Z sha b6b06a2 :: needs changes before merge. :: [P1] Propagate the override into nested release checks | [P3] Correct both stale OpenWebUI runner descriptions
  • reviewed 2026-09-02T18:35:40.794Z sha d863288 :: needs changes before merge. :: [P1] Propagate the override to all nested release jobs
  • reviewed 2026-09-02T19:24:44.521Z sha ba9b1b9 :: needs maintainer review before merge. :: none

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation size: S maintainer Maintainer-authored PR labels Sep 2, 2026
@clawsweeper clawsweeper Bot added P1 High-priority user-facing bug, regression, or broken workflow. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed P2 Normal backlog priority with limited blast radius. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Sep 2, 2026
steipete added a commit that referenced this pull request Sep 2, 2026
Refresh against authenticated comparison-base checkout on main. Reuse the
reviewed corner serialization, CLI fixture, and queue-depth test repairs
from #136286, #136469, and #136434.
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]>
@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Sep 2, 2026
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.
@steipete

steipete commented Sep 2, 2026

Copy link
Copy Markdown
Contributor Author

Release-owner disposition: exact-head CI for 0c8b6929c63d0ade41901daf95de647c5a21e6b2 is green: run 33673814324, attempt 2, 166 successful jobs and 8 intentional skips. The failed-job retry recovered the security checks and Control UI shard without source changes; successful lanes were preserved. All actual security checks passed.

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.

CI: https://github.com/openclaw/openclaw/actions/runs/33673814324

@steipete
steipete merged commit a8fe1a5 into main Sep 2, 2026
385 of 389 checks passed
@steipete
steipete deleted the codex/release-hosted-runners branch September 2, 2026 20:16
@steipete

steipete commented Sep 2, 2026

Copy link
Copy Markdown
Contributor Author

Merged via squash.

steipete added a commit that referenced this pull request Sep 2, 2026
…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.
steipete added a commit that referenced this pull request Sep 2, 2026
…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.
steipete added a commit that referenced this pull request Sep 2, 2026
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]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 3, 2026
…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]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 3, 2026
…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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to documentation maintainer Maintainer-authored PR merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. P1 High-priority user-facing bug, regression, or broken workflow. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: S status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant