Closed
Bug 1209651
Opened 9 years ago
Closed 9 years ago
Autophone - do not allow logcat device error to prevent setup_job initialization
Categories
(Testing Graveyard :: Autophone, defect)
Testing Graveyard
Autophone
Tracking
(firefox44 affected)
RESOLVED
FIXED
Tracking | Status | |
---|---|---|
firefox44 | --- | affected |
People
(Reporter: bc, Assigned: bc)
References
Details
Attachments
(1 file)
(deleted),
patch
|
jmaher
:
review+
|
Details | Diff | Splinter Review |
Currently, during a test's setup_job logcat is collected and reset prior to necessary initialization. If the logcat fails due to an ADBError or ADBTimeoutError, this can leave the test partially uninitialized causing start_time, stop_time and job_details to not be set/reset.
Assignee | ||
Comment 1•9 years ago
|
||
Attachment #8667428 -
Flags: review?(jmaher)
Comment 2•9 years ago
|
||
Comment on attachment 8667428 [details] [diff] [review]
bug-1209651-setup-job-init-v1.patch
Review of attachment 8667428 [details] [diff] [review]:
-----------------------------------------------------------------
I don't understand how this fixes the issue, we just moved the logcat access a few lines later?
Attachment #8667428 -
Flags: review?(jmaher) → review-
Assignee | ||
Comment 3•9 years ago
|
||
Comment on attachment 8667428 [details] [diff] [review]
bug-1209651-setup-job-init-v1.patch
Yes. The appropriate properties are initialized before the logcat call can cause an ADBError/ADBTimeout Error. If the error did occur, it will be caught in the worker.py's PhoneWorkerSubProcess::run_tests try...except block at https://github.com/mozilla/autophone/blob/master/worker.py#L677 and the failure handled there.
It is necessary that these properties be initialized even if the setup_job failed since we will use them when reporting the failure to Treeherder.
Attachment #8667428 -
Flags: review- → review?(jmaher)
Comment 4•9 years ago
|
||
Comment on attachment 8667428 [details] [diff] [review]
bug-1209651-setup-job-init-v1.patch
Review of attachment 8667428 [details] [diff] [review]:
-----------------------------------------------------------------
thanks for the explanation!
Attachment #8667428 -
Flags: review?(jmaher) → review+
Assignee | ||
Comment 5•9 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Updated•3 years ago
|
Product: Testing → Testing Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•