| hashar added a comment. |
The root cause is the tarball is compressed with bzip2 and the Docker container lacks /usr/bin/bz2.
> [email protected] install /src/node_modules/phantomjs-prebuilt > node install.js
PhantomJS not found on PATH
Downloading https://github.com/Medium/phantomjs/releases/download/v2.1.1/phantomjs-2.1.1-linux-x86_64.tar.bz2
Saving to /tmp/phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2
Receiving...
[] 0%
Received 22866K total.
Extracting tar contents (via spawned process)
Error extracting archive
Phantom installation failed { Error: Command failed: tar jxf /tmp/phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2
tar (child): bzip2: Cannot exec: No such file or directoryI had a similar issue when migrating jobs to Nodepool instances, specially the job running the selenium tests (T137112). From that task:
Just found out that PhantomJS 2.1.1 is available in jessie-backports since March 8th!!! https://packages.debian.org/jessie-backports/phantomjs
https://gerrit.wikimedia.org/r/#/c/344613/
We should either:
A) add phantomjs to the wmfreleng/npm-test container and phantomjs-prebuilt would be able to find it. The node module dependency might have to be changed to match the Debian package version (2.1.1). https://packages.debian.org/search?keywords=phantomjs
B) create a different container that extends npm-test and would support PhantomJS / Chromium and with Xvfb. There is T179360
Other repositories that might be affected:
- mediawiki/selenium
- oojs/ui
- unicodejs
- wikimedia-portals
Cc: hashar, Legoktm, WMDE-leszek, Aklapper, Lahi, GoranSMilovanovic, QZanden, Wikidata-bugs, aude, Mbch331
_______________________________________________ Wikidata-bugs mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs
