Closed
Bug 887723
Opened 13 years ago
Closed 12 years ago
Run php lint checks in AUS2 deploy script
Categories
(Infrastructure & Operations Graveyard :: WebOps: Other, task)
Infrastructure & Operations Graveyard
WebOps: Other
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: nthomas, Assigned: cturra)
Details
RelEng is still full of humans who make mistakes, 'cos you can't automate everything; Jenkins (https://jenkins.mozilla.org/job/AUSv2/) hasn't ever quite worked properly and is disabled; and AUS2 falls over hard if there are php syntax errors in the code. So problems like bug 887571 happen occasionally.
After pulling from CVS, please we add a
php -l inc/config-dist.php
call to the deploy script and bail out if it errors. If the script supports deploying more than config-dists.php then bonus points for checking all the php files.
| Reporter | ||
Comment 1•13 years ago
|
||
Before I get a hard time from my colleagues, that's ... full of humans, who make mistakes .... rather than humans particularly prone to making mistakes. :-)
Updated•13 years ago
|
Component: Server Operations: Web Operations → WebOps: Other
Product: mozilla.org → Infrastructure & Operations
| Assignee | ||
Comment 2•12 years ago
|
||
:nthomas - since we're moving forward with aus4 and there are limited aus2 updated (i believe), i would like to suggest we mark this bug as r/wontfix. do you have any strong objections to this?
Flags: needinfo?(nthomas)
Hardware: x86 → All
| Reporter | ||
Comment 3•12 years ago
|
||
config-dist.php gets modified a few times every time we do a x.0 release - when the throttling gets adjusted.
If the deploy script is shell that's already stopping on non-zero exit codes, and php is available on the admin node, then I believe we just need to add
php -l inc/config-dist.php
If not then r/wontfix would be OK.
Flags: needinfo?(nthomas)
| Assignee | ||
Comment 4•12 years ago
|
||
makes total sense. i just added the following check to the update shell script.
+ php -l config-dist.php > /dev/null
+ if [ $(echo $?) -gt 0 ]; then
+ echo "PHP Lint test failed on config-dist.php"
+ exit 1
+ fi
Assignee: server-ops-webops → cturra
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
| Reporter | ||
Comment 5•12 years ago
|
||
Awesome, thanks Chris!
Updated•7 years ago
|
Product: Infrastructure & Operations → Infrastructure & Operations Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•