Skip to content

ci: admit qualified Bun CLI and embedded-run consumers - #166572

Merged
steipete merged 1 commit into
mainfrom
ci/w202-bun-admissions-667c
Oct 7, 2026
Merged

steipete merged 1 commit into
mainfrom
ci/w202-bun-admissions-667c

Conversation

@steipete

@steipete steipete commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

PR CI still uses Node for the CLI and embedded-agent-run owners, and shared-input drift disabled all 423 recorded native Bun qualifications.

User Impact

No product behavior changes. Qualified CLI and embedded-run selections use Bun in their existing CI slots; 348 requalified tests regain the native Bun runner. Manual dual validation retains the complete Node baseline. This expands runtime coverage; it is not an across-the-board speedup.

Why This Change Was Made

Whole-owner admission replaces the old two-file CLI exception and one-file embedded-run partition, keeping canonical file discovery, worker limits, and adjacent owners intact. Native hashes are refreshed only for proven survivors; 75 historical entries remain excluded (70 prior case-identity rejects, three moved owners, and two deleted tests). No skips, test deadlines, product code, or fixtures change.

The native cohort first became globally stale after the shared test/test-env.ts change in #164103; #164537 and #164801 introduced further shared-input drift. Of the original 423 records, 419 still used Vitest on Bun, three had moved to Node owners, and one was already deleted. A deduplicated CI notice with a structured stale-entry/input report is the recommended follow-up; this PR does not implement that policy.

Evidence

Qualification uses the published openclaw-v1.4.3-20261005-667c4ab22c-webkit-f1e1ca1156 Linux x64 asset and Node 24.21.0. Owner proof uses eight CPUs, approximately 31 GiB RAM, and the existing two nonisolated thread workers with the 8192 MiB Node heap. Native proof uses the existing one-worker runner in a four-CPU affinity envelope.

  • Five complete fresh Bun/Node owner pairs on fa420c6e, with exact case/status parity and only the existing shared platform skips. Screening is not counted.
  • Source drift through base 8f436000 is covered by five additional pairs for three CLI files and one embedded fixture consumer, followed by one complete current-source pair per owner. Combined verification checks unchanged cases against the original five rounds.
  • All 349 native candidates pass five fresh Node/native pairs plus the combined 349-file, 2,362-case cohort. One subsequently deleted file is omitted; all 348 retained tests and their setup/helpers match the qualified bytes. The actual runtime selector activates exactly those 348 entries.
  • No failed consumer was rerun to obtain a pass. Gateway-methods remains outside this batch; its separate fixture repair is fix: prevent SQLite lock races in chat metadata tests #166520.
  • test/scripts/ci-run-node-test-shard.test.ts: 221 tests pass on Node (63.70 s) and pinned Bun (46.84 s), one worker. Changed checks, import-cycle checks, formatting and whitespace checks pass; independent review is clean at P2.

Measured cold complete-owner command medians (five pairs; instrumentation included):

Owner Files Passed / existing skips per arm Node Bun Wall change
cli 393 6168 / 10 554.68 s 684.27 s +23.4%
agents-embedded-agent-run 111 1546 / 0 94.11 s 99.64 s +5.9%

The separate cold native cohort takes 2.125 s, versus 37.282 s with Bun/Vitest (94.3% less wall time for that cohort). These are command measurements, not billed CI or critical-path savings. No CI jobs or worker fanout are added.

At fixed historical planner prices, the two owner admissions reduce wholly Node-only coverage from 88.33% to 84.95% of the same 217-group core denominator. Native requalification is excluded from that Node-to-Bun delta because its surviving files already used Bun/Vitest.

Admission protocol precedent: #166046 and #165343.

CI baseline failures

CI attempt 1 is red for two terminal-font test issues inherited from main de38a045 / #166180. Both reproduced once in an isolated clean checkout of that exact baseline:

  • checks-node-compact-small-5: the private Control UI ownership assertion discovers terminal-fonts.e2e.test.ts missing from its expected list (52 versus 51). The failing shard ran on Node; Bun setup was skipped. Baseline reproduction exits 1 in 8.665 s.
  • check-test-types-core-2: terminal-panel-fonts.test.ts:56 passes an unsupported signal property to bootTerminalPanelSession (TS2353). The matching baseline typecheck exits 2 in 10.589 s.

The four-file admissions diff changes neither failure's inputs. The run has 37 successful jobs, 25 skipped jobs, these two root failures and their aggregate CI-gate failure, with no cancelled jobs. Landing uses the repository's native inherited-failure policy; no CI rerun or passing-baseline claim is made. ClawSweeper completed the exact-head review with no actionable findings.

Admit the complete qualified owners and refresh 348 native Bun entries on the shared 667c pin. Preserve Node coverage in dual validation and retain fail-closed qualification hashes. Linux five-pair owner/native proof, source-delta qualification, routing checks, and independent review passed.
@clawsweeper

clawsweeper Bot commented Oct 7, 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: M labels Oct 7, 2026
@steipete
steipete marked this pull request as ready for review October 7, 2026 11:30
@clawsweeper clawsweeper Bot added 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. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Oct 7, 2026
@clawsweeper

clawsweeper Bot commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed October 7, 2026, 7:43 AM ET / 11:43 UTC (Revision 2).

ClawSweeper review

What this changes

The PR routes complete CLI and embedded-agent-run test owners through Bun, refreshes native-runner qualification records, and updates routing tests and CI documentation.

Merge readiness

✅ Ready for maintainer review

The work remains necessary on current main. The recorded runtime qualification supports the admission, and source review found no actionable introduced defect or unresolved product decision.

Priority: P2
Reviewed head: 28dbd425988e7d455a914c755ba836cfd3d2f021

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) Strong runtime qualification supports a focused, maintainable admission patch with no actionable source finding.
Proof confidence 🦞 diamond lobster (5/6) Sufficient (live_output): The captured body records complete Linux Node/Bun owner runs and native-cohort runs against the existing published runtime, with case/status parity, source-drift qualification, and observed activation of the retained entries. These exercise the changed CI execution path; the inspected related UI images are not used as proof. 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 (live_output): The captured body records complete Linux Node/Bun owner runs and native-cohort runs against the existing published runtime, with case/status parity, source-drift qualification, and observed activation of the retained entries. These exercise the changed CI execution path; the inspected related UI images are not used as proof. No stored-data contract changes.
Evidence reviewed 9 items Pinned introduction and merge ownership: The introduced delta is 8f43600..28dbd42. Raw test-merge parents are exactly the supplied main SHA followed by the PR head; its main-parent comparison contains only the four introduced paths, preserving unrelated base work.
Existing runtime owner and coverage safeguards: Whole-owner admission uses the existing runtime selector. Node policy remains Node-only, dual policy retains the complete Node selection, unsupported arguments retain Node, and source-fingerprint mismatches retain Vitest coverage. Canonical CLI and embedded-run configs still own their original exclusions.
Qualification fingerprints independently checked: A read-only Python comparison found 423 prior records, 348 retained records, no added test entries, 75 removed entries, and 34 refreshed test hashes. All 366 recorded test, setup, and helper fingerprints match checkout bytes. This verifies source identity, not execution results.
Findings None None.
Security None None.

How this fits together

OpenClaw’s CI runtime selector receives test selections from the canonical test planner and chooses Node, Bun with Vitest, or Bun’s native test runner. The shard executor runs those selections within existing worker slots and reports their results to CI.

flowchart TD
  A[Test planner selections] --> B[Runtime policy]
  B --> C[Qualified owner routing]
  C --> D[Native source fingerprints]
  C --> E[Node or Bun Vitest]
  D --> F[Bun native runner]
  D --> E
  E --> G[CI results]
  F --> G
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Tests -14, Docs +9, Other -104. Total -109 across 4 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 41 55 -14
Docs 1 9 0 +9
Config 0 0 0 0
Generated 0 0 0 0
Other 2 42 146 -104
Total 4 92 201 -109

Review metrics

Metric Value Why it matters
Native qualification identity 348 retained tests; 366 matching input fingerprints; 0 mismatches The refreshed records bind native admission to the reviewed source bytes.
Measured owner runtime tradeoff CLI Bun +23.4%; embedded-run Bun +5.9% median command wall time The admission expands runtime coverage and should not be interpreted as a whole-owner speed improvement.

Technical review

Best possible solution:

Keep runtime admission in the canonical selector, preserve complete Node coverage in dual validation, and retain fingerprint-based fallback for unqualified native inputs.

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

Not applicable to a product bug: this changes CI admission policy, and the captured qualification evidence exercises the selected test owners on the actual runtimes.

Is this the best way to solve the issue?

Yes. Extending the existing whole-owner admission path removes narrow exceptions while preserving canonical discovery, fallback behavior, and dual-runtime coverage.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

No label changes.

Label justifications:

  • P2: This is a bounded CI runtime-coverage improvement without an established urgent product regression.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (live_output): The captured body records complete Linux Node/Bun owner runs and native-cohort runs against the existing published runtime, with case/status parity, source-drift qualification, and observed activation of the retained entries. These exercise the changed CI execution path; the inspected related UI images are not used as proof. No stored-data contract changes.
  • proof: sufficient: Contributor real behavior proof is sufficient. The captured body records complete Linux Node/Bun owner runs and native-cohort runs against the existing published runtime, with case/status parity, source-drift qualification, and observed activation of the retained entries. These exercise the changed CI execution path; the inspected related UI images are not used as proof. No stored-data contract changes.

Evidence

What I checked:

  • Pinned introduction and merge ownership: The introduced delta is 8f43600..28dbd42. Raw test-merge parents are exactly the supplied main SHA followed by the PR head; its main-parent comparison contains only the four introduced paths, preserving unrelated base work. (3ee68ff1137c)
  • Existing runtime owner and coverage safeguards: Whole-owner admission uses the existing runtime selector. Node policy remains Node-only, dual policy retains the complete Node selection, unsupported arguments retain Node, and source-fingerprint mismatches retain Vitest coverage. Canonical CLI and embedded-run configs still own their original exclusions. (scripts/lib/ci-test-runtime.mts:72, 28dbd425988e)
  • Qualification fingerprints independently checked: A read-only Python comparison found 423 prior records, 348 retained records, no added test entries, 75 removed entries, and 34 refreshed test hashes. All 366 recorded test, setup, and helper fingerprints match checkout bytes. This verifies source identity, not execution results. (scripts/lib/ci-test-native-bun-qualification.json:2, 28dbd425988e)
  • After-change runtime qualification: The captured PR body reports five fresh complete Node/Bun owner pairs, source-drift qualification through the pinned base, subsequent complete current-source owner pairs, and five Node/native pairs plus the combined native cohort. It records matching case/status inventories and exact activation of 348 retained entries on Linux x64 with the existing published 667c runtime. Complete-owner Bun medians were slower by 23.4% for CLI and 5.9% for embedded-run; the body explicitly presents this as coverage expansion rather than a universal speedup. (28dbd425988e)
  • Focused routing regression coverage: The changed table checks complete, exact, and broad selections under all three runtime policies, adjacent-owner isolation, and unsupported sharding fallback. Existing tests independently cover changed setup/helper fingerprints and retention of failures across dual-runtime execution. The body reports 221 focused cases passing on both Node and pinned Bun. (test/scripts/ci-run-node-test-shard.test.ts:1043, 28dbd425988e)
  • Current-main necessity and prior admissions: Fetched main still lacks the two whole-owner admissions. The merged admissions at ci: admit qualified Bun UI and memory consumers #166046 and chore: run qualified WebKit consumers on Bun in CI #165343 establish the existing routing pattern but concern different consumers and do not supersede this work. No shipped fix for this requested admission was established. (scripts/lib/ci-test-runtime.mts:72, de38a0454825)

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-07T11:37:09.687Z sha 28dbd42 :: needs maintainer review before merge. :: none

@steipete
steipete merged commit 986a594 into main Oct 7, 2026
181 of 186 checks passed
@steipete
steipete deleted the ci/w202-bun-admissions-667c branch October 7, 2026 12:03
@steipete

steipete commented Oct 7, 2026

Copy link
Copy Markdown
Contributor Author

Merged via explicitly authorized admin squash with attributed pre-existing CI failures.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 8, 2026
Admit the complete qualified owners and refresh 348 native Bun entries on the shared 667c pin. Preserve Node coverage in dual validation and retain fail-closed qualification hashes. Linux five-pair owner/native proof, source-delta qualification, routing checks, and independent review passed.
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: M 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