Last modified: 2014-02-03 14:55:49 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T62584, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 60584 - Add support for running headless browser tests to mediawiki-selenium Rubygem
Add support for running headless browser tests to mediawiki-selenium Rubygem
Status: RESOLVED FIXED
Product: Wikimedia
Classification: Unclassified
Quality Assurance (Other open bugs)
wmf-deployment
All All
: Normal enhancement (vote)
: ---
Assigned To: Željko Filipin
:
Depends on:
Blocks: 53691
  Show dependency treegraph
 
Reported: 2014-01-29 16:20 UTC by Jeff Hall
Modified: 2014-02-03 14:55 UTC (History)
3 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Jeff Hall 2014-01-29 16:20:11 UTC
Follow-up to a pairing session between Jeff and Željko on 1/29/2013.  In order to make headless browser testing available in as many WMF repositories as possible, we should add headless support[1] to the env.rb and hooks.rb setup in the mediawiki-selenium Rubygem[2].


[1] http://watirwebdriver.com/headless/
[2] https://git.wikimedia.org/tree/mediawiki%2Fselenium/ef67a1f40db97a7e0b456fcc3fbf20c6a8ec4e81/lib%2Fmediawiki%2Fselenium
Comment 1 Jeff Hall 2014-01-29 16:27:11 UTC
Should note that in order to run headless browser tests, the test environment(s) needs to have two additional components installed:

a) Headless Rubygem[1]
b) Xvfb binary for your OS[2]

[1] http://rubygems.org/gems/headless
[2] http://en.wikipedia.org/wiki/Xvfb
Comment 2 Gerrit Notification Bot 2014-01-29 20:13:43 UTC
Change 110205 had a related patch set uploaded by Zfilipin:
WIP run browsers headlessly if HEADLESS environment variable is set to true

https://gerrit.wikimedia.org/r/110205
Comment 3 Antoine "hashar" Musso (WMF) 2014-01-30 09:06:43 UTC
We had some browser tests running on integration-selenium-driver.pmtpa.wmflabs which is an Ubuntu Precise instance. xvfb package is 2:1.11.4-0ubuntu10.14 

There is apparently no package for ruby gems headless but it is going to be a dependency of mediawiki-selenium apparently ( https://gerrit.wikimedia.org/r/#/c/110205/3/mediawiki-selenium.gemspec,unified )
Comment 4 Gerrit Notification Bot 2014-01-30 09:40:45 UTC
Change 110335 had a related patch set uploaded by Zfilipin:
WIP run browsers headlessly if HEADLESS environment variable is set to true

https://gerrit.wikimedia.org/r/110335
Comment 5 Gerrit Notification Bot 2014-01-30 10:07:29 UTC
Change 110335 abandoned by Zfilipin:
WIP run browsers headlessly if HEADLESS environment variable is set to true

https://gerrit.wikimedia.org/r/110335
Comment 6 Željko Filipin 2014-01-30 10:40:14 UTC
I still have to test this with repositories that have at_exit hook. Looks like only VisualEditor has the hook, and it should probably be moved to the gem.
Comment 7 Chris McMahon 2014-01-30 14:41:41 UTC
at one point CirrusSearch had this hook.  It's in the README, but I don't see the hook itself any more.
Comment 8 Gerrit Notification Bot 2014-01-30 15:00:13 UTC
Change 110205 merged by jenkins-bot:
Run browsers headlessly if HEADLESS environment variable is set to true

https://gerrit.wikimedia.org/r/110205
Comment 9 Gerrit Notification Bot 2014-01-30 16:32:46 UTC
Change 110390 had a related patch set uploaded by Zfilipin:
Make it possible to run VisualEditor tests in headless mode

https://gerrit.wikimedia.org/r/110390
Comment 10 Gerrit Notification Bot 2014-01-30 18:34:31 UTC
Change 110390 merged by jenkins-bot:
Make it possible to run VisualEditor tests in headless mode

https://gerrit.wikimedia.org/r/110390
Comment 11 Antoine "hashar" Musso (WMF) 2014-02-03 14:46:04 UTC
Zeljko are you sure it is fixed ? Jeff reverted https://gerrit.wikimedia.org/r/110390
Comment 12 Željko Filipin 2014-02-03 14:55:49 UTC
But then he introduced the same thing in https://gerrit.wikimedia.org/r/#/c/110606 :)

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links