-
Notifications
You must be signed in to change notification settings - Fork 28.6k
Some tests should manually select the local engine variant #72368
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
Note: fixing this will enable us to fix the web HHH bot from failing every time the kernel version changes. |
\cc @jmagman any pointers that you can give us here? |
Never mind, this is requesting the possibility to |
The original impetus for this seems to be:
That may be fixed by #78496. However if we still need this, the integration tests could have a List<String> getLocalEngineAndroidArguments() =>
getLocalEngineArguments().map((String argument) => argument.replaceAll('host_', 'android_')).toList(); but something more robust. |
@annagrin You're right, it's not related to #78496. |
@jmagman @godofredoc I would appreciate if someone could take this over from me, as I am not familiar with the flutter test infrastructure enough to make the right call. |
The problem I think being described is that the tool assumes that
And if it needs to grab something from flutter/packages/flutter_tools/lib/src/runner/local_engine.dart Lines 152 to 154 in 4851bd5
But it doesn't bother with flutter/packages/flutter_tools/lib/src/artifacts.dart Lines 491 to 493 in acda272
flutter/packages/flutter_tools/lib/src/artifacts.dart Lines 513 to 520 in acda272
However, the testing infrastructure always passes in --local-engine host_*.
So when
#71721 (comment) This was easy to reproduce locally:
On top of all that, the flutter/packages/flutter_tools/lib/src/android/gradle.dart Lines 1105 to 1111 in a01f372
The most robust thing to do would be to handle The easier thing to do would be to do something cheesy like |
We had another kernel version change 4 days ago: https://logs.chromium.org/logs/dart/buildbucket/cr-buildbucket.appspot.com/8851986851676848432/+/steps/flutter_test_tool_tests/0/stdout |
@athomas would it be possible to build other flavors of engine in dart HHH bot to make sure all tests run correctly if/when pub runs with local engine flag (will need to reland #71721 for it, and add more flags probably)? See @jmagman investigation above. cc @sigmundch |
Some observations after looking at this more closely and discussing it with @jonahwilliams:
|
This is bassically reapplying flutter#71721, but only enables it on web tests. There are known issues that several tests under the `integration.shard` depend on a specific platform, and as a result they require some additional flexiblity (bots need to build more than one engine, and the test flags should allow for secondary engines to be picked by such tests). By enabling this on the web-test shard, we will reduce the false positives in the dart-flutter-HHH-web bot. Fixing the more general problem is tracked by flutter#72368.
…#83308) This is bassically reapplying #71721, but only enables it on web tests. There are known issues that several tests under the `integration.shard` depend on a specific platform, and as a result they require some additional flexiblity (bots need to build more than one engine, and the test flags should allow for secondary engines to be picked by such tests). By enabling this on the web-test shard, we will reduce the false positives in the dart-flutter-HHH-web bot. Fixing the more general problem is tracked by #72368.
@sigmundch Can you comment if this is something that needs to be done or otherwise close this issue? Thanks! |
It's been a while, so trying to refresh my memory here. Since we landed #83308, we are no longer affected in the web HHH boots (item 1 in my previous comment), so that part is complete. I am not aware that any work was done to address item 2. However, I'm not aware of anything being blocked by it either. As such, maybe the remaining work here could be categorized as tech debt/test hygiene and prioritized accordingly? |
Got it, thanks! |
Uh oh!
There was an error while loading. Please reload this page.
See the discussion here #71721 (comment)
@a-siva @mkustermann
@jonahwilliams who did some plumbing around this recently here #65802
The text was updated successfully, but these errors were encountered: