Open Bug 1680239 Opened 4 years ago Updated 2 years ago

if we have a hang in pre-test setup, we wait for task expiration (90 minutes)

Categories

(Testing :: General, enhancement)

Default
enhancement

Tracking

(Not tracked)

People

(Reporter: jmaher, Unassigned)

References

(Blocks 1 open bug)

Details

Attachments

(1 obsolete file)

I would like to find a way to make our pre-task have a timeout of 5 minutes and throw an exception to terminate the task if found. This is found in:
https://bugzilla.mozilla.org/show_bug.cgi?id=1589796#c233

The code where we have this problem is:
https://searchfox.org/mozilla-central/source/testing/mozharness/mozharness/mozilla/testing/testbase.py#730

I assume we would need to call run_command with output_timeout=300

Blocks: 1589796

This call appears to only be made by pre/post setup commands from task wrapper; When I add output_timeout as a param to run_command it runs it via ProcessHandler instead of subprocess.popen which fails to find files. If I run it as shell=True things work. I want to test at larger scale and determine if there are hidden failures which are not easy to see locally and on simple try pushes.

force a timeout on preflight/postflight setup commands

Attachment #9190873 - Attachment is obsolete: true
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: