Repository navigation
fix(android): wait for rendered connection status in tests - #144682
Merged
Merged
Conversation
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. |
Collaborator
Author
|
Merged as Proof: Exact-head CI is fully green. Fresh local ClawSweeper review passed with zero findings. No unrelated-red exception was used.
The merge retains |
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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 failedSettingsScreensContrastTest.chatHeaderDoesNotAnnounceOfflineForConnectedHealthFailure:New chat, Readywas not displayed after reconnect. The Play command passed.The changed Settings/header suite and the neighboring
GatewayExecApprovalRuntimeTestpass 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 --checkpass.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).