Bug 231805

Summary: Mark more tests as slow for pytest
Product: WebKit Reporter: Sam Sneddon [:gsnedders] <gsnedders>
Component: Tools / TestsAssignee: Sam Sneddon [:gsnedders] <gsnedders>
Status: NEW ---    
Severity: Normal CC: ews-watchlist, glenn, jbedard, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Local Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=225156
Attachments:
Description Flags
Patch gsnedders: review?, ews-feeder: commit-queue-

Description Sam Sneddon [:gsnedders] 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.
Comment 1 Sam Sneddon [:gsnedders] 2021-10-15 08:21:26 PDT
Created attachment 441380 [details]
Patch
Comment 2 Jonathan Bedard 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.
Comment 3 Sam Sneddon [:gsnedders] 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'`).
Comment 4 Radar WebKit Bug Importer 2021-10-22 07:05:13 PDT
<rdar://problem/84548211>