Enable dynamic chunking for all test suites that use manifest loading
Categories
(Firefox Build System :: Task Configuration, enhancement)
Tracking
(firefox150 fixed)
| Tracking | Status | |
|---|---|---|
| firefox150 | --- | fixed |
People
(Reporter: florian, Assigned: florian)
References
Details
Attachments
(2 external files)
The taskgraph has infrastructure for dynamic chunking (computing the number of test chunks based on manifest runtime data rather than using hardcoded values from YAML). However, it was effectively unused for most jobs.
The code in set_test_manifests had an isinstance(loader, DefaultLoader) guard that was supposed to trigger dynamic chunking when a non-default manifest loader was in use (e.g. the bugbug loader on autoland). But since BugbugLoader inherits from DefaultLoader, the isinstance check always returned True and dynamic chunking was never activated through this path. The only place it was actually used was the os-integration cron task.
This patch removes the dead isinstance guards and unconditionally sets chunks = "dynamic" for all tasks that go through manifest loading. This means the number of chunks is now computed from manifest runtime data (manifests-runtimes.json from mozilla-central) for all applicable test suites (mochitest, xpcshell, reftest, crashtest, web-platform-tests, etc.).
Tasks that opt out of manifest loading (test-manifest-loader: null in YAML) are unaffected -- they continue to use hardcoded chunk counts and resolve chunking at test runtime. This includes talos, browsertime, awsy, compiled tests (gtest, cppunittest, jittest), and some specific mochitest/reftest/wpt variants.
When no runtime data is available for a given platform/suite combination, the code falls back to the original hardcoded chunk count from the YAML definition. Some YAML-defined variants (inc-origin-init, vertical-tabs, privatebrowsing) already set chunks: dynamic explicitly; this is handled correctly.
| Assignee | ||
Comment 1•9 months ago
|
||
| Assignee | ||
Comment 2•9 months ago
|
||
When dynamic chunking resolves to 1 chunk, the task label has no numeric
suffix (e.g. "test-linux-xpcshell" instead of "test-linux-xpcshell-1").
The glob matching in _try_task_config only looked for numeric suffixes,
so these tasks were never matched. Also update the MOZHARNESS_TEST_PATHS
and MOZHARNESS_TEST_TAG first-chunk filters to keep unchunked tasks.
Comment 5•9 months ago
|
||
Backed out for causing ci failures on test_new_config.py
Comment 7•9 months ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/b3e68c53a29e
https://hg.mozilla.org/mozilla-central/rev/cbae3fa54148
| Assignee | ||
Updated•9 months ago
|
Description
•