Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Conversation

@flar
Copy link
Contributor

@flar flar commented Apr 27, 2022

Currently the flow_unittests take a really long time to run, mostly because they contain the display_list_canvas_unittests tests which take 40 seconds per run.

The fact that DisplayList code is tested under the "flow" suite is also someone odd as it really is a different module in the code.

This PR breaks the DisplayList tests out of the flow tests and makes 2 new executables for them. The first is just the basic unit tests under display_list_unittests and the second is the long running dl_canvas_unittests which are now in their own executable display_list_rendertests.

@flar flar requested review from chinmaygarde and dnfield April 27, 2022 22:22
Copy link
Member

@chinmaygarde chinmaygarde left a comment

Choose a reason for hiding this comment

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

Splitting this out of the flow unit-tests harness makes a lot of sense. However, you don't really need to split it out into two harnesses just to separate out the slow tests. You could tag the slow ones with a specific prefix and use a gtest_filter to selectively suppress running them. Either way, lgtm.

@flar
Copy link
Contributor Author

flar commented Apr 27, 2022

Splitting this out of the flow unit-tests harness makes a lot of sense. However, you don't really need to split it out into two harnesses just to separate out the slow tests. You could tag the slow ones with a specific prefix and use a gtest_filter to selectively suppress running them. Either way, lgtm.

The rendertests aren't really unit tests. It's the same reason we split out the benchmarks..?

@flar flar 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 Apr 28, 2022
@fluttergithubbot fluttergithubbot merged commit 220613f into flutter:main Apr 28, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Apr 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

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

Development

Successfully merging this pull request may close these issues.

3 participants