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)

defect
Not set
normal

Tracking

(firefox44 affected)

RESOLVED FIXED
Tracking Status
firefox44 --- affected

People

(Reporter: bc, Assigned: bc)

References

Details

Attachments

(1 file)

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.
Attachment #8667428 - Flags: review?(jmaher)
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-
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 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+
Blocks: 1209796
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
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: