Repository navigation
test: isolate browser and worker lifecycle fixtures - #158221
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 25, 2026, 1:52 PM ET / 17:52 UTC (Revision 2). ClawSweeper reviewWhat this changesThe branch adjusts Control UI, worker, workspace, and Google Meet tests to isolate unrelated callbacks and startup work while preserving cancellation and path-admission assertions. Merge readiness✅ Ready for maintainer review The latest head addresses the prior P2 finding by restoring separate untracked raw-filename coverage. Current main lacks these fixture corrections, and the review found no new blocking defect. Priority: P2 Review scores
Verification
How this fits togetherThese tests exercise OpenClaw's Control UI layout, Gateway worker lifecycle, local sandbox workspace, and Google Meet startup. Browser events, worker responses, and Git worktrees enter the fixtures; cleanup and admission results feed CI. flowchart LR
A[Browser events] --> E[Test fixtures]
B[Worker responses] --> E
C[Git worktree] --> E
D[Meet startup] --> E
E --> F[OpenClaw owners]
F --> G[Assertions and CI]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +62. Total +62 across 4 files. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Keep the owner-boundary tests deterministic across platforms while retaining both indexed and genuinely untracked invalid-path coverage. Do we have a high-confidence way to reproduce the issue? Yes, with platform-specific limits: the original APFS filename failure and the affected fixture entrypoints are concrete, and the author reports focused macOS and Linux runs. This read-only review did not execute them. Is this the best way to solve the issue? Yes. The changes isolate fixture-owned callbacks and timing, and preserve the untracked path contract without altering production deadlines or source. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against e0d80000067d. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
|
Restored the initial untracked invalid-UTF-8 contract in 5c93c3b alongside the portable indexed cases. The case reports a skip only when the filesystem rejects the exact raw bytes with EILSEQ or cannot round-trip them. The real raw-path case passes on isolated Linux (29.15s); bypassing only initial path decoding fails its intended rejection assertion (24.02s). The full macOS file passes 27 cases with the existing Podman skip and the explicit unsupported-input skip (94.06s). Production source was restored after the negative control. Changed checks and fresh P2 review pass. @clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Merged via squash.
|
* test: isolate browser and worker lifecycle fixtures * test(gateway): retain untracked raw-path admission coverage
Remove Tasks and TaskFlow runtime, APIs, CLI, SDK surfaces and panels after the Cron, session, native execution and media completion ownership cutovers. Preserve stored rows and import provable legacy native assignments through Doctor; ambiguous ownership stays untouched with a warning. Follows #158221, #158217, #158225, #158222, #158702 and #158776. Related: #156532. Task-specific public APIs retire immediately; retained responsibilities use their existing owners. Maintainer-authorized administrative landing after full CI run 36312986498 attempt 2 passed on 274595e, with subsequent actual conflicts reviewed and focused checks passing. Current PR CI preflight hits the 64 KiB changed-path metadata limit before tests (run 36335042695); its duplicate security-review status mirrors that planning failure. Review and scoped proof are recorded in the PR. Published 9.4 native import is proven; remaining native completion and 9.4 rollback witnesses are explicitly unproven.
Remove Tasks and TaskFlow runtime, APIs, CLI, SDK surfaces and panels after the Cron, session, native execution and media completion ownership cutovers. Preserve stored rows and import provable legacy native assignments through Doctor; ambiguous ownership stays untouched with a warning. Follows openclaw#158221, openclaw#158217, openclaw#158225, openclaw#158222, openclaw#158702 and openclaw#158776. Related: openclaw#156532. Task-specific public APIs retire immediately; retained responsibilities use their existing owners. Maintainer-authorized administrative landing after full CI run 36312986498 attempt 2 passed on 274595e, with subsequent actual conflicts reviewed and focused checks passing. Current PR CI preflight hits the 64 KiB changed-path metadata limit before tests (run 36335042695); its duplicate security-review status mirrors that planning failure. Review and scoped proof are recorded in the PR. Published 9.4 native import is proven; remaining native completion and 9.4 rollback witnesses are explicitly unproven.
Related: #156532
What Problem This Solves
Fixes four fixture failures found while validating Tasks retirement: unrelated animation callbacks, host timer delays, APFS filename restrictions, and unwanted provider startup.
User Impact
No production behavior changes. The affected tests exercise their intended ownership and cancellation contracts consistently on macOS and in shared workers.
Why This Change Was Made
Overlay cleanup now accounts for a legitimate composer resize listener. The worker cancellation case advances virtual time while preserving the 10ms RPC and 100ms cleanup budgets. The workspace tests supply indexed invalid UTF-8 through a real Git index and retain a separate untracked raw-filename case on filesystems that support those bytes. Unsupported filesystem input is reported explicitly. The missing-provider Meet fixture disables unrelated plugin discovery while retaining its browser/audio cleanup assertions.
Evidence
The first Meet invocation stopped before tests because the default runtime-publication context was not isolated. The successful run used task-owned state, configuration, port and service label; no live service was changed. No production deadline or assertion baseline was loosened.
Follow-up review restored the initial untracked-path contract alongside the portable indexed cases. The full macOS file passes 27 cases with two explicit skips (Podman and EILSEQ), in 94.06s. The real raw-file case passes on isolated Linux in 29.15s; bypassing only initial path decoding fails its intended assertion in 24.02s. Production source was restored byte-for-byte after that negative control. Changed checks and fresh P2 review pass.