Skip to content

test(android): derive locale expectation from packaged resources - #138539

Merged
steipete merged 1 commit into
mainfrom
codex/android-locale-expectation
Sep 4, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/android-locale-expectation

Conversation

@steipete

@steipete steipete commented Sep 4, 2026 •

Copy link
Copy Markdown
Contributor

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

  • Full changed checks, including all four Android ktlint modules and native schema validation.
  • Fresh focused Codex review with no actionable findings.
  • Exact-head hosted CI passed: Android Play, ThirdParty and Wear tests, both build lanes, ktlint, and the aggregate gate. ThirdParty passed on one unchanged retry after the first test executor crashed inside the JVM compiler (SIGSEGV), with no assertion failure.
  • Exact-head ClawSweeper review found no correctness or security issue.

@steipete steipete self-assigned this Sep 4, 2026
@clawsweeper

clawsweeper Bot commented Sep 4, 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.

@openclaw-barnacle openclaw-barnacle Bot added app: android App: android size: XS maintainer Maintainer-authored PR labels Sep 4, 2026
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. 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 4, 2026
@clawsweeper

clawsweeper Bot commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 4, 2026, 3:52 PM ET / 19:52 UTC.

ClawSweeper review

What this changes

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

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused test repair with a clear production mapping boundary and relevant hosted Android checks passing so far.
Proof confidence 🌊 off-meta tidepool Not applicable: This maintainer-authored PR changes only a Robolectric test, so the external-contributor real-behavior-proof gate does not apply; hosted Android Play and Wear test checks are passing, with the separate third-party check still running.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This maintainer-authored PR changes only a Robolectric test, so the external-contributor real-behavior-proof gate does not apply; hosted Android Play and Wear test checks are passing, with the separate third-party check still running.
Evidence reviewed 5 items Introduced test repair: The introduced hunk replaces the hard-coded French output with a lookup from an explicitly French configuration context, while retaining the normal status resolver call.
Current runtime owner: The gateway display resolver maps the raw Connecting status to nativeString("Connecting…"), so the assertion continues to cover the production mapping boundary.
Canonical packaged resource: The generated native-string map assigns Connecting to native_72021eb70e91b4d5, whose French packaged value is currently Connexion; direct resource lookup therefore detects a wrong map or locale result without pinning translation wording.
Findings None None.
Security None None.

How this fits together

Android’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
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Tests +9. Total +9 across 1 file.

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

Review metrics

Metric Value Why it matters
Production versus test LOC production +0/-0; tests +10/-1 The patch changes one Robolectric assertion and leaves Android runtime code and packaged resources untouched.

Technical review

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

Labels

Label changes:

  • add P3: This is low-risk test maintenance with no shipped behavior change.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool 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: This maintainer-authored PR changes only a Robolectric test, so the external-contributor real-behavior-proof gate does not apply; hosted Android Play and Wear test checks are passing, with the separate third-party check still running.

Label justifications:

  • P3: This is low-risk test maintenance with no shipped behavior change.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This maintainer-authored PR changes only a Robolectric test, so the external-contributor real-behavior-proof gate does not apply; hosted Android Play and Wear test checks are passing, with the separate third-party check still running.

Evidence

What I checked:

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; 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 5a04b1a into main Sep 4, 2026
110 of 112 checks passed
@steipete
steipete deleted the codex/android-locale-expectation branch September 4, 2026 20:03
@steipete

steipete commented Sep 4, 2026

Copy link
Copy Markdown
Contributor Author

Merged via squash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: android App: android maintainer Maintainer-authored PR P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. 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