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)

task
Not set
normal

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.
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. :-)
Component: Server Operations: Web Operations → WebOps: Other
Product: mozilla.org → Infrastructure & Operations
: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
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)
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
Awesome, thanks Chris!
Product: Infrastructure & Operations → Infrastructure & Operations Graveyard
You need to log in before you can comment on or make changes to this bug.