Recently, the resource-modules node modules has started executing as php in CI rather than via Node.
Presumably something has changed in the pipeline relating to Docker
Please advise! This is blocking all merges to MobileFrontend!
Sample log output:
22:06:29 + exec docker run --workdir /src/extensions/MobileFrontend --rm --env-file /dev/fd/63 --volume /srv/jenkins-workspace/workspace/mwext-MobileFrontend-npm-run-lint-modules-docker/log:/log --volume /srv/jenkins-workspace/workspace/mwext-MobileFrontend-npm-run-lint-modules-docker/cache:/cache --volume /srv/jenkins-workspace/workspace/mwext-MobileFrontend-npm-run-lint-modules-docker/src:/src docker-registry.wikimedia.org/releng/npm-php:0.1.0 run-script lint:modules
22:06:30
22:06:30 > @ lint:modules /src/extensions/MobileFrontend
22:06:30 > resource-modules ./
22:06:30
22:06:31 { Error: Command failed: php /src/extensions/MobileFrontend/node_modules/resource-modules/src/php/resources.php /src /resources/Resources.php
22:06:31 PHP Parse error: syntax error, unexpected '(' in /src/includes/SiteConfiguration.php on line 435
22:06:31
22:06:31 at ChildProcess.exithandler (child_process.js:204:12)
22:06:31 at emitTwo (events.js:106:13)
22:06:31 at ChildProcess.emit (events.js:191:7)
22:06:31 at maybeClose (internal/child_process.js:891:16)
22:06:31 at Socket.<anonymous> (internal/child_process.js:342:11)
22:06:31 at emitOne (events.js:96:13)
22:06:31 at Socket.emit (events.js:188:7)
22:06:31 at Pipe._handle.close [as _onclose] (net.js:497:12)
22:06:31 killed: false,
22:06:31 code: 255,
22:06:31 signal: null,
22:06:31 cmd: 'php /src/extensions/MobileFrontend/node_modules/resource-modules/src/php/resources.php /src /resources/Resources.php' }
22:06:31
22:06:31 npm ERR! Linux 4.9.0-0.bpo.6-amd64
22:06:31 npm ERR! argv "/usr/bin/nodejs" "/usr/local/bin/npm" "run-script" "lint:modules"
22:06:31 npm ERR! node v6.11.0
22:06:31 npm ERR! npm v3.8.3
22:06:31 npm ERR! code ELIFECYCLE
22:06:31 npm ERR! @ lint:modules: `resource-modules ./`
22:06:31 npm ERR! Exit status 1
22:06:31 npm ERR!
22:06:31 npm ERR! Failed at the @ lint:modules script 'resource-modules ./'.