Closed
Bug 818156
Opened 13 years ago
Closed 13 years ago
Improve test chunking
Categories
(Testing :: Reftest, defect)
Tracking
(firefox18 fixed, firefox19 fixed, firefox20 fixed)
RESOLVED
FIXED
mozilla20
People
(Reporter: gbrown, Assigned: jmaher)
References
Details
Attachments
(1 file)
1.22 KB,
patch
|
gbrown
:
review+
|
Details | Diff | Splinter Review |
mochitests and reftests are split into "chunks" lovingly known as R1, R2, R3, etc.
Chunking splits the total set of tests into N same-sized chunks, but the chunk size is based on the total number of tests, not the total number of tests run (on Android for instance, hundreds of tests are skipped).
In bug 816574, we see that Android R3 is running longer than R1, R2, and R4 and note that test are split (approximately):
R1: 974/0/1243
R2: 672/0/1544
R3: 1846/0/369
R4: 2059/0/157
If actually-run tests were split evenly, it might help make run times more even.
Assignee | ||
Comment 1•13 years ago
|
||
Attachment #688914 -
Flags: review?(gbrown)
![]() |
Reporter | |
Comment 2•13 years ago
|
||
Comment on attachment 688914 [details] [diff] [review]
evenly distribute the tests when chunking for reftests (1.0)
Review of attachment 688914 [details] [diff] [review]:
-----------------------------------------------------------------
LGTM.
I note the new (Android 2.2 opt) distribution from a try run:
R1: 1301/0/203 0:34:24.177045
R2: 1426/0/77 0:36:42.323001
R3: 1407/0/95 0:49:26.699267
R4: 1417/0/86 0:32:21.953126
and compare against a typical current run:
R1: 974/0/1243 0:24:44.394815
R2: 672/0/1544 0:16:52.424199
R3: 1846/0/369 1:02:01.818326
R4: 2059/0/157 0:46:29.893534
The time distribution looks much better!
Attachment #688914 -
Flags: review?(gbrown) → review+
Updated•13 years ago
|
Assignee: nobody → jmaher
Component: General → Reftest
Assignee | ||
Comment 3•13 years ago
|
||
Comment 4•13 years ago
|
||
This is awesome, thanks! I'll need this on aurora and beta too for b2g. I can land once it gets merged over.
Whiteboard: [automation-needed-in-aurora][automation-needed-in-beta]
Comment 5•13 years ago
|
||
So this patch hides skipped tests from the results (e.g from comment 2 the known problems in R1 go from 1243 to 203). Also prior to this patch you would see something along the lines of:
> REFTEST TEST-KNOWN-FAIL | http://10.250.48.201:30063/tests/layout/reftests/bugs/379349-1c.xhtml | (SKIP)
in the log files. After this patch these are no longer being output. I don't think this is information we want to lose. We should modify the patch such that the chunking algorithm ignore skipped tests, but they aren't removed from the actual list of tests that get processed.
Assignee | ||
Comment 6•13 years ago
|
||
so we could put this information in the log file at the time we are pruning the list.
Comment 7•13 years ago
|
||
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla20
Comment 8•13 years ago
|
||
https://hg.mozilla.org/releases/mozilla-aurora/rev/da9d0e35d176
https://hg.mozilla.org/releases/mozilla-beta/rev/76cfdb1796e7
status-firefox18:
--- → fixed
status-firefox19:
--- → fixed
status-firefox20:
--- → fixed
Whiteboard: [automation-needed-in-aurora][automation-needed-in-beta]
You need to log in
before you can comment on or make changes to this bug.
Description
•