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

run tests with bundler since that is what our users run #1317

Merged
merged 1 commit into from Jun 9, 2017

Conversation

grosser
Copy link
Contributor

@grosser grosser commented Jun 3, 2017

@nateberkopec would have caught #1308 early

does not change a lot since we previously ran the test with bundle exec and so already had all the load-paths etc setup with bundler

@nateberkopec
Copy link
Member

This seems to reliably cause the Ruby 2.1 integration tests to fail.

@grosser
Copy link
Contributor Author

grosser commented Jun 3, 2017

test takes 43s locally ... that seems a bit crazy ... will take a look why ...

@grosser grosser force-pushed the grosser/bundle branch 3 times, most recently from b72251b to f114526 Compare June 4, 2017 17:02
@grosser
Copy link
Contributor Author

grosser commented Jun 4, 2017

runs fast locally now .... still times out on travis :(

@grosser
Copy link
Contributor Author

grosser commented Jun 5, 2017

reproduction steps with bundler 1.15.0+

gem uninstall puma -a
bundle exec puma test/rackup/hello.ru
ps -ef | grep puma
kill -SIGUSR2 <puma-pid>

@grosser
Copy link
Contributor Author

grosser commented Jun 5, 2017

idk what's going on in travis, but it's cancelling all builds ...

@grosser
Copy link
Contributor Author

grosser commented Jun 5, 2017

I guess it cancels all builds when 1 fails ... which won't work here since we have undocumented know failures ...

@grosser
Copy link
Contributor Author

grosser commented Jun 7, 2017

found the ruby 2.1 bug ... the Gemfile had no gemspec directive :D
... having a look at jruby next

@grosser
Copy link
Contributor Author

grosser commented Jun 7, 2017

green baby :D

@grosser
Copy link
Contributor Author

grosser commented Jun 7, 2017

only issue left is now the handling of non-standard Gemfile paths ... I"ll address that in another PR

if defined?(Bundler)
env = Bundler::ORIGINAL_ENV
# add -rbundler/setup so we load from Gemfile when restarting
env["RUBYOPT"] = (env["RUBYOPT"].to_s.split(" ") << "-rbundler/setup").uniq.compact.join(" ")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmmm... are there scenarios where people's Rubyopt will get mangled by this?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This still makes me nervous. Why aren't we just appending this?

@grosser
Copy link
Contributor Author

grosser commented Jun 7, 2017 via email

@grosser
Copy link
Contributor Author

grosser commented Jun 9, 2017

@nateberkopec good to go ?

@nateberkopec
Copy link
Member

I'm fine with the test changes but mangling RUBYOPT just seems like a recipe for disaster.

@grosser
Copy link
Contributor Author

grosser commented Jun 9, 2017 via email

@grosser
Copy link
Contributor Author

grosser commented Jun 9, 2017 via email

@nateberkopec
Copy link
Member

Much better, thx.

@nateberkopec nateberkopec merged commit 0886aef into puma:master Jun 9, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants