Skip to content

fix(ci): load frozen shard runner without repository fetch - #116273

Merged
RomneyDa merged 3 commits into
mainfrom
fix/ci-frozen-shard-runner-download
Jul 30, 2026
Merged

RomneyDa merged 3 commits into
mainfrom
fix/ci-frozen-shard-runner-download

Conversation

@RomneyDa

@RomneyDa RomneyDa commented Jul 30, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

Fixes an issue where maintainers validating an older frozen release candidate would see every normal-CI Node shard time out before its tests start. The candidate predates the workflow-owned shard runner, and the fallback fetched the repository by workflow SHA separately in every shard.

Why This Change Was Made

When the candidate does not contain the runner, the workflow sparsely checks out only the trusted runner and its two helper modules at github.workflow_sha. The candidate remains the test target; current candidates continue using their checked-out runner unchanged. This avoids repeated full Git fetches without widening the trust boundary.

User Impact

Release validation can execute normal CI against older release candidates instead of failing in workflow setup. No product or package behavior changes.

Evidence

@openclaw-barnacle openclaw-barnacle Bot added size: S maintainer Maintainer-authored PR labels Jul 30, 2026
@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. P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. labels Jul 30, 2026
@clawsweeper

clawsweeper Bot commented Jul 30, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed July 30, 2026, 3:30 AM ET / 07:30 UTC.

ClawSweeper review

What this changes

The PR replaces each missing-runner Node shard’s repository fetch with a sparse checkout of the workflow-pinned shard runner and its helper modules.

Merge readiness

⚠️ Ready for maintainer review - 2 items remain

Keep this PR open for maintainer review. The current head narrows the fallback to a workflow-pinned sparse checkout and preserves the frozen candidate as the test target, but the release-validation path still needs an after-fix run against a candidate that lacks the runner; likely related person: RomneyDa (low-confidence CI-path contributor).

Priority: P2
Reviewed head: 3bcb1c2086a34ffa9cce4828e09b56d840ca5680

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The patch is focused, guarded, and security-conscious, with one merge-relevant validation gap for the exact old-candidate path.
Proof confidence 🌊 off-meta tidepool Not applicable: This MEMBER-authored CI-maintenance PR is not subject to the external-contributor real-behavior-proof gate; however, a successful frozen-candidate release-validation run remains the appropriate merge evidence.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This MEMBER-authored CI-maintenance PR is not subject to the external-contributor real-behavior-proof gate; however, a successful frozen-candidate release-validation run remains the appropriate merge evidence.
Evidence reviewed 3 items Focused workflow fallback: The proposed workflow adds a conditional actions/checkout pinned to a full commit SHA, checks out only the runner and two declared helper modules under .ci-workflow, and disables persisted credentials; the run step then selects that fallback only when the candidate lacks its local runner.
Workflow guard coverage: The guard test verifies the missing-runner condition, workflow SHA ref, fallback checkout path, sparse-checkout mode, and credential setting, reducing risk of accidental workflow-expression or action-input drift.
Prior review continuity: The prior completed ClawSweeper review at 2fac7cb4f0b14abea161522329379ce736eee554 had no code findings and requested a branch refresh plus frozen-candidate validation; the supplied timeline shows a later force-push to the current head, so the validation request remains the material outstanding check.
Findings None None.
Security None None.

How this fits together

Full Release Validation runs normal CI jobs against a frozen release candidate. A Node shard uses the candidate’s own runner when present; for older candidates that predate the runner, it must obtain trusted workflow code while continuing to test the candidate checkout.

flowchart LR
  A[Frozen release candidate] --> B[Node shard job]
  B --> C{Candidate has shard runner?}
  C -->|Yes| D[Run candidate runner]
  C -->|No| E[Checkout workflow-pinned runner]
  E --> F[Run tests in candidate workspace]
  D --> F
Loading

Before merge

  • Resolve merge risk (P1) - This changes release-validation automation for old frozen candidates; before merge, confirm the resulting merge head completes a Node shard against a candidate without scripts/ci-run-node-test-shard.mjs, rather than only passing static workflow guards.
  • Complete next step (P2) - The maintainer-owned CI path needs a real frozen-candidate validation and merge-head refresh, not an automated replacement patch.
Agent review details

Security

None.

PR surface

Tests 0, Config -9. Total -9 across 2 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 14 14 0
Docs 0 0 0 0
Config 1 18 27 -9
Generated 0 0 0 0
Other 0 0 0 0
Total 2 32 41 -9

Review metrics

None.

Merge-risk options

Maintainer options:

  1. Validate the missing-runner path before merge (recommended)
    Run Full Release Validation against a frozen candidate that lacks the shard runner and confirm a Node shard starts tests using the workflow-pinned sparse checkout.
  2. Pause until release-validation capacity is available
    Keep the focused patch open if an appropriate frozen candidate cannot be exercised yet, rather than inferring success from parsing and guard tests alone.

Technical review

Best possible solution:

Land a workflow-pinned, credentialless sparse fallback only after an observed frozen-candidate validation proves the fallback runner loads its declared helpers and executes tests from the candidate workspace.

Do we have a high-confidence way to reproduce the issue?

Yes, with medium confidence: the PR identifies a specific frozen candidate without the runner and a prior release-validation shard that timed out before tests; source excerpts show the exact missing-runner fallback boundary, but an after-fix run was not supplied.

Is this the best way to solve the issue?

Yes, provisionally: checking out only workflow-pinned runner code is narrower and better scoped than refetching the repository in every shard, provided the full helper closure and candidate-workspace execution are demonstrated in release validation.

AGENTS.md: unclear because the file could not be read completely.

Codex review notes: model internal, reasoning high; reviewed against 1daea4c898c0.

Labels

Label justifications:

  • P2: The PR repairs release-validation setup for older frozen candidates without changing normal product or package runtime behavior.
  • merge-risk: 🚨 automation: The changed CI job determines which trusted runner every affected Node shard executes when validating an older candidate.
  • 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 MEMBER-authored CI-maintenance PR is not subject to the external-contributor real-behavior-proof gate; however, a successful frozen-candidate release-validation run remains the appropriate merge evidence.

Evidence

What I checked:

  • Focused workflow fallback: The proposed workflow adds a conditional actions/checkout pinned to a full commit SHA, checks out only the runner and two declared helper modules under .ci-workflow, and disables persisted credentials; the run step then selects that fallback only when the candidate lacks its local runner. (.github/workflows/ci.yml:2063, 3bcb1c2086a3)
  • Workflow guard coverage: The guard test verifies the missing-runner condition, workflow SHA ref, fallback checkout path, sparse-checkout mode, and credential setting, reducing risk of accidental workflow-expression or action-input drift. (test/scripts/ci-workflow-guards.test.ts:4686, 3bcb1c2086a3)
  • Prior review continuity: The prior completed ClawSweeper review at 2fac7cb4f0b14abea161522329379ce736eee554 had no code findings and requested a branch refresh plus frozen-candidate validation; the supplied timeline shows a later force-push to the current head, so the validation request remains the material outstanding check. (.github/workflows/ci.yml:2063, 3bcb1c2086a3)

Likely related people:

  • RomneyDa: Authored all three commits in this focused CI fallback series, including the non-cone sparse-checkout adjustment at the current head; repository-history attribution could not be completed from the read-only command environment. (role: recent CI workflow contributor; confidence: low; commits: c1b89ce6ca14, 88e6fe31d94b, 3bcb1c2086a3; files: .github/workflows/ci.yml, test/scripts/ci-workflow-guards.test.ts)

Rank-up moves

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

  • Attach redacted output from a successful frozen-candidate Node shard using the sparse fallback.
  • Refresh the merge-head review because the supplied PR base predates the stated current main SHA.

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 (1 earlier review cycle)
  • reviewed 2026-07-30T07:22:13.148Z sha 2fac7cb4f0b14abea161522329379ce736eee554 :: needs maintainer review before merge. :: none

@RomneyDa
RomneyDa force-pushed the fix/ci-frozen-shard-runner-download branch from 2fac7cb to 3bcb1c2 Compare July 30, 2026 07:25
@RomneyDa
RomneyDa merged commit c8f0db2 into main Jul 30, 2026
103 checks passed
@RomneyDa
RomneyDa deleted the fix/ci-frozen-shard-runner-download branch July 30, 2026 07:37
vincentkoc added a commit that referenced this pull request Jul 30, 2026
…n-dedupe

* origin/main: (25 commits)
  fix(qqbot): use Gateway timezone for reminders (#116294)
  test(openai): cover out-of-order named mark acks
  docs(openai): clarify cumulative playback marks
  test(openai): cover sustained unnamed mark acknowledgements
  fix(openai): preserve playback acknowledgement order
  test(openai): verify bounded playback acknowledgements
  fix(openai): bound realtime playback marks
  test(agents): mock incremental registry persistence (#116307)
  fix(memory-core): MEMORY.md compaction deletes user notes written under a promotion-style heading (#116180)
  feat(reply): annotate recent history images (#100866)
  chore(ios): refresh native i18n inventory
  fix(ios): isolate capability router handlers
  docs(ios): cut 2026.7.22 release notes
  docs(hooks): document validation responses
  test(qa): assert hook account rejection reasons
  fix(gateway): validate hook delivery accounts
  perf(gateway): bound prepared runtime startup work (#116261)
  fix(agents): prevent registry stalls during large fan-outs (#116286)
  fix(sqlite): preserve replaced snapshot targets on Windows (#116284)
  fix(ci): load frozen shard runner without repository fetch (#116273)
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jul 31, 2026
…116273)

* fix(ci): load frozen shard runner without repository fetch

* test(ci): preserve workflow expression delimiters

* fix(ci): use non-cone frozen runner checkout
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jul 31, 2026
…n-dedupe

* origin/main: (25 commits)
  fix(qqbot): use Gateway timezone for reminders (openclaw#116294)
  test(openai): cover out-of-order named mark acks
  docs(openai): clarify cumulative playback marks
  test(openai): cover sustained unnamed mark acknowledgements
  fix(openai): preserve playback acknowledgement order
  test(openai): verify bounded playback acknowledgements
  fix(openai): bound realtime playback marks
  test(agents): mock incremental registry persistence (openclaw#116307)
  fix(memory-core): MEMORY.md compaction deletes user notes written under a promotion-style heading (openclaw#116180)
  feat(reply): annotate recent history images (openclaw#100866)
  chore(ios): refresh native i18n inventory
  fix(ios): isolate capability router handlers
  docs(ios): cut 2026.7.22 release notes
  docs(hooks): document validation responses
  test(qa): assert hook account rejection reasons
  fix(gateway): validate hook delivery accounts
  perf(gateway): bound prepared runtime startup work (openclaw#116261)
  fix(agents): prevent registry stalls during large fan-outs (openclaw#116286)
  fix(sqlite): preserve replaced snapshot targets on Windows (openclaw#116284)
  fix(ci): load frozen shard runner without repository fetch (openclaw#116273)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer Maintainer-authored PR merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. P2 Normal backlog priority with limited blast radius. 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