Repository navigation
test: consolidate OpenClaw E2E fixtures - #117701
Conversation
|
Codex review: needs maintainer review before merge. Reviewed August 1, 2026, 8:14 PM ET / August 2, 2026, 00:14 UTC. ClawSweeper reviewWhat this changesThe branch centralizes temporary-directory lifecycle, Bash execution, package-install, and timeout-dispatch fixtures in Merge readinessKeep this PR open for protected maintainer review. The submitted head is a cleanly mergeable, test-only fixture consolidation with no concrete correctness finding; the remaining gate is terminal exact-head CI plus a maintainer decision on the protected refactor. Priority: P3 Review scores
Verification
How this fits togetherOpenClaw’s E2E instance suite creates isolated shell fixtures, invokes the E2E shell helper, and asserts process, timeout, package-install, and cleanup behavior. This PR refactors that test harness while leaving the production helper it exercises unchanged. flowchart LR
A[E2E test cases] --> B[Shared test fixtures]
B --> C[Temporary directories]
B --> D[Bash runner]
D --> E[E2E shell helper]
E --> F[Process and timeout assertions]
C --> G[Synchronous cleanup]
Decision needed
Why: There is no supported line-level defect to repair automatically, while the Before merge
Agent review detailsSecurityNone. PR surfaceTests -280. Total -280 across 1 file. View PR surface stats
Review metricsNone. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Retain the shared test-fixture boundary and merge only after exact-head CI is green and a maintainer confirms that this protected cleanup has the desired review scope. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR refactors test fixtures rather than reporting a user-visible defect. The provided focused Testbox evidence covers the affected E2E and PTY test path. Is this the best way to solve the issue? Yes, subject to final CI: placing repeated lifecycle and process setup in test-owned helpers is the narrowest maintainable solution, while production shell behavior remains unchanged. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against e9d70a5345e5. LabelsLabel 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
HistoryReview history (1 earlier review cycle)
|
e4bc87e to
808cea3
Compare
|
Merged via squash.
|
…elf-release * commit '10a390ed7fa88d09da0d4523c3ed1e3550ece5c6': (4646 commits) fix(release): allow larger npm plugin artifacts (openclaw#117745) refactor(macos): consolidate gateway process fixtures (openclaw#117740) fix(ui): preserve complete persisted log messages (openclaw#117666) fix(ui): decode artifact previews as UTF-8 (openclaw#117657) fix(control-ui): restore sandbox media previews (openclaw#117689) fix(plugins): link host declared as direct dependency (openclaw#117738) fix(macos): avoid self-named defaults suite (openclaw#117690) fix(inference): preserve run ownership and completion delivery (openclaw#117731) test(talk): align browser E2E tool completion test: consolidate OpenClaw E2E fixtures (openclaw#117701) fix(release): ignore bundle fields in npm locks (openclaw#117730) fix(meeting-bot): keep configured host options internal refactor(line): remove dead card helpers (openclaw#117729) perf(cli): attribute command startup stages (openclaw#117720) refactor(whatsapp): deduplicate reply delivery test fixtures (openclaw#117710) docs(changelog): note bounded WebRTC tool calls docs(changelog): note meeting audio bounds fix(meeting-bot): preserve node host SDK surface test(talk): split WebRTC tool lifecycle coverage fix(meeting-bot): break node host import cycle ... # Conflicts: # package.json # src/agents/model-auth.ts
Summary
Architecture
test/scripts/openclaw-e2e-instance.test.ts; the production shell helper remains unchanged.Validation
node scripts/run-vitest.mjs test/scripts/openclaw-e2e-instance.test.ts test/scripts/e2e-run-with-pty.test.ts --reporter=dot(31 + 5 passed after rebase)aa077e306a75d3e8f42a9014a0bf4a158bc79097ce40793f84019319e158c8c874e386d8d9c3f0b0765cc6418121e8067f2fb98e6d9c1e518e53b56cf7040cb74a4e7eeef1900a4b3443e8060a46598ac08dae775f7db849c1c09bdf7a0db055git diff --check