Last modified: 2013-12-06 06:19:35 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 T56489, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 54489 - browsertests under phantomjs have failures on Jenkins
browsertests under phantomjs have failures on Jenkins
Status: RESOLVED WONTFIX
Product: Wikimedia
Classification: Unclassified
Quality Assurance (Other open bugs)
wmf-deployment
All All
: Unprioritized normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on: 54494
Blocks: 53697 55730
  Show dependency treegraph
 
Reported: 2013-09-24 03:24 UTC by Antoine "hashar" Musso (WMF)
Modified: 2013-12-06 06:19 UTC (History)
4 users (show)

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


Attachments

Description Antoine "hashar" Musso (WMF) 2013-09-24 03:24:34 UTC
I have setup up browsertests in Wikimedia Jenkins setup (bug 54388). The first run console using phantomjs browser dies miserably with some "Unable to pick a platform for the provided browser (RuntimeError)" errors.

Full output:
https://integration.wikimedia.org/ci/job/qa-browsertests-run/14/console

48 scenarios (25 failed, 23 skipped)
Comment 1 Antoine "hashar" Musso (WMF) 2013-09-24 03:26:06 UTC
Blocks bug 53697 "trigger browser tests from Gerrit" since it would be nice to have tests passing :-]
Comment 2 Željko Filipin 2013-09-24 08:29:37 UTC
As far as I understand it, console says phantomjs is not installed. For example:

https://integration.wikimedia.org/ci/job/qa-browsertests-run/lastCompletedBuild/consoleFull

...
03:47:27   Unable to find phantomjs executable. (Selenium::WebDriver::Error::WebDriverError)
..
Comment 3 Antoine "hashar" Musso (WMF) 2013-09-24 08:54:20 UTC
I forgot to install phantomjs during my crazy night.

Next issue:

  unable to connect to phantomjs @ http://127.0.0.1:8910
  after 20 seconds (Selenium::WebDriver::Error::WebDriverError

That is supposed to be the port of the phantomjs Selenium driver

vendor/ruby/1.9.1/gems/selenium-webdriver-2.35.0 \
   ... /lib/selenium/webdriver/phantomjs/service.rb
12:        DEFAULT_PORT  = 8910
Comment 4 Antoine "hashar" Musso (WMF) 2013-09-24 13:49:26 UTC
The timeout is caused by {{bug|45868}}, that is, instances cant not access the public IP address. One has to rewrite outgoing packets using iptables rules as a workaround:

 iptables -t nat -I OUTPUT --dest 208.80.153.219 -j DNAT --to-dest 10.4.1.133
 iptables -t nat -I OUTPUT --dest 208.80.153.242 -j DNAT --to-dest 10.4.0.211
 iptables -t nat -I OUTPUT --dest 208.80.153.243 -j DNAT --to-dest 10.4.0.51
 iptables -t nat -I OUTPUT --dest 208.80.153.244 -j DNAT --to-dest 10.4.0.48
 iptables -t nat -I OUTPUT --dest 208.80.153.243 -j DNAT --to-dest 10.4.1.82


No more timeout: https://integration.wikimedia.org/ci/job/qa-browsertests-run/20/console
Comment 5 Antoine "hashar" Musso (WMF) 2013-09-25 08:43:42 UTC
We know have some issues such as:

 timed out after 5 seconds, waiting for {:text=>"Yes", :tag_name=>"span"} to become present (Watir::Wait::TimeoutError)

 Error Message => 'Can't find variable: mw'

Željko told me it is because the pages do not look the same under phantomJS, thus the tests would need to be fixed :-)
Comment 6 Željko Filipin 2013-11-21 13:05:25 UTC
See related thread at QA mailing list:

http://lists.wikimedia.org/pipermail/qa/2013-November/000723.html
Comment 7 Antoine "hashar" Musso (WMF) 2013-11-25 11:43:26 UTC
Following a pair session with Željko, the tests can be flagged with a tag which we can then exclude when running tests. For ULS, I have introduced the tag @specific-settings which let us skip any tests that are not going to pass on a fresh wiki installation: https://gerrit.wikimedia.org/r/#/c/97487/
Comment 8 Željko Filipin 2013-12-05 15:18:57 UTC
Antoine, is this fixed with this commit? https://gerrit.wikimedia.org/r/#/c/97487/
Comment 9 Antoine "hashar" Musso (WMF) 2013-12-05 18:14:41 UTC
https://gerrit.wikimedia.org/r/#/c/97487/ was for ULS. This bug is for qa/browsertest.

The idea was that whenever a change is proposed (or merged?) for qa/browsertests, we would have run the whole test suites using phantomJS on the WMF Jenkins.

Lot of tests being migrated to extensions I don't think it make sense anymore.  We might want to repurpose qa/browsertest as smoke tests targeting production which would be quite useful for monitoring.

So either wont fix or resolve later on :-D
Comment 10 Željko Filipin 2013-12-06 06:19:35 UTC
In that case, resolved wontfix. We can open new bugs for specific repositories if needed.

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


Navigation
Links