Skip to content

fix(android): wait for rendered connection status in tests - #144682

Merged
obviyus merged 1 commit into
mainfrom
fix/main-red-checks
Sep 11, 2026
Merged

obviyus merged 1 commit into
mainfrom
fix/main-red-checks

Conversation

@obviyus

@obviyus obviyus commented Sep 11, 2026

Copy link
Copy Markdown
Collaborator

Related: #143128

What Problem This Solves

Resolves intermittent Android CI failures after connection, reconnect, or a failed chat health check. The status test can see updated ViewModel values before the Chat header or Settings screen has rendered them.

This is a maintainer-requested repair of the observed main failure.

Why This Change Was Made

The existing waits now require the expected rendered status as well as the existing model conditions. A shared matcher keeps Settings assertions and readiness checks aligned. Every display assertion and the 10-second timeout remain unchanged.

User Impact

Android validation observes the actual screen state before asserting it. Product code and behavior are unchanged.

Evidence

  • On main 0b48b3e78c91576a2ad9d02654f474d694d3fae6, the exact third-party unit-test command failed SettingsScreensContrastTest.chatHeaderDoesNotAnnounceOfflineForConnectedHealthFailure: New chat, Ready was not displayed after reconnect. The Play command passed.

  • The changed Settings/header suite and the neighboring GatewayExecApprovalRuntimeTest pass on the candidate.

  • A temporary control changed only the header's connected-but-unhealthy text to Gateway offline. The retained test rejected that behavior at the unchanged 10-second timeout. Production source was restored afterward.

  • Android test-source formatting and git diff --check pass.

  • Control UI performance already passes without a budget change. The final candidate measures 352878 bytes against the unchanged 353107-byte startup limit.

  • Full candidate Android commands passed on 03e4e9bd3c441443560aaca05001c801f7be03ed: Play unit tests plus shared Wear tests (6m27s) and lint (1m59s); third-party unit tests (6m40s) and lint (1m47s).

@clawsweeper

clawsweeper Bot commented Sep 11, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@openclaw-barnacle openclaw-barnacle Bot added app: android App: android size: XS maintainer Maintainer-authored PR labels Sep 11, 2026
@obviyus
obviyus merged commit 1bd25b2 into main Sep 11, 2026
63 checks passed
@obviyus
obviyus deleted the fix/main-red-checks branch September 11, 2026 05:18
@obviyus

obviyus commented Sep 11, 2026

Copy link
Copy Markdown
Collaborator Author

Merged as 1bd25b2471c7f56289ad20e7ee6085d2b9615bb7.

Proof: Exact-head CI is fully green. Fresh local ClawSweeper review passed with zero findings. No unrelated-red exception was used.

  • Bug: Android status assertions could run after the model updated but before the screen rendered that state.
  • Fix: Existing waits now include the rendered status; all assertions and the 10-second timeout remain.
  • Validation: Full Play and third-party unit-test/lint commands pass. Results include 3,189 Play tests, 3,320 third-party tests, and 10 unchanged shared Wear results, with no failures or skips. A deliberately incorrect header still fails the test.
  • UI budget: Already green; 352,878 bytes against the unchanged 353,107-byte limit.
Before After
Third-party baseline fails the reconnect header assertion Both Android job commands pass on the reviewed candidate

The merge retains Co-authored-by: Ayaan Zaidi <[email protected]>.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 12, 2026
…144682)

Related: openclaw#143128

## What Problem This Solves

Resolves intermittent Android CI failures after connection, reconnect, or a failed chat health check. The status test can see updated ViewModel values before the Chat header or Settings screen has rendered them.

This is a maintainer-requested repair of the observed main failure.

## Why This Change Was Made

The existing waits now require the expected rendered status as well as the existing model conditions. A shared matcher keeps Settings assertions and readiness checks aligned. Every display assertion and the 10-second timeout remain unchanged.

## User Impact

Android validation observes the actual screen state before asserting it. Product code and behavior are unchanged.

## Evidence

- On main `facc2514f633b0a7b20a3b7d9f33c3bd336915b7`, the exact third-party unit-test command failed `SettingsScreensContrastTest.chatHeaderDoesNotAnnounceOfflineForConnectedHealthFailure`: `New chat, Ready` was not displayed after reconnect. The Play command passed.
- The changed Settings/header suite and the neighboring `GatewayExecApprovalRuntimeTest` pass on the candidate.
- A temporary control changed only the header's connected-but-unhealthy text to `Gateway offline`. The retained test rejected that behavior at the unchanged 10-second timeout. Production source was restored afterward.
- Android test-source formatting and `git diff --check` pass.
- Control UI performance already passes without a budget change. The final candidate measures 352878 bytes against the unchanged 353107-byte startup limit.

- Full candidate Android commands passed on `03e4e9bd3c441443560aaca05001c801f7be03ed`: Play unit tests plus shared Wear tests (6m27s) and lint (1m59s); third-party unit tests (6m40s) and lint (1m47s).

Co-authored-by: Ayaan Zaidi <[email protected]>
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 size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant