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

Avoid autoloading openssl to try help with jruby load service issues #3809

Merged
merged 2 commits into from Jul 10, 2020

Conversation

deivid-rodriguez
Copy link
Member

What was the end-user or developer problem that led to this PR?

We got a CI failure on jruby with the following error:

Gem::Package::FormatError: package is corrupt, exception while verifying: uninitialized constant Gem::Security::OpenSSL (NameError) in /home/runner/work/rubygems/rubygems/bundler/tmp/1/gems/system/cache/yard-1.0.gem

It's here: https://github.com/rubygems/rubygems/runs/857727761.

What is your fix for the problem, implemented in this PR?

This most likely points to the same jruby issues we've been workarounding lately where jruby crashes with a missing constant error when you require and set an autoload for the same thing.

So, add the same workaround as in other related tickets and don't autoload openssl.

This is code inside net-http-persistent, so adding a note too about why we're doing this.

This is a follow up to #3751, #3770, #3771, and #3781.

Tasks:

  • Describe the problem / feature
  • Write tests
  • Write code to solve the problem
  • Get code review from coworkers / friends

I will abide by the code of conduct.

We got an error in CI avoid this missing constant the points out again
to jruby issues when autoloading and directly requiring the same thing.
Avoid doing that to prevent those issues.
@deivid-rodriguez deivid-rodriguez merged commit 6082c92 into master Jul 10, 2020
@deivid-rodriguez deivid-rodriguez deleted the avoid_ssl_autoload branch July 10, 2020 18:07
@deivid-rodriguez deivid-rodriguez changed the title Avoid openssl autoload Avoid autoloading openssl to try help with jruby load service issues Jul 15, 2020
@deivid-rodriguez deivid-rodriguez mentioned this pull request Sep 2, 2020
4 tasks
deivid-rodriguez added a commit that referenced this pull request Oct 5, 2020
Avoid openssl autoload

(cherry picked from commit 6082c92)
deivid-rodriguez added a commit that referenced this pull request Oct 5, 2020
Avoid openssl autoload

(cherry picked from commit 6082c92)
deivid-rodriguez added a commit that referenced this pull request Oct 5, 2020
Avoid openssl autoload

(cherry picked from commit 6082c92)
deivid-rodriguez added a commit that referenced this pull request Oct 6, 2020
Avoid openssl autoload

(cherry picked from commit 6082c92)
deivid-rodriguez added a commit that referenced this pull request Oct 6, 2020
Avoid openssl autoload

(cherry picked from commit 6082c92)
deivid-rodriguez added a commit that referenced this pull request Oct 6, 2020
Avoid openssl autoload

(cherry picked from commit 6082c92)
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