#115 Zuul CI is broken sine Python 3.9: Uses deprecated (removed) Thread.isAlive()
Closed 3 years ago by churchyard. Opened 3 years ago by churchyard.

Zuul des this:

2020-05-31 23:42:30.753159 | cloud-host | MODULE FAILURE:
2020-05-31 23:42:30.753303 | cloud-host | <stdin>:18: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
2020-05-31 23:42:30.753353 | cloud-host | Traceback (most recent call last):
2020-05-31 23:42:30.753394 | cloud-host |   File "<stdin>", line 114, in <module>
2020-05-31 23:42:30.753432 | cloud-host |   File "<stdin>", line 106, in _ansiballz_main
2020-05-31 23:42:30.753470 | cloud-host |   File "<stdin>", line 49, in invoke_module
2020-05-31 23:42:30.753507 | cloud-host |   File "/usr/lib64/python3.9/imp.py", line 234, in load_module
2020-05-31 23:42:30.753544 | cloud-host |     return load_source(name, filename, file)
2020-05-31 23:42:30.753581 | cloud-host |   File "/usr/lib64/python3.9/imp.py", line 169, in load_source
2020-05-31 23:42:30.753619 | cloud-host |     module = _exec(spec, sys.modules[name])
2020-05-31 23:42:30.753655 | cloud-host |   File "<frozen importlib._bootstrap>", line 613, in _exec
2020-05-31 23:42:30.753692 | cloud-host |   File "<frozen importlib._bootstrap_external>", line 790, in exec_module
2020-05-31 23:42:30.753729 | cloud-host |   File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
2020-05-31 23:42:30.753771 | cloud-host |   File "/tmp/ansible_command_payload_erd53tar/__main__.py", line 675, in <module>
2020-05-31 23:42:30.753809 | cloud-host |   File "/tmp/ansible_command_payload_erd53tar/__main__.py", line 651, in main
2020-05-31 23:42:30.753879 | cloud-host |   File "/tmp/ansible_command_payload_erd53tar/__main__.py", line 498, in zuul_run_command
2020-05-31 23:42:30.753919 | cloud-host | AttributeError: 'Thread' object has no attribute 'isAlive'

Since rawhide updated Python to 3.9.

I've opened an upstream PR in https://review.opendev.org/732157

We might need to apply this patch locally for now.


yes sure ... just wanted a reference in the issue.

update: the plan is to bump the Zuul version we run in production to the last stable 3.19.0 (today 3.18.0) and include your fix. During the test of the 3.19.0 packages we have discovered an issue between zuul 3.19.0 and our container server k1s. We have a fix for this issue but we will need to delay the production upgrade tomorrow.

We just did the upgrade to 3.19.0 (also including your fix in the package). And the issue seems to be fixed now. Here the last run on python-gear https://src.fedoraproject.org/rpms/python-gear/pull-request/30.

Let's close that issue if that's fine on your side.

Metadata Update from @churchyard:
- Issue status updated to: Closed (was: Open)

3 years ago

Login to comment on this ticket.

Metadata