-
Notifications
You must be signed in to change notification settings - Fork 28.6k
flutter_tools\test\asset_bundle_test.dart is flaky on windows #34446
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
Comments
When did it start being flaky? |
Do you have an example Cirrus task that failed, and what the output was? |
It was on my latest commit but someone clicked rerun, or cirrus re-ran it |
https://cirrus-ci.com/task/6705135426732032
|
I looked at the last 100 Cirrus runs, and this failed on 4 of them - all indications are that it's been flaky before that. So we're looking at ~4% flakiness potentially since the test was written. |
Skipping the test on Windows, and removing the TODAY label. |
Hmm. this started failing very consistently again today. Failed three times in a row, and reverting the first PR didn't stop the failing: https://cirrus-ci.com/task/6014762248306688?command=test_all#L570 |
I'm pretty sure this is flaky because it's trying to compare timestamps that end up not being what's expected. https://github.com/flutter/flutter/blob/master/packages/flutter_tools/lib/src/asset.dart#L103 in particular is looking at the stat of the file in a MemoryFileSystem. It's possible that the file writes are happening quickly enough where it's resolving to the same time (instead of some time later). |
dart-archive/file.dart#129 was merged yesterday to allow this to be fixed - published in package:file version 5.1.0. |
@tvolkert - that actually just makes the failure 100% instead of flakily dependent on the clock. We'd still end up with an implementation that wants to compare a timestamp of when a method got called with the stat of a file, which .. probably needs to change. I'm going to mark the test as skipped again to unblock the tree. @jonahwilliams says he's going to work on this some more on Monday. |
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of |
test\asset_bundle_test.dart: AssetBundle.build handle removal of wildcard directories
The text was updated successfully, but these errors were encountered: