Bug 1212022 - python-pytest-qt:test-pyside6: fails to build on ALP
Summary: python-pytest-qt:test-pyside6: fails to build on ALP
Status: VERIFIED FIXED
Alias: None
Product: Granite
Classification: SUSE ALP - SUSE Adaptable Linux Platform
Component: Basesystem (show other bugs)
Version: unspecified
Hardware: All Other
: P1 - Urgent : Major
Target Milestone: ---
Assignee: Daniel Garcia
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-06-05 12:36 UTC by Héctor Orón Martínez
Modified: 2023-07-30 20:42 UTC (History)
6 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:36:03 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-pytest-qt:test-pyside6

Please sync new package from Factory, with related change that could fix the failures:

https://build.opensuse.org/package/view_file/openSUSE:Factory:PowerPC/python-pytest-qt/python-pytest-qt.changes?expand=1

or backport upstream fix for this:

  https://github.com/pytest-dev/pytest-qt/issues/488
  ->  https://bugreports.qt.io/browse/PYSIDE-2335

With the following error:

[   25s] + pytest-3.10 --ignore=_build.python3 -v
[   26s] ============================= test session starts ==============================
[   26s] platform linux -- Python 3.10.10, pytest-7.3.1, pluggy-1.0.0 -- /usr/bin/python3.10
[   26s] cachedir: .pytest_cache
[   26s] PySide6 6.5.0 -- Qt runtime 6.5.0 -- Qt compiled 6.5.0
[   26s] rootdir: /home/abuild/rpmbuild/BUILD/pytest-qt-4.2.0
[   26s] configfile: setup.cfg
[   26s] testpaths: tests
[   26s] plugins: qt-4.2.0
[   27s] collecting ... collected 380 items
[   27s] 
[   27s] tests/test_basics.py::test_basics PASSED                                 [  0%]
[   27s] tests/test_basics.py::test_qapp_default_name PASSED                      [  0%]
[   27s] tests/test_basics.py::test_qapp_name PASSED                              [  0%]
[   28s] tests/test_basics.py::test_qapp_cls PASSED                               [  1%]
[   29s] tests/test_basics.py::test_qapp_reuse_existing PASSED                    [  1%]
[   30s] tests/test_basics.py::test_qapp_reuse_wrong_type PASSED                  [  1%]
[   30s] tests/test_basics.py::test_key_events PASSED                             [  1%]
[   30s] tests/test_basics.py::test_mouse_events PASSED                           [  2%]
[   30s] tests/test_basics.py::test_stop PASSED                                   [  2%]
[   30s] tests/test_basics.py::test_wait_window[waitExposed-True] PASSED          [  2%]
[   30s] tests/test_basics.py::test_wait_window[waitExposed-False] PASSED         [  2%]
[   30s] tests/test_basics.py::test_wait_window[waitActive-True] PASSED           [  3%]
[   30s] tests/test_basics.py::test_wait_window[waitActive-False] PASSED          [  3%]
[   30s] tests/test_basics.py::test_wait_for_window_shown[True] PASSED            [  3%]
[   30s] tests/test_basics.py::test_wait_for_window_shown[False] PASSED           [  3%]
[   30s] tests/test_basics.py::test_wait_window_propagates_other_exception[waitExposed] PASSED [  4%]
[   30s] tests/test_basics.py::test_wait_window_propagates_other_exception[waitActive] PASSED [  4%]
[   30s] tests/test_basics.py::test_widget_kept_as_weakref PASSED                 [  4%]
[   30s] tests/test_basics.py::test_event_processing_before_and_after_teardown PASSED [  5%]
[   30s] tests/test_basics.py::test_header PASSED                                 [  5%]
[   30s] tests/test_basics.py::test_qvariant PASSED                               [  5%]
[   30s] tests/test_basics.py::test_widgets_closed_before_fixtures PASSED         [  5%]
[   30s] tests/test_basics.py::test_qtbot_wait PASSED                             [  6%]
[   30s] tests/test_basics.py::test_parse_ini_boolean_valid[True-True0] PASSED    [  6%]
[   30s] tests/test_basics.py::test_parse_ini_boolean_valid[False-False0] PASSED  [  6%]
[   30s] tests/test_basics.py::test_parse_ini_boolean_valid[True-True1] PASSED    [  6%]
[   30s] tests/test_basics.py::test_parse_ini_boolean_valid[False-False1] PASSED  [  7%]
[   30s] tests/test_basics.py::test_parse_ini_boolean_valid[true-True] PASSED     [  7%]
[   30s] tests/test_basics.py::test_parse_ini_boolean_valid[false-False] PASSED   [  7%]
[   30s] tests/test_basics.py::test_parse_ini_boolean_invalid PASSED              [  7%]
[   30s] tests/test_basics.py::test_qt_api_ini_config[pyqt5] PASSED               [  8%]
[   31s] tests/test_basics.py::test_qt_api_ini_config[pyqt6] PASSED               [  8%]
[   31s] tests/test_basics.py::test_qt_api_ini_config[pyside2] PASSED             [  8%]
[   32s] tests/test_basics.py::test_qt_api_ini_config[pyside6] PASSED             [  8%]
[   32s] tests/test_basics.py::test_qt_api_ini_config_with_envvar[pyqt5] PASSED   [  9%]
[   32s] tests/test_basics.py::test_qt_api_ini_config_with_envvar[pyqt6] PASSED   [  9%]
[   33s] tests/test_basics.py::test_qt_api_ini_config_with_envvar[pyside2] PASSED [  9%]
[   34s] tests/test_basics.py::test_qt_api_ini_config_with_envvar[pyside6] PASSED [ 10%]
[   34s] tests/test_basics.py::test_invalid_qt_api_envvar PASSED                  [ 10%]
[   35s] tests/test_basics.py::test_qapp_args PASSED                              [ 10%]
[   35s] tests/test_basics.py::test_importerror PASSED                            [ 10%]
[   35s] tests/test_basics.py::test_already_loaded_backend[pyqt5-PyQt5] PASSED    [ 11%]
[   35s] tests/test_basics.py::test_already_loaded_backend[pyqt6-PyQt6] PASSED    [ 11%]
[   35s] tests/test_basics.py::test_already_loaded_backend[pyside2-PySide2] PASSED [ 11%]
[   35s] tests/test_basics.py::test_already_loaded_backend[pyside6-PySide6] PASSED [ 11%]
[   35s] tests/test_basics.py::test_before_close_func PASSED                      [ 12%]
[   35s] tests/test_basics.py::test_addwidget_typeerror PASSED                    [ 12%]
[   35s] tests/test_exceptions.py::test_catch_exceptions_in_virtual_methods[False] PASSED [ 12%]
[   35s] tests/test_exceptions.py::test_catch_exceptions_in_virtual_methods[True] FAILED [ 12%]
[   35s] tests/test_exceptions.py::test_format_captured_exceptions PASSED         [ 13%]
[   35s] tests/test_exceptions.py::test_format_captured_exceptions_chained PASSED [ 13%]
[   35s] tests/test_exceptions.py::test_no_capture[True] FAILED                   [ 13%]
[   35s] tests/test_exceptions.py::test_no_capture[False] FAILED                  [ 13%]
[   35s] tests/test_exceptions.py::test_no_capture_preserves_custom_excepthook PASSED [ 14%]
[   35s] tests/test_exceptions.py::test_exception_capture_on_call FAILED          [ 14%]
[   35s] tests/test_exceptions.py::test_exception_capture_on_widget_close FAILED  [ 14%]
[   36s] tests/test_exceptions.py::test_exception_capture_on_fixture_setup_and_teardown[setup] FAILED [ 15%]
[   36s] tests/test_exceptions.py::test_exception_capture_on_fixture_setup_and_teardown[teardown] FAILED [ 15%]
[   36s] tests/test_exceptions.py::test_capture_exceptions_context_manager 
[   36s] INTERNALERROR> Traceback (most recent call last):
[   36s] INTERNALERROR>   File "/usr/lib/python3.10/site-packages/_pytest/main.py", line 269, in wrap_session
[   36s] INTERNALERROR>     session.exitstatus = doit(config, session) or 0
[   36s] INTERNALERROR>   File "/usr/lib/python3.10/site-packages/_pytest/main.py", line 323, in _main
[   36s] INTERNALERROR>     config.hook.pytest_runtestloop(session=session)
[   36s] INTERNALERROR>   File "/usr/lib/python3.10/site-packages/pluggy/_hooks.py", line 265, in __call__
[   36s] INTERNALERROR>     return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
[   36s] INTERNALERROR>   File "/usr/lib/python3.10/site-packages/pluggy/_manager.py", line 80, in _hookexec
[   36s] INTERNALERROR>     return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
[   36s] INTERNALERROR>   File "/usr/lib/python3.10/site-packages/pluggy/_callers.py", line 60, in _multicall
[   36s] INTERNALERROR>     return outcome.get_result()
[   36s] INTERNALERROR>   File "/usr/lib/python3.10/site-packages/pluggy/_result.py", line 60, in get_result
[   36s] INTERNALERROR>     raise ex[1].with_traceback(ex[2])
[   36s] INTERNALERROR>   File "/usr/lib/python3.10/site-packages/pluggy/_callers.py", line 39, in _multicall
[   36s] INTERNALERROR>     res = hook_impl.function(*args)
[   36s] INTERNALERROR>   File "/usr/lib/python3.10/site-packages/_pytest/main.py", line 348, in pytest_runtestloop
[   36s] INTERNALERROR>     item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem)
[   36s] INTERNALERROR>   File "/usr/lib/python3.10/site-packages/pluggy/_hooks.py", line 265, in __call__
[   36s] INTERNALERROR>     return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
[   36s] INTERNALERROR>   File "/usr/lib/python3.10/site-packages/pluggy/_manager.py", line 80, in _hookexec
[   36s] INTERNALERROR>     return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
[   36s] INTERNALERROR>   File "/usr/lib/python3.10/site-packages/pluggy/_callers.py", line 60, in _multicall
[   36s] INTERNALERROR>     return outcome.get_result()
[   36s] INTERNALERROR>   File "/usr/lib/python3.10/site-packages/pluggy/_result.py", line 60, in get_result
[   36s] INTERNALERROR>     raise ex[1].with_traceback(ex[2])
[   36s] INTERNALERROR>   File "/usr/lib/python3.10/site-packages/pluggy/_callers.py", line 39, in _multicall
[   36s] INTERNALERROR>     res = hook_impl.function(*args)
[   36s] INTERNALERROR>   File "/usr/lib/python3.10/site-packages/_pytest/runner.py", line 114, in pytest_runtest_protocol
[   36s] INTERNALERROR>     runtestprotocol(item, nextitem=nextitem)
[   36s] INTERNALERROR>   File "/usr/lib/python3.10/site-packages/_pytest/runner.py", line 133, in runtestprotocol
[   36s] INTERNALERROR>     reports.append(call_and_report(item, "call", log))
[   36s] INTERNALERROR>   File "/usr/lib/python3.10/site-packages/_pytest/runner.py", line 224, in call_and_report
[   36s] INTERNALERROR>     report: TestReport = hook.pytest_runtest_makereport(item=item, call=call)
[   36s] INTERNALERROR>   File "/usr/lib/python3.10/site-packages/pluggy/_hooks.py", line 265, in __call__
[   36s] INTERNALERROR>     return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
[   36s] INTERNALERROR>   File "/usr/lib/python3.10/site-packages/pluggy/_manager.py", line 80, in _hookexec
[   36s] INTERNALERROR>     return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
[   36s] INTERNALERROR>   File "/usr/lib/python3.10/site-packages/pluggy/_callers.py", line 55, in _multicall
[   36s] INTERNALERROR>     gen.send(outcome)
[   36s] INTERNALERROR>   File "/usr/lib/python3.10/site-packages/_pytest/skipping.py", line 266, in pytest_runtest_makereport
[   36s] INTERNALERROR>     rep = outcome.get_result()
[   36s] INTERNALERROR>   File "/usr/lib/python3.10/site-packages/pluggy/_result.py", line 60, in get_result
[   36s] INTERNALERROR>     raise ex[1].with_traceback(ex[2])
[   36s] INTERNALERROR>   File "/usr/lib/python3.10/site-packages/pluggy/_callers.py", line 39, in _multicall
[   36s] INTERNALERROR>     res = hook_impl.function(*args)
[   36s] INTERNALERROR>   File "/usr/lib/python3.10/site-packages/_pytest/runner.py", line 368, in pytest_runtest_makereport
[   36s] INTERNALERROR>     return TestReport.from_item_and_call(item, call)
[   36s] INTERNALERROR>   File "/usr/lib/python3.10/site-packages/_pytest/reports.py", line 359, in from_item_and_call
[   36s] INTERNALERROR>     longrepr = item.repr_failure(excinfo)
[   36s] INTERNALERROR>   File "/usr/lib/python3.10/site-packages/_pytest/python.py", line 1833, in repr_failure
[   36s] INTERNALERROR>     return self._repr_failure_py(excinfo, style=style)
[   36s] INTERNALERROR>   File "/usr/lib/python3.10/site-packages/_pytest/nodes.py", line 484, in _repr_failure_py
[   36s] INTERNALERROR>     return excinfo.getrepr(
[   36s] INTERNALERROR>   File "/usr/lib/python3.10/site-packages/_pytest/_code/code.py", line 669, in getrepr
[   36s] INTERNALERROR>     return fmt.repr_excinfo(self)
[   36s] INTERNALERROR>   File "/usr/lib/python3.10/site-packages/_pytest/_code/code.py", line 946, in repr_excinfo
[   36s] INTERNALERROR>     reprtraceback = self.repr_traceback(excinfo_)
[   36s] INTERNALERROR>   File "/usr/lib/python3.10/site-packages/_pytest/_code/code.py", line 873, in repr_traceback
[   36s] INTERNALERROR>     reprentry = self.repr_traceback_entry(entry, einfo)
[   36s] INTERNALERROR>   File "/usr/lib/python3.10/site-packages/_pytest/_code/code.py", line 824, in repr_traceback_entry
[   36s] INTERNALERROR>     s = self.get_source(source, line_index, excinfo, short=short)
[   36s] INTERNALERROR>   File "/usr/lib/python3.10/site-packages/_pytest/_code/code.py", line 762, in get_source
[   36s] INTERNALERROR>     lines.extend(self.get_exconly(excinfo, indent=indent, markall=True))
[   36s] INTERNALERROR>   File "/usr/lib/python3.10/site-packages/_pytest/_code/code.py", line 774, in get_exconly
[   36s] INTERNALERROR>     exlines = excinfo.exconly(tryshort=True).split("\n")
[   36s] INTERNALERROR>   File "/usr/lib/python3.10/site-packages/_pytest/_code/code.py", line 588, in exconly
[   36s] INTERNALERROR>     lines = format_exception_only(self.type, self.value)
[   36s] INTERNALERROR>   File "/usr/lib64/python3.10/traceback.py", line 155, in format_exception_only
[   36s] INTERNALERROR>     te = TracebackException(type(value), value, None, compact=True)
[   36s] INTERNALERROR>   File "/usr/lib/python3.10/site-packages/exceptiongroup/_formatting.py", line 182, in __init__
[   36s] INTERNALERROR>     e.__context__.__traceback__,
[   36s] INTERNALERROR> AttributeError: 'str' object has no attribute '__traceback__'
[   36s] 
[   36s] ========================= 7 failed, 51 passed in 9.53s =========================
[   36s] error: Bad exit status from /var/tmp/rpm-tmp.sMTUFL (%check)
[   36s] 

Full log: https://build.suse.de/package/live_build_log/SUSE:ALP:Source:Standard:Core:1.0:Build/python-pytest-qt:test-pyside6/standard/ppc64le
Comment 1 Daniel Garcia 2023-06-06 06:10:15 UTC
The current version in Factory build correctly in the SUSE:ALP:Source:Standard:Core:1.0:Build project.

Please, sync with Factory and try again.
Comment 2 Daniel Garcia 2023-06-06 07:05:24 UTC
I've just created a request that should fix this issue: https://build.suse.de/request/show/300645
Comment 3 Daniel Garcia 2023-06-12 06:39:04 UTC
It's building correctly now, so we can close this.
Comment 4 Ihno Krumreich 2023-07-30 20:42:31 UTC
Verified.