Repository navigation
fix(ci): isolate obsolete Android localization fixture - #157397
Conversation
Build the obsolete-only fixture from the current generated catalog before inserting retired rows, so pending locale refresh cannot add unrelated missing active strings. Preserve every strict, reference, missing-row and malformed XML/Kotlin rejection assertion. No generator or generated-resource changes are needed.
|
🦞👀 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 24, 2026, 12:34 PM ET / 16:34 UTC. ClawSweeper reviewWhat this changesThe PR builds the Android obsolete-translation test fixture from the generator’s complete catalog, then adds retired rows to exercise the intended warning and rejection behavior. Merge readiness✅ Ready for maintainer review Keep open: current main still has the fixture that can mix pending locale refresh changes into the obsolete-row check. No merged fix or canonical PR covers this test. Priority: P2 Review scores
Verification
How this fits togetherOpenClaw generates Android Kotlin lookup entries and XML strings from source text and translation data. Its localization checker compares those generated expectations with resources and reports obsolete rows only when no other drift exists. flowchart LR
A[Android source and translations] --> B[Catalog generator]
B --> C[Expected Kotlin and XML]
C --> D[Obsolete-row test fixture]
D --> E[Localization checker]
E --> F[Warning or drift failure]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +1. Total +1 across 1 file. View PR surface stats
Review metrics
Technical reviewBest possible solution: Preserve the separate resource-alignment check and the negative cases for live references and malformed rows when landing this focused fixture repair. Do we have a high-confidence way to reproduce the issue? Yes, by source: current main seeds the obsolete-row case from checked-in resources while the checker compares against a newly generated catalog, so pending refresh changes can add unrelated drift. The suite was not run in this read-only review. Is this the best way to solve the issue? Yes. Seeding this one fixture from the expected catalog isolates its stated contract without changing the production checker or weakening the separate resource-alignment test. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 43d35bd4ca10. 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.
|
Adopt the canonical fixture from #157397. Build the synthetic obsolete rows directly from generated catalog entries while preserving strict validation, live-reference checks, and cleanup.
…157397) Build the obsolete-only fixture from the current generated catalog before inserting retired rows, so pending locale refresh cannot add unrelated missing active strings. Preserve every strict, reference, missing-row and malformed XML/Kotlin rejection assertion. No generator or generated-resource changes are needed.
Related: #157347
What Problem This Solves
The Android obsolete-row test fails when generated translations are waiting for their normal refresh: its fixture inherits missing active strings as well as the obsolete rows it intends to test.
User Impact
Test-only repair. Product behavior and generated resources stay unchanged.
Why This Change Was Made
Start from the complete generated catalog, then add obsolete rows. Existing strict validation and live-reference, missing-row, malformed XML, and malformed Kotlin rejection checks remain intact.
Evidence
9ccfc7d; the repaired original 41-file group passed 2,689 tests with 3 existing skips.8868811, all 36 file tests and canonical changed-file checks passed. Review was reused after verifying identical test and generator bytes.pnpm test test/scripts/android-app-i18n.test.ts --maxWorkers=1: 19.67 seconds wall; obsolete-row case: 13.08 seconds. No cases or generator invocations added.Local proof used macOS/Node 24.21; exact-head Linux CI remains required.