Repository navigation
fix: prevent cron and gateway stress-run timeouts - #115241
Conversation
|
Codex review: needs real behavior proof before merge. Reviewed July 28, 2026, 11:07 AM ET / 15:07 UTC. ClawSweeper reviewWhat this changesThe PR routes focused agent tests to their existing isolated Vitest harnesses and replaces a polling assertion in a Gateway startup test with a deferred response wait. Merge readiness⛔ Blocked until real behavior proof is added - 3 items remain Keep this PR open. Current main still lacks the PR’s focused embedded-agent ownership routing, so the central test-isolation fix remains necessary; however, the branch is behind main and its body contains result claims rather than inspectable after-fix artifacts, so it needs a current-head refresh and real behavior proof before merge. The Priority: P2 Review scores
Verification
How this fits togetherOpenClaw’s test-project planner converts focused paths and globs into Vitest configuration runs, where each agent shard owns its timeout and isolation contract. The Gateway startup test exercises the WebSocket connection handler and verifies that a startup-unavailable response reaches the test socket. flowchart LR
A[Focused test path or glob] --> B[Test-project planner]
B --> C[Agent ownership decision]
C --> D[Isolated Vitest harness]
D --> E[Deterministic test result]
F[Gateway startup handler] --> G[WebSocket response]
G --> H[Deferred test assertion]
Before merge
Agent review detailsSecurityNone. PR surfaceTests +137, Other +49. Total +186 across 4 files. View PR surface stats
Review metricsNone. Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Rebase onto current main, retain the canonical owner-based routing rather than adding parallel test runners, and attach a redacted real-run trace that shows the selected harnesses and the Gateway startup response completing reliably. Do we have a high-confidence way to reproduce the issue? No high-confidence independent live reproduction was run in this review. The current planner and the PR’s focused routing regressions make the misclassification path source-reproducible, while the reported timing failure still needs an inspectable current-head run. Is this the best way to solve the issue? Yes, provisionally. Preserving the existing full-suite owner configurations for focused targets is narrower and safer than inventing new timeouts or a parallel test runner; the exact result should be checked after rebasing onto current main. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 206f989069fb. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
1108655 to
2905eaa
Compare
|
Merged via squash.
|
…224005-host * origin/main: (72 commits) fix: macOS-only Parallels smoke harness regression (#75293) fix(ios): use configured speech language for system voice (#113372) refactor: centralize isolated agent test ownership (#115340) test(ui): stabilize browser route readiness (#115320) fix(cron): clear automation after failed scheduler shutdown (#115316) fix: keep isolated gateway workspaces and skills inside state dir (#114487) docs: document local TTS on macOS, Linux, and Windows (#110230) fix(tasks): clone only the requested task page (#114277) fix(agents): prevent Code Mode resume loss and unbounded preparation (#115314) fix(process): preserve the first process cancellation reason (#115317) fix(nostr): report unavailable ingress when queue open fails (#115313) fix: prevent Slack and Feishu ingress startup leaks (#115295) fix(slack): avoid unsafe emphasis boundaries (#111575) fix: prevent changed checks from expanding into full lint (#115322) fix(codex): stabilize prompts and expose real cache regressions (#115238) refactor(ui): derive page route specs from the route table (#115214) fix(compaction): plan cut points in trigger units (#111886) (#115309) fix: prevent cron and gateway stress-run timeouts (#115241) fix(ci): validate frozen Matrix QA targets (#115298) test(macos): block real process fallthrough (#113337) ... # Conflicts: # CHANGELOG.md
* fix: make cron and gateway stress tests deterministic * test: update focused agent project expectations * fix: preserve focused agent glob isolation
…afea23-host * origin/main: (72 commits) fix: macOS-only Parallels smoke harness regression (openclaw#75293) fix(ios): use configured speech language for system voice (openclaw#113372) refactor: centralize isolated agent test ownership (openclaw#115340) test(ui): stabilize browser route readiness (openclaw#115320) fix(cron): clear automation after failed scheduler shutdown (openclaw#115316) fix: keep isolated gateway workspaces and skills inside state dir (openclaw#114487) docs: document local TTS on macOS, Linux, and Windows (openclaw#110230) fix(tasks): clone only the requested task page (openclaw#114277) fix(agents): prevent Code Mode resume loss and unbounded preparation (openclaw#115314) fix(process): preserve the first process cancellation reason (openclaw#115317) fix(nostr): report unavailable ingress when queue open fails (openclaw#115313) fix: prevent Slack and Feishu ingress startup leaks (openclaw#115295) fix(slack): avoid unsafe emphasis boundaries (openclaw#111575) fix: prevent changed checks from expanding into full lint (openclaw#115322) fix(codex): stabilize prompts and expose real cache regressions (openclaw#115238) refactor(ui): derive page route specs from the route table (openclaw#115214) fix(compaction): plan cut points in trigger units (openclaw#111886) (openclaw#115309) fix: prevent cron and gateway stress-run timeouts (openclaw#115241) fix(ci): validate frozen Matrix QA targets (openclaw#115298) test(macos): block real process fallthrough (openclaw#113337) ... # Conflicts: # CHANGELOG.md
What Problem This Solves
Fixes an issue where focused or concurrent cron, Workboard, and gateway stress runs could falsely time out or miss the agent tests they were intended to execute. Embedded-agent, tool, support, and specially isolated agent tests were collapsed into the generic project. Gateway startup also raced a cold lazy WebSocket handler against a one-second poll.
Why This Change Was Made
Route focused files, directories, and owner-local globs through the existing canonical agent harnesses. Expand the mixed embedded-agent directory into its four isolated projects; preserve broad agent globs and watch mode. Wait for the actual Gateway response using the existing deferred primitive. This changes test ownership and synchronization, not production Gateway, SQLite, configuration, or protocol behavior.
User Impact
Cron, Workboard, Gateway, and agent test runs select their real owner and retain the correct isolation and timeout contract. Cold Gateway startup no longer fails from an unrelated polling deadline.
Evidence
Rebased and independently reproved on fresh main; reviewed head:
2905eaa46282263ccfe9e7c4cc25cf6a6e6b145e.Remote Linux, provider
blacksmith-testbox, leasetbx_01kymsye2kxre68p6cvdzycrg5:The former failing
check-sqlite-session-flip-proofscenario now passes on this exact rebased source, including real isolated gateway startup, migration, restart, concurrent session operations, and SQLite-first transcript invariants.Fresh independent review:
The broader preceding campaign also passed 340 distinct cron, Workboard, Gateway, tasks, agent, skills, CLI, and UI test files; 61 real-Chromium tests; and six isolated-Gateway scheduling scenarios. The direct terminal proof above is the current-head landing evidence.