Page MenuHomePhabricator

[OPS] Upgrade phantomjs from 1.4 to 1.8 at least
Closed, ResolvedPublic

Description

To run Selenium browser tests (bug 53697) in the PhantomJS headless browser, we need PhantomJS to come with a WebDriver.

We currently have PhantomJS 1.4 which does not have such support.

Apparently, support for the DebDriver has been added in PhantomJS v1.8:

http://phantomjs.org/release-1.8.html
http://code.google.com/p/phantomjs/issues/detail?id=49

The binding in Selenium are provided as of v2.27 (qa/browsertests ship v2.35) so at least that part is covered.

We thus need to backport PhantomJS from Ubuntu Saucy (it has v1.9.0). That will most probably have impact on the existing QUnit jobs.


Version: wmf-deployment
Severity: minor

Details

Reference
bz54494

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 2:13 AM
bzimport set Reference to bz54494.
bzimport added a subscriber: Unknown Object (MLST).
hashar created this task.Sep 24 2013, 9:04 AM

The QUnit jobs uses the grunt-contrib-qunit node module (in integration/jenkins.git) which comes with its own PhantomJS installation. So I guess we are safe installing whatever PhantomJS we might need.

Created attachment 13354
backportpackage (phantomjs 1.9.0 from saucy)

Attached:

The cowbuilder step does not complains about any missing dependencies which is a good sign. The compilation of qt eventually died out because there was not enough memory on the instance I have been using (integration-jobbuilder). I am creating a new instance (integration-pbuilder) with 4GB memory and 2 CPU and will retry.

The package backport flawlessly. It is a bit long since it compiles QT :/

Packages are at:
http://noc.wikimedia.org/~hashar/debs/phantomjs_1.9.0-1/

Bundled as one file in:
http://noc.wikimedia.org/~hashar/debs/phantomjs_1.9.0-1.tar.gz

Had it installed on the instance that run the tests. And that seems to be working.

I have filled RT #5817 to get the package uploaded on apt.wikimedia.org.

(In reply to comment #4)

I have filled RT #5817 to get the package uploaded on apt.wikimedia.org.

Andrew closed the RT ticket. Packages available at
http://apt.wikimedia.org/wikimedia/pool/universe/p/phantomjs/

I assume this can be closed as FIXED?

Yup that has been solved. Thank you Andre (and Andrew)