test: drop long iMessage image test timeouts#87499
Conversation
|
Codex review: needs maintainer review before merge. Reviewed May 28, 2026, 12:21 AM ET / 04:21 UTC. Summary PR surface: Tests +2. Total +2 across 1 file. Reproducibility: yes. for the timeout surface: current main contains two Review metrics: 1 noteworthy metric.
Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Risk before merge
Maintainer options:
Next step before merge
Security Review detailsBest possible solution: Land the focused timeout cleanup after current CI or an equivalent agents-tools shard run confirms the refreshed head. Do we have a high-confidence way to reproduce the issue? Yes for the timeout surface: current main contains two Is this the best way to solve the issue? Yes: removing the test-specific timeout keeps the behavior coverage and lets normal Vitest timeouts catch future stalls. There is no production, config, or plugin API change to prefer instead. AGENTS.md: found and applied where relevant. Codex review notes: model gpt-5.5, reasoning high; reviewed against 313d6ae1b3c4. Label changesLabel justifications:
Evidence reviewedPR surface: Tests +2. Total +2 across 1 file. View PR surface stats
What I checked:
Likely related people:
What the crustacean ranks mean
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. How this review workflow works
|
|
ClawSweeper PR egg: ✨ hatched 🥚 common Frosted Clawlet. Rarity: 🥚 common. Trait: collects tiny proofs. DetailsShare on X: post this hatch
About:
|
7b10d65 to
5137a24
Compare
5137a24 to
144fb1e
Compare
Summary
240_000ms per-test timeouts now that the channel inbound-root seam is mocked on main and these cases complete quickly.Verification
pnpm exec oxfmt --write --threads=1 src/agents/tools/image-tool.test.ts src/agents/tools/media-tool-shared.test.tsOPENCLAW_VITEST_NO_OUTPUT_TIMEOUT_MS=30000 node scripts/run-vitest.mjs run --config test/vitest/vitest.agents-tools.config.ts src/agents/tools/image-tool.test.ts -t 'iMessage' --reporter=verbose --testTimeout=10000OPENCLAW_VITEST_NO_OUTPUT_TIMEOUT_MS=120000 node scripts/run-vitest.mjs run --config test/vitest/vitest.agents-tools.config.ts src/agents/tools/image-tool.test.ts src/agents/tools/media-tool-shared.test.ts --reporter=verbosegit diff --checkReal behavior proof
Behavior addressed: after main moved image-tool tests onto a mocked channel inbound-root seam, the two iMessage attachment-root image-tool tests no longer need
240000mstimeouts that can hide a stall and makechecks-node-agentic-agentsrun long.Real environment tested: local Node 24.16.0 checkout with repo dependencies installed via pnpm.
Exact steps or command run after this patch:
OPENCLAW_VITEST_NO_OUTPUT_TIMEOUT_MS=120000 node scripts/run-vitest.mjs run --config test/vitest/vitest.agents-tools.config.ts src/agents/tools/image-tool.test.ts src/agents/tools/media-tool-shared.test.ts --reporter=verbose.Evidence after fix: after rebasing onto origin/main, the two touched test files passed together: 2 files, 87 tests, 6.90s. The two iMessage image-tool tests passed under a 10s timeout in a focused run, taking 128ms and 53ms in that run.
Observed result after fix: the iMessage image-tool coverage remains in place, and a future stall in those cases will fail on the normal test timeout instead of waiting 240s.
What was not tested: the full
checks-node-agentic-agentsCI shard was not run locally; this PR uses focused touched-file proof.Agent Transcript
Redacted codex session transcript