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

(PDK-802) Work around OpenSSL multi-threading errors when needed #494

Merged
merged 1 commit into from
May 2, 2018

Conversation

scotje
Copy link
Contributor

@scotje scotje commented May 1, 2018

For post-1.5.0 bug bashing consideration.

See https://bugs.ruby-lang.org/issues/11033 for background.

I think this is the cause of our "cert already in hash table" transients in Appveyor as well as some of the issues @glennsarti was encountering in https://tickets.puppetlabs.com/browse/PDK-802

Ruby issue linked above was backported to Ruby 2.3 branch and released in 2.3.5, however Appveyor is still on 2.3.3 for Ruby23.

Inside PDK packages it should only be an issue on the 2.1.9 bundler invocations.

@scotje scotje requested review from rodjek and bmjen May 1, 2018 00:43
@scotje
Copy link
Contributor Author

scotje commented May 1, 2018

Oops, my unit test expectations are wrong, will fix tomorrow.

@coveralls
Copy link

coveralls commented May 1, 2018

Coverage Status

Coverage increased (+0.003%) to 92.752% when pulling de581c3 on scotje:windows_openssl_multithreading into 7c41f52 on puppetlabs:master.

Copy link
Contributor

@glennsarti glennsarti left a comment

Choose a reason for hiding this comment

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

Changes look ok. Commit message could be more verbose.

See https://bugs.ruby-lang.org/issues/11033 for background.

TL;DR is that there was a bug in the Ruby 'openssl' gem that caused a
race condition on Windows when loading certs.

I think this is the cause of "cert already in hash table" transient
failures we see in Appveyor as well as some of the issues @glennsarti
was encountering in https://tickets.puppetlabs.com/browse/PDK-802

Ruby issue linked above was backported to Ruby 2.3 branch and released
in 2.3.5, however Appveyor is still on 2.3.3 for Ruby23 target.

Inside PDK packages it should only be an issue on the Ruby 2.1.9
bundler invocations.
@scotje scotje force-pushed the windows_openssl_multithreading branch from a267190 to de581c3 Compare May 1, 2018 18:21
@scotje
Copy link
Contributor Author

scotje commented May 1, 2018

Mocked out the platform and version checks in the unit tests so hopefully this will pass cross-platform now. Also expanded the commit message to include my comments from the PR description.

@bmjen bmjen merged commit 05cb159 into puppetlabs:master May 2, 2018
@scotje scotje deleted the windows_openssl_multithreading branch May 2, 2018 21:45
@bmjen bmjen added the bug label Jun 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants