Skip to content

[url_launcher] Disable flaky test#11229

Merged
auto-submit[bot] merged 1 commit intoflutter:mainfrom
stuartmorgan-g:disable-flaky-wasm-test
Mar 11, 2026
Merged

[url_launcher] Disable flaky test#11229
auto-submit[bot] merged 1 commit intoflutter:mainfrom
stuartmorgan-g:disable-flaky-wasm-test

Conversation

@stuartmorgan-g
Copy link
Collaborator

This test is flaking frequently under WASM. This is an initial attempt which disables just the one test, but since it's the first test it may be that every test in this file will flake. If that turns out to be the case, we will need to disable the whole package's testing under WASM instead.

See flutter/flutter#182844

This test is flaking frequently under WASM. This is an initial attempt
which disables just the one test, but since it's the first test it may
be that every test in this file will flake. If that turns out to be the
case, we will need to disable the whole package's testing under WASM
instead.

See flutter/flutter#182844
@stuartmorgan-g
Copy link
Collaborator Author

Everything but the skip and its comment are just autoformatter changes from adding an argument.

Copy link

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

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 disables a test in link_widget_test.dart that is reported to be flaky on WASM. My review suggests an improvement to conditionally skip the test only for WASM builds. This makes the fix more targeted and retains test coverage on other platforms where the test is stable.

expect(anchor.getAttribute('target'), '_self');
},
// Flaky under WASM: https://github.com/flutter/flutter/issues/182844
skip: true,

Choose a reason for hiding this comment

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

medium

To avoid disabling this test on all platforms, it's better to skip it only on WASM where it is flaky. You can achieve this by using a compile-time constant to check for the WASM environment. This will keep the test active for other web renderers where it is not flaky.

Suggested change
skip: true,
skip: const bool.fromEnvironment('dart.library.wasm'),

Copy link
Contributor

@bparrishMines bparrishMines left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@mdebbar mdebbar left a comment

Choose a reason for hiding this comment

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

LGTM, thanks @stuartmorgan-g

@stuartmorgan-g stuartmorgan-g added the autosubmit Merge PR when tree becomes green via auto submit App label Mar 11, 2026
@auto-submit auto-submit bot merged commit bba1da3 into flutter:main Mar 11, 2026
81 checks passed
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Mar 12, 2026
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Mar 12, 2026
github-merge-queue bot pushed a commit to flutter/flutter that referenced this pull request Mar 12, 2026
flutter/packages@ecace66...02f231f

2026-03-12 [email protected] [various] iOS/macOS example project
automigrations (flutter/packages#11227)
2026-03-11 [email protected] [webview_flutter_wkwebview] Add support
for javaScriptCanOpenWindowsAutomatically (flutter/packages#10608)
2026-03-11 [email protected] [url_launcher] Disable flaky test
(flutter/packages#11229)
2026-03-11 [email protected] Roll Flutter from
195ae7b to 3f400d7 (13 revisions) (flutter/packages#11228)

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] 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
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: url_launcher platform-web

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants