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

Workaround JRuby + Windows issue with net-http-persistent vendored code #4138

Merged
merged 1 commit into from Dec 14, 2020

Conversation

slonopotamus
Copy link
Contributor

@slonopotamus slonopotamus commented Dec 13, 2020

Closes #4129.

@welcome
Copy link

welcome bot commented Dec 13, 2020

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

@slonopotamus slonopotamus changed the title Run tests on JRuby + MacOS/Windows Run tests on JRuby + Windows Dec 13, 2020
@deivid-rodriguez
Copy link
Member

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.

@deivid-rodriguez
Copy link
Member

Actually it seems that merely installing dependencies fails due to this issue? In that case, I think we can just test that :)

@slonopotamus
Copy link
Contributor Author

I actually was not sure where to add JRuby+Windows combo. You have .github/workflows/jruby-bundler.yml that tests JRuby only on Linux but also have .github/workflows/windows-bundler.yml that tests multiple Rubies on Windows.

@slonopotamus
Copy link
Contributor Author

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

@deivid-rodriguez
Copy link
Member

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 bin/rake spec:parallel_deps task, since that itself reproduces the issue, and running the full test suite is not going to work. I'd add a if: "!startsWith(matrix.ruby, 'jruby')" to all steps except for the one installing dependencies and before.

@deivid-rodriguez deivid-rodriguez changed the title Run tests on JRuby + Windows Workaround JRuby + Windows issue with net-http-persistent vendored code Dec 13, 2020
@headius
Copy link
Contributor

headius commented Dec 13, 2020

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 :)
@deivid-rodriguez
Copy link
Member

Yes, I'm planning to forward port the fix to net-http-persistent too 👍.

@deivid-rodriguez deivid-rodriguez merged commit 28004e8 into rubygems:master Dec 14, 2020
@slonopotamus slonopotamus deleted the jruby-ci branch December 14, 2020 10:55
deivid-rodriguez added a commit that referenced this pull request Dec 14, 2020
Workaround JRuby + Windows issue with net-http-persistent vendored code

(cherry picked from commit 28004e8)
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.

Bundler 2.2.0 fails on JRuby 9.2 on Windows
3 participants