| hashar created this task. hashar added projects: Continuous-Integration-Infrastructure (shipyard), Release-Engineering-Team (Kanban), Wikidata Query UI. |
TASK DESCRIPTION
I am trying to migrate`wikidata/query/rdf` CI jobs to use a Docker container having just java8/maven. It eventually fails when and it eventually fails to find npm:
[INFO] --- frontend-maven-plugin:1.6:npm (npm test) @ gui --- [INFO] Running 'npm test' in /src/gui ... [INFO] Running "clean:deploy" (clean) task [INFO] >> 0 paths cleaned. [INFO] [INFO] Running "auto_install:local" (auto_install) task [ERROR] /bin/sh: 1: npm: not found [INFO] running npm install on /src/gui...x [INFO] Warning: Command failed: npm install [INFO] /bin/sh: 1: npm: not found ... [INFO] WDQS - Frontend .................................... FAILURE [02:07 min]
That seems to be because npm is installed by the frontend-maven-plugin but it is not added to the PATH. Hence when package.json has a command like 'npm run-script foo' it fails to find npm :(
Note that the maven plugin does install node/npm:
[INFO] --- frontend-maven-plugin:1.6:install-node-and-npm (install node and npm) @ gui --- [INFO] Installing node version v6.12.3 [INFO] Unpacking /cache/maven/com/github/eirslett/node/6.12.3/node-6.12.3-linux-x64.tar.gz into /src/gui/target/node/tmp [INFO] Copying node binary from /src/gui/target/node/tmp/node-v6.12.3-linux-x64/bin/node to /src/gui/target/node/node [INFO] Extracting NPM [INFO] Installed node locally.A way to reproduce is to use the Docker container docker-registry.wikimedia.org/releng/java8-wikidata-query-rdf:
$ docker pull docker-registry.wikimedia.org/releng/java8-wikidata-query-rdfIt runs as the nobody user and has an entry point that takes a few parameters to fetch and checkout a patch. An example usage:
$ install --mode 2777 --directory cache $ install --mode 2777 --directory log $ docker run \ --rm --tty \ --env JENKINS_URL=1 \ --env ZUUL_URL=https://gerrit.wikimedia.org/r \ --env ZUUL_PROJECT=wikidata/query/rdf \ --env ZUUL_COMMIT=master \ --env ZUUL_REF=master \ --volume /"$(pwd)"/cache://cache \ --volume /"$(pwd)"/log://log \ docker-registry.wikimedia.org/releng/java8-wikidata-query-rdf clean verify
TASK DETAIL
EMAIL PREFERENCES
To: hashar
Cc: Aklapper, zeljkofilipin, MarcoAurelio, gerritbot, hashar, Gq86, Lucas_Werkmeister_WMDE, EBjune, merbst, Liudvikas, Jonas, Xmlizer, Luke081515, thcipriani, jkroll, Smalyshev, Wikidata-bugs, Jdouglas, aude, Tobias1984, Manybubbles, Lydia_Pintscher, Addshore, Jay8g, greg
Cc: Aklapper, zeljkofilipin, MarcoAurelio, gerritbot, hashar, Gq86, Lucas_Werkmeister_WMDE, EBjune, merbst, Liudvikas, Jonas, Xmlizer, Luke081515, thcipriani, jkroll, Smalyshev, Wikidata-bugs, Jdouglas, aude, Tobias1984, Manybubbles, Lydia_Pintscher, Addshore, Jay8g, greg
_______________________________________________ Wikidata-bugs mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs
