Wednesday 15 January 2014

ruby on rails - RSpec tests hanging just on new machine OSX -



ruby on rails - RSpec tests hanging just on new machine OSX -

i got newer mbp , after installing brew, rvm, mysql, bundler, etc. , getting gemset set up, test database created, tried run spec suite using parallel_tests: rake parallel:spec[4]

it starts chugging along hangs. waits 60s or more before gets uncorked , chugs along set of greenish dots (~130), , repeat. in fact delay after each pause seems longer. when hangs spinner in terminal tab goes away , comes when wakes up.

the same test suite running in parallel on old mbp doesn't periodically hang.

i have no thought start diagnose hung, in environment different between 2 machines.

running spec tests in serial seems hang between each assertion (dot) well.

i appreciate tips.

other env details: ruby 2.0.0p451, redis 2.8.13, rails 3.2.19, mysql 5.6.20

tl;dr - net:http (via css_parser, via premailer, via premailer_rails) taking 60s fail locating css referenced in email template on 'bad' machine.

details: narrowed downwards delay on 'bad' machine phone call in css_parser's read_remote_file css http://my-machine-mb:3001/stylesheets/email.css. reason, net::http taking total 60s fail find. on 'good' machine, fails within 5s. news realized unit tests inlining css email when doesn't need to. still need figure out why request takes 60s fail on 'bad' machine.

ruby-on-rails ruby rspec

No comments:

Post a Comment