NEW 231805
Mark more tests as slow for pytest
https://bugs.webkit.org/show_bug.cgi?id=231805
Summary Mark more tests as slow for pytest
Sam Sneddon [:gsnedders]
Reported 2021-10-15 07:04:12 PDT
This goes beyond bug 225156 by marking everything that takes > 0.5s to run on my MacBook Pro (16-inch, 2019) as slow. This makes a larger number of tests get skipped by default than with ./Tools/Scripts/test-webkitpy, but halves the execution time. Having looked at a graph of test execution time, I think the > 0.5s cutoff is the right one to balance running as much as possible as quickly as possible.
Attachments
Patch (18.87 KB, patch)
2021-10-15 08:21 PDT, Sam Sneddon [:gsnedders]
gsnedders: review?
ews-feeder: commit-queue-
Sam Sneddon [:gsnedders]
Comment 1 2021-10-15 08:21:26 PDT
Jonathan Bedard
Comment 2 2021-10-15 08:28:21 PDT
Comment on attachment 441380 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=441380&action=review > Tools/Scripts/webkitpy/style/main_unittest.py:36 > +from webkitpy.test.markers import slow Can we maybe not do this file? I only call it out because the style checker is the thing engineers not familiar with webkitpy are most likely to change. Would be good if we kept full coverage for folks making those changes, since they're unlikely to know to change the flags they're passing to test-webkitpy.
Sam Sneddon [:gsnedders]
Comment 3 2021-10-15 08:31:12 PDT
(In reply to Jonathan Bedard from comment #2) > Comment on attachment 441380 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=441380&action=review > > > Tools/Scripts/webkitpy/style/main_unittest.py:36 > > +from webkitpy.test.markers import slow > > Can we maybe not do this file? I only call it out because the style checker > is the thing engineers not familiar with webkitpy are most likely to change. > Would be good if we kept full coverage for folks making those changes, since > they're unlikely to know to change the flags they're passing to > test-webkitpy. Note that this currently has no impact on `test-webkitpy`; there's probably an argument that we want to default to running all the tests and then allowing developers to opt-in to running the "not slow" subset (which once we're using pytest everywhere is just `pytest -m 'not slow'`).
Radar WebKit Bug Importer
Comment 4 2021-10-22 07:05:13 PDT
Note You need to log in before you can comment on or make changes to this bug.