Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[webview_flutter] Improve flaky scroll tests #7621

Merged
merged 8 commits into from
Sep 14, 2024

Conversation

bparrishMines
Copy link
Contributor

@bparrishMines bparrishMines commented Sep 10, 2024

WebView portion of flutter/flutter#154826

Changes the scroll tests to wait for the onScrollChange callback to verify the scroll position rather than using getScrollPosition immediately.

Also split getScrollPosition, scrollTo, and scrollBy into their own tests.

Pre-launch Checklist

If you need help, consider asking for advice on the #hackers-new channel on Discord.

@bparrishMines bparrishMines changed the title improve scroll tests [webview_flutter] Improve flaky scroll tests Sep 10, 2024
@bparrishMines bparrishMines marked this pull request as ready for review September 11, 2024 18:43
Copy link
Contributor

@stuartmorgan stuartmorgan left a comment

Choose a reason for hiding this comment

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

LGTM!

@bparrishMines bparrishMines added the autosubmit Merge PR when tree becomes green via auto submit App label Sep 14, 2024
@auto-submit auto-submit bot merged commit df88c81 into flutter:main Sep 14, 2024
76 checks passed
@bparrishMines bparrishMines deleted the improve_scroll_test branch September 14, 2024 17:51
@stuartmorgan
Copy link
Contributor

It looks like we probably need to revert this and try again; post-submit has failed on three machines due to scrollBy not completing.

stuartmorgan added a commit that referenced this pull request Sep 16, 2024
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Sep 16, 2024
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Sep 16, 2024
auto-submit bot pushed a commit to flutter/flutter that referenced this pull request Sep 16, 2024
flutter/packages@330581f...df88c81

2024-09-14 10687576+bparrishMines@users.noreply.github.com [webview_flutter] Improve flaky scroll tests (flutter/packages#7621)
2024-09-13 kevmoo@users.noreply.github.com Bump deps (flutter/packages#7357)
2024-09-13 mhvdijk@gmail.com [flutter_adaptive_scaffold] Use improved MediaQuery methods (flutter/packages#7565)
2024-09-13 109111084+yaakovschectman@users.noreply.github.com [many] Update example android apps to target SDK level 34. (flutter/packages#7587)
2024-09-13 tarrinneal@gmail.com [pigeon] adds support for non nullable types in collections (flutter/packages#7547)
2024-09-13 mhvdijk@gmail.com [flutter_adaptive_scaffold] Adds additional slot animation parameters (flutter/packages#7411)
2024-09-13 engine-flutter-autoroll@skia.org Roll Flutter from 303f222 to 2d30fe4 (21 revisions) (flutter/packages#7646)

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-packages-flutter-autoroll
Please CC flutter-ecosystem@google.com,rmistry@google.com on the revert to ensure that a human
is aware of the problem.

To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
tarrinneal pushed a commit that referenced this pull request Sep 17, 2024
Reverts #7621

The re-enabled tests are failing in post-submit.

Alternately, instead of reverting we could just re-add the skips with
the link, if we still want to keep the updated version as a better
foundation to work from.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
autosubmit Merge PR when tree becomes green via auto submit App p: webview_flutter platform-android platform-ios
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants