Remove dead mochitest chunking code (--chunk-by-runtime, --chunk-by-dir, --total-chunks, --this-chunk)
Categories
(Testing :: Mochitest, enhancement)
Tracking
(firefox149 fixed)
| Tracking | Status | |
|---|---|---|
| firefox149 | --- | fixed |
People
(Reporter: florian, Assigned: florian)
References
Details
Attachments
(2 files)
Mochitest's runtests.py has code to split tests into chunks at runtime using --total-chunks/--this-chunk with either --chunk-by-runtime (loading manifest-runtimes-*.json files) or --chunk-by-dir.
This code is dead in CI: the taskgraph decision task now pre-assigns specific manifests to each chunk via chunk_manifests() in taskcluster/gecko_taskgraph/util/chunking.py, and communicates them to test tasks through MOZHARNESS_TEST_PATHS. When that env var is set, desktop_unittest.py passes the manifest paths directly to mochitest and skips --total-chunks/--this-chunk entirely. Since mochitest uses the default manifest loader (no test-manifest-loader: null), test-manifests are always resolved at taskgraph time, so the runtime chunking path is never taken.
This patch removes:
- The
--total-chunks,--this-chunk,--chunk-by-runtime,--chunk-by-diroptions frommochitest_options.pyand their validation logic - The chunking filter block in
runtests.py(chunk_by_dir,chunk_by_runtime,chunk_by_slice) and the corresponding manifestparser imports - The
chunkByRuntime/chunkByDirassignments inmach_test_package_commands.py - The
suite_namepass-through inmach_commands.py(only needed forchunk-by-runtime) - All
--chunk-by-runtimeand--chunk-by-dir=4flags from mozharness configs (linux_unittest.py,mac_unittest.py,win_unittest.py,android_common.py)
| Assignee | ||
Comment 1•3 months ago
|
||
Chunking is now done at taskgraph time via chunk_manifests() in
chunking.py, with manifests passed to test tasks via
MOZHARNESS_TEST_PATHS. The --total-chunks/--this-chunk args are
no longer passed to mochitest, making the runtime chunking code
(--chunk-by-runtime, --chunk-by-dir) dead.
| Assignee | ||
Comment 2•3 months ago
|
||
These files provided runtime data for the now-removed mochitest chunking
code. The taskgraph fetches runtime data directly from TaskCluster
artifacts instead. The writeruntimes script queried the long-defunct
ActiveData service to generate these files.
Also removes a stale pyproject.toml exclusion and a sparse-profile entry
that is no longer needed since the taskgraph doesn't read from
testing/runtimes/.
Comment 5•3 months ago
|
||
Reverted this because it was causing mochitests failures.
- Revert link
- Push with failures
- Failure Log
- Failure line: No suite end message was emitted by this harness.
Comment 8•3 months ago
|
||
| bugherder | ||
| Assignee | ||
Updated•2 months ago
|
Description
•