Repository navigation
ci: default daily tests to Bun and retain dual release validation - #175699
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 062776d536
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Codex review: needs maintainer review before merge. What this changesThis PR defaults daily CI tests to Bun while retaining complete Node coverage alongside Bun during release validation. Example: An automatic main validation selects Linux tests.
Review scores
ProductKind: Performance · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this PR open: it implements an owner-approved CI runtime cutover with preserved Node exceptions and isolated timing measurements; no actionable defect was found, and current-head CI remains pending. Priority: P2 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherCI planners turn event context and selected test inventories into runtime-specific invocations, worker budgets, and timing records consumed by subsequent scheduling. flowchart TD
A[CI event and selected tests] --> B[Manifest planner]
B --> C[Shared runtime owner]
C --> D[Node contract tests]
C --> E[Bun test execution]
D --> F[Runtime-specific timing records]
E --> F
F --> B
Technical reviewBest possible solution: Complete the existing CI gates and retain the shared runtime owner, exact Node exceptions, and policy-specific timing isolation. Do we have a high-confidence way to reproduce the issue? This is a deliberate CI policy change; source confirms the old main defaults and the proposed runtime selection without requiring a product-bug reproduction. Is this the best way to solve the issue? The change appropriately promotes the existing trial mechanism and removes its superseded qualification policy while preserving native qualification, failure propagation, and runtime-specific caches. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 53829f9e6a00. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
PR surfaceTests -899, Docs -88, Config 0, Other -409. Total -1396 across 31 files. Added test files: 0. View PR surface stats
Review metrics
LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed October 17, 2026, 1:11 PM ET / 17:11 UTC. |
Resolve split gateway membership through the existing CI inventories and make the native-launch artifact assertion independent of directory enumeration order.
9227a83 to
bb9eae2
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: bb9eae2d3d
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Merged via squash auto-merge.
|
…enclaw#175699) * ci: default daily tests to Bun and retain dual release validation * test(ci): align fixtures with the daily Bun policy * fix(ci): preserve Node-only gateway test routing Resolve split gateway membership through the existing CI inventories and make the native-launch artifact assertion independent of directory enumeration order. * test(ci): align Gateway routing with fork-fixed contracts
What Problem This Solves
Daily CI still uses the earlier partial Bun qualification policy even though five paired main trials support making Bun the normal test runtime.
User Impact
Pull requests, automatic main validation, and plugin prerelease extension batches use the pinned Bun fork. Full Release Validation keeps both Node and Bun. Manual dispatches can force Node with
test_runtime_policy=node; named Node contracts and the documented direct-entrypoint lanes retain their existing runtime.Why This Change Was Made
The runtime owner now supports
node,bun-all, anddual-all. This removes the superseded compatible-file allowlists, plain dual policy, and their tests while preserving exact Node exceptions and native Bun source/hash qualification.bun-compatiblebun-allnodebun-alldualdual-allnodeTiming learning and pruning separate Node, the complete daily Bun envelope, and the combined release envelope. Dual validation contributes only its full Node and combined dual costs; its partial Bun pass never becomes a complete daily-Bun measurement. A Bun envelope includes its native-Bun and required Node companions. Missing policy-specific scheduling costs retain historical estimates until measurements arrive; measured runtime-placement observations never cross policies. Old partial
bun:estimates are not reused as full-Bun measurements.The aggregate UI configuration has a different name from its root project owners, which could omit five named Node-only retention tests from
bun-all. UI routing now uses its actual package inventory. Timing regression coverage ensures partial dual-run Bun costs cannot replace complete daily-Bun measurements. Other test edits replace expectations for retired policies with the current runtime contract. No new runtime skips or fork workarounds were added.The runtime switch adds no job definitions or per-runtime registrations: CI remains 42 jobs and plugin prerelease 9, with identical runner declarations, strategies, and concurrency. Both runtime passes reuse each selected row. Timing estimates may repack work within the existing caps. The manifest regression compares normalized PR/main/full-release output with captured pre-change digests and changes only policy fields and the sequential release deadline. The live registration bucket reports 10,000 capacity and 10,000 remaining.
Related rollout: #173807. Five paired main trials established the default:
The last trial had no incomplete shards.
Evidence
Focused files were run separately on both runtimes:
Local Bun proof uses the requested
1.4.3-canary.1+65d94e715; PR CI uses the repository pin.test/scripts/ci-native-bun-qualification.test.tsscripts/ci-run-node-test-shard.test.tsscripts/ci-shard-timings-refresh.test.tsscripts/ci-test-runtime-trial.test.tsscripts/ci-test-runtime-trials.test.tsscripts/ci-test-timings.test.tsscripts/ci-warm-vitest-caches.test.tsscripts/ci-workflow-guards.test.tsscripts/ci-workflow-planning.test.tsscripts/plugin-prerelease-telegram-shards.test.tsscripts/plugin-prerelease-test-plan.test.tsscripts/test-extension.test.tsscripts/macos-native-test-launch.test.tsvitest-ui-package-config.test.tsvitest-unit-fast-config.test.tsGuard filter:
-t 'executes the .* standalone UI envelope'. Planning filter:-t 'routes test runtimes without adding jobs|selects the complete Bun UI unit shards for the UI runtime owner'. The remaining listed files ran in full. The repaired timing suite passed all 89 cases with ambientOPENCLAW_CI_TEST_RUNTIME_POLICY=bun-allon both runtimes; its existing provenance CLI tests dominate the cost. An ambientOPENCLAW_CI_TEST_RUNTIME_POLICY=bun-allextension run also passed all 38 cases.pnpm check:workflows, changed-file formatting/type-aware lint, and the scripts plus root tooling/scripts/other TypeScript lanes pass. Codex autoreview is clean after fixing the partial-dual timing finding.git diff --checkpasses. A Testbox queued instead of granting promptly and was canceled; local proof stayed focused and PR CI supplies broad Linux proof.Root causes by test group: the UI package test caught the bucket-1 ownership defect described above; policy, workflow, cache, native qualification, and extension tests needed bucket-2 expectation changes after retiring the old modes. Timing tests cover the new runtime-keyed learning contract and reject partial-dual promotion. No new fork bugs or runtime-only skips.
Delta against the branch base: production scripts +344/-753 (net -409), tests +491/-1390 (net -899), workflow/docs +89/-177 (net -88). The obsolete owner-scope test was removed with its policy owner.
Follow-ups remain the direct Node lanes in
docs/ci/pipeline.mdand implicit local-Bun timing artifact identity; neither is migrated here.First PR CI and repair
The first PR-shaped run (39050566826, head b0fc30770b769ba4ed84c579e9800241a7f1670f) exercised the new default. It exposed two fixture assumptions: main-shaped qualification still expected
node, and a placement test emitted Node observations while inheritingbun-all. The qualification assertion now expects the selected policy; placement coverage explicitly tests both Node and Bun with matching observations and preserves the overload-separation assertion.Focused qualification repair proof passed on both runtimes with
OPENCLAW_CI_TEST_RUNTIME_POLICY=bun-alland-t 'executes main-shaped .* qualification with push coverage and an SDK comparison'(two cases each). The timing regression was first reproduced under Node with that ambient policy before repair.Three other first-run failures were inherited from main:
checks-ui (1/3),check-lint-core-2, andcheck-test-types-core-3. All point toui/src/pages/chat/session-snapshot-store.test.ts: missing snapshot constants and a shadowedwriter. The file is byte-identical in CI base62cb03ac7a95f4b9cb435f8efc57f4034ba2649band mergefb609c6fa4fbaa947a4d839ea4a8d7cc60d0ae5a(blob97ab96d65bc03c2d32ceee127d2fe43e9f766cd2), and this PR does not change it. The Bun UI portion passed 628 files / 7,027 tests; the inherited UI test failure occurred on its retained Node route.The repaired timing file passed 89/89 on Node (130.80s Vitest) and requested Bun (94.08s Vitest), with ambient
OPENCLAW_CI_TEST_RUNTIME_POLICY=bun-alland the commands above. The main-qualification cases passed 2/2 on each runtime. Targeted format/lint/typecheck and fresh Codex autoreview are clean after the repair. No production code was needed for these two fixture corrections.The second run (39051394649, head 062776d5361feafb2cf2db4ff58b465a001a3ba9) exposed one further bucket-2 assumption:
macos-native-test-launch.test.tscomparedreaddirSync()output in raw filesystem order. Linux Bun returned the same two phase artifacts in reverse order. The assertion now sorts the names withtoSorted()before exact comparison; file membership and event-content checks are unchanged.Automated review also identified a bucket-1 routing defect: three explicitly Node-required Gateway tests were recognized by the focused runner under its legacy aggregate config, while CI selects split Gateway projects. Runtime routing now consults the existing CI project inventory before using focused-runner config names. Regression coverage exercises full-agentic, Gateway core/methods, and an unrelated Gateway project so the retained Node contracts cannot silently disappear.
Final repair proof: the config-only Gateway regression failed all three affected selections before the inventory fix. The complete runtime-policy file then passed 25/25 under both Node and requested Bun. The native-launch file passed 18/18 under both runtimes; the final ordering assertion also passed its five focused Node cases after adopting
toSorted(). The exact file-list and event-content expectations remain unchanged.Fresh Codex review of the final Gateway and directory-order repairs is clean (P0–P2). Scripts and tooling-test typechecks, matching scoped lint, changed-file formatting, and diff checks pass.
Rebase and current CI
Rebased onto main
b863809e852b8, including the baseline mock-export repair255c4d47a33(#171916), the eight fork-fixed route removals (#175727), and trial-5 fixes (#175732). The only textual conflict was the runtime-policy test's describe block; resolution preserves main's blocked socket regression and the new policy name. No main route removals were reversed.The rebased head
bb9eae2d3d6963f5e914fbb843c46270e918752dran in CI 39065243912. Its only failed test job waschecks-node-compact-small-7-2: two Gateway matrix rows still expected theartifact-downloadsandsession-utils.fs.display-positionNode routes removed by #175727. This is a PR-caused stale expectation, not an inherited failure and not an exception candidate. The runtime owner already preserved main's routing correctly. The test now expects only the heap-snapshot route forfull-agenticand no Node exceptions forgateway-core; the assertions and remaining cases stay intact.Post-rebase Node proof ran all 15 touched, non-deleted test files once: 1,116 passed, eight skipped, and only those two stale expectations failed. The full planner/routing Bun run (
ci-workflow-planning,ci-run-node-test-shard,ci-test-runtime-trials) passed 725 cases with the same two failures. Focused Node reproduction showed the identical mismatch.After the expectation correction, the complete
ci-test-runtime-trials.test.tsfile passes 29/29 on Node and 29/29 on the checksum-pinned Bun1.4.3-canary.1+b76e4b4e6. Changed-file format and type-aware lint pass. Fresh Codex review of the narrow repair is clean through P2; the coordinator's full review remains applicable to the unchanged design.The final head is
5017c44d4e6c77c8f304057ff7d4d7138e95ce02. Exact-head CI 39066027901 completed successfully: all 90 jobs completed, with no failed jobs. No CI rerun or inherited-failure exception was used; the new run followed the real test fix.Named Node routes before and after
The 27 named routes in current main and this branch are identical, in the same order. Each row below remains Node under
bun-all;dual-allretains its complete Node pass. The removed fork-fixed routes stay on Bun.src/process/spawn-broker/callback-context.test.tssrc/process/spawn-broker/cleanup.test.tssrc/process/spawn-broker/command-startup.test.tssrc/process/spawn-broker/detached-cleanup.test.tssrc/process/spawn-broker/execa.test.tssrc/process/spawn-broker/execution-deadline.test.tssrc/process/spawn-broker/handoff-crash.test.tssrc/process/spawn-broker/handoff.test.tssrc/process/spawn-broker/host.test.tssrc/process/spawn-broker/relay.test.tssrc/process/spawn-broker/spawn-failure.test.tssrc/process/spawn-broker/stdin-handoff.test.tssrc/process/spawn-broker/transports.test.tssrc/process/spawn-utils.test.tssrc/process/supervisor/adapters/child.service-lifecycle.test.tssrc/process/supervisor/service-child-relay-host.retirement.test.tssrc/infra/exec-host.socket.test.tssrc/cli/cli-process-diagnostics.test.tstest/scripts/bench-session-history.test.tssrc/infra/worker-heap-flag.test.tssrc/logging/diagnostic-heap-profile.test.tssrc/gateway/server-methods/diagnostics.heap-snapshot.test.tsui/src/components/desktop/desktop-mobile-keyboard.test.tsui/src/pages/chat/chat-pane-retention.test.tsui/src/pages/chat/chat-thread-retention.test.tsui/src/pages/chat/session-snapshot-store.test.tsui/src/pages/usage/usage-page-retention.test.tsDirect Node lanes left for follow-up
checks-fast-corebuild-artifactsdist/core-boundary tests and TUI PTY proofchecks-node-compatqa-smoke-ci-profilepostgres-conformancechecks-ui-e2eandchecks-ui-e2e-real-gatewaydocker-seed-e2enode-runtime-compat/node-runtime-conformanceopenclaw-performance