Bug 230684

Summary: LayoutTestFinder doesn't return tests in order
Product: WebKit Reporter: Sam Sneddon [:gsnedders] <gsnedders>
Component: Tools / TestsAssignee: Sam Sneddon [:gsnedders] <gsnedders>
Status: RESOLVED FIXED    
Severity: Normal CC: ap, 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=230764
Attachments:
Description Flags
Patch none

Description Sam Sneddon [:gsnedders] 2021-09-23 04:47:17 PDT
It is clearly intended that LayoutTestFinder returns the tests in a deterministic order. But it doesn't actually do that: top-level directories appear in an arbitrary order.

Found while rewriting LayoutTestFinder and trying to compare my results against what we currently have.
Comment 1 Sam Sneddon [:gsnedders] 2021-09-23 11:04:44 PDT
Created attachment 439069 [details]
Patch
Comment 2 Alexey Proskuryakov 2021-09-23 17:51:44 PDT
Comment on attachment 439069 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=439069&action=review

> Tools/ChangeLog:10
> +        running run-webkit-tests with no arguments ends up running the top-level directories in a

Is this a recent regression? In my experience, accessibility and animations always went first.
Comment 3 Sam Sneddon [:gsnedders] 2021-09-24 05:45:30 PDT
(In reply to Alexey Proskuryakov from comment #2)
> Comment on attachment 439069 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=439069&action=review
> 
> > Tools/ChangeLog:10
> > +        running run-webkit-tests with no arguments ends up running the top-level directories in a
> 
> Is this a recent regression? In my experience, accessibility and animations
> always went first.

IIRC, it should in practice depend on the order the OS enumerates them (via libc).
Comment 4 EWS 2021-09-24 05:58:48 PDT
Committed r283037 (242097@main): <https://commits.webkit.org/242097@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 439069 [details].
Comment 5 Radar WebKit Bug Importer 2021-09-24 05:59:19 PDT
<rdar://problem/83493574>