Repository navigation
ci: admit qualified Bun CLI and embedded-run consumers - #166572
Conversation
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.
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. Reviewed October 7, 2026, 7:43 AM ET / 11:43 UTC (Revision 2). ClawSweeper reviewWhat this changesThe 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 Review scores
Verification
How this fits togetherOpenClaw’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
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests -14, Docs +9, Other -104. Total -109 across 4 files. View PR surface stats
Review metrics
Technical reviewBest 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. LabelsLabel changes: No label changes. Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
|
Merged via explicitly authorized admin squash with attributed pre-existing CI failures.
|
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.
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.tschange 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-f1e1ca1156Linux 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.fa420c6e, with exact case/status parity and only the existing shared platform skips. Screening is not counted.8f436000is 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.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):
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 discoversterminal-fonts.e2e.test.tsmissing 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:56passes an unsupportedsignalproperty tobootTerminalPanelSession(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.