Skip to content

fix(test): bound Testbox agentic and extension suites - #115696

Merged
vincentkoc merged 2 commits into
mainfrom
audit/dead-tests-20260729
Jul 30, 2026
Merged

vincentkoc merged 2 commits into
mainfrom
audit/dead-tests-20260729

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Jul 29, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

Fixes remote Testbox full-test failures caused by long-lived aggregate Vitest workers retaining module state until they exhaust memory.

Two independent failures reproduced the same topology bug:

  • the aggregate extension process accumulated 257 process exit listeners and aborted near the 4 GiB heap limit;
  • the aggregate agents-core worker climbed to 4.019 GiB and exited immediately after models-config.providers.stepfun.test.ts.

Why This Change Was Made

The PR gate marks its delegated full-suite command with OPENCLAW_TESTBOX_REMOTE_RUN=1. The full-suite planner uses that marker to expand only the two proven memory-heavy aggregate shards, agentic and extensions, into their existing project-level plans.

That activates the existing bounded process topology without changing ordinary CI:

  • both aggregate configs are removed from the Testbox plan;
  • agents-core uses its existing six process chunks of 104-105 files;
  • extension projects retain their existing owner configs;
  • CI-like Testbox execution remains serial, so the change bounds lifetime rather than adding concurrency.

The existing 8 GiB aggregate extension heap floor remains as a fallback outside this remote path.

User Impact

No product behavior changes. Maintainers get a full Testbox gate that can complete agentic and extension coverage instead of losing a worker to cumulative retained state.

Evidence

@vincentkoc vincentkoc self-assigned this Jul 29, 2026
@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui size: S maintainer Maintainer-authored PR labels Jul 29, 2026
@vincentkoc
vincentkoc force-pushed the audit/dead-tests-20260729 branch from b33eb36 to 46298d7 Compare July 29, 2026 06:44
@vincentkoc
vincentkoc marked this pull request as ready for review July 29, 2026 06:50
@vincentkoc
vincentkoc force-pushed the audit/dead-tests-20260729 branch 2 times, most recently from cffcadb to 4d436b6 Compare July 29, 2026 09:39
@vincentkoc vincentkoc changed the title chore(ui): remove duplicate PR refresh tests test: remove redundant coverage and fix DeepInfra fallback Jul 29, 2026
@vincentkoc
vincentkoc force-pushed the audit/dead-tests-20260729 branch 2 times, most recently from 7001b86 to 254a644 Compare July 29, 2026 09:50
@openclaw-barnacle openclaw-barnacle Bot added channel: whatsapp-web Channel integration: whatsapp-web extensions: deepinfra size: M and removed size: S labels Jul 29, 2026
@vincentkoc
vincentkoc force-pushed the audit/dead-tests-20260729 branch from 254a644 to 56a6034 Compare July 29, 2026 11:02
@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts size: XS and removed channel: whatsapp-web Channel integration: whatsapp-web app: web-ui App: web-ui extensions: deepinfra size: M labels Jul 29, 2026
@vincentkoc vincentkoc changed the title test: remove redundant coverage and fix DeepInfra fallback fix(test): prevent Testbox extension gate heap exhaustion Jul 29, 2026
@vincentkoc
vincentkoc force-pushed the audit/dead-tests-20260729 branch 2 times, most recently from b5a0fd2 to 1ae902b Compare July 29, 2026 12:04
@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. P2 Normal backlog priority with limited blast radius. labels Jul 29, 2026
@clawsweeper clawsweeper Bot added the merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. label Jul 29, 2026
@clawsweeper

clawsweeper Bot commented Jul 29, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed July 30, 2026, 7:17 AM ET / 11:17 UTC.

ClawSweeper review

What this changes

The branch marks delegated remote Testbox full-suite runs and expands the agentic and extension aggregate Vitest shards into their existing project-level process plans only for that remote path.

Merge readiness

⚠️ Ready for maintainer review - 2 items remain

Keep this PR open for maintainer review. The remote-only split is narrowly scoped and has focused planner coverage, but it changes the full Testbox execution topology; the available evidence does not demonstrate an exact-head serial Testbox full-suite completion with the expanded plan.

Priority: P2
Reviewed head: 9824e36e7536090c4aedc865cfab98c9e6eace3f

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The focused patch and planner tests are solid, with one remaining maintainer-facing automation proof requirement for the complete remote suite.
Proof confidence 🐚 platinum hermit (4/6) Not applicable: This is a repository-member PR; the supplied linked gate and planner evidence is relevant, but the remaining merge question is maintainer confirmation of complete remote Testbox behavior rather than an external-contributor proof gate.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This is a repository-member PR; the supplied linked gate and planner evidence is relevant, but the remaining merge question is maintainer confirmation of complete remote Testbox behavior rather than an external-contributor proof gate.
Evidence reviewed 4 items Current patch scope: The supplied PR diff adds one remote-run environment marker in the Testbox gate and makes the planner expand only the full-agentic and full-extensions aggregate shard configurations when that marker is set.
Focused coverage: The supplied test diff preserves aggregate configs for ordinary CI runs and adds a remote-marker test that asserts both aggregate configs are absent while agents-core and Telegram project coverage remain planned.
Prior review continuity: The latest completed ClawSweeper review at 8c8ed85 reported no line-level findings but required proof that the complete serial Testbox run finishes within its lease and covers every intended project; the current supplied PR body still cites planner and gate proof rather than that complete run.
Findings None None.
Security None None.

How this fits together

The PR gate sends the repository’s full test suite to a remote Testbox. The full-suite planner converts the environment and test-shard configuration into serial Vitest process plans, which determine coverage, process lifetime, and whether the remote gate completes.

flowchart LR
A[PR gate] --> B[Remote Testbox environment]
B --> C[Full-suite planner]
C --> D{Remote bounded mode}
D -->|enabled| E[Project-level test plans]
D -->|disabled| F[Aggregate shard plans]
E --> G[Serial Vitest processes]
F --> G
G --> H[Full-suite result]
Loading

Before merge

  • Resolve merge risk (P1) - Merging changes the remote Testbox full-suite contract from two long-lived aggregate workers to many project-level processes; the supplied focused plan assertions do not prove that the exact current head completes within the 240-minute lease while retaining every intended project.
  • Resolve merge risk (P1) - The PR is marked as a maintainer item, so this cleanup workflow should not close or auto-dispatch it.
Agent review details

Security

None.

PR surface

Tests +20, Other +7. Total +27 across 4 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 2 21 1 +20
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 2 9 2 +7
Total 4 30 3 +27

Review metrics

Metric Value Why it matters
Remote planning change 1 new remote-only marker; 2 aggregate shard families expanded This changes the Testbox full-suite process topology while preserving ordinary CI aggregate planning, so full remote coverage and lease completion need direct proof.

Merge-risk options

Maintainer options:

  1. Prove the complete remote suite (recommended)
    Before merging, attach an exact-head serial Testbox full-suite result that shows the expanded plan, intended coverage, and successful completion within the lease.
  2. Pause for a narrower topology change
    If the full run cannot complete or exposes coverage drift, keep the PR open and revise the expansion predicate around the demonstrated failing aggregate path.

Technical review

Best possible solution:

Retain the remote-only bounded topology if an exact-head serial Testbox full-suite run records the expanded plan, completes within the configured lease, and shows the intended project coverage; otherwise narrow the planner condition based on the observed missing or failing path.

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

Unclear: the remote planner path and its conditional expansion are source-reproducible, and the PR body reports prior worker exhaustion, but the supplied evidence does not include a completed exact-head serial Testbox full-suite reproduction.

Is this the best way to solve the issue?

Unclear: limiting the change to the two named remote aggregate shards is a plausible bounded fix, but an end-to-end Testbox completion and coverage result is needed before calling it the best solution.

AGENTS.md: unclear because the file could not be read completely.

Codex review notes: model internal, reasoning high; reviewed against 7a9d2c3e72a2.

Labels

Label justifications:

  • P2: The PR repairs a bounded maintainer test-automation reliability problem without changing product runtime behavior.
  • merge-risk: 🚨 automation: The new remote marker changes which Vitest processes Testbox launches and can affect gate completion or suite coverage after merge.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This is a repository-member PR; the supplied linked gate and planner evidence is relevant, but the remaining merge question is maintainer confirmation of complete remote Testbox behavior rather than an external-contributor proof gate.

Evidence

What I checked:

  • Current patch scope: The supplied PR diff adds one remote-run environment marker in the Testbox gate and makes the planner expand only the full-agentic and full-extensions aggregate shard configurations when that marker is set. (scripts/test-projects.test-support.mjs:4759, 9824e36e7536)
  • Focused coverage: The supplied test diff preserves aggregate configs for ordinary CI runs and adds a remote-marker test that asserts both aggregate configs are absent while agents-core and Telegram project coverage remain planned. (test/scripts/test-projects.test.ts:4645, 9824e36e7536)
  • Prior review continuity: The latest completed ClawSweeper review at 8c8ed85 reported no line-level findings but required proof that the complete serial Testbox run finishes within its lease and covers every intended project; the current supplied PR body still cites planner and gate proof rather than that complete run. (8c8ed85db931)
  • Related history: Recent merged runner work preserved failed-shard diagnostics, showing the affected full-suite orchestration remains actively maintained separately from this process-topology change. (scripts/run-vitest.mjs, ea894bba8af8)

Likely related people:

  • vincentkoc: Authored the current two-commit Testbox topology change and recent merged test-runner work in the same orchestration area. (role: recent area contributor; confidence: high; commits: 1a95fb371b2a, 9824e36e7536, ea894bba8af8; files: scripts/pr-lib/gates.sh, scripts/test-projects.test-support.mjs, scripts/run-vitest.mjs)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Provide an exact-head serial Testbox full-suite completion result with the emitted plan and final coverage outcome.

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 (6 earlier review cycles)
  • reviewed 2026-07-29T12:58:32.242Z sha 1ae902b :: needs maintainer review before merge. :: none
  • reviewed 2026-07-29T15:07:43.573Z sha 56908d1 :: needs maintainer review before merge. :: none
  • reviewed 2026-07-29T18:56:05.176Z sha 555db29 :: needs maintainer review before merge. :: none
  • reviewed 2026-07-30T02:34:22.010Z sha f89aa1e :: needs maintainer review before merge. :: none
  • reviewed 2026-07-30T05:08:53.869Z sha 54d66dd :: needs maintainer review before merge. :: none
  • reviewed 2026-07-30T09:24:44.425Z sha 8c8ed85 :: needs maintainer review before merge. :: none

@vincentkoc
vincentkoc force-pushed the audit/dead-tests-20260729 branch from 1ae902b to 56908d1 Compare July 29, 2026 15:03
@vincentkoc vincentkoc changed the title fix(test): prevent Testbox extension gate heap exhaustion fix(test): bound Testbox agentic and extension suites Jul 29, 2026
@vincentkoc
vincentkoc force-pushed the audit/dead-tests-20260729 branch 3 times, most recently from f89aa1e to 54d66dd Compare July 30, 2026 05:04
@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. and removed rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. labels Jul 30, 2026
@vincentkoc
vincentkoc force-pushed the audit/dead-tests-20260729 branch from 54d66dd to 8c8ed85 Compare July 30, 2026 09:20
@vincentkoc
vincentkoc force-pushed the audit/dead-tests-20260729 branch from 8c8ed85 to 9824e36 Compare July 30, 2026 11:12
@vincentkoc

Copy link
Copy Markdown
Member Author

ClawSweeper rank-up evidence:

I am not repeating the unchanged 97-minute full run: the single failed surface was isolated, fixed on main, and rerun successfully on the exact current head. The rebase changed only unrelated upstream commits; the two topology commits are behaviorally unchanged.

@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. labels Jul 30, 2026
@vincentkoc
vincentkoc merged commit dac0ef6 into main Jul 30, 2026
105 of 107 checks passed
@vincentkoc
vincentkoc deleted the audit/dead-tests-20260729 branch July 30, 2026 11:26
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash.

vincentkoc added a commit that referenced this pull request Jul 30, 2026
* origin/main: (99 commits)
  docs(automation): rename scheduled-tasks feature wording to Automations (#114855)
  feat(ui): finish cron -> Automations rename in visible strings (#114853)
  feat(cli): add openclaw automations alias and reword cron display prose (#114854)
  feat(agents): rename scheduler agent tool cron -> automations (#114841)
  fix(tui): preserve session state across switches and reconnects (#116399)
  feat(agents): report CLI command outcomes in channel progress
  fix(cli): preserve explicit option intent (#116389)
  fix(release): trust update restart harness (#116301)
  test(reef): remove false-green live guard smoke (#116393)
  test(comfy): evaluate live guards after setup (#116388)
  fix(heartbeat): serialize wake lifecycle state (#116351)
  test: remove redundant extension boundary wrapper (#116385)
  fix(test): bound Testbox agentic and extension suites (#115696)
  fix(ui): show the correct Threads page size (#116349)
  test(discord): align progress timing expectations (#116377)
  feat(ui): add composable skill references (#116330)
  fix(qa): prevent Slack cleanup from stalling profile runs (#116361)
  fix(ci): validate frozen release candidates faithfully (#116357)
  improve(ci): fail_fast option for release validation, off by default (#116352)
  fix(agents): compare shell tool names case-insensitively and stop re-parsing tool labels
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jul 31, 2026
* fix(test): split Testbox extension processes

* fix(test): split Testbox agentic processes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer Maintainer-authored PR merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. scripts Repository scripts size: XS 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