try fuzzy with Android media mochitests doesn't actually run the jobs
Categories
(Firefox Build System :: Task Configuration, defect)
Tracking
(firefox-esr140 unaffected, firefox-esr153 wontfix, firefox154 wontfix, firefox155 wontfix, firefox156 wontfix, firefox157 fixed)
People
(Reporter: aosmond, Assigned: florian)
References
(Regression)
Details
(Keywords: regression)
Attachments
(1 external file)
When I do a try push for Android, I need to manually run the mochitest media jobs after the decision task, because otherwise it would never schedule them.
See https://treeherder.mozilla.org/jobs?repo=try&revision=6b5520399500f96b918b6a7bd6096e688b8b3299 for an example. You can see from the fuzzy query I requested the mochitest media jobs:
{
"parameters": {
"optimize_target_tasks": false,
"try_task_config": {
"env": {
"TRY_SELECTOR": "fuzzy"
},
"tasks": [
"test-android-em-14-x86_64-lite/opt-geckoview-mochitest-media",
"test-android-em-14-x86_64-lite/opt-geckoview-mochitest-media-nofis",
"test-android-em-14-x86_64-lite/opt-geckoview-mochitest-media-nogpu",
"test-android-em-14-x86_64/opt-geckoview-mochitest-media",
"test-android-em-14-x86_64/opt-geckoview-mochitest-media-nofis",
"test-android-em-14-x86_64/opt-geckoview-mochitest-media-nogpu"
]
}
},
"version": 2
}
But nothing got scheduled. If I manually add the jobs again in the treeherder UI, it works.
Comment 1•3 months ago
|
||
Set release status flags based on info from the regressing bug 2017946
Updated•3 months ago
|
Comment 2•3 months ago
|
||
Bug 2017946 made every test suite that goes through manifest loading use
dynamic chunking, so a task's chunk count is only known once the decision task
has resolved it from the manifest runtime data.
mach try fuzzy builds its task list with taskgraph.fast set
(tools/tryselect/tasks.py), which skips manifest loading and falls back to the
hardcoded default-chunks from YAML. For android.*/opt mochitest-media that
is 1, so add_chunk_patterns offers the plain task label with no chunk suffix
and no -* pattern. The decision task then resolves the real chunk count, gets
more than one, and the labels become ...-geckoview-mochitest-media-1, -2.
_try_task_config looked for the exact requested label, didn't find it, and
dropped it, so nothing was scheduled. Adding the job by hand in Treeherder
worked because that uses the decision task's own runnable-jobs list, which has
the real labels.
_renumbered_chunks already exists to recover such labels, but it only ran when
the push restricted the tests (MOZHARNESS_TEST_PATHS / MOZHARNESS_TEST_TAG), and
it only handled a label that already carried a numeric suffix.
Run the recovery on every try push, and treat a label with no numeric suffix as
the unchunked name of a task that is now chunked. _drop_redundant_chunks stays
gated on the restricted case: there the harness filters the whole suite down so
every chunk of an unrestricted task runs the same tests and only the first is
wanted, whereas without a restriction each chunk runs its own share of the suite
and they are all wanted.
This fixes the other producers of stale labels too (mach try again of an older
push, mach try coverage, a checked-in try_task_config.json), not just fuzzy.
| Assignee | ||
Comment 3•3 months ago
|
||
Does the hackbot patch fix it for you?
| Reporter | ||
Comment 4•3 months ago
|
||
Yes. They got kicked off as expected:
https://treeherder.mozilla.org/jobs?repo=try&revision=20fe34e50f8864e299643b53b307ace8e50425d4
Updated•3 months ago
|
Updated•3 months ago
|
Comment 6•3 months ago
|
||
| bugherder | ||
Updated•3 months ago
|
Description
•