Bug 1212024 - python-urllib3:test: fails test suite run on ALP
Summary: python-urllib3:test: fails test suite run on ALP
Status: VERIFIED FIXED
Alias: None
Product: Granite
Classification: SUSE ALP - SUSE Adaptable Linux Platform
Component: Basesystem (show other bugs)
Version: unspecified
Hardware: PowerPC-64 Other
: P1 - Urgent : Major
Target Milestone: ---
Assignee: Python maintainers (group account)
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-06-05 12:47 UTC by Héctor Orón Martínez
Modified: 2023-07-30 20:41 UTC (History)
7 users (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Héctor Orón Martínez 2023-06-05 12:47:12 UTC
ALP June Milestone 1 expects to have packages fixed to build images to take under test by Friday 9th.

In that context the following package has been found to fail to build from source:

  python-urllib3:test

With the following error:

[  105s] test/test_ssltransport.py::SingleTLSLayerTestCase::test_wrap_existing_socket PASSED [ 23%]
[  154s] test/test_ssltransport.py::SingleTLSLayerTestCase::test_unbuffered_text_makefile PASSED [ 23%]
[  216s] test/test_ssltransport.py::SingleTLSLayerTestCase::test_unwrap_existing_socket PASSED [ 23%]
[  216s] +++++++++++++++++++++++++++++++++++ Timeout ++++++++++++++++++++++++++++++++++++
[  216s] 
[  216s] ~~~~~~~~~~~~~~~~~~~~~ Stack of Thread-1 (140735581712672) ~~~~~~~~~~~~~~~~~~~~~~
[  263s]   File "/usr/lib64/python3.11/threading.py", line 995, in _bootstrap
[  263s]     self._bootstrap_inner()
[  263s]   File "/usr/lib64/python3.11/threading.py", line 1038, in _bootstrap_inner
[  263s]     self.run()
[  263s]   File "/home/abuild/rpmbuild/BUILD/urllib3-1.26.15/dummyserver/server.py", line 134, in run
[  263s]     self.server = self._start_server()
[  263s]   File "/home/abuild/rpmbuild/BUILD/urllib3-1.26.15/dummyserver/server.py", line 130, in _start_server
[  263s]     self.socket_handler(sock)
[  263s]   File "/home/abuild/rpmbuild/BUILD/urllib3-1.26.15/test/test_ssltransport.py", line 98, in socket_handler
[  263s]     request = consume_socket(ssock)
[  263s]   File "/home/abuild/rpmbuild/BUILD/urllib3-1.26.15/dummyserver/testcase.py", line 22, in consume_socket
[  263s]     b = sock.recv(chunks)
[  263s]   File "/usr/lib64/python3.11/ssl.py", line 1263, in recv
[  263s]     return self.read(buflen)
[  263s]   File "/usr/lib64/python3.11/ssl.py", line 1136, in read
[  263s]     return self._sslobj.read(len)
[  263s] 
[  263s] +++++++++++++++++++++++++++++++++++ Timeout ++++++++++++++++++++++++++++++++++++
[  382s] 
[  382s] INTERNALERROR> Traceback (most recent call last):
[  382s] INTERNALERROR>   File "/usr/lib/python3.11/site-packages/_pytest/main.py", line 269, in wrap_session
[  382s] INTERNALERROR>     session.exitstatus = doit(config, session) or 0
[  382s] INTERNALERROR>                          ^^^^^^^^^^^^^^^^^^^^^
[  382s] INTERNALERROR>   File "/usr/lib/python3.11/site-packages/_pytest/main.py", line 323, in _main
[  382s] INTERNALERROR>     config.hook.pytest_runtestloop(session=session)
[  382s] INTERNALERROR>   File "/usr/lib/python3.11/site-packages/pluggy/_hooks.py", line 265, in __call__
[  382s] INTERNALERROR>     return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
[  382s] INTERNALERROR>            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  382s] INTERNALERROR>   File "/usr/lib/python3.11/site-packages/pluggy/_manager.py", line 80, in _hookexec
[  382s] INTERNALERROR>     return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
[  382s] INTERNALERROR>            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  382s] INTERNALERROR>   File "/usr/lib/python3.11/site-packages/pluggy/_callers.py", line 60, in _multicall
[  382s] INTERNALERROR>     return outcome.get_result()
[  382s] INTERNALERROR>            ^^^^^^^^^^^^^^^^^^^^
[  382s] INTERNALERROR>   File "/usr/lib/python3.11/site-packages/pluggy/_result.py", line 60, in get_result
[  382s] INTERNALERROR>     raise ex[1].with_traceback(ex[2])
[  382s] INTERNALERROR>   File "/usr/lib/python3.11/site-packages/pluggy/_callers.py", line 39, in _multicall
[  382s] INTERNALERROR>     res = hook_impl.function(*args)
[  382s] INTERNALERROR>           ^^^^^^^^^^^^^^^^^^^^^^^^^
[  382s] INTERNALERROR>   File "/usr/lib/python3.11/site-packages/_pytest/main.py", line 348, in pytest_runtestloop
[  382s] INTERNALERROR>     item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem)
[  382s] INTERNALERROR>   File "/usr/lib/python3.11/site-packages/pluggy/_hooks.py", line 265, in __call__
[  382s] INTERNALERROR>     return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
[  382s] INTERNALERROR>            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  382s] INTERNALERROR>   File "/usr/lib/python3.11/site-packages/pluggy/_manager.py", line 80, in _hookexec
[  382s] INTERNALERROR>     return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
[  382s] INTERNALERROR>            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  382s] INTERNALERROR>   File "/usr/lib/python3.11/site-packages/pluggy/_callers.py", line 60, in _multicall
[  382s] INTERNALERROR>     return outcome.get_result()
[  382s] INTERNALERROR>            ^^^^^^^^^^^^^^^^^^^^
[  382s] INTERNALERROR>   File "/usr/lib/python3.11/site-packages/pluggy/_result.py", line 60, in get_result
[  382s] INTERNALERROR>     raise ex[1].with_traceback(ex[2])
[  382s] INTERNALERROR>   File "/usr/lib/python3.11/site-packages/pluggy/_callers.py", line 39, in _multicall
[  382s] INTERNALERROR>     res = hook_impl.function(*args)
[  382s] INTERNALERROR>           ^^^^^^^^^^^^^^^^^^^^^^^^^
[  382s] INTERNALERROR>   File "/usr/lib/python3.11/site-packages/flaky/flaky_pytest_plugin.py", line 94, in pytest_runtest_protocol
[  382s] INTERNALERROR>     self.runner.pytest_runtest_protocol(item, nextitem)
[  382s] INTERNALERROR>   File "/usr/lib/python3.11/site-packages/_pytest/runner.py", line 114, in pytest_runtest_protocol
[  382s] INTERNALERROR>     runtestprotocol(item, nextitem=nextitem)
[  382s] INTERNALERROR>   File "/usr/lib/python3.11/site-packages/_pytest/runner.py", line 133, in runtestprotocol
[  382s] INTERNALERROR>     reports.append(call_and_report(item, "call", log))
[  382s] INTERNALERROR>                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  382s] INTERNALERROR>   File "/usr/lib/python3.11/site-packages/flaky/flaky_pytest_plugin.py", line 154, in call_and_report
[  382s] INTERNALERROR>     hook.pytest_runtest_logreport(report=report)
[  382s] INTERNALERROR>   File "/usr/lib/python3.11/site-packages/pluggy/_hooks.py", line 265, in __call__
[  382s] INTERNALERROR>     return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
[  382s] INTERNALERROR>            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  382s] INTERNALERROR>   File "/usr/lib/python3.11/site-packages/pluggy/_manager.py", line 80, in _hookexec
[  382s] INTERNALERROR>     return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
[  382s] INTERNALERROR>            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[  382s] INTERNALERROR>   File "/usr/lib/python3.11/site-packages/pluggy/_callers.py", line 60, in _multicall
[  382s] INTERNALERROR>     return outcome.get_result()
[  382s] INTERNALERROR>            ^^^^^^^^^^^^^^^^^^^^
[  382s] INTERNALERROR>   File "/usr/lib/python3.11/site-packages/pluggy/_result.py", line 60, in get_result
[  382s] INTERNALERROR>     raise ex[1].with_traceback(ex[2])
[  382s] INTERNALERROR>   File "/usr/lib/python3.11/site-packages/pluggy/_callers.py", line 39, in _multicall
[  382s] INTERNALERROR>     res = hook_impl.function(*args)
[  382s] INTERNALERROR>           ^^^^^^^^^^^^^^^^^^^^^^^^^
[  382s] INTERNALERROR>   File "/usr/lib/python3.11/site-packages/_pytest/terminal.py", line 577, in pytest_runtest_logreport
[  382s] INTERNALERROR>     self._write_progress_information_filling_space()
[  382s] INTERNALERROR>   File "/usr/lib/python3.11/site-packages/_pytest/terminal.py", line 640, in _write_progress_information_filling_space
[  382s] INTERNALERROR>     self.write(msg.rjust(fill), flush=True, **{color: True})
[  382s] INTERNALERROR>   File "/usr/lib/python3.11/site-packages/_pytest/terminal.py", line 430, in write
[  382s] INTERNALERROR>     self._tw.write(content, flush=flush, **markup)
[  382s] INTERNALERROR>   File "/usr/lib/python3.11/site-packages/_pytest/_io/terminalwriter.py", line 167, in write
[  382s] INTERNALERROR>     self.flush()
[  382s] INTERNALERROR>   File "/usr/lib/python3.11/site-packages/_pytest/_io/terminalwriter.py", line 174, in flush
[  382s] INTERNALERROR>     self._file.flush()
[  382s] INTERNALERROR>   File "/usr/lib/python3.11/site-packages/pytest_timeout.py", line 241, in handler
[  382s] INTERNALERROR>     timeout_sigalrm(item, settings.timeout)
[  382s] INTERNALERROR>   File "/usr/lib/python3.11/site-packages/pytest_timeout.py", line 409, in timeout_sigalrm
[  382s] INTERNALERROR>     pytest.fail("Timeout >%ss" % timeout)
[  382s] INTERNALERROR>   File "/usr/lib/python3.11/site-packages/_pytest/outcomes.py", line 198, in fail
[  382s] INTERNALERROR>     raise Failed(msg=reason, pytrace=pytrace)
[  382s] INTERNALERROR> Failed: Timeout >60.0s
[  382s] 
[  382s] === 437 passed, 2 skipped, 19 deselected, 3953 warnings in 357.25s (0:05:57) ===
[  383s] error: Bad exit status from /var/tmp/rpm-tmp.84ozct (%check)

Full log: https://build.suse.de/package/live_build_log/SUSE:ALP:Source:Standard:Core:1.0:Build/python-urllib3:test/standard/ppc64le
Comment 1 Héctor Orón Martínez 2023-06-05 12:51:01 UTC
Note there is newer version in Factory:
https://build.opensuse.org/package/show/openSUSE:Factory:PowerPC/python-urllib3
Comment 2 Markéta Machová 2023-06-05 14:08:45 UTC
You have outdated urllib3 package. Please, sync with Factory and try again.
Comment 3 Ihno Krumreich 2023-06-06 08:22:30 UTC
Hi Markéta,
can you please submit it?
Comment 4 Markéta Machová 2023-06-06 11:54:13 UTC
I wish I could, currently I have some issues with my VPN, debugging.
Comment 5 Daniel Garcia 2023-06-06 15:21:27 UTC
I'm not sure if updating python-urllib3 is something that can be done without affecting other packages, the version of urllib3 version 2 breaks some packages and there are a lot of packages that uses it, so maybe updating this will bring more packages to update.
Comment 6 Daniel Garcia 2023-06-12 07:48:28 UTC
python-urllib3 is building correctly right now on ppc, so we can close this one.

https://build.suse.de/package/live_build_log/SUSE:ALP:Source:Standard:Core:1.0:Build/python-urllib3:test/standard/ppc64le
Comment 7 Ihno Krumreich 2023-07-30 20:41:09 UTC
Verified.