Skip to content

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

Merged
deivid-rodriguez merged 2 commits intomasterfrom
avoid_ssl_autoload
Jul 10, 2020
Merged

Avoid autoloading openssl to try help with jruby load service issues#3809
deivid-rodriguez merged 2 commits intomasterfrom
avoid_ssl_autoload

Conversation

@deivid-rodriguez
Copy link
Copy Markdown
Contributor

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.

2 participants