Closed Bug 783815 Opened 12 years ago Closed 12 years ago

Tegra Verification steps should not buffer stdout/stderror

Categories

(Release Engineering :: General, defect)

x86_64
All
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: Callek, Assigned: kmoir)

References

(Blocks 1 open bug)

Details

(Whiteboard: [sheriff-want])

Attachments

(1 file)

With buildbot jobs, we have verify.py and reboot.py run for every job.

This can frequently fail or timeout with little to no output printed to terminal. If we set the environment var |PYTHONUNBUFFERED| for at least these steps we should be able to avoid that problem.

The reason it happens, is these steps, on a failure, set an "error flag" file, which clientproxy on the foopy watches for and hard-kills buildbot when it is present. Buildbot however runs these steps without a tty, and when python is run without a tty it, by default, buffers stdout. So when buildbot dies we don't properly flush the stdout/stderr to the log files that we use, thus the tree sheriffs don't see things.

This should be a simple fix, and (in theory) could be used for all steps without regressing ANY [or negligable] disk i/o.

Self contained and not an emergency priority, but good gains to tree-sheriffs in terms of diagnosing issues, that coop said we might consider this as something for kim to get her feet wet with.
Assignee: nobody → kmoir
Attached patch patchSplinter Review
Attachment #667168 - Flags: review?(bugspam.Callek)
Comment on attachment 667168 [details] [diff] [review]
patch

yay!
Attachment #667168 - Flags: review?(bugspam.Callek) → review+
Attachment #667168 - Flags: checked-in+
:-D
Blocks: 778688
Whiteboard: [sheriff-want]
deployed in production
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Product: mozilla.org → Release Engineering
Component: General Automation → General
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: