Repository navigation
ci: move native runtime proofs to release validation - #155606
Conversation
|
🦞👀 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 September 22, 2026, 7:20 AM ET / 11:20 UTC (Revision 6). ClawSweeper reviewWhat this changesMoves twelve expensive runtime test files from automatic CI to manual/release validation, preserves directly edited tests on PRs, separates timing histories, and adds tooling type declarations. Merge readiness✅ Ready for maintainer review The work remains useful: current main lacks this runtime tier, and the related merged changes do not supersede it. No blocking patch defect was found; normal enforced CI gates still apply. Likely related people: steipete (high confidence, prior CI planner work). Priority: P2 Review scores
Verification
How this fits togetherOpenClaw’s CI planner turns repository changes and workflow events into test jobs. This change controls which runtime proofs those jobs execute and keeps startup-test fallback selection consistent with the planner. flowchart TD
A[Workflow event and changed files] --> B[CI test planner]
C[Runtime proof inventory] --> B
B --> D{Automatic or full validation}
D --> E[Automatic tests plus directly edited proofs]
D --> F[Complete manual and release tests]
B --> G[Matching startup fallback inventory]
E --> H[Separate reduced timing history]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +351, Docs +2, Config +24, Other +106. Total +483 across 9 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Keep tier selection in the existing planner, with complete release coverage, consistent startup fallback selection, and independent timing histories. Do we have a high-confidence way to reproduce the issue? Not applicable: this changes CI scheduling rather than repairing a reported application defect; recorded planner comparisons establish the operational behavior. Is this the best way to solve the issue? Yes. Extending the existing planner preserves canonical test ownership and avoids a competing release runner; the shared startup inventory closes the fallback path consistently. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 6ba6f0c7a7e6. 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 (5 earlier review cycles)
|
ead1606 to
d7b936f
Compare
d7b936f to
4dbc073
Compare
Include the declaration-only main fix from 80b9608 so the merge-context UI typecheck resolves the shared Vitest bootstrap import. Executable runtime code and retained release proofs are unchanged.
The isolated stream fixture paid for the shared native worker graph, then transformed the Gateway and reply runtime again inside its 240-second case. PR #155606 run 35717163540, job 106711837964 timed out without a completed scenario. A two-CPU, CI-memory-class replay with the recorded caches and CPU contention reproduced the deadline: the server import consumed 104.6 seconds and reply-runtime startup was still pending at timeout. Host the full Gateway through the existing prepared native fixture and its managed process/state lifetime. Keep the real HTTP provider, WebSocket RPCs, all seven scenarios and assertions, per-PR routing, and every existing test and RPC timeout. Explicitly disable the helper's minimal-Gateway shortcut. Validation: 20 standalone passes, three full 23-file/297-test shard passes, and 26 fixture-owner/sibling tests. The same high-contention probe passes in 72.1 seconds instead of timing out at 240 seconds. Removing the original terminal-event guard makes the native fixture fail its four compatible-text assertions; restoring it passes all seven scenarios. One-worker cost is 27.63 seconds wall and 6.19 seconds test time. P2 review and scoped static checks pass, including the type-aware lint canary.
* commit '739e2410702e0b1ad1d17a6dac07ddc0ab6dbebb': (140 commits) fix(ui): pause passive polling in hidden tabs (#155617) improve(android): keep chat photos outside text bubbles (#155338) fix(ui): preserve saved project after discovery failure (#155619) feat: compare Kitchen Sink Gateway resource costs (#155734) test(gateway): arm clock-jump claim after readiness (#155748) chore(ui): refresh control ui locales (#155700) fix(ci): join archive placement fixtures before teardown (#155751) fix(matrix): keep bot discovery off the Gateway thread (#152122) fix(agents): reconcile late requester recovery receipts (#155357) test(gateway): guard embeddings HTTP fixture lifetimes fix: isolate triage fixture acquisition and cleanup (#155736) refactor(sessions): hydrate saved transcripts off thread (#153325) fix: Claude MCP turns abort before tool timeout (#155663) fix(goals): pause terminal failures and clarify goal states (#155694) fix(test): preserve watcher errors when diagnostic capture fails (#155383) ci: move native runtime proofs to release validation (#155606) fix(auth): decouple compaction from profile rotation (#155204) fix(agents): admit compaction outside retired plugin generations (#151232) perf(ui): reduce automatic session list refetches (#155705) test: avoid unused source repos in release input fixtures (#155733) ...
The isolated stream fixture paid for the shared native worker graph, then transformed the Gateway and reply runtime again inside its 240-second case. PR openclaw#155606 run 35717163540, job 106711837964 timed out without a completed scenario. A two-CPU, CI-memory-class replay with the recorded caches and CPU contention reproduced the deadline: the server import consumed 104.6 seconds and reply-runtime startup was still pending at timeout. Host the full Gateway through the existing prepared native fixture and its managed process/state lifetime. Keep the real HTTP provider, WebSocket RPCs, all seven scenarios and assertions, per-PR routing, and every existing test and RPC timeout. Explicitly disable the helper's minimal-Gateway shortcut. Validation: 20 standalone passes, three full 23-file/297-test shard passes, and 26 fixture-owner/sibling tests. The same high-contention probe passes in 72.1 seconds instead of timing out at 240 seconds. Removing the original terminal-event guard makes the native fixture fail its four compatible-text assertions; restoring it passes all seven scenarios. One-worker cost is 27.63 seconds wall and 6.19 seconds test time. P2 review and scoped static checks pass, including the type-aware lint canary.
* ci: move native runtime proofs to release validation * fix(ci): isolate reduced runtime timing history * fix(tooling): include tsx shim declarations for merge validation Include the declaration-only main fix from fbd27c6 so the merge-context UI typecheck resolves the shared Vitest bootstrap import. Executable runtime code and retained release proofs are unchanged.
Related: #153962, #155568
What Problem This Solves
Automatic PR and main CI repeatedly execute expensive native-process and released-state matrices that belong in full release validation.
User Impact
No application behavior changes. Ordinary PR/main plans omit twelve retained runtime proof files; directly edited existing tests still run on their PRs. Source-only changes can therefore discover regressions in these full matrices later, during release validation; ordinary sibling tests remain in their current tiers.
Why This Change Was Made
Extend the existing planner tier selection with one explicit runtime inventory, retaining every test file, case, assertion, canonical Vitest config, worker policy, and build prerequisite. Manual CI, local full plans, and Full Release Validation keep the entire inventory by default, including frozen trusted workflows that do not pass the new option. Reduced automatic selections use separate timing parents, so their measurements cannot reprice full release workloads. The full-owner estimate remains the fallback until the reduced tier has measurements. Existing plugin/tooling tiers and the separate PR-excluded/main-included proof tier keep their semantics.
All eight state-startup-corpus wrappers move together. One selected startup inventory drives both Node coverage receipts and the workflow fallback, preventing the fallback from silently restoring the deferred matrix. The regular config-startup corpus stays automatic. Existing revision binding and historical-target fallback remain intact.
The release tier retains the separate published-upgrade-survivor Docker cell: a published baseline updater operates on existing legacy operator state against the candidate with automatic authenticated restart (
legacy-operator-state,auto-auth). The synthetic foreground-handoff matrix is not substituted for that contract.Evidence
Every row below has fate RELEASE-ONLY. Tier notation: A = automatic PR/main, R = manual/full release; directly edited existing tests remain selected on PRs after the move, including exact-head PR substitutes. Test source and helpers are unchanged, including the worker-recovery completion synchronization from #154800.
src/config/state-startup-corpus.part-2.test.tssrc/config/state-startup-corpus.part-3.test.tssrc/config/state-startup-corpus.part-4.test.tssrc/config/state-startup-corpus.part-5.test.tssrc/config/state-startup-corpus.part-6.test.tssrc/config/state-startup-corpus.part-7.test.tssrc/config/state-startup-corpus.part-8.test.tssrc/config/state-startup-corpus.test.tssrc/flows/doctor-health.test.tssrc/infra/update-managed-service-handoff-foreground.test.tssrc/node-host/node-worker-supervisor.recovery.test.tssrc/state/openclaw-database-preflight.lifecycle.test.ts*Direct-test PR exception described above. Automatic plans now contain zero of these files unless directly edited. The full corpus retains 34 released-state/config cells plus its inventory assertion; the complete moved inventory retains 192 cases.
The 945.998-second historical total is a summed-case cost proxy from five CI runs at source
fffbda31d90935875d3419995d21ea7e23ecab37, not elapsed workflow savings. The six measured standalone baseline medians total 590.070 seconds (three Linux runs per file at the observed CI worker ceiling, source25c6dd5e3f7ee159b1e45123d37af45e29b7ba21). The other six corpus wrappers were not separately wall-timed. Do not add these two totals. The same unchanged proofs retain their runtime in the release tier; this change removes selection, not test behavior.Rows are the emitted Node planner jobs for each unchanged runner profile and cap, comparing full runtime admission with deferred runtime admission on the same source. Product-only PR and tooling-owner PR selections are separated because tooling-owner changes retain the full tooling family. Repacking can increase row counts despite removing tests; no runner labels, matrix caps, worker limits, or timeouts changed.
Linux guard proof: six files passed via the canonical run-vitest wrapper at one worker on Blacksmith Testbox run 35703271261. Modified-file complete invocation costs: ci-node-test-plan 97.191 s, ci-changed-node-test-plan 112.380 s, ci-workflow-planning 57.785 s. These existing integration guards exercise actual ownership, manifest decisions, and the executable fallback; new cases use synthetic source fixtures without application/Gateway boots or real timers. Workflow guards, workflow evidence, and test-project routing also passed. Initial failures exposed two guard fixture assumptions (grouped-only descriptors and the old option shape), which were corrected before the passing runs. Testbox exited zero and was stopped after proof. These full-file Linux runs preceded the timing-identity correction found by final review. Its regression failed on the former code and passed after repair; focused compact/noncompact, transport, and direct-selection guards then passed in permitted single-file Mac runs. The final exact-head CI passed the planner/guard, lint, type, and docs checks; unrelated runtime failures are recorded below.
Final check-changed passed, including typechecks, export scans, guards, and targeted lint. Formatting, docs MDX sanity, and diff whitespace checks passed. Precommit and final branch autoreview were P2-clean. Exact-head CI and retained-release proof are recorded below.
Final branch autoreview: P2-clean. Head:
2860e4793e205f9cdb341fdce40f4ec06b60c4b1. Fresh combined autoreview is P2-clean, including the declaration-only main repair described below. Both routing commits remain byte-for-byte unchanged. The declaration also passed scoped check-changed, including script typechecking, lint, formatting, export and boundary guards.The initial CI run exposed the same retained-deleted-agent Doctor failure as main run 35706647120. It reproduced in the original 60-file selection and standalone. This branch includes owning main fix
e99e75e2e60, retaining the hard-link guard and fixture. The refreshed original selection passed (58 files, 1 skipped; 523.313 s), as did retained-deletion (43.426 s), discovery (36.170 s), targets (31.802 s), and maintenance-lock (18.839 s). The same storage group also passed in final CI.Previous-head PR CI completed with failure: 153 successful jobs, 12 skipped jobs, three failed test jobs, and the failed aggregate gate. The failed jobs are UI question collapse (2/13), UI new-session modal close (9/13), and compact-small-13's SSH-verified pairing case, which observed approval before the fixture's expected pending response. No GitHub rerun was requested. The branch now includes owning main fix
f87f23c483b4: the SSH probe remains pending until the rejection/retry-hint assertions finish, then every approval/capability assertion runs unchanged. Its owner reproduced the original file failure and passed 50 focused tests. The subsequent run 35715595054 failedcheck-prod-typesin merged-main context: main commit9fd45e587abadded aresolveTsxImportimport fromscripts/lib/tsx-cli-shim.mjswithout a declaration. The UI typecheck reported TS7016 throughvitest.shared.config.ts. CI checked merge0d07bac5(PR head plus main0ed077d468c); that import is absent from the PR head. Main repair80b9608a25ereproduced the exact typecheck before its 18-line declaration and passed afterward. This branch includes the identical declaration, preserving its tested executable runtime. Final exact-head CI completed with failure: 156 successful jobs, 12 skipped jobs, and two failures (checks-node-compact-large-21plus its dependent aggregate gate). All type/lint and UI checks passed.src/gateway/server.incomplete-stream.test.tshit its existing 240-second timeout inagentic-gateway-server-isolated-hosted-9. The test and fixture are unchanged by this PR. The same group passed in previous run 35715595054 (incomplete-stream 60.736 s, then 22 database files/296 cases); decoded descriptors match exactly, including all 23 files, both configs, timing identity, max-eight/fallback-two policy, and resource admission. Both jobs used the same runner class, two CPUs, 8,220,487,680 bytes memory, and two admitted workers/one plan. No between-run repacking/resource-policy difference was found. One Linux replay of the exact failed merge9656ab27d9fdb662450d896584be3c5108a0be6epassed the entire original group: 23 files and 297 tests in 423.234 s, including all seven internal incomplete-stream scenarios in 45.908 s. Replay used Node 24.19.0, two CPUs, and the canonical two-worker/one-plan admission. It had 16,557,260,800 bytes RAM versus CI’s 8,220,487,680 bytes; both are below the group’s 28-GiB threshold, but this is not an exact-host-memory reproduction. The failure did not reproduce and no causal fix was established. Cause remains unresolved; no fixture, timeout, assertion, retry policy, or further CI push has been changed to clear this failure. Replay evidence was downloaded and 15 artifact hashes verified on Linux Testbox run 35718972801; the lease is stopped. Exact-head CI is not green. Both previously failing UI jobs passed in run 35715595054. Both original UI shards passed once without source changes: 2/12 retained 52 files and 247 cases in 426.241 s; 9/12 retained 53 files and 308 cases in 433.426 s. These passing replays do not establish a UI fix; no causal UI repair was identified during the bounded investigation.Full Release Validation dispatch was unavailable because its required native-locale preflight failed: the existing Android stop-response key is missing from 21 native locale artifacts, and the Thai glossary hash is stale. The Control UI locale check passed. No FRV dispatch was made. The authorized fallback uses the canonical tier configs on Linux Blacksmith Testbox and the retained published-updater Docker cell. The refreshed routing candidate at
d7b936f0074bc736aba0ffa153e6558ee4975d86also passed all 192 cases on Linux Blacksmith Testbox run 35711760438: 143 infra cases in 337.515 s, 14 lifecycle cases in 91.061 s, and 35 corpus cases in 458.557 s including the real build. Canonical configs ran with two workers; no case was skipped. A preliminary launch selected an unprepared checkout and stopped before collection; the source-tree-verified prepared checkout then executed each phase once. The final head differs from that proof revision by two test-file changes, a production comment correction, and the declaration-only tooling repair; it changes neither executable runtime code nor the retained proof files. This retained-tier and published-updater evidence is reused for that unchanged contract, with its tested revision stated explicitly.The published-driver × candidate cell passed once on Linux Testbox run 35711649661: published
[email protected]→ candidate2026.9.5atd7b936f0074bc736aba0ffa153e6558ee4975d86;published-upgrade-survivor,legacy-operator-state,auto-auth; 342 s, exit 0. The installed baseline updater performed the upgrade and authenticated restart (candidateInstallMode=updater,updateOutcome=success,updateRestartSource=baseline-update). Automatic migrations, cron/agent/plugin survival, health/ready/status, idempotent update, Doctor-clean state, and backup rollback passed. State schema 17→18; agent schema 19→23. Candidate tarball SHA-256:f54829ad4eb07d80e5cd4f5afa9af725155c4b0a891cebfba5a5bcdadfd7ff8d. One nonblocking exit-snapshot diagnostic was unavailable; the explicit survivor assertions passed. The earlier candidate's package preparation was superseded before its scenario started. This was one scenario attempt, with no retry.Auto-merge is not enabled.