Skip to content

fix(ci): keep extension boundary checks off hosted overflow - #162289

Merged
steipete merged 2 commits into
mainfrom
ci-speed/spd3-hosted-overflow-24ffad411dc6
Oct 1, 2026
Merged

steipete merged 2 commits into
mainfrom
ci-speed/spd3-hosted-overflow-24ffad411dc6

Conversation

@steipete

@steipete steipete commented Oct 1, 2026

Copy link
Copy Markdown
Contributor

What Problem This Solves

Extension package-boundary checks took 22–23 minutes when optional hybrid overflow assigned them to GitHub-hosted runners, including run 36788068306.

User Impact

Developers avoid this optional hosted cold-build path. Product behavior is unchanged. Every boundary check and the explicit GitHub override, retry, manual and trust fallback routes remain intact. Cold Blacksmith runs still took 6:37–7:23 in the sampled jobs; this change does not establish the four-minute target.

Why This Change Was Made

Compiled archives use separate runner namespaces and contain checkout-specific paths and links. Keep this row on its existing Blacksmith route instead of assuming cross-runner reuse. Preserve the previous admission reservation so other jobs keep their routing thresholds, and report the actual hosted row count. This adds no jobs, matrix rows, permissions or compiler concurrency; ci.yml shrinks by 58 bytes.

Evidence

  • Linux local-container proof: full test-types passed (917s); changed-file checks, ordinary and boundary lint, three dead-export scans, workflow checks and formatting passed.
  • The real Build CI manifest entrypoint passed all four cells: same-SHA index export and different-SHA sparse fetch, each with PR and scheduled-main inputs. Each emitted 92 outputs.
  • The executable routing regression failed on the parent and passed on the candidate. The extended existing case took 13.942s with one worker. Direct-API Codex P2 review was clean. Both rebases preserved the exact reviewed patch.
  • Whole tooling completed 909 files: 25,999 passed, 70 failed, 555 existing pending. All failures were in test files unchanged by this patch. The 70 failing cases were checked on the base; recurring PR-lock aborts and a shared-runner-state assertion reproduced there. Required CLI tools resolved archive/timing fixture failures; other transport, readiness and child-test timeouts did not consistently reproduce and remain unresolved. No assertions, timeouts or skips were changed.

No GitHub workflow was dispatched or rerun for proof. Post-landing job timings remain to be measured on natural PR runs.

@clawsweeper

clawsweeper Bot commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation scripts Repository scripts size: XS labels Oct 1, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. 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. labels Oct 1, 2026
@clawsweeper

clawsweeper Bot commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 30, 2026, 11:40 PM ET / October 1, 2026, 03:40 UTC (Revision 2).

ClawSweeper review

What this changes

Keep extension package-boundary CI checks on Blacksmith during optional hosted overflow and adjust hosted-row reporting, regression coverage, and documentation.

Merge readiness

✅ Ready for maintainer review

The PR remains useful: current main still permits the slow hosted boundary offload. The pinned patch preserves admission thresholds and fallback routes, and no actionable correctness or security defect was found.

Priority: P2
Reviewed head: f0de765c954c4a9f08d0871a8731de73ca0ac74e

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused routing repair with production-entrypoint evidence, meaningful regression coverage, and no supported blocking finding.
Proof confidence 🐚 platinum hermit (4/6) Sufficient (terminal): The captured body reports after-fix execution of the production Build CI manifest entrypoint across four export/fetch and PR/main cells, with observed output counts; routing regressions supplement that evidence. Native post-landing timing improvement remains unclaimed. No stored-data contract changes.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (terminal): The captured body reports after-fix execution of the production Build CI manifest entrypoint across four export/fetch and PR/main cells, with observed output counts; routing regressions supplement that evidence. Native post-landing timing improvement remains unclaimed. No stored-data contract changes.
Evidence reviewed 8 items Introduced routing change: The pinned introduced delta removes extension-package-boundary from both optional hosted-overflow branches of the runner expression. Explicit GitHub selection, retries, manual routing, and the existing repository/author trust fallback remain unchanged.
Admission and reporting remain distinct: Admission still includes the previous boundary-row reservation. Only the reported hosted total subtracts retained boundary rows when check offload is admitted; the 40/45-row limits and main-check admission calculation are unchanged.
Regression coverage protects actual routing: The extended existing case evaluates the workflow runner expression for hybrid, RunsOn, and GitHub on first and second attempts. It also compares emitted hosted rows with manifest totals across healthy/unhealthy inputs and admission thresholds. The body reports parent failure, candidate success, and a 13.942-second one-worker cost.
Findings None None.
Security None None.

How this fits together

CI preflight builds a job manifest from repository changes, runner settings, and hosted-capacity evidence. The workflow consumes that manifest to place checks on Blacksmith or GitHub-hosted runners.

flowchart TD
  A[Repository changes] --> C[CI preflight planner]
  B[Runner settings and hosted health] --> C
  C --> D[Admission budget]
  D --> E[Workflow runner selection]
  E --> F[Boundary checks on Blacksmith]
  E --> G[Hosted checks and fallback routes]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Tests +22, Docs +5, Config 0, Other +7. Total +34 across 7 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 24 2 +22
Docs 4 12 7 +5
Config 1 1 1 0
Generated 0 0 0 0
Other 1 10 3 +7
Total 7 47 13 +34

Review metrics

Metric Value Why it matters
Optional hosted check inventory 8 reserved rows; 7 actual offloads The retained reservation prevents this routing repair from expanding other hosted admission.

Technical review

Best possible solution:

Use the existing Blacksmith boundary route while retaining conservative hosted admission and explicit hosted recovery paths.

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

Yes: current-main source explicitly routes the boundary row to hosted Ubuntu when optional check overflow is admitted; the body identifies a real slow run. This review did not execute a reproduction.

Is this the best way to solve the issue?

Yes: changing the existing runner decision avoids the observed cold-build path without creating another planner, weakening checks, or expanding admission.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 7e43f459ced3.

Labels

Label changes:

No label changes.

Label justifications:

  • P2: This bounded CI routing repair addresses reported 22–23-minute hosted checks without changing product behavior.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (terminal): The captured body reports after-fix execution of the production Build CI manifest entrypoint across four export/fetch and PR/main cells, with observed output counts; routing regressions supplement that evidence. Native post-landing timing improvement remains unclaimed. No stored-data contract changes.
  • proof: sufficient: Contributor real behavior proof is sufficient. The captured body reports after-fix execution of the production Build CI manifest entrypoint across four export/fetch and PR/main cells, with observed output counts; routing regressions supplement that evidence. Native post-landing timing improvement remains unclaimed. No stored-data contract changes.

Evidence

What I checked:

  • Introduced routing change: The pinned introduced delta removes extension-package-boundary from both optional hosted-overflow branches of the runner expression. Explicit GitHub selection, retries, manual routing, and the existing repository/author trust fallback remain unchanged. (.github/workflows/ci.yml:4105, f0de765c954c)
  • Admission and reporting remain distinct: Admission still includes the previous boundary-row reservation. Only the reported hosted total subtracts retained boundary rows when check offload is admitted; the 40/45-row limits and main-check admission calculation are unchanged. (scripts/ci-build-manifest.mjs:1557, f0de765c954c)
  • Regression coverage protects actual routing: The extended existing case evaluates the workflow runner expression for hybrid, RunsOn, and GitHub on first and second attempts. It also compares emitted hosted rows with manifest totals across healthy/unhealthy inputs and admission thresholds. The body reports parent failure, candidate success, and a 13.942-second one-worker cost. (test/scripts/ci-workflow-planning.test.ts:3189, f0de765c954c)
  • Current main still needs the change: Fetched main still includes extension-package-boundary in optional hosted overflow and reports the previous hosted total. No implemented-on-main close is supported. (.github/workflows/ci.yml:4105, 7e43f459ced3)
  • Production entrypoint evidence: The complete captured PR body reports real Build CI manifest execution for same-SHA index export and different-SHA sparse fetch, each with PR and scheduled-main inputs, yielding 92 outputs per cell. It explicitly avoids claiming the four-minute target or measured post-landing savings. No target code or tests were executed during this review. (f0de765c954c)
  • Re-review continuity: The supplied previous review retained no findings or rank-up moves. Comparing all seven reviewed paths against its pinned head produced no differences, so the merge from main preserved the reviewed patch. (f0de765c954c)

Likely related people:

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

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-10-01T02:14:00.693Z sha 24ffad4 :: needs maintainer review before merge. :: none

@steipete
steipete enabled auto-merge (squash) October 1, 2026 02:28
@clawsweeper clawsweeper Bot added the proof: sufficient ClawSweeper judged the real behavior proof convincing. label Oct 1, 2026
@steipete
steipete merged commit de845cf into main Oct 1, 2026
162 of 165 checks passed
@steipete
steipete deleted the ci-speed/spd3-hosted-overflow-24ffad411dc6 branch October 1, 2026 04:30
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 2, 2026
…#162289)

Keep the extension package-boundary check on Blacksmith during optional hybrid/runson hosted overflow. Hosted boundary jobs could not restore the self-hosted compiled-declaration archives (restore key includes runner.environment) and took 22-23 minutes; 2 of 25 boundary jobs in a 40-run census ran hosted. Explicit GitHub overrides, retry/manual/trust fallbacks, compiler checks, canary, deadlines and concurrency are unchanged.

Merged past one inherited red: checks-windows-node-test-3 src/infra/package-update-swap.windows.test.ts "preserves the package after persistent EPERM on linux (retries=false)" came from 1b0ec4c (openclaw#162231), is red on main in hourly 36811800156, and is fixed on main by 74ffe77 (openclaw#162352). This PR touches no Windows or updater code.
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 P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. scripts Repository scripts size: XS 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