Repository navigation
test(android): derive locale expectation from packaged resources - #138539
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 4, 2026, 3:52 PM ET / 19:52 UTC. ClawSweeper reviewWhat this changesThe PR changes an Android locale test to obtain its French expected connection-status text from packaged French resources rather than a hard-coded translation. Merge readiness✅ Ready for maintainer review Keep open. This maintainer-authored, test-only PR has no blocking correctness or security finding; it removes a brittle generated-translation literal while retaining the runtime status-to-resource assertion. Priority: P3 Review scores
Verification
How this fits togetherAndroid’s language setting feeds the native string resolver, which maps gateway status text to a packaged resource before status surfaces display it. The changed test verifies that the French resolver output agrees with the French packaged resource. flowchart LR
A[Gateway status text] --> B[Status display resolver]
B --> C[Native string map]
C --> D[French Android resources]
D --> E[Displayed French status]
F[Locale test] --> B
F --> D
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +9. Total +9 across 1 file. View PR surface stats
Review metrics
Technical reviewBest possible solution: Keep the assertion tied to the canonical French packaged resource while preserving the resolver’s raw-status-to-resource mapping check. Do we have a high-confidence way to reproduce the issue? Yes, by source: a valid French resource wording change makes the prior literal assertion fail even when the resolver still selects the correct packaged resource. This read-only review did not execute Android tests locally. Is this the best way to solve the issue? Yes. Reading the expected value directly from the intended French resource avoids coupling the test to generated wording while still independently exercising the production resolver and its resource map. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against e449371c3b15. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash.
|
Summary
The Android locale-switch test pins one French wording of “Connecting…”, so a valid catalog wording update makes the test fail. Read the expected value from an explicitly French Android resource context while continuing to exercise the normal runtime status resolver. Wrong locale selection or status mapping still fails.
This changes one test (+10/-1); runtime code and translations are unchanged. It is separated from #138372 to honor the existing generated-artifact isolation rule. The unrelated Held/Pending label collision remains repaired in that data PR.
Validation