Update things from Python 3.7 to Python 3.11 in both testing and the Toolforge deployment.
Description
Details
Title | Reference | Author | Source Branch | Dest Branch | |
---|---|---|---|---|---|
Bump ib3 dependency to version 0.3.0 | toolforge-repos/jouncebot!4 | bd808 | work/bd808/py311 | main | |
k8s: Change runtime container to python311 | toolforge-repos/jouncebot!3 | bd808 | work/bd808/py311 | main | |
dev: update for 3.11 runtime | toolforge-repos/jouncebot!2 | bd808 | work/bd808/py311 | main |
Related Objects
Event Timeline
bd808 opened https://gitlab.wikimedia.org/toolforge-repos/jouncebot/-/merge_requests/2
dev: update for 3.11 runtime
bd808 merged https://gitlab.wikimedia.org/toolforge-repos/jouncebot/-/merge_requests/2
dev: update for 3.11 runtime
bd808 opened https://gitlab.wikimedia.org/toolforge-repos/jouncebot/-/merge_requests/3
k8s: Change runtime container to python311
bd808 merged https://gitlab.wikimedia.org/toolforge-repos/jouncebot/-/merge_requests/3
k8s: Change runtime container to python311
Mentioned in SAL (#wikimedia-cloud) [2023-08-29T23:52:53Z] <wm-bot> <bd808> Updated to 6e16190 (T345198)
Mentioned in SAL (#wikimedia-cloud) [2023-08-29T23:58:02Z] <wm-bot> <bd808> Rolled back to 80a9d1a. IRC library failed to connect to libera.chat under Python 3.11. (T345198)
Failure to connect under py311:
Running jouncebot... 2023-08-29T23:53:23Z JounceBot INFO : Attempting to connect to server 2023-08-29T23:53:23Z py.warnings WARNING : /data/project/jouncebot/jouncebot/venv-k8s-py311/lib/python3.11/site-packages/irc/connection.py:55: DeprecationWarning: ssl.wrap_socket() is deprecated, use SSLContext.wrap_socket() sock = self.wrapper(socket.socket(self.family, socket.SOCK_STREAM)) 2023-08-29T23:53:23Z py.warnings WARNING : /usr/lib/python3.11/ssl.py:1438: Dep recationWarning: ssl.PROTOCOL_TLS is deprecated context = SSLContext(ssl_version) 2023-08-29T23:54:02Z ib3.mixins WARNING : type: error, source: None, target: Closing Link: nat.cloudgw.eqiad1.wikimediacloud.org (Connection timed out), arguments: [], tags: []
Under py37 things look more like:
Running jouncebot... 2023-08-29T23:56:50Z JounceBot INFO : Attempting to connect to server 2023-08-29T23:56:55Z JounceBot INFO : Connected to server 2023-08-29T23:56:55Z JounceBot INFO : Getting information about the wiki and starting event handler 2023-08-29T23:56:55Z JounceBot DEBUG : Collecting new deployment information from the server 2023-08-29T23:56:56Z JounceBot DEBUG : Got 78 items 2023-08-29T23:56:56Z JounceBot DEBUG : Setting deploy timer to 21788 for deploycal-item-20230830T0600: (2023-08-30 06:00:00+00:00 -> 2023-08-30 07:00:00+00:00) MediaWiki infrastucture (UTC early); for 2023-08-29T23:56:56Z ib3.auth INFO : Connected to server mercury.libera.chat 2023-08-29T23:56:56Z ib3.mixins INFO : Joining #wikimedia-operations 2023-08-29T23:57:01Z JounceBot INFO : Successfully joined channel #wikimedia-operations
I probably need to test ib3 under py311 next.
bd808 updated https://gitlab.wikimedia.org/toolforge-repos/jouncebot/-/merge_requests/4
Bump ib3 dependency to version 0.3.0
https://github.com/bd808/python-ib3/commit/7cc3ee4b3d012391a3dfedd0617c391e14b7d7c5 was the fix needed in the ib3 library to support the latest version of https://pypi.org/project/irc/
bd808 merged https://gitlab.wikimedia.org/toolforge-repos/jouncebot/-/merge_requests/4
Bump ib3 dependency to version 0.3.0
Mentioned in SAL (#wikimedia-cloud) [2023-10-02T22:40:25Z] <wm-bot> <bd808> Update to 33181b7c (T345198)