Skip to content

Commit 8289fd3

Browse files
authored
Run virtual tests before base tests (#46852)
to mitigate the long tail effect.
1 parent d2018a9 commit 8289fd3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/wptrunner/wptrunner/testloader.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -559,8 +559,8 @@ def make_queue(self, tests_by_type: TestsByType) -> Tuple[ReadQueue, int]:
559559
group.test_type,
560560
# Next, run larger groups first to avoid straggler runners. Use
561561
# timeout to give slow tests greater relative weight.
562-
-sum(test.timeout for test in group.group),
563-
))
562+
sum(test.timeout for test in group.group),
563+
), reverse=True)
564564
for item in groups:
565565
test_queue.put(item)
566566

0 commit comments

Comments
 (0)