Closed Bug 977298 Opened 10 years ago Closed 10 years ago

Use python's -u argument when calling run_tests.py

Categories

(Testing :: Talos, defect)

x86_64
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: gbrown, Assigned: gbrown)

Details

Attachments

(2 files)

If a talos runtests.py times out and is killed by mozharness, its buffered output may be lost. I have had good success with improving timeout logs for unit tests by simply using python -u.

See https://bugzilla.mozilla.org/show_bug.cgi?id=912238#c118
Attachment #8382504 - Flags: review?(jmaher)
Comment on attachment 8382504 [details] [diff] [review]
use python -u for talos

Review of attachment 8382504 [details] [diff] [review]:
-----------------------------------------------------------------

lgtm!
Attachment #8382504 - Flags: review?(jmaher) → review+
Summary: Use python's -u argument when calling runtests.py → Use python's -u argument when calling run_tests.py
In production 2014-02-27 08:08 PT. 

Suspected of causing Talos regressions.
this regression I see affects 2.2 and 4.0, I don't think python -u is a problem.
The previous patch added the -u argument for mozharness/Android 4.0 talos tests. This patch adds -u for buildbot/Android 2.2 talos tests.

Given the confusion about possible regressions for the previous patch, I  understand if you would prefer not to land this, but on the whole I think this would be a positive change.
Attachment #8389420 - Flags: review?(jmaher)
Comment on attachment 8389420 [details] [diff] [review]
use python -u for talos (buildbot/tegras)

Review of attachment 8389420 [details] [diff] [review]:
-----------------------------------------------------------------

lets keep a close eye on talos numbers here.
Attachment #8389420 - Flags: review?(jmaher) → review+
in production
I checked the first few jobs for each test -- I see no sign of regression.
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: