Closed
Bug 1164866
Opened 10 years ago
Closed 9 years ago
Android arm emulator tests should log results as they happen
Categories
(Release Engineering :: Applications: MozharnessCore, defect)
Release Engineering
Applications: MozharnessCore
Tracking
(firefox38.0.5 fixed, firefox39 fixed, firefox40 fixed, firefox-esr38 fixed)
People
(Reporter: gbrown, Assigned: gbrown)
References
Details
Attachments
(4 files)
33.97 KB,
patch
|
kmoir
:
review+
gbrown
:
checked-in+
|
Details | Diff | Splinter Review |
2.70 KB,
patch
|
kmoir
:
review+
gbrown
:
checked-in+
|
Details | Diff | Splinter Review |
39.01 KB,
patch
|
kmoir
:
review+
gbrown
:
checked-in+
|
Details | Diff | Splinter Review |
7.24 KB,
patch
|
kmoir
:
review+
gbrown
:
checked-in+
|
Details | Diff | Splinter Review |
In the initial work on Android x86 emulators, we decided to run up to 4 test jobs (in up to 4 emulators) simultaneously on each computer, to fully utilize the hardware available.
The Android arm emulator tests - 2.3 and 4.3 - use the same android_emulator_unittest.py mozharness script and theoretically support the same capability, but in practice only ever run one test job (in one emulator) at a time.
Because android_emulator_unittest.py must allow for parallel test runs, the output from the test harness is buffered in a file so that test results are not intermingled in the test log. Each file is parsed and dumped only once tests are complete.
As a result, in bugs like bug 1158206 where there is some sort of hang, it is unclear which tests have run, because all the output has been buffered.
Also, the mozharness log time stamps are pretty much the same for the entirety of the test run (since all the buffered output is logged at once, at the end of the job).
I don't see how these limitations can be overcome for x86, but we can do better for arm.
Assignee | ||
Comment 1•10 years ago
|
||
Strategy:
- copy android_emulator_unittest.py to androidx86_emulator_unittest.py
- update buildbot config to use androidx86_emulator_unittest.py for x86 jobs
- simplify android_emulator_unittest.py to support one job at a time
- parse test output as it happens
Assignee | ||
Comment 2•10 years ago
|
||
Simple copy of android_emulator_unittest.py to androidx86_emulator_unittest.py.
Attachment #8605854 -
Flags: review?(kmoir)
Assignee | ||
Comment 3•10 years ago
|
||
Attachment #8605855 -
Flags: review?(kmoir)
Assignee | ||
Comment 4•10 years ago
|
||
This simplifies android_emulator_unittest.py, stripping out the lists and loops used to support multiple emulators and multiple test suites. Test harness output is still buffered.
Attachment #8605859 -
Flags: review?(kmoir)
Assignee | ||
Comment 5•10 years ago
|
||
This updates the way we run the test harness and report output. This is now similar to the way "normal" mozharness scripts work -- output is passed to the log parser as it happens.
Assignee | ||
Comment 6•10 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=0eeb9fffb720
Notice the log timestamps...
http://ftp.mozilla.org/pub/mozilla.org/mobile/try-builds/gbrown@mozilla.com-0eeb9fffb720/try-android-api-9/try_ubuntu64_vm_mobile_test-xpcshell-1-bm67-tests1-linux64-build56.txt.gz
09:57:39 INFO - TEST-PASS | chrome/test/unit/test_abi.js | took 4465ms
09:57:39 INFO - mozdevice getting files in '/mnt/sdcard/tests/xpcshell/minidumps'
09:57:40 INFO - TEST-START | chrome/test/unit/test_bug292789.js
09:57:44 INFO - TEST-PASS | chrome/test/unit/test_bug292789.js | took 3722ms
09:57:44 INFO - mozdevice getting files in '/mnt/sdcard/tests/xpcshell/minidumps'
09:57:45 INFO - TEST-START | chrome/test/unit/test_bug380398.js
09:57:49 INFO - TEST-PASS | chrome/test/unit/test_bug380398.js | took 3762ms
Instead of the normal...
http://ftp.mozilla.org/pub/mozilla.org/mobile/tinderbox-builds/mozilla-central-android-api-9/1431541543/mozilla-central_ubuntu64_vm_mobile_test-xpcshell-1-bm54-tests1-linux64-build29.txt.gz
13:33:26 INFO - TEST-PASS | chrome/test/unit/test_abi.js | took 4346ms
13:33:26 INFO - mozdevice getting files in '/mnt/sdcard/tests/xpcshell/minidumps'
13:33:26 INFO - TEST-START | chrome/test/unit/test_bug292789.js
13:33:26 INFO - TEST-PASS | chrome/test/unit/test_bug292789.js | took 3562ms
13:33:26 INFO - mozdevice getting files in '/mnt/sdcard/tests/xpcshell/minidumps'
13:33:26 INFO - TEST-START | chrome/test/unit/test_bug380398.js
13:33:26 INFO - TEST-PASS | chrome/test/unit/test_bug380398.js | took 3631ms
Assignee | ||
Updated•10 years ago
|
Attachment #8605864 -
Flags: review?(kmoir)
Updated•10 years ago
|
Attachment #8605854 -
Flags: review?(kmoir) → review+
Updated•10 years ago
|
Attachment #8605855 -
Flags: review?(kmoir) → review+
Updated•10 years ago
|
Attachment #8605859 -
Flags: review?(kmoir) → review+
Updated•10 years ago
|
Attachment #8605864 -
Flags: review?(kmoir) → review+
Assignee | ||
Comment 7•10 years ago
|
||
Assignee | ||
Updated•10 years ago
|
Keywords: leave-open
Comment 9•10 years ago
|
||
Comment 10•10 years ago
|
||
mozharness production tag moved to: https://hg.mozilla.org/build/mozharness/rev/production
Comment 11•10 years ago
|
||
mozharness production tag moved to: https://hg.mozilla.org/build/mozharness/rev/production
Assignee | ||
Comment 12•10 years ago
|
||
Before I can land the other patches here, particularly the buildbot config change, I need mozharness bumped to 560859d88ba8 (or later) on aurora, beta, and any other trees where Android x86 tests are run. :ryanvm, can you do this?
Flags: needinfo?(ryanvm)
Comment 13•10 years ago
|
||
status-firefox40:
--- → fixed
Comment 14•10 years ago
|
||
status-firefox39:
--- → fixed
Comment 15•10 years ago
|
||
status-firefox38.0.5:
--- → fixed
Comment 16•10 years ago
|
||
https://hg.mozilla.org/releases/mozilla-esr38/rev/10f8fc9e6960
Doesn't run Android tests, but might as well keep them in sync if possible.
status-firefox-esr38:
--- → fixed
Updated•10 years ago
|
Flags: needinfo?(ryanvm)
Assignee | ||
Updated•10 years ago
|
Attachment #8605854 -
Flags: checked-in+
Assignee | ||
Comment 17•10 years ago
|
||
Awesome. Thanks.
Assignee | ||
Comment 18•10 years ago
|
||
Assignee | ||
Updated•10 years ago
|
Attachment #8605855 -
Flags: checked-in+
Comment 19•10 years ago
|
||
Assignee | ||
Updated•10 years ago
|
Keywords: leave-open
Assignee | ||
Updated•10 years ago
|
Attachment #8605859 -
Flags: checked-in+
Assignee | ||
Updated•10 years ago
|
Attachment #8605864 -
Flags: checked-in+
Assignee | ||
Comment 20•10 years ago
|
||
Assignee | ||
Comment 21•9 years ago
|
||
The last changes here started running on m-c 2015-05-22.
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•