Skip to content

fix(ci): isolate obsolete Android localization fixture - #157397

Merged
steipete merged 1 commit into
mainfrom
fix/ci-fixture-contracts-20260924
Sep 24, 2026
Merged

steipete merged 1 commit into
mainfrom
fix/ci-fixture-contracts-20260924

Conversation

@steipete

Copy link
Copy Markdown
Contributor

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

  • Reproduced on main 9ccfc7d; the repaired original 41-file group passed 2,689 tests with 3 existing skips.
  • On base 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.

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.
@steipete steipete self-assigned this Sep 24, 2026
@clawsweeper

clawsweeper Bot commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@steipete
steipete marked this pull request as ready for review September 24, 2026 16:27
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 24, 2026
@clawsweeper

clawsweeper Bot commented Sep 24, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 24, 2026, 12:34 PM ET / 16:34 UTC.

ClawSweeper review

What this changes

The 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
Reviewed head: f6a214e08948a717b1262217966ed4013cd15f00

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The focused repair preserves strict negative controls and reports measured local validation.
Proof confidence 🐚 platinum hermit (4/6) Not applicable: The member-authored patch changes only a test fixture; its body reports a focused run of the Android localization check on macOS/Node 24.21, and no stored-data contract changes.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The member-authored patch changes only a test fixture; its body reports a focused run of the Android localization check on macOS/Node 24.21, and no stored-data contract changes.
Evidence reviewed 8 items Introduced PR change: The pinned merge-base-to-head diff changes only the obsolete-row test fixture, seeding it from the generated catalog and retaining its negative assertions.
Current main still needs the repair: Fetched current main reads the checked-in Kotlin and XML files for this fixture. Its test blob differs from the PR head, while the generator source blob is identical.
Generator boundary: The catalog builder derives the complete app, Wear, third-party, and Kotlin outputs used as expected resources.
Findings None None.
Security None None.

How this fits together

OpenClaw 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]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Tests +1. Total +1 across 1 file.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 9 8 +1
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 1 9 8 +1

Review metrics

Metric Value Why it matters
Focused test runtime 19.67 s file wall; 13.08 s obsolete-row case, author-reported The PR reports the changed test’s cost without adding test cases or generator invocations.

Technical review

Best 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.

Labels

Label changes:

  • add P2: A fixture failure during normal locale refresh can obstruct Android CI validation, with no product-runtime change.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The member-authored patch changes only a test fixture; its body reports a focused run of the Android localization check on macOS/Node 24.21, and no stored-data contract changes.

Label justifications:

  • P2: A fixture failure during normal locale refresh can obstruct Android CI validation, with no product-runtime change.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The member-authored patch changes only a test fixture; its body reports a focused run of the Android localization check on macOS/Node 24.21, and no stored-data contract changes.

Evidence

What I checked:

Likely related people:

  • unknown: The claimed source-line change could not be verified from bounded local history. (role: source history unknown; confidence: low)
  • Vincent Koc: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

@steipete
steipete merged commit 44421f7 into main Sep 24, 2026
133 checks passed
@steipete
steipete deleted the fix/ci-fixture-contracts-20260924 branch September 24, 2026 17:02
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

steipete added a commit that referenced this pull request Sep 24, 2026
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.
@roboclaw-bot roboclaw-bot mentioned this pull request Sep 24, 2026
2 of 8 tasks
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 25, 2026
…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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XS status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant