Repository navigation
Open
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work lista: tests"flutter test", flutter_test, or one of our tests"flutter test", flutter_test, or one of our testsc: flakeTests that sometimes, but not always, incorrectly passTests that sometimes, but not always, incorrectly passp: video_playerThe Video Player pluginThe Video Player pluginpackageflutter/packages repository. See also p: labels.flutter/packages repository. See also p: labels.platform-webWeb applications specificallyWeb applications specificallyteam-webOwned by Web platform teamOwned by Web platform teamtriaged-webTriaged by Web platform teamTriaged by Web platform team
Description
While converting web platform tests to LUCI, I'm seeing frequent failures in one test:
Failure in method: stay paused when seeking after video completed
══╡ EXCEPTION CAUGHT BY FLUTTER TEST FRAMEWORK ╞═════════════════
The following TestFailure was thrown running a test:
Expected: Duration:<0:00:07.534000>
Actual: Duration:<0:00:07.544000>
When the exception was thrown, this was the stack:
dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/errors.dart 294:49 throw_
packages/matcher/src/expect/prints_matcher.dart.js 433:22 fail
packages/matcher/src/expect/prints_matcher.dart.js 430:12 _expect
packages/matcher/src/expect/prints_matcher.dart.js 365:12 expect$
packages/flutter_test/src/test_text_input_key_handler.dart.js 7284:12 expect$
video_player_test.dart.js 257:23 <fn>
dart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 45:50 <fn>
...
It wasn't happening in Cirrus, but I could repro it locally in 2/4 runs. Either Cirrus for some reason didn't trip the flake, or the flake only happens in newer versions of Chrome (I believe the LUCI config has a newer Chrome version than our last update to the one pulled in our Cirrus tests).
I'm going to mark this as flaky to unblock the migration.
Metadata
Metadata
Assignees
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work lista: tests"flutter test", flutter_test, or one of our tests"flutter test", flutter_test, or one of our testsc: flakeTests that sometimes, but not always, incorrectly passTests that sometimes, but not always, incorrectly passp: video_playerThe Video Player pluginThe Video Player pluginpackageflutter/packages repository. See also p: labels.flutter/packages repository. See also p: labels.platform-webWeb applications specificallyWeb applications specificallyteam-webOwned by Web platform teamOwned by Web platform teamtriaged-webTriaged by Web platform teamTriaged by Web platform team
Activity
stuartmorgan-g commentedon Jul 7, 2023
@ditman FYI
ditman commentedon Jul 8, 2023
I'll get this test deflaked ASAP. I remember there was some other time-dependent code in the test that would flake more (this seems... parsing video metadata?), but I'll tackle this soon.
5 remaining items
stuartmorgan-g commentedon Sep 21, 2023
FWIW, revamping how video_player works internally so it's less "two sources of truth fighting for dominance" is something I am hoping will be a 2024H1 project.
ditman commentedon Sep 21, 2023
I think we're going to be able to close this with only the fix to theautoplayissue on the web, so I guess we're going to be fine until then (but yeah the added complexity is super frustrating when debugging!)Nope, I've just got a failure even with the new code; yikes!
[video_player] Ensures autoplay is false on the web. (#4961)
flutter-triage-bot commentedon Feb 8, 2024
This issue is assigned to @ditman but has had no recent status updates. Please consider unassigning this issue if it is not going to be addressed in the near future. This allows people to have a clearer picture of what work is actually planned. Thanks!
ditman commentedon Feb 8, 2024
Haven't had time to work on this one anymore. I suspect this is hard to fix because we're trying to keep in sync the state of the plugin with the internal state of the player, buuut I haven't rewritten this to verify, so: don't know.
[video_player] Ensures autoplay is false on the web. (flutter#4961)
[video_player] Ensures autoplay is false on the web. (flutter#4961)