Closed Bug 1657768 Opened 6 months ago Closed 5 months ago

Harness throws "UnboundLocalError: local variable 'temp_file_paths' referenced before assignment" when failure happens too early

Categories

(Testing :: Mochitest, defect)

defect

Tracking

(firefox81 fixed)

RESOLVED FIXED
81 Branch
Tracking Status
firefox81 --- fixed

People

(Reporter: malexandru, Assigned: glandium)

Details

Attachments

(1 file)

This issue was seen on failure logs caused by a push that was later backed out (Bug 1656141), here is the push range:
https://treeherder.mozilla.org/#/jobs?repo=autoland&group_state=expanded&resultStatus=testfailed%2Cbusted%2Cexception&tochange=9b48053f30035789d9c05aa2847c70b9bb892103&fromchange=d1268fb4ae8ae803af87ca0c127e292bf6a8f930&selectedTaskRun=eNdECdDbR-m4P4s7D84Sgg.0

In the log, during the traceback,
UnboundLocalError: local variable 'temp_file_paths' referenced before assignment
is thrown too early and hides the real failure.

Failure log example:
https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=312316487&repo=autoland&lineNumber=1149

The finally where it's used may be reached before it is set currently,
leading to more important error messages being hidden.

Assignee: nobody → mh+mozilla
Status: NEW → ASSIGNED
Summary: Harness throws "UnboundLocalError: local variable 'temp_file_paths' referenced before assignment" failure too early → Harness throws "UnboundLocalError: local variable 'temp_file_paths' referenced before assignment" when failure happens too early
Pushed by mh@glandium.org:
https://hg.mozilla.org/integration/autoland/rev/ad286e404800
Set temp_file_paths earlier. r=ahal
Status: ASSIGNED → RESOLVED
Closed: 5 months ago
Resolution: --- → FIXED
Target Milestone: --- → 81 Branch
You need to log in before you can comment on or make changes to this bug.