[SR-1691] Run longer tests first #44300
Labels
feature
A feature request or implementation
good first issue
Good for newcomers
python
Flag: Python source code
test suite
Area: test suite
Additional Detail from JIRA
md5: d2501feeca870b45e5e159e000fd4619
Issue Description:
In the Swift testsuite there many short tests and a few long tests. Sometimes the longer tests happen to be scheduled last, creating a "long tail" and keeping just a few cores busy. It would be better to start the longer tests first, and then run the short tests. This can shave off 1..2 minutes from testing time.
The suggested solution is to add a new feature to lit, that would allow to attach arbitrary labels to tests. lit could embed definition of special label type, or test suite could have extra code to take specific label names and then attach more semantic attributes to test.
We could also migrate the limit_to_features feature to use labels, it would be a much better fit.
The text was updated successfully, but these errors were encountered: