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
Workaround JRuby + Windows issue with net-http-persistent vendored code #4138
Conversation
Thanks for opening a pull request and helping make RubyGems and Bundler better! Someone from the RubyGems team will take a look at your pull request shortly and leave any feedback. Please make sure that your pull request has tests for any changes or added functionality. We use GitHub Actions to test and make sure your change works functionally and uses acceptable conventions, you can review the current progress of GitHub Actions in the PR status window below. If you have any questions or concerns that you wish to ask, feel free to leave a comment in this PR or join our #rubygems or #bundler channel on Slack. For more information about contributing to the RubyGems project feel free to review our CONTRIBUTING guide |
93560ff
to
95acaa6
Compare
136a6f1
to
7f34e0c
Compare
The whole test suite is suuuupuuuuuuuer slow on jruby, not really acceptable for running on every PR, and also it doesn't fully pass. If you can take care of skipping everything that currently fails on jruby, and move it to a daily job, I think it could be acceptable. Alternatively I would write a single test that catches the issue we're facing now and run just that. |
Actually it seems that merely installing dependencies fails due to this issue? In that case, I think we can just test that :) |
I actually was not sure where to add JRuby+Windows combo. You have |
Okay, at least it actually reproduces exact issue that happened in #4129: https://github.com/rubygems/rubygems/runs/1545806033?check_suite_focus=true#step:4:12 |
Yep, that's what I was saying. Where you added jruby is the right place. What I'd do for now is to limit the jruby job to just run the |
7f34e0c
to
d4f2ec7
Compare
bundler/lib/bundler/vendor/net-http-persistent/lib/net/http/persistent.rb
Outdated
Show resolved
Hide resolved
The fix as written is simple and will cover all known breaking cases. I think we should also try to get this into net-http-persistent since that library is now also broken for JRuby 9.2.14.0 and earlier on Windows. |
This catches an issue we're getting there with the `net-http-persistent` vendored dependency, and at the same time makes contributing to bundler from JRuby on Windows more friendly since we ensure that at least contributors can install test dependencies :)
d4f2ec7
to
2cce1ba
Compare
Yes, I'm planning to forward port the fix to net-http-persistent too 👍. |
Workaround JRuby + Windows issue with net-http-persistent vendored code (cherry picked from commit 28004e8)
Closes #4129.