Repository navigation
refactor: reuse prepared fixtures in slow core tests - #157685
Merged
Merged
Conversation
Contributor
|
🦞👀 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. |
steipete
enabled auto-merge (squash)
September 24, 2026 23:56
vincentkoc
added a commit
that referenced
this pull request
Sep 25, 2026
* commit 'ef2dd3235123371860c9154da7b47b2c1e940788': (41 commits) fix(ci): prevent Security Review checkout retry collisions (#157652) fix(ci): recover interrupted Security Review response bodies (#157651) test(ui): capture live operator authority in guest question fixture refactor(agents): deslop runners, harness and recovery (#157294) fix(auth): preserve Copilot tenant credentials during Doctor repair (#139131) refactor(msteams): share stored service URL validation (#157706) fix(codex): honor configured tool PATH in native commands (#157290) refactor(msteams): share approval kind labels (#157705) fix(sessions): keep session results current during cold reads (#156121) fix(testing): capture bounded upgrade integrity diagnostics (#157535) refactor(i18n): reuse native branch candidate extraction (#157636) fix(update): preserve recovery files after ownership refusal (#148890) fix(test): prevent late announcements from contaminating registry tests (#157681) fix(e2e): scan full onboarding logs for prompts (#157624) refactor(session-tools): derive contracts from schemas (#156365) refactor(channels): derive config contracts from schemas (#156367) perf(test): reuse MCP archives and batch worker fixture copies (#157689) refactor: reuse prepared fixtures in slow core tests (#157685) refactor(codex): reuse marketplace reference selection (#157621) chore(ui): refresh control ui locales (#157710) ...
vincentkoc
added a commit
that referenced
this pull request
Sep 25, 2026
* commit '229ab8a1fe957d3d4822309a39ddf9c7ec616395': (25 commits) test(ui): capture live operator authority in guest question fixture refactor(agents): deslop runners, harness and recovery (#157294) fix(auth): preserve Copilot tenant credentials during Doctor repair (#139131) refactor(msteams): share stored service URL validation (#157706) fix(codex): honor configured tool PATH in native commands (#157290) refactor(msteams): share approval kind labels (#157705) fix(sessions): keep session results current during cold reads (#156121) fix(testing): capture bounded upgrade integrity diagnostics (#157535) refactor(i18n): reuse native branch candidate extraction (#157636) fix(update): preserve recovery files after ownership refusal (#148890) fix(test): prevent late announcements from contaminating registry tests (#157681) fix(e2e): scan full onboarding logs for prompts (#157624) refactor(session-tools): derive contracts from schemas (#156365) refactor(channels): derive config contracts from schemas (#156367) perf(test): reuse MCP archives and batch worker fixture copies (#157689) refactor: reuse prepared fixtures in slow core tests (#157685) refactor(codex): reuse marketplace reference selection (#157621) chore(ui): refresh control ui locales (#157710) docs(gateway): show how we build OpenClaw on Team (#157675) refactor: verify IRC surrogate chunking over loopback (#157580) ...
vincentkoc
added a commit
that referenced
this pull request
Sep 25, 2026
* fix(ui): keep Stop available while drafts cannot send * chore: integrate main fixes for Stop UI validation * commit 'ef2dd3235123371860c9154da7b47b2c1e940788': (41 commits) fix(ci): prevent Security Review checkout retry collisions (#157652) fix(ci): recover interrupted Security Review response bodies (#157651) test(ui): capture live operator authority in guest question fixture refactor(agents): deslop runners, harness and recovery (#157294) fix(auth): preserve Copilot tenant credentials during Doctor repair (#139131) refactor(msteams): share stored service URL validation (#157706) fix(codex): honor configured tool PATH in native commands (#157290) refactor(msteams): share approval kind labels (#157705) fix(sessions): keep session results current during cold reads (#156121) fix(testing): capture bounded upgrade integrity diagnostics (#157535) refactor(i18n): reuse native branch candidate extraction (#157636) fix(update): preserve recovery files after ownership refusal (#148890) fix(test): prevent late announcements from contaminating registry tests (#157681) fix(e2e): scan full onboarding logs for prompts (#157624) refactor(session-tools): derive contracts from schemas (#156365) refactor(channels): derive config contracts from schemas (#156367) perf(test): reuse MCP archives and batch worker fixture copies (#157689) refactor: reuse prepared fixtures in slow core tests (#157685) refactor(codex): reuse marketplace reference selection (#157621) chore(ui): refresh control ui locales (#157710) ... Co-authored-by: Vincent Koc <[email protected]>
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Sep 25, 2026
* test(agents): reuse prepared compaction session fixtures * test(agents): reuse recovery databases with isolated lifecycle cleanup * test(agents): reuse Code Mode source projection database * test(worktrees): prepare repository remotes once per suite * test(commands): reuse scoped fixtures and narrow helper imports * test(auto-reply): use canonical stores for usage fixtures * test(infra): seed heartbeat rows without scheduler startup * test(infra): retain migration read workers within each case * test(cron): join scheduler work before advancing fixture clocks * fix(update): import step results from their type owner
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Sep 25, 2026
* fix(ui): keep Stop available while drafts cannot send * chore: integrate main fixes for Stop UI validation * commit '5dae23c843013fce2e0bb80037d232bbabfc70e5': (41 commits) fix(ci): prevent Security Review checkout retry collisions (openclaw#157652) fix(ci): recover interrupted Security Review response bodies (openclaw#157651) test(ui): capture live operator authority in guest question fixture refactor(agents): deslop runners, harness and recovery (openclaw#157294) fix(auth): preserve Copilot tenant credentials during Doctor repair (openclaw#139131) refactor(msteams): share stored service URL validation (openclaw#157706) fix(codex): honor configured tool PATH in native commands (openclaw#157290) refactor(msteams): share approval kind labels (openclaw#157705) fix(sessions): keep session results current during cold reads (openclaw#156121) fix(testing): capture bounded upgrade integrity diagnostics (openclaw#157535) refactor(i18n): reuse native branch candidate extraction (openclaw#157636) fix(update): preserve recovery files after ownership refusal (openclaw#148890) fix(test): prevent late announcements from contaminating registry tests (openclaw#157681) fix(e2e): scan full onboarding logs for prompts (openclaw#157624) refactor(session-tools): derive contracts from schemas (openclaw#156365) refactor(channels): derive config contracts from schemas (openclaw#156367) perf(test): reuse MCP archives and batch worker fixture copies (openclaw#157689) refactor: reuse prepared fixtures in slow core tests (openclaw#157685) refactor(codex): reuse marketplace reference selection (openclaw#157621) chore(ui): refresh control ui locales (openclaw#157710) ... Co-authored-by: Vincent Koc <[email protected]>
vincentkoc
added a commit
that referenced
this pull request
Sep 25, 2026
* refactor(ui): share slash-command failure results * Merge main to incorporate the upstream update type fix * commit '0484d7a3ecf52589b0d3d98741e58e5f6b5bf661': (68 commits) fix(subagents): stop completion transcript retry loops (#157571) perf(sessions): remove duplicate foreground history reference scans (#157572) improve(typesafe): defer startup work until the first decision (#157380) fix(update): restore npm-pack helper typechecking (#157659) fix(packaging): avoid heap exhaustion on large bundles (#157471) refactor(infra): share process error handler registries (#157632) chore(ui): refresh control ui locales (#157573) fix(gateway): release remote Skills subscriptions when shutdown drains (#157592) perf(plugins): reuse declared tool membership during resolution (#156205) fix(ui): pasted text previews fail before sending (#157390) fix(agents): wait for database resources during deletion (#157631) improve: move operator profile database reads off the Gateway thread (#155800) fix: explain rejected settings without losing edits (#157549) fix: keep Gateway responsive while recording trajectory events (#157598) fix(auth): show SIWC email and selected model account identity (#157629) docs: explain Codex app approval precedence (#155089) refactor(wizard): share select prompt requests (#157607) fix(ui): omit empty sections from conversation Markdown exports (#157590) fix(doctor): explain update lint supervisor refusals (#156547) fix(ui): GitHub folder links lose repository context (#157619) ... * Merge frozen main to include the question fixture authority fix * commit '229ab8a1fe957d3d4822309a39ddf9c7ec616395': (25 commits) test(ui): capture live operator authority in guest question fixture refactor(agents): deslop runners, harness and recovery (#157294) fix(auth): preserve Copilot tenant credentials during Doctor repair (#139131) refactor(msteams): share stored service URL validation (#157706) fix(codex): honor configured tool PATH in native commands (#157290) refactor(msteams): share approval kind labels (#157705) fix(sessions): keep session results current during cold reads (#156121) fix(testing): capture bounded upgrade integrity diagnostics (#157535) refactor(i18n): reuse native branch candidate extraction (#157636) fix(update): preserve recovery files after ownership refusal (#148890) fix(test): prevent late announcements from contaminating registry tests (#157681) fix(e2e): scan full onboarding logs for prompts (#157624) refactor(session-tools): derive contracts from schemas (#156365) refactor(channels): derive config contracts from schemas (#156367) perf(test): reuse MCP archives and batch worker fixture copies (#157689) refactor: reuse prepared fixtures in slow core tests (#157685) refactor(codex): reuse marketplace reference selection (#157621) chore(ui): refresh control ui locales (#157710) docs(gateway): show how we build OpenClaw on Team (#157675) refactor: verify IRC surrogate chunking over loopback (#157580) ... * chore: merge frozen main prerequisite repairs Co-authored-by: Vincent Koc <[email protected]>
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Sep 26, 2026
* refactor(ui): share slash-command failure results * Merge main to incorporate the upstream update type fix * commit 'dda1f68bfa102cb804392c0e7cc22c0566a0944a': (68 commits) fix(subagents): stop completion transcript retry loops (openclaw#157571) perf(sessions): remove duplicate foreground history reference scans (openclaw#157572) improve(typesafe): defer startup work until the first decision (openclaw#157380) fix(update): restore npm-pack helper typechecking (openclaw#157659) fix(packaging): avoid heap exhaustion on large bundles (openclaw#157471) refactor(infra): share process error handler registries (openclaw#157632) chore(ui): refresh control ui locales (openclaw#157573) fix(gateway): release remote Skills subscriptions when shutdown drains (openclaw#157592) perf(plugins): reuse declared tool membership during resolution (openclaw#156205) fix(ui): pasted text previews fail before sending (openclaw#157390) fix(agents): wait for database resources during deletion (openclaw#157631) improve: move operator profile database reads off the Gateway thread (openclaw#155800) fix: explain rejected settings without losing edits (openclaw#157549) fix: keep Gateway responsive while recording trajectory events (openclaw#157598) fix(auth): show SIWC email and selected model account identity (openclaw#157629) docs: explain Codex app approval precedence (openclaw#155089) refactor(wizard): share select prompt requests (openclaw#157607) fix(ui): omit empty sections from conversation Markdown exports (openclaw#157590) fix(doctor): explain update lint supervisor refusals (openclaw#156547) fix(ui): GitHub folder links lose repository context (openclaw#157619) ... * Merge frozen main to include the question fixture authority fix * commit 'dc64cc3a3a3cf38fff1e44c1d7af42a32929d7e4': (25 commits) test(ui): capture live operator authority in guest question fixture refactor(agents): deslop runners, harness and recovery (openclaw#157294) fix(auth): preserve Copilot tenant credentials during Doctor repair (openclaw#139131) refactor(msteams): share stored service URL validation (openclaw#157706) fix(codex): honor configured tool PATH in native commands (openclaw#157290) refactor(msteams): share approval kind labels (openclaw#157705) fix(sessions): keep session results current during cold reads (openclaw#156121) fix(testing): capture bounded upgrade integrity diagnostics (openclaw#157535) refactor(i18n): reuse native branch candidate extraction (openclaw#157636) fix(update): preserve recovery files after ownership refusal (openclaw#148890) fix(test): prevent late announcements from contaminating registry tests (openclaw#157681) fix(e2e): scan full onboarding logs for prompts (openclaw#157624) refactor(session-tools): derive contracts from schemas (openclaw#156365) refactor(channels): derive config contracts from schemas (openclaw#156367) perf(test): reuse MCP archives and batch worker fixture copies (openclaw#157689) refactor: reuse prepared fixtures in slow core tests (openclaw#157685) refactor(codex): reuse marketplace reference selection (openclaw#157621) chore(ui): refresh control ui locales (openclaw#157710) docs(gateway): show how we build OpenClaw on Team (openclaw#157675) refactor: verify IRC surrogate chunking over loopback (openclaw#157580) ... * chore: merge frozen main prerequisite repairs Co-authored-by: Vincent Koc <[email protected]>
11 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What Problem This Solves
Slow core test fixtures repeatedly prepare Git repositories, SQLite owners, and workers during ordinary PR validation.
User Impact
Product behavior, scheduled coverage, test cases, and assertions remain unchanged. This reduces repeated test setup while retaining case isolation and real Git/SQLite behavior. No files are deleted or moved to release-only validation.
Why This Change Was Made
Reuse immutable Git fixture inputs and prepared database state where the existing ownership contract permits it, keep mutable state independent, and await the existing completion boundary before cleanup. Heartbeat fixtures now seed their real cron store without starting a scheduler solely for setup. Sixteen selected files receive these changes; four remain unchanged because the remaining cost protects distinct behavior or safe lifecycle isolation.
The adjacent cron fixture repair joins scheduler-owned work before advancing the fake clock. A required type-only import repair also points
UpdateStepResultat its existingupdate-step-result.tsowner, correcting an inherited TS2459 failure without changing updater behavior.Evidence
The 20-file workload improved from 1,850.021 to 1,538.874 seconds: 311.147 seconds lower, or 16.82%. The 30% target was not met. These totals sum each file’s three-run median wrapper wall. The 16 changed rows measured 1,508.424 → 1,176.266 seconds (22.02% lower); unchanged controls were 21.011 seconds slower in aggregate. Unchanged-file fluctuations are not credited as optimization savings.
Validation is complete on head
0267f1dfdab216e3fa45609c1e7149ec4328488f: final branch P2 review was scoped-clean, changed checks passed, and exact-head CI run 36072331367 passed on attempt 1. Formatting and diff checks passed. Auto-merge is off; this PR remains open for coordinator review.Behavior and stability proof passed: every selected file completed three after measurements and ten additional executions; all 17 original groups have passing after receipts; 45 additional Linux files covering helper consumers and related owner tests passed in 13 groups; and the native macOS APFS file passed all 8 cases. Full import-graph discovery refreshed on the final head found the same 70 unique consumers of the six changed helper modules, with no added or removed consumers. Original-group and sibling proof covers 616 unique files.
Complete per-file decisions and three-run median wall times
Values are measured Linux wrapper wall seconds, including preparation and teardown. FAST identifies the implemented fixture optimization; it does not imply that every individual observed median improved. All cases and assertions remain.
src/agents/main-session-recovery/main-session-restart-recovery.test.tssrc/infra/state-migrations.skill-workshop.test.tssrc/agents/embedded-agent-runner/compact.hooks.test.tssrc/agents/embedded-agent-runner/run/attempt-session-replay.test.tssrc/agents/worktrees/service.gc.test.tssrc/commands/agent.test.tssrc/agents/worktrees/service.removal-recovery.test.tssrc/commands/doctor-config-flow.legacy-composition.test.tssrc/infra/heartbeat-runner.tool-response.test.tssrc/auto-reply/reply/session.test.tssrc/agents/main-session-recovery/main-session-recovery-store.test.tssrc/agents/cli-runner/prepare.test.tssrc/infra/heartbeat-runner.model-override.test.tssrc/infra/heartbeat-runner.skips-busy-session-lane.test.tssrc/system-agent/setup-inference-activate.test.tssrc/infra/heartbeat-runner.ghost-reminder.test.tssrc/commands/doctor-config-preflight.plugin-deferral.test.tssrc/agents/sessions/agent-session-code-mode-source.test.tssrc/cron/service/ops.test.tssrc/infra/heartbeat-runner.webchat-exec-completion.test.tsThe replay optimization was dropped: about 1% preliminary gain did not justify duplicating an evolving lifecycle owner. The unchanged canonical replay implementation passed three measurements, ten repetitions, and its original 28-file/640-case group. Its final measurements replace the superseded optimized-replay measurements.
The small worktree median regressions and unchanged setup-inference slowdown are retained in the table rather than removed from the workload total.
Original-group Linux before/after timing
The 16 qualified passing pairs total 3,046.674 → 2,755.263 seconds, 291.411 seconds lower (9.56%). The failed baseline cron group is excluded. The descriptors preserve the complete changed-filtered groups actually executed in the reference PR, not every canonical family’s full inventory. Local groups replay sequentially.
agentic-agents-support-hosted-4core-runtime-infra-storage-state-hosted-15agentic-agents-support-hosted-1core-runtime-infra-storage-state-hosted-6core-runtime-infra-heartbeat-runner-hosted-2core-runtime-infra-storage-state-hosted-4core-runtime-infra-heartbeat-runner-hosted-1core-runtime-cron-parallel-servicecore-runtime-infra-storage-state-hosted-10core-runtime-infra-storage-state-hosted-7agentic-commands-doctor-config-statecore-runtime-infra-storage-state-hosted-14agentic-commands-agent-channelcore-runtime-infra-storage-state-hosted-23core-runtime-infra-storage-state-hosted-5agentic-commands-runtimecore-runtime-infra-storage-state-hosted-24The original after-shards wrapper completed cleanly with 17 passing receipts. Its superseded replay-group receipt was 200.338 seconds; the separate canonical replay group’s 195.406-second receipt supplies the final comparison above.
Native CI job and test-step mapping
The reference is broad green PR run 36047699189. All 61 compact Node jobs in the final run passed; their logs were cached once and decoded to map the selected files. All 20 selected files have logged executions, and the original 17 groups map to 12 final jobs.
These are different job cohorts, not a controlled job-level speedup measurement. Inventories, packing, and resource placement changed between the reference and final CI plans. Only four mapped groups retain both identical inventories and worker ceilings. A job can contain other groups, and an after job may appear in multiple mapping cells. Totals count each job once.
checks-node-changed-compact-small-5(107797423147)checks-node-changed-compact-large-5(107878322838)checks-node-changed-compact-small-13(107797423192)checks-node-changed-compact-small-22(107878323199)checks-node-changed-compact-large-2(107797423198)checks-node-changed-compact-large-2(107878322773)checks-node-changed-compact-small-8(107797423237)checks-node-changed-compact-small-19(107878322791)checks-node-changed-compact-small-18(107878322864)289 / 258
checks-node-changed-compact-small-6(107797423290)checks-node-changed-compact-small-18(107878322864)checks-node-changed-compact-small-17(107878322909)508 / 474
checks-node-changed-compact-large-7(107797423294)checks-node-changed-compact-large-9(107878323064)checks-node-changed-compact-small-4(107797423313)checks-node-changed-compact-small-16(107878322840)checks-node-changed-compact-small-3(107797423325)checks-node-changed-compact-small-13(107878322831)checks-node-changed-compact-large-8(107797423391)checks-node-changed-compact-large-9(107878323064)checks-node-changed-compact-small-12(107797423433)checks-node-changed-compact-small-16(107878322840)checks-node-changed-compact-small-15(107797423474)checks-node-changed-compact-small-19(107878322791)checks-node-changed-compact-small-23(107797423483)checks-node-changed-compact-small-18(107878322864)checks-node-changed-compact-small-16(107797423501)checks-node-changed-compact-small-25(107878325799)checks-node-changed-compact-large-1(107797423548)checks-node-changed-compact-large-1(107878323248)checks-node-changed-compact-small-24(107797426193)checks-node-changed-compact-small-20(107878323048)Deduplicated observed totals: reference 15 jobs, 5,698 / 5,069 seconds; final 12 mapped jobs, 4,732 / 4,311 seconds (job wall /
Run Node test shardsteps). The differences are not attributed to these fixture edits. No post-change main-plan wall-time reduction is claimed, and no test-plan membership or tier change was made.Measurement provenance and limitations
3f54103644972d73215891b5b1c49487470db693. Before and after used distinct Blacksmith Testboxes of the same configured class; recorded hosts reported 4 CPUs, 15.42 GiB, and Node 24.19.0. The baseline lease ended before after-measurement admission. This is not a same-VM experiment.node scripts/run-vitest.mjs --config <canonical-config> <file> --maxWorkers=<2-or-8>with unchanged canonical configs and explicit worker ceilings. Each median comes from three successful runs. Raw samples, source fingerprints, exit codes, and RSS are recorded. Performance probes used verified task-source snapshots before the final rebase; the final native CI run passed the exact PR head.scripts/ci-run-node-test-shard.mtswith preserved descriptors and native worker policy. Three command groups applied the Testbox fallback ceiling of 2 while reference CI admitted ceiling 8. The recorded outer request of 8 is not the effective child limit. This limit is derived from descriptors, runner source, and downloaded after logs, not an actual worker census; baseline child logs were unavailable after lease cleanup. Local paired runs share the replay policy, but do not claim exact CI-resource equivalence.After standalone measurements used Blacksmith Testbox
tbx_01m3aqek6v6jhp14fd5g9sh5wp(run); original-group replays usedtbx_01m3arexs2822v9tx6gsvpghdh(run); canonical replay usedtbx_01m3asvrcz75v29r4xn4v3ys64(run). All task leases are stopped. A hosting workflow can show cancellation during lease cleanup; recorded command exits and reconciled native completion establish the proof outcome.Baseline cron failure and repair: the original 110-file group passed 109 files and failed
src/cron/service.update-recompute-drops-due-every.test.ts, “preserves a due every-job nextRunAtMs on an idempotent schedule re-save,” at itslastRunAtMsassertion. The finished event can precede completion of scheduler-owned continuations. The fixture now joins those original scheduler promises before advancing time, while retaining the running-service assertions. The repair passed 20 focused file executions and three complete original 110-file shard replays, followed by the final campaign group’s 110 files / 1,272 cases. The original offending continuation was not instrumented, so these passes are not claimed as a controlled reproduction of the race. The failed baseline remains recorded and excluded from timing savings.