Bug 231805 - Mark more tests as slow for pytest
Summary: Mark more tests as slow for pytest
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: WebKit Local Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Sam Sneddon [:gsnedders]
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2021-10-15 07:04 PDT by Sam Sneddon [:gsnedders]
Modified: 2021-10-22 07:05 PDT (History)
4 users (show)

See Also:


Attachments
Patch (18.87 KB, patch)
2021-10-15 08:21 PDT, Sam Sneddon [:gsnedders]
gsnedders: review?
ews-feeder: commit-queue-
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
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>