Skip to content
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

Add configuration to support compiling engine with SUPPORT_FRACTIONAL_TRANSLATION #33393

Merged
merged 5 commits into from May 16, 2022

Conversation

jonahwilliams
Copy link
Member

@jonahwilliams jonahwilliams commented May 16, 2022

We need to compile a full engine variant to enable SUPPORT_FRACTIONAL_TRANSLATION for tester devices

Work towards flutter/flutter#103909

This is not tested on CI, as the recipe must first be created (as part of this change). To test locally, first build the variant with flutter/tools/gn --unopt --support-fractional-translation and then run the appropriate unit tests with out/host_debug_unopt_fractional/shell_unittests(.exe) and out/host_debug_unopt_fractional/displaylist_unittests(.exe)

Edit: or just use .\testing\run_tests.py --variant=host_debug_unopt_fractional

@@ -68,10 +68,10 @@ class TesterGPUSurfaceSoftware : public GPUSurfaceSoftware {
bool render_to_surface)
: GPUSurfaceSoftware(delegate, render_to_surface) {}

#if DISABLE_SOFTWARE_RASTER_CACHE
#if SUPPORT_FRACTIONAL_TRANSLATION
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might as well key this off of SUPPORT_FRACTIONAL_TRANSLATION, so we only need to change the location of the downloaded artifact and not the name too. I'll send a PR to revert the recipe change later

@flutter-dashboard
Copy link

It looks like this pull request may not have tests. Please make sure to add tests before merging. If you need an exemption to this rule, contact Hixie on the #hackers channel in Chat (don't just cc him here, he won't see it! He's on Discord!).

If you are not sure if you need tests, consider this rule of thumb: the purpose of a test is to make sure someone doesn't accidentally revert the fix. Ask yourself, is there anything in your PR that you feel it is important we not accidentally revert back to how it was before your fix?

Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing.

Copy link
Member

@zanderso zanderso left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm but we will have to be careful in the recipe change to ensure that no additional targets are being compiled with Xcode.

@jonahwilliams
Copy link
Member Author

Sounds good - we should only need a linux host variant with this define enabled

@jonahwilliams
Copy link
Member Author

One more update: needed to change the out_dir so we don't conflict with the normal debug engine variant

Copy link
Member

@zanderso zanderso left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit about naming: If there will also be future changes in this configuration intended to improve the stability of tester output, maybe the option/build-variant-name could be something more generic, like 'stabletest'?

@jonahwilliams
Copy link
Member Author

"stabletest" would be a bit optimistic 😄 . I think with flutter/flutter#103909, we'll switch to this by default for all desktop platforms and this variant will go away once we update g3

@zanderso
Copy link
Member

@jonahwilliams Looking at the recipe change, I think it might be helpful to spell out the migration plan in a doc or github issue if we don't have one already.

@jonahwilliams
Copy link
Member Author

I updated flutter/flutter#103909 with a quick migration plan

@jonahwilliams jonahwilliams added the waiting for tree to go green This PR is approved and tested, but waiting for the tree to be green to land. label May 16, 2022
@fluttergithubbot fluttergithubbot merged commit 10f1bac into flutter:main May 16, 2022
@jonahwilliams jonahwilliams deleted the new_engine_variant branch May 16, 2022 20:10
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request May 16, 2022
@Hixie
Copy link
Contributor

Hixie commented May 16, 2022

(for completeness:
test-exempt: is tested, it's complicated, we talked about it on Discord
)

houhuayong pushed a commit to houhuayong/engine that referenced this pull request Jun 21, 2022
pbo-linaro pushed a commit to pbo-linaro/flutter-recipes that referenced this pull request Nov 24, 2022
Requires flutter/engine#33393 to build


Bug: flutter/flutter#103909
Change-Id: Ia6ae24676214a98459f9e2fb739d160031faa67c
Reviewed-on: https://flutter-review.googlesource.com/c/recipes/+/30201
Reviewed-by: Zach Anderson <zra@google.com>
Commit-Queue: Jonah Williams <jonahwilliams@google.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs tests waiting for tree to go green This PR is approved and tested, but waiting for the tree to be green to land.
Projects
None yet
4 participants