Repository navigation
refactor(android): simplify durable outbox test scenarios - #117667
Conversation
|
Codex review: needs real behavior proof before merge. Reviewed August 1, 2026, 6:35 PM ET / 22:35 UTC. ClawSweeper reviewWhat this changesThis PR replaces repeated Android durable-outbox test setup with a private Merge readiness⛔ Blocked until real behavior proof from a real setup is added - 6 items remain Keep this PR open for normal human review. The source change is confined to a fresh-per-test Android scenario fixture and preserves the 76 test names plus deliberately isolated matrix/custom cases, but the protected Priority: P3 Review scores
Verification
How this fits togetherAndroid's chat controller journals outgoing commands in a durable outbox before sending them to the gateway, allowing recovery after offline periods or restarts. The changed unit suite creates fake gateway and storage state, drives controller events, and verifies delivery, retry, ownership, and recovery outcomes. flowchart LR
A[Chat action] --> B[Chat controller]
B --> C[Durable outbox]
C --> D[Gateway delivery]
D --> E[Recovery and acknowledgement]
F[Android scenario tests] --> B
F --> C
Decision needed
Why: The implementation appears coherent, but the protected label prevents automated cleanup and the available PR body does not provide independently inspectable proof for the claimed Testbox run. Before merge
Agent review detailsSecurityNone. PR surfaceOther -422. Total -422 across 1 file. View PR surface stats
Review metricsNone. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Retain one canonical fresh scenario fixture, while preserving the explicitly separate matrix and custom-transport cases, then have a maintainer confirm the exact-head Android results and attach redacted terminal or CI evidence for the focused suite. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR reorganizes regression-test setup rather than reporting a production failure. The relevant verification path is the focused Android durable-outbox test suite on the PR head. Is this the best way to solve the issue? Yes, conditionally: a per-test scenario fixture follows existing Android AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against b84d7e3d5476. 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
|
|
Merged via squash.
|
What Problem This Solves
Android's durable chat-outbox regression suite repeats gateway/storage fixtures, controller wiring, and durable-row setup across 76 named tests, making offline delivery, restart recovery, ownership, and retry behavior harder to audit and maintain.
Why This Change Was Made
Use one private, fresh-per-test scenario fixture that delegates the existing coroutine test scope and centralizes the existing controller and row defaults. Controller construction stays in its original execution position; matrix tests and custom transport cases retain their original isolated setup.
User Impact
No production or user-visible behavior changes. Android offline delivery, durable recovery, claim ownership, cancellation, connection gating, retry/failure handling, history reconciliation, and gateway/session identity retain their complete existing regression coverage.
Evidence
+340/-762, net -422 test lines; production delta 0.2ba48be0dbe480f5ea58cf98b3aa6505e9d057ca01b88c054713db7760dcc17b.ff256d392bdb3c52d79f835103b8e253c5c866936547d40ae46f3115d21988cf.gpt-5.6-solxhigh reviewer plus fresh structured xhigh autoreview; no actionable P0–P2 findings../gradlew --no-daemon --build-cache :app:ktlintCheck./gradlew --no-daemon --build-cache :app:testPlayDebugUnitTest --tests ai.openclaw.app.chat.ChatControllerOutboxTest./gradlew --no-daemon --build-cache :app:testThirdPartyDebugUnitTest --tests ai.openclaw.app.chat.ChatControllerOutboxTestpnpm check:changed -- apps/android/app/src/test/java/ai/openclaw/app/chat/ChatControllerOutboxTest.ktAI-assisted; reviewed and verified against production owners and upstream
kotlinx-coroutines-test1.11.0 scheduler/scope contracts.