Files
tubestation/testing/web-platform/tests/tools
Jonathan Lee eaa32988a8 Bug 1897305 [wpt PR 46331] - [wptrunner] Optimize server test order, a=testonly
Automatic update from web-platform-tests
[wptrunner] Optimize server test order (#46331)

`TestEnvironment.ensure_started()` synchronously polls that all servers
are started. The non-webtransport-h3 servers are often tested first and
immediately fail with "Connection refused", which puts them in the
`pending` list. This spins the polling loop at least once and delays
startup by at least 0.5s.

Run the webtransport-h3 server test first, which blocks [1]. This
provides additional time for the non-webtransport-h3 servers to become
ready, which means the `TestEnvironment` often only needs to poll once.

This speeds up `ensure_started()` from ~2.2s -> ~1.7s and improves
wptrunner's interactive UX (https://crbug.com/339299999). No functional
change.

[1]: https://github.com/web-platform-tests/wpt/blob/431f8d35/tools/webtransport/h3/webtransport_h3_server.py#L593
--

wpt-commits: c6298d417f3dcd3b0af75223ea31d6389dba02b6
wpt-pr: 46331
2024-05-23 10:00:56 +00:00
..