Repository navigation
refactor(android): reuse the shared Composer runtime fixture - #148104
vincentkoc wants to merge 1 commit into
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 14, 2026, 5:10 AM ET / 09:10 UTC. ClawSweeper reviewWhat this changesThe Android Composer layout tests reuse the existing runtime fixture binder for setup, restoration, and branch switching, removing their identical private helper. Merge readiness✅ Ready for maintainer review Keep open: this is a behavior-preserving cleanup that remains applicable on current main, with no actionable findings. The member-authored, maintainer-labeled PR is also protected from automatic closure. Priority: P3 Review scores
Verification
How this fits togetherAndroid layout tests install a test runtime into the application so chat screens and view models share controlled fixture state. The shared binder installs or restores that runtime while existing cleanup releases its resources. flowchart LR
A[Composer test setup] --> B[Shared fixture binder]
C[Test runtime or previous runtime] --> B
B --> D[Application runtime slot]
D --> E[Chat view model and layout assertions]
E --> F[Restore runtime and clean up]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests -6. Total -6 across 1 file. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Use the existing shared binder while preserving the suite's runtime restoration, cleanup order, and readiness checks. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR reports duplicated test setup rather than a product defect; source inspection confirms the two implementations are equivalent. Is this the best way to solve the issue? Yes: replacing the duplicate helper with the existing shared implementation is the narrowest consolidation and introduces no production seam. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 5c12872ea0f0. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Maintainer decision: closing this standalone test-fixture cleanup without merge. The shared binder and deleted private helper are equivalent, and the patch preserves the three setup/restoration call sites. But it fixes no product or test failure, removes only six net test-support lines, and unlocks no active Android deliverable. The branch is now 642 Keep the shared helper available for new or actively modified tests. Fold this consolidation into the next concrete Composer/runtime-fixture repair if that owner is touched again; it does not justify a separate refresh, review, and landing cycle. |
What Problem This Solves
The Composer layout suite duplicates the shared Android runtime fixture binding used by the neighboring CompletedWork suite.
User Impact
No user-visible or production behavior changes. All existing tests and assertions remain.
Why This Change Was Made
Use the shared fixture binder at the same three setup, restoration, and branch-rebind points, removing the identical private helper. Runtime cleanup order and the existing Main-thread readiness barrier are unchanged.
Evidence