Skip to content

chore: run qualified WebKit consumers on Bun in CI - #165343

Merged
steipete merged 1 commit into
mainfrom
steipete/w153-bun-consumer-admissions
Oct 5, 2026
Merged

steipete merged 1 commit into
mainfrom
steipete/w153-bun-consumer-admissions

Conversation

@steipete

@steipete steipete commented Oct 5, 2026

Copy link
Copy Markdown
Contributor

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.

Consumer Node pass/fail/skip c999 pass/fail/skip bf0b pass/fail/skip Mean seconds Node / c999 / bf0b
extensions/team-reports/src/render/theme.test.ts 6/0/0 0/6/0 6/0/0 7.216 / 6.398 / 6.458
src/plugins/provider-discovery.capture-lifetime.test.ts 3/0/0 2/1/0 3/0/0 67.557 / 65.247 / 65.521
src/agents/prepared-model-catalog-worker.custody.integration.test.ts 2/0/0 0/2/0 2/0/0 73.978 / 70.311 / 69.672
src/infra/worker-task-pool.memory.test.ts 1/0/0 0/1/0 1/0/0 34.478 / 33.954 / 33.870
packages/markdown-core/src/render-aware-chunking.test.ts 12/0/0 12/0/0 12/0/0 3.271 / 3.592 / 3.591
packages/normalization-core/src/grapheme.test.ts 7/0/0 7/0/0 7/0/0 5.954 / 5.954 / 5.986

Both 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.mjs with one worker and private state.

Focused test file Node wall seconds bf0b wall seconds
test/scripts/ci-run-node-test-shard.test.ts 66.721 54.405
test/scripts/ci-warm-vitest-caches.test.ts 3.269 3.664
test/vitest-unit-fast-config.test.ts 5.775 7.750

Initial scoped changed checks passed in 256.929 seconds. After rebasing onto the pin, the same check found an inherited orphaned SessionStartEvent re-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.

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.
@clawsweeper

clawsweeper Bot commented Oct 5, 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 scripts Repository scripts size: S labels Oct 5, 2026
@steipete
steipete marked this pull request as ready for review October 5, 2026 04:59
@clawsweeper

clawsweeper Bot commented Oct 5, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed October 5, 2026, 1:04 AM ET / 05:04 UTC.

ClawSweeper review

What this changes

The 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
Reviewed head: 41abe981a896f28f6659f96ec0c1d987d23a76ac

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, coherent admission patch with detailed qualification results and no supported correctness or security findings.
Proof confidence 🌊 off-meta tidepool Not applicable: The external-contributor gate does not apply under the supplied MEMBER classification. The body nevertheless records complete consumer runs on the exact pinned bf0b runtime and final-head routing validation; no stored-data contract changes.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The external-contributor gate does not apply under the supplied MEMBER classification. The body nevertheless records complete consumer runs on the exact pinned bf0b runtime and final-head routing validation; no stored-data contract changes.
Evidence reviewed 8 items Verified introduced scope: The pinned introduction changes only the runtime qualification lists and two existing routing/cache tests. It introduces no runtime pin, download source, workflow permission, production consumer change, or native Bun qualification change.
Still necessary on current main: The comparison against fetched main retains all six requested admissions as branch changes. GitHub confirms #165317 merged the prerequisite pin; its supplied body explicitly states that consumer admissions follow separately.
Conservative routing remains intact: The complete runtime owner retains Node policy, unsupported-argument fallbacks, mixed/broad scoped selection protection, runtime-separated caches, and native-source qualification. Updated table cases exercise exact selections and foreign-config rejection; grapheme coverage remains excluded from the src-only unit owner.
Findings None None.
Security None None.

How this fits together

OpenClaw’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
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Tests +22, Other +7. Total +29 across 3 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 2 34 12 +22
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 13 6 +7
Total 3 47 18 +29

Review metrics

Metric Value Why it matters
Runtime admissions 6 existing consumer files qualified for Vitest on Bun Qualification expands runtime routing without changing consumer assertions, test deadlines, or native-runner eligibility.

Technical review

Best 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.

Labels

Label changes:

  • add P3: This is bounded internal CI routing maintenance with no changed user-facing behavior.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.

Label justifications:

  • P3: This is bounded internal CI routing maintenance with no changed user-facing behavior.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.

Evidence

What I checked:

  • Verified introduced scope: The pinned introduction changes only the runtime qualification lists and two existing routing/cache tests. It introduces no runtime pin, download source, workflow permission, production consumer change, or native Bun qualification change. (scripts/lib/ci-test-runtime.mts:83, 41abe981a896)
  • Still necessary on current main: The comparison against fetched main retains all six requested admissions as branch changes. GitHub confirms chore: use OpenClaw WebKit in the shared Bun runtime #165317 merged the prerequisite pin; its supplied body explicitly states that consumer admissions follow separately. (scripts/lib/ci-test-runtime.mts:83, b7b78724c13d)
  • Conservative routing remains intact: The complete runtime owner retains Node policy, unsupported-argument fallbacks, mixed/broad scoped selection protection, runtime-separated caches, and native-source qualification. Updated table cases exercise exact selections and foreign-config rejection; grapheme coverage remains excluded from the src-only unit owner. (test/scripts/ci-run-node-test-shard.test.ts:970, 41abe981a896)
  • Runtime qualification evidence: The captured PR body reports 90 complete-file commands across Node, c999, and bf0b, with five repetitions per consumer and runtime. Node and bf0b each passed 155 assertions without failures or skips; the four previously failing consumers improved on bf0b. Final-head routing/cache/config validation reports 234 passing assertions per runtime. These are supplied results, not reviewer-executed tests. (41abe981a896)
  • Qualification source and safeguards preserved: The six consumer files and grapheme implementation have no differences from the reported gate source. The surrogate-offset workaround remains present, including integer normalization and the native-comparison guard in grapheme tests. The existing shared manifest pins bf0b; this admission patch does not alter it. (packages/normalization-core/src/grapheme.ts:12, 41abe981a896)
  • Verified three-way merge scope: Raw test-merge parent records match the pinned base followed by the exact PR head. Comparing that merge against its main parent changes only the same three introduced files; the large endpoint drift is not attributable to this PR. (70a7e15e693f)

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.

@steipete
steipete merged commit e693ea0 into main Oct 5, 2026
167 of 168 checks passed
@steipete
steipete deleted the steipete/w153-bun-consumer-admissions branch October 5, 2026 05:18
@steipete

steipete commented Oct 5, 2026

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 6, 2026
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scripts Repository scripts size: S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant