-
Notifications
You must be signed in to change notification settings - Fork 6k
Actually use Impeller in scenario_app tests #50977
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks for doing this!
auto label is removed for flutter/engine/50977, due to - The status or check suite Linux linux_android_aot_engine has failed. Please fix the issues identified (or deflake) before re-applying this label.
|
@dnfield I am going to hit "Update branch" so we can get my logging improvements and Jonah's crash improvements. |
Something is going wrong in the general case - Impeller is getting used when I run a single test, but not when I run them all. |
I've modified this patch to be a bit simpler and remove a test that does not work with Impeller currently - the test tries to construct a Flutter Engine in an unusual way and ends up hanging when we try to initialize Vulkan for reasons that are not entirely clear to me. I don't think we need to do that though, we have coverage already elsewhere around initializing FlutterEngine objects. |
Golden file changes have been found for this pull request. Click here to view and triage (e.g. because this is an intentional change). If you are still iterating on this change and are not ready to resolve the images on the Flutter Gold dashboard, consider marking this PR as a draft pull request above. You will still be able to view image results on the dashboard, commenting will be silenced, and the check will not try to resolve itself until marked ready for review. |
I took a quick look at the gold digests and they look WAI, the texture tests that are rendering blank are waiting for a combination of #50730 (h/t @chinmaygarde) and flutter/flutter#144199 (h/t @johnmccutchan). |
I'm going to approve the goldens. Chinmay can merge this into his PR and that should give him the test coverage he needs. |
Follow up on #50977 - enables OpenGLES backend for that test harness.
Right now, the scenario_app tests that claim to use Impeller are not actually using Impeller. This is for a few reasons:
Intent
for theActivity
that is under test.This patch updates existing tests to use a newThis patch updates the test runner to force initialization of the shell arguments for all tests once and early. It also updates the argument order in the script and adds a verification that Impeller prints that it is being used at least once.@Rule
that reads the arguments from the instrumentation's argumentBundle
and injects them into theIntent
that we actually pass to theActivity
under test.