Repository navigation
refactor(android): consolidate Wear proxy bridge test fixtures - #118559
Conversation
|
Codex review: needs real behavior proof before merge. Reviewed August 3, 2026, 3:30 AM ET / 07:30 UTC. ClawSweeper reviewWhat this changesThe PR replaces duplicated Android Wear proxy bridge test setup, encoded-message decoding, and chat-payload construction with private helpers in Merge readiness⛔ Blocked until real behavior proof from a real setup is added - 4 items remain Keep this PR open for normal maintainer review. The patch is a focused, test-only consolidation that preserves the 32 named test cases and their coroutine scheduling markers, with no production, dependency, workflow, or protocol change; however, the branch is behind current Priority: P3 Review scores
Verification
How this fits togetherThe Android Wear proxy bridge accepts watch requests, dispatches them to a request handler, and sends correlated responses or events back through the Wear transport. This test suite verifies the bridge’s peer discovery, queue ordering, cancellation recovery, and chat-stream projection behavior using controlled coroutine scopes and transport doubles. flowchart LR
Watch[Wear watch request] --> Bridge[Proxy bridge]
Bridge --> Handler[Request handler]
Handler --> Bridge
Bridge --> Sender[Wear transport sender]
Sender --> Output[Response or event]
Fixtures[Test fixtures and scheduler checks] --> Bridge
Before merge
Agent review detailsSecurityNone. PR surfaceOther -206. Total -206 across 1 file. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep the helpers private to Do we have a high-confidence way to reproduce the issue? Not applicable: this PR does not report a user-facing bug. The relevant check is source-level semantic parity of the existing concurrency and transport tests, which is high-confidence from the named-test and scheduler-marker comparison. Is this the best way to solve the issue? Yes. Extracting private helpers in the existing test file is the narrowest maintainable approach because it removes repeated fixture construction while preserving per-test injection of the coroutine scope, sender, peer resolver, clock, and request handler. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 7c35cbc4f464. 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
|
|
Maintainer proof override for this test-only cleanup: no production or user-visible behavior changes, so there is no meaningful after-fix operator/runtime flow to demonstrate beyond exercising the unchanged bridge contract through its complete focused suite. The source head remains Exact-head hosted proof is now green: The focused Blacksmith Testbox proof also ran the full 32-test class three consecutive times under each Play and ThirdParty flavor, plus ktlint. Fresh Sol xhigh autoreview was clean. Rank-up moves disposition:
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
@clawsweeper re-review |
|
Merged via squash.
|
What Problem This Solves
The Wear proxy bridge test suite repeated sender, bridge, response-decoding, and chat-payload fixtures across many cases, making its concurrency and queueing contracts harder to audit and maintain.
Why This Change Was Made
Consolidates those repeated test-only fixtures into canonical helpers while preserving all 32 test cases, their order, flavor coverage, coroutine ownership, and every explicit sequencing boundary. Production code, Android build configuration, dependencies, protocols, and behavior are unchanged.
LOC: +130/-336 (1 test file; net -206)
User Impact
No user-visible behavior changes. Maintainers get a smaller Wear proxy test surface with the same coverage and execution semantics.
Evidence
tbx_01kz37aw6t58xdfmf4g23krajr::app:ktlintCheckpassed.WearProxyBridgeTestpassed three consecutive times fortestPlayDebugUnitTestand three consecutive times fortestThirdPartyDebugUnitTeston the same hydrated lease.runTestcases, 5 owned actor-scope tests, 13 synchronous tests, 11runCurrent, 9awaitIdleForTests, and 6 deferred sequencing boundaries.gpt-5.6-solwithxhighreasoning: clean, no accepted/actionable findings (overall: patch is correct (0.99)).