Skip to content

Deflake hybrid_android_views_integration_test - #191830

Merged
auto-submit[bot] merged 3 commits into
flutter:masterfrom
gmackall:hybrid_android_views_integration_test_flake_fixes
Sep 2, 2026
Merged

auto-submit[bot] merged 3 commits into
flutter:masterfrom
gmackall:hybrid_android_views_integration_test_flake_fixes

Conversation

@gmackall

@gmackall gmackall commented Aug 26, 2026 •

Copy link
Copy Markdown
Member

This change resolves two sources of flakiness in hybrid_android_views_integration_test:

  1. FutureDataHandler Lazy Await: Updates FutureDataHandler to lazily create and await a Completer when a driver message arrives before registerHandler is called by onPlatformViewCreated, preventing premature "unsupported driver message" errors.
  2. Disable Page Route Animations: Switches _pushPage to use PageRouteBuilder with zero transition duration and adds waitUntilNoTransientCallbacks() before running motion event replay tests, eliminating in-flight coordinate transformation offsets on embedded platform views.

should help with #190992

@gmackall gmackall added CICD Run CI/CD and removed CICD Run CI/CD labels Aug 26, 2026
@gmackall
gmackall marked this pull request as ready for review September 1, 2026 20:34

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates FutureDataHandler to lazily initialize completers and handle null messages, refactors page transitions in main.dart to use PageRouteBuilder with zero transition durations, and adds a wait for transient callbacks in the integration test. Feedback suggests adding a timeout to the lazy completer future in handleMessage to prevent tests from hanging indefinitely on invalid messages.

@gmackall
gmackall requested review from a team and camsim99 and removed request for a team September 2, 2026 17:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CICD Run CI/CD

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants