-
Notifications
You must be signed in to change notification settings - Fork 29.8k
Description
Dart integration tests with Android are consistently failing and blocking flutter -> packages roller seemingly due to: #156597.
This PR causes the Firebase TestLab Android tests to fail. The common error looks to be:
10-13 08:52:39.058 23656 23656 I flutter : The following assertion was thrown during a scheduler callback:
10-13 08:52:39.058 23656 23656 I flutter : Matrix4 entries must be finite.
10-13 08:52:39.058 23656 23656 I flutter : 'dart:ui/painting.dart':
10-13 08:52:39.058 23656 23656 I flutter : Failed assertion: line 42 pos 10: '<optimized out>'
10-13 08:52:39.058 23656 23656 I flutter :
10-13 08:52:39.058 23656 23656 I flutter : Either the assertion indicates an error in the framework itself, or we should provide substantially
10-13 08:52:39.058 23656 23656 I flutter : more information in this error message to help you determine and fix the underlying cause.
10-13 08:52:39.058 23656 23656 I flutter : In either case, please report this assertion by filing a bug on GitHub:
10-13 08:52:39.058 23656 23656 I flutter : https://github.com/flutter/flutter/issues/new?template=2_bug.yml
10-13 08:52:39.058 23656 23656 I flutter :
10-13 08:52:39.058 23656 23656 I flutter : When the exception was thrown, this was the stack:
10-13 08:52:39.058 23656 23656 I flutter : #2 _matrix4IsValid (dart:ui/painting.dart:42:10)
10-13 08:52:39.058 23656 23656 I flutter : #3 _NativeSceneBuilder.pushTransform (dart:ui/compositing.dart:628:12)
10-13 08:52:39.058 23656 23656 I flutter : #4 TransformLayer.addToScene (package:flutter/src/rendering/layer.dart:1969:27)
I was not able to reproduce the failure locally when running the integration from the Android Studio IDE, but could reproduce when running the tests with gradle.
Note: The Firebase Testlab tests compile the app with gradle and then uploads the test to Firebase to be ran.
To reproduce test failure locally:
-
Choose an Android plugin that is failing consistently in flutter/packages (I typically choose
pacakges/webview_flutter/webview_flutter_android). -
Build example in
example/
flutter build apk --debug
- Run Dart integration with Gradle in
example/android/:
./gradlew app:connectedAndroidTest -Ptarget=`pwd`/../integration_test/webview_flutter_test.dart
Most of the test will fail when running.
I used #157018 for testing on Firebase Testlab failures. See https://logs.chromium.org/logs/flutter/buildbucket/cr-buildbucket/8733974383434278129/+/u/Run_package_tests/Firebase_Test_Lab/stdout?format=raw for logs.