Repository navigation
chore: run qualified WebKit consumers on Bun in CI - #165343
Conversation
Admit six complete consumer files after the shared bf0b pin: VM Proxy theme rendering, provider async-context lifetime, worker custody and heap limits, and two guarded Segmenter consumers. Five full Node-controlled repetitions qualify each file. Preserve scoped owners, Vitest pools, test deadlines, and Segmenter safeguards; update routing and cache-warming expectations.
|
🦞👀 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 5, 2026, 1:04 AM ET / 05:04 UTC. ClawSweeper reviewWhat this changesThe PR lets six qualified test files run with Vitest on the pinned Bun runtime and updates routing and cache-warming expectations. Merge readiness✅ Ready for maintainer review Keep open: these qualified CI admissions remain absent from current main, and the merged runtime-pin change explicitly left them for separate work. No actionable introduced defect was found. Priority: P3 Review scores
Verification
How this fits togetherOpenClaw’s CI runtime selector receives test selections and runtime policy, then directs the shard runner to Node or Bun. Its qualification lists preserve coverage while allowing supported files to use Bun. flowchart TD
A[Test files and configuration] --> C[CI runtime selector]
B[Runtime policy] --> C
C --> D{Qualified selection?}
D --> E[Node fallback]
D --> F[Vitest on Bun]
E --> G[Test results and isolated caches]
F --> G
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +22, Other +7. Total +29 across 3 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Keep runtime qualification with the existing selector and admit these complete files while preserving canonical configurations, Node coverage, and Segmenter safeguards. Do we have a high-confidence way to reproduce the issue? Not applicable: this is CI qualification maintenance; source confirms the existing Node routing, and the body records controlled runtime qualification. Is this the best way to solve the issue? Yes: extending the existing qualification owner is a narrow solution, and the patch preserves fallback and coverage contracts. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against b7b78724c13d. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash.
|
Run six qualified VM Proxy, async-context, worker-limit and Segmenter consumer files with Vitest on the shared bf0b Bun runtime after the pin upgrade. Keep canonical owners, pools, Node fallbacks, native-runner qualification and Segmenter safeguards; update routing and cache-warming expectations. Each complete consumer passed five Node-controlled bf0b repetitions with zero failures or skips. Final routing/cache/config tests passed 234 assertions per runtime, complete changed checks passed, and the exact reviewed patch passed P2 review, exact-head CI and ClawSweeper. The inherited unused-export failure was repaired separately on main before final validation. Co-authored-by: Peter Steinberger <[email protected]>
What Problem This Solves
CI still routes six qualified VM Proxy, async-context, worker-limit, and Segmenter consumer tests to Node after the shared Bun runtime gains their required behavior.
User Impact
These complete test files can run under the newly pinned bf0b Bun runtime in their existing CI lanes. This changes CI routing only; production code, assertions, worker pools, and test deadlines are unchanged.
Why This Change Was Made
Follow the landed shared pin upgrade in #165317 with the separately qualified admissions. The shared runtime is
openclaw-v1.4.3-20261004-bf0b6cde28-webkit-1ee09069fe.Extend the existing exact-file scoped owners for team-reports rendering, provider capture lifetime, and catalog-worker custody. Remove the worker-memory and Markdown files from unit-fast's Node-required set, and admit normalization-core's grapheme tests through the unit owner. Mixed/broad scoped selections, unsupported arguments, Node policy, and foreign-config/package boundaries retain their existing protections. Native Bun test-runner qualification is unchanged; these files use Vitest on Bun.
Keep the Segmenter workaround from #162749 and its direct-native Bun guard intact. The full consumer files passed with those safeguards; the fork tests and Mac probes provide separate native-engine coverage. The cache-warming test now uses an actual remaining Node-required fixture after worker-memory's admission.
Evidence
The shared-pin gate ran every complete file five times on Node 24, c999, and bf0b, using each canonical config, one worker, unchanged deadlines, and fresh private state. All 90 commands were independently checked against raw assertion inventories, source/config hashes, executable identities, and launch receipts. Each of the five repetitions had the counts below; times are mean complete-command seconds.
extensions/team-reports/src/render/theme.test.tssrc/plugins/provider-discovery.capture-lifetime.test.tssrc/agents/prepared-model-catalog-worker.custody.integration.test.tssrc/infra/worker-task-pool.memory.test.tspackages/markdown-core/src/render-aware-chunking.test.tspackages/normalization-core/src/grapheme.test.tsBoth Node and bf0b passed 155 assertions across five repetitions, with zero failures/skips. c999 preserved complete baseline evidence: 105 passes and 50 failures. The two Segmenter consumers already pass through retained safeguards; their admission is based on complete-file qualification, not a claimed failing consumer assertion. The six tests and Segmenter implementation remain byte-identical to gate source
14bcf5e85d22201fa832069afbf113d22431a590.The gate worker run used the operator-authorized Hetzner x64 fallback after AWS did not provision. The pin PR records the complete paired CI replay, Node-hidden smoke, Mac gate, release checksums, and original UI failure attribution. All task leases were released with cleanup verified.
Focused routing/cache/config tests passed 234 assertions with zero failures/skips on each runtime. These tests preserve exact-owner routing, Node and dual-policy inventories, broad/mixed fallbacks, the unit-src package boundary, and cache-warming partitioning. The existing three-file commands use
scripts/run-vitest.mjswith one worker and private state.test/scripts/ci-run-node-test-shard.test.tstest/scripts/ci-warm-vitest-caches.test.tstest/vitest-unit-fast-config.test.tsInitial scoped changed checks passed in 256.929 seconds. After rebasing onto the pin, the same check found an inherited orphaned
SessionStartEventre-export left by #165198. Clean main reproduced the exact failure. The separate one-line main repair preserves the type and public extension SDK exposure; all three dead-export scans, core production typechecking, and P2 review passed. It used the repository’s direct main-repair policy. This admissions diff contains only its three routing/test files.git diff --check, local P2 autoreview, and branch P2 autoreview passed. The final rebase preserves the exact reviewed patch and complete routing-owner bytes. On the repaired main base, the final head passed all 234 focused assertions per runtime and the complete changed check in 230.299 seconds, including all three dead-export scans and the lint tail. Exact-head CI and ClawSweeper remain the hosted landing gates.