-
Notifications
You must be signed in to change notification settings - Fork 3k
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_web] Migrate integration tests to package:web. #7115
[webview_flutter_web] Migrate integration tests to package:web. #7115
Conversation
Now the non-legacy test should actually do something in CI. The legacy one is only left as a manual check. No coverage is lost, since neither of the tests were actually verifying anything earlier (the bug that is being fixed here should have been caught by a functional legacy test!) This should also ease the |
Nah, this is still flaking :/ |
$ flutter --version
Flutter 3.22.2 • channel stable • [email protected]:flutter/flutter.git
Framework • revision 761747bfc5 (5 weeks ago) • 2024-06-05 22:15:13 +0200
Engine • revision edd8546116
Tools • Dart 3.4.3 • DevTools 2.34.3
$ flutter clean; run_integration_test.sh | ts -s
00:00:03
00:00:03 ============================================================
00:00:03 || Running for packages/webview_flutter/webview_flutter_web
00:00:03 ============================================================
00:00:03
00:00:03 Starting chromedriver on port 4444
00:00:03 Running command: "flutter drive -d web-server --web-port=7357 --browser-name=chrome --web-renderer=canvaskit --driver test_driver/integration_test.dart --target integration_test/webview_flutter_test.dart" in /work/flutter/packages/packages/webview_flutter/webview_flutter_web/example
00:00:03 Resolving dependencies...
00:00:04 Downloading packages...
00:00:04 collection 1.18.0 (1.19.0 available)
00:00:04 leak_tracker 10.0.4 (10.0.5 available)
00:00:04 leak_tracker_flutter_testing 3.0.3 (3.0.5 available)
00:00:04 material_color_utilities 0.8.0 (0.12.0 available)
00:00:04 meta 1.12.0 (1.15.0 available)
00:00:04 platform 3.1.4 (3.1.5 available)
00:00:04 string_scanner 1.2.0 (1.3.0 available)
00:00:04 test_api 0.7.0 (0.7.3 available)
00:00:04 vm_service 14.2.1 (14.2.4 available)
00:00:04 Got dependencies!
00:00:04 9 packages have newer versions incompatible with dependency constraints.
00:00:04 Try `flutter pub outdated` for more information.
00:00:04 Launching integration_test/webview_flutter_test.dart on Web Server in debug mode...
00:00:31 Waiting for connection from debug service on Web Server... 26.3s
00:00:31 integration_test/webview_flutter_test.dart is being served at http://localhost:7357
00:00:31 The web-server device requires the Dart Debug Chrome extension for debugging. Consider using the Chrome or Edge devices for an improved development workflow.
00:00:38 All tests passed.
00:00:38 Application finished.
00:00:39 Stopping chromedriver
00:00:39
00:00:39
00:00:39 ------------------------------------------------------------
00:00:39 Run overview:
00:00:39 packages/webview_flutter/webview_flutter_web - ran
00:00:39
00:00:39 Ran for 1 package(s)
00:00:39
00:00:39
00:00:39 No issues found! vs CI. 🤷 |
It probably does, but we can't use that mode, because |
94d9718
to
0f3ce22
Compare
Try by inlining the bootstrap file. |
|
(Updating I'm going to try next to revert the inlining of the bootstrap, it might not be needed! |
This reverts commit 76788d3.
fbb3007
to
a7d9986
Compare
@ditman Related to asserts with WASM integration tests: flutter/flutter#151426 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Turns out the flakiness in @stuartmorgan should I roll back the |
flutter/packages@4a4e63e...7022a44 2024-07-15 [email protected] [webview_flutter_web] Migrate integration tests to package:web. (flutter/packages#7115) 2024-07-15 49699333+dependabot[bot]@users.noreply.github.com Bump github/codeql-action from 3.25.10 to 3.25.12 (flutter/packages#7107) 2024-07-15 49699333+dependabot[bot]@users.noreply.github.com Bump actions/upload-artifact from 4.3.3 to 4.3.4 (flutter/packages#7071) 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 [email protected],[email protected] 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
This is looking really bad on stable so far; we should make CI run canvaskit only on |
Working on this right now. |
@stuartmorgan PR posted #7146 |
Introduces a small fork in the `drive_examples_command` to run integration tests with `--web-renderer=html` in the `stable` channel (and `--web-renderer=canvaskit` in `master`). This is supposed to be removed, once the current `master` rolls into `stable` (see clean-up issue referenced below). ## Issues * Part of: flutter/flutter#143543 * Prevents flakes: #7115 (comment) * Clean-up issue: flutter/flutter#151869
flutter/packages@4a4e63e...7022a44 2024-07-15 [email protected] [webview_flutter_web] Migrate integration tests to package:web. (flutter/packages#7115) 2024-07-15 49699333+dependabot[bot]@users.noreply.github.com Bump github/codeql-action from 3.25.10 to 3.25.12 (flutter/packages#7107) 2024-07-15 49699333+dependabot[bot]@users.noreply.github.com Bump actions/upload-artifact from 4.3.3 to 4.3.4 (flutter/packages#7071) 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 [email protected],[email protected] 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
flutter/packages@4a4e63e...7022a44 2024-07-15 [email protected] [webview_flutter_web] Migrate integration tests to package:web. (flutter/packages#7115) 2024-07-15 49699333+dependabot[bot]@users.noreply.github.com Bump github/codeql-action from 3.25.10 to 3.25.12 (flutter/packages#7107) 2024-07-15 49699333+dependabot[bot]@users.noreply.github.com Bump actions/upload-artifact from 4.3.3 to 4.3.4 (flutter/packages#7071) 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 [email protected],[email protected] 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
This PR:
integration_tests
for the package less flaky, now that they seem to be timing out unexpectedly in CI.Issues
Linux_web web_platform_tests_shard_3 stable
)Pre-launch Checklist
dart format
.)[shared_preferences]
pubspec.yaml
with an appropriate new version according to the pub versioning philosophy, or this PR is exempt from version changes.CHANGELOG.md
to add a description of the change, following repository CHANGELOG style, or this PR is exempt from CHANGELOG changes.///
).If you need help, consider asking for advice on the #hackers-new channel on Discord.