Package the mochitest perftests in their own test archive for mozperftest tasks
Categories
(Testing :: mozperftest, enhancement, P1)
Tracking
(Not tracked)
People
(Reporter: aglavic, Assigned: aglavic)
References
(Blocks 1 open bug)
Details
(Whiteboard: [fxp])
Attachments
(1 external file)
Windows 11 mozperftest tasks fetch target.mochitest.tests.tar.zst and extract the whole archive (about 40,600 files) before every run. On Windows workers this takes 117-183 s per task, even though a mochitest-flavour perftest only runs one or a few test files.
Proposed change:
- Set
extract: falsefor the mochitest archive intaskcluster/kinds/perftest/windows11-24h2.ymlandwindows11-24h2-ref.yml. - In
mozperftest, before the virtualenvs are activated, extract only the mochitest harness files, the directories of the tests being run, and the files they reference (chrome://mochitests/content/...URLs, served/tests/and/browser/URLs, and!/support-file entries in manifests), following references a few levels deep. If a test cannot be mapped to the archive layout, the whole archive is extracted as before. The archive is deleted afterwards. TRY_MAPPINGmoves fromutils.pyto a newarchive_subset.pyso both can use it.
Try results (2 runs per job, same base):
- Before: https://treeherder.mozilla.org/jobs?repo=try&landoInstance=lando-prod-2025&landoCommitID=108545
- After: https://treeherder.mozilla.org/jobs?repo=try&landoInstance=lando-prod-2025&landoCommitID=108574
Extraction drops from about 120 s (182 s for the -ref jobs) to 5-12 s (370 to 2,594 files), and the 13 mozperftest jobs that ran finish about 75 s faster on average (62-115 s per task). Every job reports the same metrics before and after. perftest-windows11-24h2-controlled fails in both pushes on a DNS lookup (getaddrinfo failed), which is unrelated.
| Assignee | ||
Comment 1•1 month ago
|
||
Extracting the whole mochitest archive took about two minutes on Windows
workers. The archive is now fetched without extraction, and mozperftest
extracts only the harness, the directories of the tests being run and the
files they reference, falling back to the whole archive when a test cannot
be mapped.
Updated•16 days ago
|
Updated•16 days ago
|
Updated•5 days ago
|
| Assignee | ||
Updated•2 days ago
|
Updated•2 days ago
|
Description
•