Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jasmine PhantomJS issue #780

Closed
jaurand opened this issue Nov 18, 2014 · 9 comments
Closed

Jasmine PhantomJS issue #780

jaurand opened this issue Nov 18, 2014 · 9 comments

Comments

@jaurand
Copy link

jaurand commented Nov 18, 2014

When running our jasmine tests we're seeing the following error:

bundle exec rake jasmine:ci RAILS_ENV=test
[RailsAdmin] RailsAdmin initialization disabled by default. Pass SKIP_RAILS_ADMIN_INITIALIZER=false if you need it.
Waiting for jasmine server on 33536...

Thin web server (v1.5.0 codename Knife)
Maximum connections set to 1024
Listening on 0.0.0.0:33536, CTRL+C to stop
Waiting for jasmine server on 33536...
jasmine server started.
Phantomjs does not appear to be installed in /home/shippable/.phantomjs/1.9.7/x86_64-linux/bin/phantomjs, installing!
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed

0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 14134 100 14134 0 0 89847 0 --:--:-- --:--:-- --:--:-- 600k
bunzip2: phantomjs-1.9.7-linux-x86_64.tar.bz2 is not a bzip2 file.
tar: phantomjs-1.9.7-linux-x86_64.tar: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
rake aborted!
TypeError: can't convert nil into String
/home/shippable/.rvm/gems/ruby-1.9.3-p374/gems/phantomjs-1.9.7.0/lib/phantomjs/platform.rb:72:in block in install!' /home/shippable/.rvm/gems/ruby-1.9.3-p374/gems/phantomjs-1.9.7.0/lib/phantomjs/platform.rb:53:inchdir'
/home/shippable/.rvm/gems/ruby-1.9.3-p374/gems/phantomjs-1.9.7.0/lib/phantomjs/platform.rb:53:in install!' /home/shippable/.rvm/gems/ruby-1.9.3-p374/gems/phantomjs-1.9.7.0/lib/phantomjs/platform.rb:86:inensure_installed!'
/home/shippable/.rvm/gems/ruby-1.9.3-p374/gems/phantomjs-1.9.7.0/lib/phantomjs.rb:30:in platform' /home/shippable/.rvm/gems/ruby-1.9.3-p374/gems/phantomjs-1.9.7.0/lib/phantomjs.rb:25:inpath'
/home/shippable/.rvm/gems/ruby-1.9.3-p374/gems/jasmine-2.0.1/lib/jasmine/runners/phantom_js.rb:13:in run' /home/shippable/.rvm/gems/ruby-1.9.3-p374/gems/jasmine-2.0.1/lib/jasmine/tasks/jasmine.rake:52:inblock (2 levels) in '
/home/shippable/.rvm/gems/ruby-1.9.3-p374/bin/ruby_executable_hooks:15:in eval' /home/shippable/.rvm/gems/ruby-1.9.3-p374/bin/ruby_executable_hooks:15:in
'

This was never a problem before. Our project id is 5463ee30c6f0803064f44b79.

@manishas
Copy link
Contributor

Thanks for reporting this. we'll take a look asap.

@rageshkrishna
Copy link
Contributor

@jaurand It looks like this build failed because the Jasmine download did not complete or was corrupted somehow. We've had some trouble in the past few days with Google's servers blocking a few downloads from our minions but this should be working now.

I took a look at some of your recent builds and couldn't seem to find one that was running this exact command. Can you please run another build and point me to the build ID or build number if this is still happening? Thanks.

@jaurand
Copy link
Author

jaurand commented Dec 3, 2014

@rageshkrishna, I just reproduced it in build 209.1. https://app.shippable.com/builds/547e5350bf498213004f07c2

@ryanisinallofus
Copy link

Is there something special we need to do to set up our jasmine/phantomJS tests to run on Shippable? Or is this the same issue?

https://app.shippable.com/builds/5489f66cdacae915001239e9

@rageshkrishna
Copy link
Contributor

@ryanisinallofus It looks like your issue is unrelated. Your build is failing because it's unable to connect to mongo. You need to add a services section to your YML file to launch mongo (see http://docs.shippable.com/en/latest/config.html#mongodb)

@rageshkrishna
Copy link
Contributor

@jaurand It looks like your issue may be addressed by this PR in phantomjs-gem: colszowka/phantomjs-gem#35

@manishas
Copy link
Contributor

@jaurand did Ragesh's suggestion fix your problem? Please let us know..

@manishas
Copy link
Contributor

@jaurand ping.

@manishas manishas added resolved and removed triaged labels Dec 22, 2014
@manishas
Copy link
Contributor

Closing this issue. @jaurand please let us know if you need any further help with this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants