[wp-trac] [WordPress Trac] #50371: Fix WordPress 4.4 branch on Travis
WordPress Trac
noreply at wordpress.org
Fri Jun 12 10:52:18 UTC 2020
#50371: Fix WordPress 4.4 branch on Travis
------------------------------+---------------------------
Reporter: SergeyBiryukov | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: WordPress.org
Component: Build/Test Tools | Version:
Severity: normal | Keywords:
Focuses: |
------------------------------+---------------------------
The automated tests for WordPress 4.4 branch [https://travis-
ci.com/github/WordPress/wordpress-develop/builds/167766955 started failing
on May 22]:
{{{
> phantomjs at 1.9.19 install /home/travis/build/WordPress/wordpress-
develop/node_modules/grunt-contrib-qunit/node_modules/grunt-lib-
phantomjs/node_modules/phantomjs
> node install.js
Found PhantomJS at /usr/local/phantomjs/bin/phantomjs ...verifying
PhantomJS detected, but wrong version 2.1.1 @
/usr/local/phantomjs/bin/phantomjs.
Downloading
https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-1.9.8-linux-
x86_64.tar.bz2
Saving to /tmp/phantomjs/phantomjs-1.9.8-linux-x86_64.tar.bz2
Receiving...
Error requesting archive.
Status: 404
Request options: {
"uri": "https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-1.9.8
-linux-x86_64.tar.bz2",
"encoding": null,
"followRedirect": true,
"headers": {},
"strictSSL": true
}
}}}
This went unnoticed at the time, but gained more attention with the
subsequent WordPress 4.4.23 release.
The 4.3 branch attemps to download the 1.9.20 version (vs. 1.9.19), which
succeeds and results in the same package from a different location:
{{{
> phantomjs at 1.9.20 install /home/travis/build/WordPress/wordpress-
develop/node_modules/grunt-contrib-qunit/node_modules/grunt-lib-
phantomjs/node_modules/phantomjs
> node install.js
Considering PhantomJS found at /usr/local/phantomjs/bin/phantomjs
Found PhantomJS at /usr/local/phantomjs/bin/phantomjs ...verifying
PhantomJS detected, but wrong version 2.1.1 @
/usr/local/phantomjs/bin/phantomjs.
Downloading
https://github.com/Medium/phantomjs/releases/download/v1.9.19/phantomjs-1.9.8
-linux-x86_64.tar.bz2
Saving to /tmp/phantomjs/phantomjs-1.9.8-linux-x86_64.tar.bz2
Receiving...
Received 12854K total.
}}}
The 4.3 branch doesn't have the `npm-shrinkwrap.json` file (introduced in
[36165]), which might explain the difference in version and location.
The 4.5 branch downloads a different package:
{{{
> phantomjs-prebuilt at 2.1.7 install /home/travis/build/WordPress/wordpress-
develop/node_modules/grunt-contrib-qunit/node_modules/grunt-lib-
phantomjs/node_modules/phantomjs-prebuilt
> node install.js
Considering PhantomJS found at /usr/local/phantomjs/bin/phantomjs
Found PhantomJS at /usr/local/phantomjs/bin/phantomjs ...verifying
Writing location.js file
PhantomJS is already installed on PATH at
/usr/local/phantomjs/bin/phantomjs
}}}
This is because `grunt-contrib-qunit` (for which `phantomjs-prebuilt` is
one of the dependencies) was bumped from 0.7.0 to 1.1.0 in [37020] /
#35104.
Changelog: https://github.com/gruntjs/grunt-contrib-
qunit/compare/v0.7.0...v1.1.0
Backporting [37020] to the 4.4 branch appears to be the easiest way to
[https://travis-ci.com/github/SergeyBiryukov/wordpress-
develop/builds/171007140 resolve this] without any side effects.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/50371>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list