Closed Bug 1205388 Opened 9 years ago Closed 9 years ago

Autophone - better handle logcat collection

Categories

(Testing Graveyard :: Autophone, defect)

defect
Not set
normal

Tracking

(firefox43 affected)

RESOLVED FIXED
Tracking Status
firefox43 --- affected

People

(Reporter: bc, Assigned: bc)

References

Details

Attachments

(1 file)

It has been possible for the logcat files uploaded to Treeherder to mix the output for a test different tests. It is also possible for the device's logcat buffer to overflow which may result in missing messages. This cleans up the logic by adding a Logcat.reset method which is used when a test job is setup. I unfortunately mixed up a small change to setup_job where I had to move some debugging log output as well.
Attachment #8661979 - Flags: review?(gbrown)
Comment on attachment 8661979 [details] [diff] [review] bug-1205388-v1.patch Review of attachment 8661979 [details] [diff] [review]: ----------------------------------------------------------------- I prefer the approach used in http://hg.mozilla.org/mozilla-central/annotate/e7d613b3bcfe/testing/mozharness/scripts/android_emulator_unittest.py#l598 and that has worked well for me. I have some (minor) concern that special circumstances might still overflow the logcat buffer.
Attachment #8661979 - Flags: review?(gbrown) → review+
If more than 256Kb on 2.3 or 512Kb on 4.x is written in 60s we will lose some. 60s is pretty long, I could reduce that a bit so that it would be less likely to overflow. I like the dump to a file approach but am worried about the changes required to deal with the time periods ... setup_job .... teardown_job .... and with parsing the logcat output for the perftests. I'll leave it as is for now, but will look for opportunities to deal with dumping to external files. I'd definitely like to spend some time testing such a change.
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Depends on: 1205864
Product: Testing → Testing Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: