Closed Bug 939821 Opened 11 years ago Closed 11 years ago

wrapper scripts for vcs-sync, gaia-bumper need timeouts for hg

Categories

(Release Engineering :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: mozilla, Assigned: mozilla)

References

Details

Attachments

(1 file)

The vcssync{1,2} wrapper scripts have a (hg --cwd mozharness pull -u) The gaia-bumper wrapper script has a /usr/local/bin/hgtool.py -b production https://hg.mozilla.org/build/mozharness mozharness Neither of these has a timeout... and when hg.m.o goes away, the clone will hang forever. There's a bash timeout trick here: http://stackoverflow.com/questions/687948/timeout-a-command-in-bash-without-unnecessary-delay but it exits non-zero either way (timeout will cause hg to exit non-zero; no-timeout will cause kill to exit non-zero) so the script will fail at this point if it's using set -e. We need a better solution.
Ooh, http://stackoverflow.com/a/4581821 timeout TIMEOUT <slow command>
Assignee: nobody → aki
Attachment #8333883 - Flags: review?(catlee)
Comment on attachment 8333883 [details] [diff] [review] gaia-bumper-timeout Review of attachment 8333883 [details] [diff] [review]: ----------------------------------------------------------------- TIL about the timeout command!
Attachment #8333883 - Flags: review?(catlee) → review+
Not merged yet, but I'll resolve anyway. I already tweaked the non-puppeted scripts for vcssync.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
in production
Component: Tools → General
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: