Repository navigation
fix(android): isolate reader scroll test locale - #192273
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
@clawsweeper review Please review the test-only native locale initialization. The existing localized sidebar case followed by the reader class reproduces the stale-locale failure; both Android flavors pass the same selection after the change. All original reader assertions remain unchanged. |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
🦞👀 Re-review progress:
|
|
Codex review: needs maintainer review before merge. What this changesInitialize the native string owner before each Android reader-scroll test. Example: Run the French sidebar accessibility test before captionOnlyFirstRowPreservesOlderReadingOnSmallGrowth.
Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review This PR repairs a concrete test-order dependency with minimal fixture initialization and unchanged assertions; no actionable correctness or security defects were found. Priority: P3 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherRobolectric fixtures render the production Android chat components, whose native strings resolve through a process-wide locale owner. flowchart LR
A[French sidebar fixture] --> B[Native string owner]
C[Reader test setup] --> B
B --> D[Localized chat caption]
D --> E[Reader layout assertions]
Technical reviewBest possible solution: Use the existing native string installation operation in reader fixture setup while preserving all behavioral assertions. Do we have a high-confidence way to reproduce the issue? The French sidebar fixture, retained locale owner, bare reader Application, and English caption lookup establish the reported failure path; the author reports a matching failing ordered run. Is this the best way to solve the issue? The patch supplies initialization normally performed by NodeApp, reuses the authoritative locale owner, and introduces no duplicate state or weakened checks. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against c8efa6107418. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
PR surfaceTests +7. Total +7 across 1 file. Added test files: 0. View PR surface stats
LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed November 3, 2026, 4:06 PM ET / 21:06 UTC. |
|
Merged via squash auto-merge.
|
Backport the existing upstream fixture fix to release/2026.11.5. Preserve all caption and scrolling assertions. Co-authored-by: RomneyDa <[email protected]>
…11.5 (#191633) * fix(release): warn before rollback drill expiry (#180164) Co-authored-by: roboclaw-bot <[email protected]> Co-authored-by: RomneyDa <[email protected]> (cherry picked from commit b6c36ed) * fix(release): require macOS release source branch (#180169) Co-authored-by: roboclaw-bot <[email protected]> Co-authored-by: RomneyDa <[email protected]> (cherry picked from commit 0f359b3) * fix(release): verify published plugin inventory (#180203) Co-authored-by: roboclaw-bot <[email protected]> Co-authored-by: RomneyDa <[email protected]> (cherry picked from commit d8265d0) * fix(release): revalidate exact npm versions (#180201) * fix(release): revalidate exact npm versions Co-authored-by: RomneyDa <[email protected]> * test(release): handle exact-version fixture request Co-authored-by: RomneyDa <[email protected]> --------- Co-authored-by: roboclaw-bot <[email protected]> Co-authored-by: RomneyDa <[email protected]> (cherry picked from commit 3580c9f) * fix(release): explain staged npm recovery (#180191) * fix(release): explain staged npm recovery Co-authored-by: RomneyDa <[email protected]> * fix(release): recover exact staged npm package Co-authored-by: RomneyDa <[email protected]> * fix(release): avoid portable here-string Co-authored-by: RomneyDa <[email protected]> * fix(release): preserve npm publish diagnostics Co-authored-by: RomneyDa <[email protected]> * test(release): simplify staged publish coverage Co-authored-by: RomneyDa <[email protected]> --------- Co-authored-by: roboclaw-bot <[email protected]> Co-authored-by: RomneyDa <[email protected]> (cherry picked from commit f708b8b) * fix(release): pin Linux builder to request SHA (#180211) * fix(release): pin Linux builder to request SHA Co-authored-by: RomneyDa <[email protected]> * test(release): remove duplicate request harness Co-authored-by: RomneyDa <[email protected]> --------- Co-authored-by: roboclaw-bot <[email protected]> Co-authored-by: RomneyDa <[email protected]> (cherry picked from commit ca897ec) * fix(release): warn on undocumented SDK removals (#180180) * fix(release): require SDK removal notes Co-authored-by: RomneyDa <[email protected]> * fix(release): warn on SDK removal note gaps Co-authored-by: RomneyDa <[email protected]> --------- Co-authored-by: roboclaw-bot <[email protected]> Co-authored-by: RomneyDa <[email protected]> (cherry picked from commit 0453b8c) * fix(release): retry compatibility tarball downloads (#189712) Co-authored-by: roboclaw-bot <[email protected]> Co-authored-by: RomneyDa <[email protected]> (cherry picked from commit dbc44d3) * docs(release): tighten deterministic failure triage (#189720) Co-authored-by: roboclaw-bot <[email protected]> Co-authored-by: RomneyDa <[email protected]> (cherry picked from commit a07be30) * fix(release): enable OIDC recovery preflight (#187991) * fix(release): enable OIDC recovery preflight Co-authored-by: RomneyDa <[email protected]> * fix(release): enable OIDC recovery preflight OpenClaw-Publication: 220142ee-cd27-4dc4-9521-b3af12106dce * fix(release): scope OIDC recovery preflight Co-authored-by: RomneyDa <[email protected]> --------- Co-authored-by: roboclaw-bot <[email protected]> Co-authored-by: RomneyDa <[email protected]> (cherry picked from commit 8100edf) * fix(ci): mark pending security reviews (#180183) * fix(ci): mark pending security reviews Co-authored-by: RomneyDa <[email protected]> * fix(ci): fail terminal security reviews Co-authored-by: RomneyDa <[email protected]> * fix(ci): settle standalone guard timeouts Co-authored-by: RomneyDa <[email protected]> --------- Co-authored-by: roboclaw-bot <[email protected]> Co-authored-by: RomneyDa <[email protected]> (cherry picked from commit 84133d3) * feat(release): add FRV job log reader (#189718) Co-authored-by: roboclaw-bot <[email protected]> Co-authored-by: RomneyDa <[email protected]> (cherry picked from commit 48b46f1) * feat(release): add publication watcher (#187994) * feat(release): add publication watcher Co-authored-by: RomneyDa <[email protected]> * fix(release): satisfy watcher lint Co-authored-by: RomneyDa <[email protected]> * fix(release): enforce watcher contracts Co-authored-by: RomneyDa <[email protected]> * fix(release): preserve zero-backoff retries Co-authored-by: RomneyDa <[email protected]> --------- Co-authored-by: roboclaw-bot <[email protected]> Co-authored-by: RomneyDa <[email protected]> (cherry picked from commit 3c67c5c) * fix(release): unify plugin OIDC recovery preflight (#189748) Co-authored-by: roboclaw-bot <[email protected]> Co-authored-by: RomneyDa <[email protected]> (cherry picked from commit 749df76) * feat(release): add bound gate approval helper (#189715) * feat(release): add bound gate approval helper Co-authored-by: RomneyDa <[email protected]> * fix(release): satisfy approval helper guards Co-authored-by: RomneyDa <[email protected]> * fix(release): make gate approval recoverable Co-authored-by: RomneyDa <[email protected]> --------- Co-authored-by: roboclaw-bot <[email protected]> Co-authored-by: RomneyDa <[email protected]> (cherry picked from commit fc719e9) * fix(release): adapt postpublish verifier imports Release adaptation: #180203 removes the release branch inventory builder import. Its source parent also used a later bundler-region helper, but this release branch keeps its existing parser and does not need that broad dependency-update companion. Co-authored-by: RomneyDa <[email protected]> * fix(release): retain publication retry diagnostics (#189130) Include the runtime error-classification dependency closure introduced by shutdown-aware retries in the verified publication source inventory. Co-authored-by: steipete <[email protected]> (cherry picked from commit 6370e01) Co-authored-by: RomneyDa <[email protected]> * fix(release): keep diagnostic FRV blocks pending Co-authored-by: RomneyDa <[email protected]> (cherry picked from commit f861722) * fix(release): verify notes against pushed branch Co-authored-by: RomneyDa <[email protected]> (cherry picked from commit 571b8f8) * fix(release): explain shallow release-note history Co-authored-by: RomneyDa <[email protected]> (cherry picked from commit f3bbc7e) * test(git): isolate nested repository fixtures Co-authored-by: RomneyDa <[email protected]> (cherry picked from commit 7d27f73) * ci: add base scheduled upgrade survivor Co-authored-by: RomneyDa <[email protected]> (cherry picked from commit 34bb969) * ci: support empty admission args on Bash 3.2 Co-authored-by: RomneyDa <[email protected]> (cherry picked from commit 73df503) * test(qa): retain mock provider request artifacts Co-authored-by: RomneyDa <[email protected]> (cherry picked from commit ec6e32f) * fix(qa): guard mock artifact fetch Route mock-provider request artifact collection through the plugin SSRF guard, with bounded loopback access and deterministic resource release. Co-authored-by: RomneyDa <[email protected]> (cherry picked from commit bfa3e10) * ci(ios): explain screenshot Xcode mismatch Co-authored-by: RomneyDa <[email protected]> (cherry picked from commit 24f5971) * docs(release): identify FRV parent publish input Co-authored-by: RomneyDa <[email protected]> (cherry picked from commit 122d8e4) * fix(cli): report observed gateway start failure Co-authored-by: RomneyDa <[email protected]> (cherry picked from commit c938b9b) * test(release): pin Kitchen Sink fixture versions Record the Kitchen Sink npm fixture version on each release branch and use it across the plugin and RPC Docker lanes instead of resolving latest. Preserve explicit package overrides and fail closed when a frozen target lacks its version record. Co-authored-by: RomneyDa <[email protected]> (cherry picked from commit 414e610) * test(release): preserve retrospective backport coverage Co-authored-by: RomneyDa <[email protected]> * test(ci): align retrospective guard backport coverage Co-authored-by: RomneyDa <[email protected]> * test(release): adapt retrospective fixtures to stable Co-authored-by: RomneyDa <[email protected]> * test(release): adapt retrospective fixtures to beta Co-authored-by: RomneyDa <[email protected]> * fix(release): repair retrospective backport gates Preserve release-base contracts and original retry authority checks while repairing changelog, terminal status and Kitchen Sink asset handling. Co-authored-by: RomneyDa <[email protected]> * fix(release): revalidate recovery before credential exchange Preserve source admission semantics and recheck live source and tooling authority after token acquisition, immediately before each npm exchange. Co-authored-by: RomneyDa <[email protected]> * test(release): align iOS screenshot fixtures with retained owners Keep exact screenshot selection and failure evidence checks while removing the obsolete fixture-test guard and retired per-capture resource snapshot expectation. Guard against blocking resource sampling and reduce the test allocation by 15 lines. Both original failures reproduce; all 15 cases pass under isolated Ruby and pinned Bun. Co-authored-by: RomneyDa <[email protected]> * test(android): initialize native strings in reader fixtures (#192273) Backport the existing upstream fixture fix to release/2026.11.5. Preserve all caption and scrolling assertions. Co-authored-by: RomneyDa <[email protected]> * test(xai): prepare compiled workers before payload tests Move existing worker preparation to collection through the documented SDK test seam. Preserve the real payload assertions and their deadlines. Co-authored-by: RomneyDa <[email protected]> * fix(memory): retain dirty status for deferred session deltas Keep existing pending file and identity queues in the targeted-sync dirty calculation. Make the existing interruption regression exercise the delta route after startup catchup; preserve publication and resume assertions. Co-authored-by: RomneyDa <[email protected]> * test(matrix): expose bounded restart timeout diagnostics Preserve scenario assertions and timeouts while recording synthetic inbound identities and existing lifecycle debug boundaries for the repeated hosted restart failure. Co-authored-by: RomneyDa <[email protected]> * fix(qa): preserve Matrix timeout diagnostics through factories Exercise the registry-backed transport with a valid Matrix sender and retain both cleanup phases. Hosted CI exposed the invalid fixture and the dropped timeout hook; this correction does not claim to fix Matrix restart delivery. Co-authored-by: RomneyDa <[email protected]> --------- Co-authored-by: Dallin Romney <[email protected]> Co-authored-by: roboclaw-bot <[email protected]> Co-authored-by: RomneyDa <[email protected]> Co-authored-by: RoboClaw <[email protected]> Co-authored-by: Peter Steinberger <[email protected]>
What Problem This Solves
Fixes five Android reader-scroll checks that fail after another test changes the app language.
User Impact
No production behavior changes. Both Android flavors keep their existing reading-position regression coverage without depending on test order.
Why This Change Was Made
The reader fixture uses a bare Android
Application, so it never installed the native string owner. A preceding localized sidebar test could leave that process-wide owner attached to a French application context. The reader then rendered a translated live caption while its unchanged checks looked forOpenClaw · Live.Install the fixture's current application before each test, which refreshes the locale owner and its cached localized context. All original streaming, gesture, visibility, and glyph-position assertions remain unchanged. The patch adds seven test setup lines and no production code.
Evidence
ChatReaderScrollOwnershipLayoutTestcaption/short-viewport cases fail in Play and third-party.SidebarCollapsibleHeaderTest.headerAnnouncesLocalizedStateWithoutStealingAttentionClickpasses, then existingChatReaderScrollOwnershipLayoutTest.captionOnlyFirstRowPreservesOlderReadingOnSmallGrowthfails because the English caption node is absent. The reader class passes in isolation.:app:ktlintCheckalso passes. The combined Gradle run took 1m33s; reader test time was 9.854s (third-party) and 5.619s (Play).Focused command, from
apps/android: