Add mochitest-repeat jobs to identify tests that don't clean up properly
Categories
(Firefox Build System :: Task Configuration, task)
Tracking
(firefox162 fixed)
| Tracking | Status | |
|---|---|---|
| firefox162 | --- | fixed |
People
(Reporter: florian, Assigned: florian)
References
(Depends on 1 open bug, Blocks 1 open bug)
Details
Attachments
(5 external files, 5 obsolete files)
Add a repeat variant for mochitest jobs that runs each test twice in the same browser instance (using --repeat=1). This catches tests that leave behind state affecting subsequent tests, complementing standalone jobs (which restart the browser between tests) and chaos mode (which shakes out timing issues). Together these cover the three test-verify steps, enabling test-verify to become tier 1.
Repeat jobs are added for mochitest-plain, mochitest-chrome, mochitest-browser-chrome, and mochitest-devtools-chrome, running on backstop pushes on autoland and mozilla-central for linux and windows.
Try push: https://treeherder.mozilla.org/jobs?repo=try&revision=d72ea1065f1862169ab76fd30e0073ec672a2e4a
This is far from green, we could either debug the failures or add many skip-if annotations if we would like to land this sooner than later. I'm opening the bug to attach the WIP patch I have.
| Assignee | ||
Updated•7 months ago
|
| Assignee | ||
Comment 1•7 months ago
|
||
Updated•7 months ago
|
| Assignee | ||
Comment 2•15 days ago
|
||
It stays false in --verify mode, which sets --repeat for its own steps. Other
--repeat users, like --run-until-failure and confirm-failures, skip tests that
cannot run twice.
| Assignee | ||
Comment 3•15 days ago
|
||
Plain, chrome and a11y tests looped over the whole test list instead, and
browser-chrome ran the first test of each browser session one time short.
TestRunner.js now reruns each test before moving to the next one, so the code
restarting the whole list goes away. Adjacent tests that hand state to each
other now fail under --repeat. This also affects test-verify, which runs with
--repeat.
| Assignee | ||
Comment 4•15 days ago
|
||
test_sanityRegisteredServiceWorker.html failed when run again right after
itself: registering over its own leftover registration does not notify
SpecialPowers, so the end-of-test check saw no worker.
test_sanityRegisteredServiceWorker2.html unregisters that leftover worker,
so it can only pass once.
| Assignee | ||
Comment 5•15 days ago
|
||
Resuming skipped as many tests as had already started, so with --repeat it
could drop the rest of the manifest. The retry of failed tests had no resume
at all: when a retried test ended the session, the failed tests after it were
neither rerun nor reported. With --restart-after-failure, every failed test is
now retried, instead of stopping at the first one that fails again.
| Assignee | ||
Comment 6•15 days ago
|
||
Jobs without runtime data, such as the new repeat variant or a renamed
platform, fall back to default-chunks, which were as low as half the dynamic
counts and did not fit in max-run-time. This also lowers a few that were above
the dynamic counts.
Updated•15 days ago
|
| Assignee | ||
Comment 7•15 days ago
|
||
Like the standalone variant: on backstop pushes, on Linux and Windows only, to
spare the mac pool.
| Assignee | ||
Comment 8•15 days ago
|
||
Like the standalone variant: on backstop pushes, on Linux and Windows only, to
spare the mac pool.
| Assignee | ||
Comment 9•15 days ago
|
||
Like the standalone variant: on backstop pushes, on Linux and Windows only, to
spare the mac pool.
| Assignee | ||
Comment 10•15 days ago
|
||
Like the standalone variant: on backstop pushes, on Linux and Windows only, to
spare the mac pool.
Comment 11•12 days ago
|
||
Comment on attachment 9679033 [details]
Bug 2029980 - Resume mochitests after a session ends early with the tests that did not start, also when retrying failures, r=ahal.
Revision D341598 was moved to bug 2092741. Setting attachment 9679033 [details] to obsolete.
Comment 12•12 days ago
|
||
Comment on attachment 9679035 [details]
Bug 2029980 - Run mochitest-devtools-chrome-repeat on autoland and mozilla-central, r=#taskgraph-reviewers.
Revision D341600 was moved to bug 2090991. Setting attachment 9679035 [details] to obsolete.
Comment 13•12 days ago
|
||
Comment on attachment 9679036 [details]
Bug 2029980 - Run mochitest-browser-chrome-repeat on autoland and mozilla-central, r=#taskgraph-reviewers.
Revision D341601 was moved to bug 2092566. Setting attachment 9679036 [details] to obsolete.
Comment 14•12 days ago
|
||
Comment on attachment 9679038 [details]
Bug 2029980 - Run mochitest-chrome-repeat-1proc on autoland and mozilla-central, r=#taskgraph-reviewers.
Revision D341603 was moved to bug 2092575. Setting attachment 9679038 [details] to obsolete.
Comment 15•12 days ago
|
||
Comment 16•12 days ago
|
||
Comment 17•12 days ago
|
||
Backed out for causing python-firefox-ci failures
- Backout link
- Push with failures
- Failure Log
- Failure line: [taskcluster:error] exit status 247
| Assignee | ||
Comment 18•11 days ago
|
||
The failure is actually the same as what's described in bug 2080077, the job running out of memory when we add more tasks.
Comment 19•11 days ago
|
||
Comment 20•11 days ago
|
||
Comment 21•11 days ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/1eb2d83e1e6e
https://hg.mozilla.org/mozilla-central/rev/95d6332a2589
https://hg.mozilla.org/mozilla-central/rev/b0508d40c9e6
https://hg.mozilla.org/mozilla-central/rev/ab87ba323c8d
https://hg.mozilla.org/mozilla-central/rev/06a019b1d08e
Comment 22•5 days ago
|
||
Comment on attachment 9679037 [details]
Bug 2029980 - Run mochitest-plain-repeat on autoland and mozilla-central, r=#taskgraph-reviewers.
Revision D341602 was moved to bug 2095794. Setting attachment 9679037 [details] to obsolete.
Description
•