Repository navigation
Windows_android flavors_test_win is severe flaky #107681
Copy link
Copy link
Closed
Labels
P1High-priority issues at the top of the work listHigh-priority issues at the top of the work listc: flakeTests that sometimes, but not always, incorrectly passTests that sometimes, but not always, incorrectly passframeworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.
Description
Windows_android flavors_test_win flakes 4 times today:
https://ci.chromium.org/ui/p/flutter/builders/prod/Windows_android%20flavors_test_win/4957/overview
https://ci.chromium.org/ui/p/flutter/builders/prod/Windows_android%20flavors_test_win/4953/overview
https://ci.chromium.org/ui/p/flutter/builders/prod/Windows_android%20flavors_test_win/4945/overview
https://ci.chromium.org/ui/p/flutter/builders/prod/Windows_android%20flavors_test_win/4944/overview
Error message:
_test_win] [STDOUT] stdout: [ ] executing: C:\opt\s\w\ir\cache\android\sdk\platform-tools\adb.exe -s ZY223C7M4J shell am force-stop com.yourcompany.flavors
[flavors_test_win] [STDOUT] stdout: [ ] test 0: Test process is no longer needed by test harness
[flavors_test_win] [STDOUT] stdout: [+1155 ms] executing: C:\opt\s\w\ir\cache\android\sdk\platform-tools\adb.exe -s ZY223C7M4J uninstall com.yourcompany.flavors
[flavors_test_win] [STDOUT] stdout: [ +554 ms] Success
[flavors_test_win] [STDOUT] stdout: [ ] test 0: deleting temporary directory
[flavors_test_win] [STDOUT] stdout: [ ] test 0: finished
[flavors_test_win] [STDOUT] stdout:
[flavors_test_win] [STDOUT] stdout: 00:55 +0 -1: Flavor Test check flavor - did not complete [E]
[flavors_test_win] [STDOUT] stdout:
[flavors_test_win] [STDOUT] stdout: 00:55 +0 -1: (tearDownAll) - did not complete [E]
[flavors_test_win] [STDOUT] stdout:
[flavors_test_win] [STDOUT] stdout: 00:55 +0 -1: Some tests failed.
[flavors_test_win] [STDOUT] stdout: [ +7 ms] test package returned with exit code 1
[flavors_test_win] [STDOUT] stdout: [ +2 ms] "flutter test" took 56,478ms.
[flavors_test_win] [STDOUT] stderr: [ +3 ms]
[flavors_test_win] [STDOUT] stderr: #0 throwToolExit (package:flutter_tools/src/base/common.dart:10:3)
[flavors_test_win] [STDOUT] stderr: #1 TestCommand.runCommand (package:flutter_tools/src/commands/test.dart:468:7)
[flavors_test_win] [STDOUT] stderr: <asynchronous suspension>
[flavors_test_win] [STDOUT] stderr: #2 FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart:1209:27)
[flavors_test_win] [STDOUT] stderr: <asynchronous suspension>
[flavors_test_win] [STDOUT] stderr: #3 AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
[flavors_test_win] [STDOUT] stderr: <asynchronous suspension>
[flavors_test_win] [STDOUT] stderr: #4 CommandRunner.runCommand (package:args/command_runner.dart:209:13)
[flavors_test_win] [STDOUT] stderr: <asynchronous suspension>
[flavors_test_win] [STDOUT] stderr: #5 FlutterCommandRunner.runCommand.<anonymous closure> (package:flutter_tools/src/runner/flutter_command_runner.dart:281:9)
[flavors_test_win] [STDOUT] stderr: <asynchronous suspension>
[flavors_test_win] [STDOUT] stderr: #6 AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
[flavors_test_win] [STDOUT] stderr: <asynchronous suspension>
[flavors_test_win] [STDOUT] stderr: #7 FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:229:5)
[flavors_test_win] [STDOUT] stderr: <asynchronous suspension>
[flavors_test_win] [STDOUT] stderr: #8 run.<anonymous closure>.<anonymous closure> (package:flutter_tools/runner.dart:62:9)
[flavors_test_win] [STDOUT] stderr: <asynchronous suspension>
[flavors_test_win] [STDOUT] stderr: #9 AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
[flavors_test_win] [STDOUT] stderr: <asynchronous suspension>
[flavors_test_win] [STDOUT] stderr: #10 main (package:flutter_tools/executable.dart:91:3)
[flavors_test_win] [STDOUT] stderr: <asynchronous suspension>
[flavors_test_win] [STDOUT] stderr:
[flavors_test_win] [STDOUT] stderr:
[flavors_test_win] [STDOUT] stdout: [ +1 ms] ensureAnalyticsSent: 0ms
[flavors_test_win] [STDOUT] stdout: [ ] Running shutdown hooks
[flavors_test_win] [STDOUT] stdout: [ ] Shutdown hooks complete
[flavors_test_win] [STDOUT] stdout: [ ] exiting with code 1
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
P1High-priority issues at the top of the work listHigh-priority issues at the top of the work listc: flakeTests that sometimes, but not always, incorrectly passTests that sometimes, but not always, incorrectly passframeworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.
Activity
keyonghan commentedon Jul 14, 2022
As all the flakes happened on only window4, @zanderso do you mind taking a look to see if this is related to test or testbed? At the same time, I manually quarantined the testbed: #107682.
zanderso commentedon Jul 15, 2022
All failures are:
Routing to @dkwingsmt who is in the blame for the line with the null check error.
dkwingsmt commentedon Jul 20, 2022
The code is assuming that
TestWidgetsFlutterBinding.instance.renderViewElementis never null. It's easy for me to loosen the assertion (resulting in a null forinnerTargetElement), but this is probably wrong, and will just move the flakiness to a deeper place. It seems that the pointer event sometimes occurs before a renderViewElement is established.Is it possibly caused by the first frame being too late?
I'll need some help from whoever knows this test and the testing architecture better. Maybe @zanderso ?
Hixie commentedon Jul 26, 2022
cc @goderbauer
goderbauer commentedon Jul 26, 2022
@dkwingsmt Could we add some logs to the test to verify this hypothesis?
dkwingsmt commentedon Aug 8, 2022
I tried to come up with #109148 (is it what you mean?). But it fails with the following error:
This is really weird because I can't think of any place that would have assigned to
_debugInitializedType. I even tried to acquire the stacktrace atflutter/packages/flutter/lib/src/foundation/binding.dart
Line 264 in a494776
_debugInitializedType(this change not included in the PR), but the stacktrace turns out to be null. Is it caused by some different setup by integration tests?goderbauer commentedon Aug 8, 2022
Can you print out what
_debugInitializedTypeis initialized to? That may give us a clue.dkwingsmt commentedon Aug 8, 2022
Yes, it is initialized as
IntegrationTestWidgetsFlutterBinding.goderbauer commentedon Aug 8, 2022
Actually, this test looks overwhelmingly green: https://flutter-dashboard.appspot.com/#/build?taskFilter=flavors_test_win&authorFilter&messageFilter&hashFilter&showMac=true&showWindows=true&showiOS=true&showLinux=true&showAndroid=true&showStaging=false&repo=flutter&branch=master
There don't appear to be any flakes in the last few weeks. I think we should just remove the flakiness label from it and close this bug.
jmagman commentedon Dec 13, 2022
It seems to be failing 100% now on cert installation, filed #117001
github-actions commentedon Apr 26, 2023
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
flutter doctor -vand a minimal reproduction of the issue.