Skip to content

test(cli): split and speed up update-cli tests - #157018

Merged
steipete merged 3 commits into
mainfrom
upd/perf-update-cli-test
Sep 24, 2026
Merged

steipete merged 3 commits into
mainfrom
upd/perf-update-cli-test

Conversation

@steipete

@steipete steipete commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor

Related: #156761

What Problem This Solves

The update CLI's 515-case test file took 244.99 seconds of summed test time, exceeded the per-file CI budget, and forced updater changes through one large serial test unit. This is maintainer-requested test performance work.

User Impact

Update behavior is unchanged. Current main coverage remains in normal per-PR CI across 23 independently scheduled files. The latest rebase passes all 532 cases; the count reflects main retiring one Git/no-restart matrix row when running-Git updates became an explicit refusal.

Why This Change Was Made

Split coverage by update ownership boundaries and keep one shared fixture implementation. Each case retains its private home and writable SQLite copy. The fixture reuses its already-prepared database bytes without reopening them for another admission, and its POSIX child-lifetime double resolves cat through the captured host PATH instead of booting Node. Real PID binding, lease checks, process-group settlement, and metadata subprocesses remain exercised. Windows retains its existing Node fixture.

Explicit completion signals replace the taskkill sleep and exit-spy polling. All files retain the original isolated fork owner; the obsolete max-lines suppression and its baseline entry are removed.

Evidence

Latest rebase proof

Head: c310d8a, rebased onto main at 57a3051. Testbox run, provider blacksmith-testbox, lease tbx_01m3a4y5mewyj1x6ze752bhd2c. The single full pass used OPENCLAW_TESTBOX=1, Node 24.19.0, pnpm 12.4.2, and node scripts/run-vitest.mjs with --maxWorkers=1 and verbose/JSON reporters.

23 files / 532 tests passed, command exit 0. Summed test time: 313.69 s; wrapper wall: 392.84 s; slowest file: 28.67 s; slowest case: 4.32 s. The prior three-pass proof remains below. The fresh lease was stopped after verification.

Local pnpm tsgo passed in 18.58 s; pnpm check:madge-import-cycles passed in 29.64 s, reporting 0 cycles. Targeted lint and diff whitespace checks passed.

The #156996 monolith changes now live with their split owners:

  • update-cli.reporting.test.ts: “refuses a running Git installation with --no-restart” replaces the old refresh-skipped row and preserves main's rejection, no-service-stop, and “still running” assertions.
  • update-cli.service-authority.test.ts: mirrors main's removal of the sealed Git/no-restart row from the stale-metadata matrix. This upstream removal accounts for 533 → 532 cases.

All 269 main registrations are present exactly once, with no assertions lost during extraction. Every split file has one database-worker owner registration. New Git-current, artifact-provenance, and publication tests remain in their unchanged canonical owners. The copied-seed path normalization and the earlier type/cycle repairs are retained.

Main advanced to 54bec77 during proof; it has no further monolith or owner-list changes. This tested rebase stays pinned to 57a3051.

Previous CI-repair proof

Head: bbf195e. Fresh Linux Testbox run, provider blacksmith-testbox, lease tbx_01m3a1k5th7957rsfp1fxawsyr. The command exited 0, and the owned lease was stopped after proof completed.

The CI repair removes the unused first-argument binding from the buffered-command mock and replaces the lifecycle's reverse fixture import with a lifecycle-owned input type. Production LOC: 0; this follow-up changes test support only (+24 / −5). No cases, assertions, suppressions, baselines, or production behavior changed.

pnpm tsgo passed (21.63 s), pnpm check:madge-import-cycles passed with 0 cycles (89.34 s), targeted lint passed, and independent Codex autoreview was scoped-clean through P2.

All 23 split files ran 3× on the fresh lease with OPENCLAW_TESTBOX=1, Node 24.19.0, pnpm 12.4.2, and node scripts/run-vitest.mjs with --maxWorkers=1 and verbose/JSON reporters.

Pass Files / tests passed Summed test seconds Wrapper wall seconds Slowest file seconds Slowest case seconds
1 23 / 533 466.48 556.68 54.88 4.09
2 23 / 533 285.74 351.59 26.02 2.82
3 23 / 533 301.31 368.23 26.70 2.82

The Windows lifecycle file took 39.20 / 26.02 / 26.70 s of summed test time across the three runs.

The source capsule verified this head and the full transferred tree (40295a732dfeff835e360bd2c5c2d980bd632d23), omitting only the retired .artifacts/release-speedup-pr-body.md from tracked transfer source, matching #157308. The local document was restored byte-for-byte; test code stayed unchanged. An initial transport preflight incorrectly required that ignored hydration file to be physically absent; correcting the check to tracked-source membership allowed the proof to run.

Earlier local rebase proof

Rebased onto main at 9e00761; candidate 2ab1bb8. Main's candidate-admission registrar now runs once in update-cli.candidate-admission.test.ts. Its 18 new expanded cases and three existing refusal cases are preserved with their assertions; the shared invocation owner preserves main's installed-admission default and explicit option override. All 269 direct main registrations are accounted for across the split. Other upstream test owners remain unchanged.

23 files / 533 tests passed 3× in a bounded local loop using node scripts/run-vitest.mjs with --maxWorkers=1 and verbose/JSON reporters. Wrapper wall times: 1011.38 / 1026.82 / 1370.28 s. Largest per-file test time across all runs: 95.09 s; largest individual case: 16.30 s. These are macOS / Node 26.9.0 / pnpm 12.4.2 results on a shared 32-CPU host whose observed load ranged from about 39 to 93. They are separate from the historical Linux measurements below; no before/after speed claim compares those hosts. Local proof was explicitly requested for this rebase because Testbox sync was blocked by a tracked artifact on main.

File Cases Local 1 (s) Local 2 (s) Local 3 (s)
update-cli.admission-ledger.test.ts 17 12.11 15.21 19.11
update-cli.already-current.test.ts 35 31.36 41.55 49.99
update-cli.candidate-activation.test.ts 21 37.81 59.59 54.97
update-cli.candidate-admission.test.ts 21 26.86 18.86 71.98
update-cli.config-convergence.test.ts 20 26.68 28.58 55.26
update-cli.finalizer.test.ts 14 14.89 22.75 37.28
update-cli.fresh-doctor.test.ts 26 63.20 36.41 36.00
update-cli.git-service.test.ts 20 33.57 45.00 62.12
update-cli.node-runtime.test.ts 18 22.17 37.96 70.85
update-cli.npm-runtime.test.ts 17 58.60 35.77 60.88
update-cli.package-lifecycle.test.ts 23 42.15 45.18 42.26
update-cli.plugin-convergence.test.ts 43 36.07 40.24 59.48
update-cli.plugin-warnings.test.ts 17 13.08 20.73 31.07
update-cli.post-core-handoff.test.ts 9 21.61 13.60 23.74
update-cli.post-core-recovery.test.ts 11 18.14 27.84 28.81
update-cli.reporting.test.ts 21 47.81 40.57 63.89
update-cli.restart-sentinel.test.ts 18 69.72 37.37 46.21
update-cli.service-authority.test.ts 41 95.09 59.92 64.74
update-cli.service-scope.test.ts 17 21.45 32.64 60.39
update-cli.target-schema.test.ts 33 21.41 57.15 27.59
update-cli.test.ts 50 27.87 45.03 72.20
update-cli.windows-lifecycle.test.ts 24 50.72 78.86 82.87
update-cli.windows-recovery.test.ts 17 25.25 12.06 15.34
Total 533 817.62 852.86 1137.03

Current changed-file gate: node scripts/check-changed.mjs passed locally with exit 0, including all 25 core test typecheck graphs, core/script lint, formatting, ratchets, boundary guards, and unused-export scans. Fresh Codex autoreview (--mode branch --base origin/main) is scoped-clean through P2. An initial spy-lifetime finding was resolved with inspected Vitest 5.0.1 dependency evidence: spyOn returns the existing factory-created vi.fn without installing a restorable wrapper. No assertions or source changes were needed to resolve it.

Relocated into update-cli.candidate-admission.test.ts via the unchanged main registrar:

  • Fresh-profile bootstrap: refuse, admit, and unsupported artifact (3).
  • Config/schema/runtime refusals from candidate, unsupported-target, and fallback owners (8).
  • Reported candidate-owned checks while retaining installed Node preflight (1).
  • Runtime recovery after a warning for existing/fresh profiles (2).
  • Retaining a check the candidate did not report (1).
  • Forcing installed checks before staging (1).
  • Managed-ancestry refusal and staging disposal (1).
  • Dry-run installed checks without staging (1).
  • Existing incompatible-package-target refusal (1), managed-state-schema refusal (1), and newer-Node-runtime refusal (1).

Historical initial split proof (Linux)

All 515 case-name counts match the original suite in each of three complete runs: 22 files / 515 tests passed 3×. No coverage moved to the release-only tier.

Summed test time: 244.99 s before → 219.37 / 201.46 / 230.18 s after. Vitest wall time: 252.00 s before → 257.64 / 233.62 / 265.74 s after. The supported pnpm test wrapper took 265.19 s before and 271.55 / 246.87 / 277.61 s after. Serial wall time remains around the original baseline; the split removes the long indivisible file and lowers summed test time while preserving file parallelism. These runs used Linux, Node 24.19.0, pnpm 12.4.2, one Vitest worker, and isolated Testboxes.

Baseline: 82a518c90ca4e4ef7e7b19832954edb4c283e5be. The initial split candidate was rebased onto 048cc4ec481af17d20a027f895c13ccef8fb6095 before repeated proof. The baseline was measured before that rebase. The table groups its case timings by their new destination; all values are summed test seconds, separate from collection and build preparation.

File Cases Before (s) After 1 (s) After 2 (s) After 3 (s)
update-cli.admission-ledger.test.ts 17 3.40 3.65 3.54 3.36
update-cli.already-current.test.ts 35 13.53 13.80 13.39 16.22
update-cli.candidate-activation.test.ts 21 12.55 11.82 12.52 12.40
update-cli.config-convergence.test.ts 20 9.32 10.00 9.87 11.92
update-cli.finalizer.test.ts 14 7.49 6.60 6.30 6.89
update-cli.fresh-doctor.test.ts 26 20.24 7.17 6.18 8.31
update-cli.git-service.test.ts 20 12.20 14.62 12.06 12.93
update-cli.node-runtime.test.ts 18 7.26 6.68 7.12 8.61
update-cli.npm-runtime.test.ts 17 8.52 8.92 7.77 7.86
update-cli.package-lifecycle.test.ts 23 14.67 15.16 11.20 12.63
update-cli.plugin-convergence.test.ts 43 21.99 14.10 14.16 17.86
update-cli.plugin-warnings.test.ts 17 7.00 6.67 7.09 8.58
update-cli.post-core-handoff.test.ts 9 8.78 4.84 4.64 4.83
update-cli.post-core-recovery.test.ts 11 6.71 5.76 5.06 5.62
update-cli.reporting.test.ts 21 9.72 11.87 10.56 11.83
update-cli.restart-sentinel.test.ts 18 7.65 7.80 7.65 7.74
update-cli.service-authority.test.ts 41 23.03 20.34 15.64 19.66
update-cli.service-scope.test.ts 18 5.48 6.08 5.73 7.00
update-cli.target-schema.test.ts 35 7.88 7.62 7.37 8.39
update-cli.test.ts 50 15.05 12.51 11.87 13.02
update-cli.windows-lifecycle.test.ts 24 18.37 19.18 17.84 20.69
update-cli.windows-recovery.test.ts 17 4.15 4.16 3.88 3.82
Total 515 244.99 219.37 201.46 230.18
Baseline ten slowest cases
Case Seconds
retains the Windows autostart failure outcome through outer cleanup (json=false) 4.356
finalizes downgrade to 2026.4.10 with target writer=false 2.262
finalizes downgrade to 2026.4.29 with target writer=true 2.207
updates git with stale unknown metadata and restart=true 2.091
keeps forced post-core fallback and fresh validation in the stopped service profile 1.939
keeps the candidate stopped through plugin convergence and only restarts the verified previous version after errors (previous plugin error: false) 1.732
admits non-TTY updates with an active session (yes=false) 1.719
updates package with stale unknown metadata and restart=true 1.715
runs updated plugin migrations for a plugin-only current-process update 1.623
starts update triage when native stop preparation cannot restore task autostart 1.509
Reproduction commands
files=(
  src/cli/update-cli.admission-ledger.test.ts \
  src/cli/update-cli.already-current.test.ts \
  src/cli/update-cli.candidate-activation.test.ts \
  src/cli/update-cli.config-convergence.test.ts \
  src/cli/update-cli.finalizer.test.ts \
  src/cli/update-cli.fresh-doctor.test.ts \
  src/cli/update-cli.git-service.test.ts \
  src/cli/update-cli.node-runtime.test.ts \
  src/cli/update-cli.npm-runtime.test.ts \
  src/cli/update-cli.package-lifecycle.test.ts \
  src/cli/update-cli.plugin-convergence.test.ts \
  src/cli/update-cli.plugin-warnings.test.ts \
  src/cli/update-cli.post-core-handoff.test.ts \
  src/cli/update-cli.post-core-recovery.test.ts \
  src/cli/update-cli.reporting.test.ts \
  src/cli/update-cli.restart-sentinel.test.ts \
  src/cli/update-cli.service-authority.test.ts \
  src/cli/update-cli.service-scope.test.ts \
  src/cli/update-cli.target-schema.test.ts \
  src/cli/update-cli.test.ts \
  src/cli/update-cli.windows-lifecycle.test.ts \
  src/cli/update-cli.windows-recovery.test.ts
)
for run in 1 2 3; do
  pnpm test "${files[@]}" --maxWorkers=1
done
OPENCLAW_TESTBOX=1 pnpm check:changed

OPENCLAW_TESTBOX=1 pnpm check:changed passed on the initial split head 47f98ee, including all 25 core test typecheck graphs, all five core lint stripes, script lint, ratchets, boundary guards, and unused-export scans. The warning-only temp-directory report flags the pre-existing suite-owned root moved into the fixture helper; its original cleanup lifecycle is retained. Final-head remote proof completed with command exit 0. The current candidate uses the local rebase proof above.

Independent Codex review on 47f98eeeafd00f963487b89240ec60bf887bc51f: scoped-clean through P2, using --mode branch --base origin/main.

A bounded seven-case fixture profile measured 1.16 s waiting for 11 dummy Node children and 429 ms in seven state admissions; warm home creation was under 1 ms per case. Fresh per-case homes were retained. The initial full extraction run caught one stale service-port variable reference (514 passed / 1 failed); that reference was corrected before the three clean repetitions. The changed gate also required pruning the now-stale line-cap baseline entry.

Production LOC: +0 / -0. Test and test-support LOC: +15,577 / -13,471, largely relocation and imports. Test routing: +22 / -0. Line-cap baseline: +0 / -1.

@clawsweeper

clawsweeper Bot commented Sep 24, 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 cli CLI command changes size: XL labels Sep 24, 2026
@steipete
steipete marked this pull request as ready for review September 24, 2026 04:40
@steipete
steipete enabled auto-merge (squash) September 24, 2026 04:45
@clawsweeper

clawsweeper Bot commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 24, 2026, 1:25 PM ET / 17:25 UTC (Revision 5).

ClawSweeper review

What this changes

Splits the updater CLI test suite into independently scheduled files with shared fixtures, updates CI test ownership, and speeds up a fixture subprocess.

Merge readiness

✅ Ready for maintainer review

Keep open. Current main and the latest release still have the large updater test file, so this remains a distinct contribution. The current head resolves the prior Git --no-restart review finding and includes positive test-run evidence.

Priority: P3
Reviewed head: c310d8ad4cb74c9b5d0673f6bc8eac33ddf61ddf

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The test extraction has strong measured proof and resolves the prior finding, with no blocking defect identified in this review.
Proof confidence 🦞 diamond lobster (5/6) Sufficient (terminal): The changed test fixture and CI registry are exercised by the PR body's final-head Linux Testbox transcript: 23 files and 532 tests passed, with a 28.67-second slowest file against the earlier 244.99-second single-file baseline. The Actions job was cancelled during lease teardown and its logs were unavailable to this reviewer; the detailed captured command result supplies the after-change evidence. No product stored-data contract changes.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (terminal): The changed test fixture and CI registry are exercised by the PR body's final-head Linux Testbox transcript: 23 files and 532 tests passed, with a 28.67-second slowest file against the earlier 244.99-second single-file baseline. The Actions job was cancelled during lease teardown and its logs were unavailable to this reviewer; the detailed captured command result supplies the after-change evidence. No product stored-data contract changes.
Evidence reviewed 7 items Current-main necessity: Current main still has the 13,892-line updater test file and lacks the new split files.
Latest-release check: The v2026.9.6 tag contains the monolithic updater test path and none of the split files checked here.
Prior finding resolved: The split reporting test now expects a running Git installation with --no-restart to refuse, with no service stop and a visible 'still running' error; those assertions match current main.
Findings None None.
Security None None.

How this fits together

The updater CLI tests exercise Git and package updates, service handling, Doctor, and recovery through shared fixtures. A test registry assigns these files to CI shards, whose results guard updater changes.

flowchart LR
  A[Updater behavior] --> C[Split test cases]
  B[Shared fixtures] --> C
  C --> D[Test owner registry]
  D --> E[CI test shards]
  E --> F[Pass or fail results]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Tests +2128, Other -1. Total +2127 across 32 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 31 15599 13471 +2128
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 0 1 -1
Total 32 15599 13472 +2127

Review metrics

Metric Value Why it matters
Production versus test growth production +0/−0; tests and support +15,577/−13,471 The net growth comes from extracting shared fixtures and split tests; updater runtime code is unchanged.
Latest per-file cost 28.67 s slowest; 532/532 tests passed Per-file scheduling and cost are the purpose of this PR, and the latest reported Linux Testbox pass covers the full split suite.

Technical review

Best possible solution:

Keep one shared fixture owner, retain every updater scenario in its owning test file, and run all split files through the existing database-worker CI route.

Do we have a high-confidence way to reproduce the issue?

Not applicable: this is test-suite maintenance. Current main's large single file and the PR's measured baseline establish the performance motivation.

Is this the best way to solve the issue?

Yes. The split preserves one fixture owner and the database-worker CI route, and the formerly mismatched Git refusal case now follows current main.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 6e8d06876fd1.

Labels

Label changes:

  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (terminal): The changed test fixture and CI registry are exercised by the PR body's final-head Linux Testbox transcript: 23 files and 532 tests passed, with a 28.67-second slowest file against the earlier 244.99-second single-file baseline. The Actions job was cancelled during lease teardown and its logs were unavailable to this reviewer; the detailed captured command result supplies the after-change evidence. No product stored-data contract changes.
  • remove rating: 🦐 gold shrimp: Current PR rating is rating: 🐚 platinum hermit, so this older rating label is no longer current.
  • remove status: ⏳ waiting on author: Current PR status label is status: 👀 ready for maintainer look.

Label justifications:

  • P3: This is internal test performance and maintenance work without a reported user-facing regression.
  • merge-risk: 🚨 automation: The changed test-owner registry determines which CI shard executes every moved updater test.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (terminal): The changed test fixture and CI registry are exercised by the PR body's final-head Linux Testbox transcript: 23 files and 532 tests passed, with a 28.67-second slowest file against the earlier 244.99-second single-file baseline. The Actions job was cancelled during lease teardown and its logs were unavailable to this reviewer; the detailed captured command result supplies the after-change evidence. No product stored-data contract changes.
  • proof: sufficient: Contributor real behavior proof is sufficient. The changed test fixture and CI registry are exercised by the PR body's final-head Linux Testbox transcript: 23 files and 532 tests passed, with a 28.67-second slowest file against the earlier 244.99-second single-file baseline. The Actions job was cancelled during lease teardown and its logs were unavailable to this reviewer; the detailed captured command result supplies the after-change evidence. No product stored-data contract changes.

Evidence

What I checked:

  • Current-main necessity: Current main still has the 13,892-line updater test file and lacks the new split files. (src/cli/update-cli.test.ts:1, 6e8d06876fd1)
  • Latest-release check: The v2026.9.6 tag contains the monolithic updater test path and none of the split files checked here. (src/cli/update-cli.test.ts, eb377ac59e6c)
  • Prior finding resolved: The split reporting test now expects a running Git installation with --no-restart to refuse, with no service stop and a visible 'still running' error; those assertions match current main. (src/cli/update-cli.reporting.test.ts:275, c310d8ad4cb7)
  • Prior matrix row resolved: The stale-metadata matrix retains restart-enabled Git cases and package cases, without the removed Git/no-restart success row. (src/cli/update-cli.service-authority.test.ts:410, c310d8ad4cb7)
  • CI ownership: The introduced patch registers each split file alongside the retained updater test file in the database-worker test list; the CI planner consumes that list for its storage-state shard. (test/vitest/vitest.database-worker-core-paths.mjs:174, c310d8ad4cb7)
  • Behavior proof: The captured PR body, whose source hash matched the live body, reports a final-head Linux Testbox command exit of 0 with 23 files and 532 tests passing; the slowest file took 28.67 seconds. The linked Actions job is marked cancelled after Testbox teardown, and its redirected logs were unavailable through the review proxy, so the command-level result is supported by the detailed PR-body transcript. (c310d8ad4cb7)

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • vincentkoc: 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.

History

Review history (4 earlier review cycles)
  • reviewed 2026-09-24T04:48:57.095Z sha 47f98ee :: blocked before merge. :: none
  • reviewed 2026-09-24T12:46:58.375Z sha a17562eabc1ccf0fc0c2fd52c5f5ec25c85112f4 :: blocked before merge. :: [P2] Break the fixture-to-lifecycle import cycle
  • reviewed 2026-09-24T15:54:35.279Z sha bbf195e :: blocked before merge. :: none
  • reviewed 2026-09-24T16:46:21.931Z sha bbf195e :: blocked before merge. :: [P2] Carry main's Git no-restart refusal into the split tests

@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Sep 24, 2026
@steipete
steipete force-pushed the upd/perf-update-cli-test branch from a17562e to 2ab1bb8 Compare September 24, 2026 14:40
@steipete
steipete disabled auto-merge September 24, 2026 15:23
@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Sep 24, 2026
@steipete
steipete enabled auto-merge (squash) September 24, 2026 16:40
Preserve all 515 update CLI cases while splitting orchestration coverage by owner boundary. Keep isolated writable state and live child admission, remove repeated fixture admission and Node startup, and synchronize completion without sleeps or polling. Update runtime behavior is unchanged.
@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 24, 2026
@steipete
steipete force-pushed the upd/perf-update-cli-test branch from bbf195e to c310d8a Compare September 24, 2026 17:02
@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Sep 24, 2026
@steipete
steipete merged commit c93810d into main Sep 24, 2026
202 checks passed
@steipete
steipete deleted the upd/perf-update-cli-test branch September 24, 2026 17:30
@roboclaw-bot roboclaw-bot mentioned this pull request Sep 24, 2026
2 of 8 tasks
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 25, 2026
* test(cli): split and speed up update-cli tests

Preserve all 515 update CLI cases while splitting orchestration coverage by owner boundary. Keep isolated writable state and live child admission, remove repeated fixture admission and Node startup, and synchronize completion without sleeps or polling. Update runtime behavior is unchanged.

* chore(test): retire update-cli line-cap exemption

* test(cli): fix updater fixture type and cycle checks
steipete added a commit that referenced this pull request Sep 26, 2026
…ort #158414 to 2026.9.7) (#158910)

* fix(plugins): recover missing retained capture directories (backport #158769)

Recreate a lost payload directory under its existing native custody lease,
without recreating the coordinator parent. Required by the native artifact
admission backport so captures and native payloads can share one live instance.

(cherry picked from commit 4543ce2)

Conflict resolution: release/2026.9.7 predates the recovery test file; port only
the missing-directory regression, without later main-only cleanup tests.
Proof: focused regression passed (1 test, 87 ms; wrapper 2.39 s). Fresh Codex
review found no actionable P0/P1 findings. Refs #158712; thanks @yihan331313.

* perf(plugins): stop reading native plugin artifacts at startup

Reuse installed native admission receipts and retained package payloads across
artifacts and generations while preserving companion namespaces, mutable
snapshots, worker publication, and install rollback ownership.

(cherry picked from commit 9faa93d)

Conflict resolution for release/2026.9.7: retain the release catalog-worker
protocol, installed-index and lease helpers, and token-bearing cleanup policy.
Adapt native footprint coverage to the existing catalog-capture integration
suite. Exclude main-only updater extraction and later catalog/cleanup refactors.
Reuse the release path-selection logic and extract the unchanged browser-asset
predicate. Keep admission preparation and dispatch in a plugin-owned worker
module to preserve the state-worker line cap.

Prerequisite: #158769, 4543ce2, is backported
separately so captures and native directories can share an existing custody lease.
Refs #158414 #157815 #158738.

Evidence: 18 touched files / 288 cases passed three times; 29 importer shards /
11,150 cases passed, plus 10 live cases. Build, release-base changed checks,
and independent P1 review passed on this exact tree.

Slow-test follow-up on release/2026.9.7: update-cli.test.ts, owner: CLI tooling;
main has #157018. No unrelated test-performance changes are included.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cli CLI command changes merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XL status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant