Closed Bug 900377 Opened 11 years ago Closed 11 years ago

the BMO push script shouldn't deploy if checksetup.pl failed

Categories

(bugzilla.mozilla.org :: Infrastructure, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: glob, Assigned: fubar)

Details

Attachments

(1 file)

the BMO push script shouldn't deploy if checksetup.pl failed.
Attaching a simple patch that should fix this; gogo pipefail.
Attachment #784599 - Flags: review?(shyam)
Comment on attachment 784599 [details] [diff] [review]
exit on checksetup.pl error

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

Looks straightforward enough. Do we want to unset pipefail (since that's the default). Want to make sure this won't cause unexpected fails elsewhere :)
Attachment #784599 - Flags: review?(shyam) → review+
Since it's within the backticks (`...`) it only applies to that chain; that actually threw me off initially since it'd put it above in the main script and it wasn't having any effect.
(In reply to Kendall Libby [:fubar] from comment #4)
> Since it's within the backticks (`...`) it only applies to that chain; that
> actually threw me off initially since it'd put it above in the main script
> and it wasn't having any effect.

Those brackets are evil. I totally missed them too...
As it happens, the prod script is slightly different than stage/dev and doesn't use backticks, so I added in an unset pipefail; the rest is the same. Committed in r72366.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Assignee: server-ops-webops → klibby
Component: WebOps: Bugzilla → Infrastructure
Product: Infrastructure & Operations → bugzilla.mozilla.org
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: