Open Bug 2084771 Opened 1 month ago Updated 2 days ago

Package the mochitest perftests in their own test archive for mozperftest tasks

Categories

(Testing :: mozperftest, enhancement, P1)

enhancement

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: false for the mochitest archive in taskcluster/kinds/perftest/windows11-24h2.yml and windows11-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_MAPPING moves from utils.py to a new archive_subset.py so both can use it.

Try results (2 runs per job, same base):

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.

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.

Blocks: perf-ci
Whiteboard: [fxp]
Attachment #9666772 - Attachment description: Bug 2084771 - Only extract the mochitest files that Windows mozperftest tasks need. r?#perftest-reviewers → WIP: Bug 2084771 - Package the mochitest perftests in their own test archive for Windows mozperftest tasks. r?#firefox-build-system-reviewers,#perftest-reviewers
Summary: Only extract the mochitest files that Windows mozperftest tasks need → Package the mochitest perftests in their own test archive for mozperftest tasks
Attachment #9666772 - Attachment description: WIP: Bug 2084771 - Package the mochitest perftests in their own test archive for Windows mozperftest tasks. r?#firefox-build-system-reviewers,#perftest-reviewers → Bug 2084771 - Package the mochitest perftests in their own test archive for mozperftest tasks. r?#firefox-build-system-reviewers,#perftest-reviewers
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: