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

ssl.wrap_socket() was removed in Python 3.12 #7542

Merged
merged 2 commits into from
Nov 19, 2023

Conversation

felixfontein
Copy link
Collaborator

SUMMARY

The irc module and the log_entries callback were still using it.

ISSUE TYPE
  • Bugfix Pull Request
COMPONENT NAME

irc module
log_entries callback

@felixfontein felixfontein added check-before-release PR will be looked at again shortly before release and merged if possible. backport-7 Automatically create a backport for the stable-7 branch backport-8 Automatically create a backport for the stable-8 branch labels Nov 18, 2023
@ansibullbot
Copy link
Collaborator

@ansibullbot ansibullbot added bug This issue/PR relates to a bug callback callback plugin module module plugins plugin (any type) labels Nov 18, 2023
@felixfontein
Copy link
Collaborator Author

The FreeBSD failure is unrelated, see #7543.

@ansibullbot ansibullbot added the needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR label Nov 18, 2023
@felixfontein
Copy link
Collaborator Author

Restarting CI.

Copy link
Contributor

@mariolenz mariolenz left a comment

Choose a reason for hiding this comment

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

LGTM

@jpmens
Copy link
Contributor

jpmens commented Nov 18, 2023

Thank you for doing this, @felixfontein! Appreciated.

shipit

@felixfontein
Copy link
Collaborator Author

I pushed a commit which makes the IRC module backwards-compatible (i.e. not secure). I think it's best to change this in the future; for that it's best IMO to add a validate_certs option; deprecate it's default false after some time, and change it to true eventually.

@ansibullbot ansibullbot added has_issue and removed needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR labels Nov 18, 2023
@felixfontein
Copy link
Collaborator Author

@mariolenz @jpmens can you take another look with the latest commit? Thanks!

@jpmens
Copy link
Contributor

jpmens commented Nov 19, 2023

LGTM

Copy link
Contributor

@mariolenz mariolenz left a comment

Choose a reason for hiding this comment

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

LGTM

@felixfontein felixfontein removed the check-before-release PR will be looked at again shortly before release and merged if possible. label Nov 19, 2023
@felixfontein felixfontein merged commit 21cd65f into ansible-collections:main Nov 19, 2023
125 checks passed
Copy link

patchback bot commented Nov 19, 2023

Backport to stable-7: 💚 backport PR created

✅ Backport PR branch: patchback/backports/stable-7/21cd65fccf41d3c365572ec7f443214ba474f125/pr-7542

Backported as #7556

🤖 @patchback
I'm built with octomachinery and
my source is open — https://github.com/sanitizers/patchback-github-app.

@felixfontein felixfontein deleted the wrap_socket branch November 19, 2023 13:11
patchback bot pushed a commit that referenced this pull request Nov 19, 2023
* ssl.wrap_socket() was removed in Python 3.12.

* Make code for irc module backwards-compatible.

(cherry picked from commit 21cd65f)
Copy link

patchback bot commented Nov 19, 2023

Backport to stable-8: 💚 backport PR created

✅ Backport PR branch: patchback/backports/stable-8/21cd65fccf41d3c365572ec7f443214ba474f125/pr-7542

Backported as #7557

🤖 @patchback
I'm built with octomachinery and
my source is open — https://github.com/sanitizers/patchback-github-app.

@felixfontein
Copy link
Collaborator Author

@mariolenz @jpmens thanks a lot for reviewing this!

patchback bot pushed a commit that referenced this pull request Nov 19, 2023
* ssl.wrap_socket() was removed in Python 3.12.

* Make code for irc module backwards-compatible.

(cherry picked from commit 21cd65f)
felixfontein added a commit that referenced this pull request Nov 19, 2023
…in Python 3.12 (#7556)

ssl.wrap_socket() was removed in Python 3.12 (#7542)

* ssl.wrap_socket() was removed in Python 3.12.

* Make code for irc module backwards-compatible.

(cherry picked from commit 21cd65f)

Co-authored-by: Felix Fontein <felix@fontein.de>
felixfontein added a commit that referenced this pull request Nov 19, 2023
…in Python 3.12 (#7557)

ssl.wrap_socket() was removed in Python 3.12 (#7542)

* ssl.wrap_socket() was removed in Python 3.12.

* Make code for irc module backwards-compatible.

(cherry picked from commit 21cd65f)

Co-authored-by: Felix Fontein <felix@fontein.de>
samdoran pushed a commit to samdoran/community.general that referenced this pull request Nov 21, 2023
* ssl.wrap_socket() was removed in Python 3.12.

* Make code for irc module backwards-compatible.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-7 Automatically create a backport for the stable-7 branch backport-8 Automatically create a backport for the stable-8 branch bug This issue/PR relates to a bug callback callback plugin has_issue module module plugins plugin (any type) shipit
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants