Last modified: 2013-12-02 16:43:29 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 T55712, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 53712 - run VE browser tests in vagrant
run VE browser tests in vagrant
Status: RESOLVED FIXED
Product: Wikimedia
Classification: Unclassified
Quality Assurance (Other open bugs)
unspecified
All All
: High enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-09-03 14:36 UTC by Chris McMahon
Modified: 2013-12-02 16:43 UTC (History)
3 users (show)

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


Attachments

Description Chris McMahon 2013-09-03 14:36:58 UTC
My goal next week is to be able to run the VE tests in a mediawiki-vagrant instance. When I added the role, I get puppet errors. Just in case you ran into this, here's the error:

notice: /Stage[main]/Browsertests/Exec[install browsertests bundle]/returns: Installing ffi (1.9.0) with native extensions /usr/lib/ruby/1.9.1/rubygems/installer.rb:552:in `rescue in block in build_extensions': ERROR: Failed to build gem native extension. (Gem::Installer::ExtensionBuildError)
notice: /Stage[main]/Browsertests/Exec[install browsertests bundle]/returns: 
notice: /Stage[main]/Browsertests/Exec[install browsertests bundle]/returns:         /usr/bin/ruby1.9.1 extconf.rb 

         notice: /Stage[main]/Browsertests/Exec[install browsertests bundle]/returns: Results logged to /home/vagrant/.gem/ruby/1.9.1/gems/ffi-1.9.0/ext/ffi_c/gem_make.out

and all that contains is the line
  /usr/bin/ruby1.9.1 extconf.rb 

There's an extconf.rb in ~/.gem/ruby/1.9.1/gems/ffi-1.9.0/ext/ffi_c , so I ran that line, it created a Makefile, I ran make, and it built something.  But the next time I ran browsertests, it failed again.
Comment 1 Jeff Hall 2013-11-20 16:32:34 UTC
I was able to get this working on my MacBook Air with the following workflow (I have not been able to verify that this works on platforms other than Mac OS):

1. vagrant enable-role visualeditor
2. vagrant up
3. vagrant provision
4. vagrant ssh -- -X
5. cd /srv/VisualEditor/VisualEditor/modules/ve-mw/test/browser
6. export MEDIAWIKI_URL=<value>
7. export MEDIAWIKI_USER=<value>
8. export MEDIAWIKI_PASSWORD=<value>
9. export PATH=$PATH:/home/vagrant/.gem/ruby/1.9.1/gems/cucumber-1.3.8/bin 
10. bundle exec cucumber <value>
Comment 2 Željko Filipin 2013-12-02 16:43:29 UTC
Closing since this looks like it has been fixed to me. Please reopen if needed.

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


Navigation
Links