Source: python-mbed-host-tests
Version: 1.4.4-8
Severity: serious
Justification: FTBFS
Tags: trixie sid ftbfs
User: lu...@debian.org
Usertags: ftbfs-20231212 ftbfs-trixie

Hi,

During a rebuild of all packages in sid, your package failed to build
on amd64.


Relevant part (hopefully):
> make[1]: Entering directory '/<<PKGBUILDDIR>>'
> python3 setup.py egg_info
> running egg_info
> creating mbed_host_tests.egg-info
> writing mbed_host_tests.egg-info/PKG-INFO
> writing dependency_links to mbed_host_tests.egg-info/dependency_links.txt
> writing entry points to mbed_host_tests.egg-info/entry_points.txt
> writing requirements to mbed_host_tests.egg-info/requires.txt
> writing top-level names to mbed_host_tests.egg-info/top_level.txt
> writing manifest file 'mbed_host_tests.egg-info/SOURCES.txt'
> reading manifest file 'mbed_host_tests.egg-info/SOURCES.txt'
> reading manifest template 'MANIFEST.in'
> adding license file 'LICENSE'
> writing manifest file 'mbed_host_tests.egg-info/SOURCES.txt'
> PYBUILD_SYSTEM=custom \
> PYBUILD_TEST_ARGS="{interpreter} -m unittest discover -v -s test -p \"*.py\" 
> -t {dir}" \
> dh_auto_test
>       pybuild --test -i python{version} -p "3.12 3.11"
> D: pybuild pybuild:605: version: 6.20231204
> D: pybuild pybuild:606: ['/usr/bin/pybuild', '--test', '-i', 
> 'python{version}', '-p', '3.12 3.11']
> D: pybuild pybuild:39: cfg: Namespace(verbose=True, quiet=False, 
> really_quiet=False, detect_only=False, clean_only=False, 
> configure_only=False, build_only=False, install_only=False, test_only=True, 
> autopkgtest_only=False, list_systems=False, print_args=None, 
> before_clean=None, clean_args=None, after_clean=None, before_configure=None, 
> configure_args=None, after_configure=None, before_build=None, 
> build_args=None, after_build=None, before_install=None, install_args=None, 
> after_install=None, before_test=None, test_args=None, after_test=None, 
> test_nose=False, test_nose2=False, test_pytest=False, test_tox=False, 
> test_custom=False, dir='/<<PKGBUILDDIR>>', destdir='debian/tmp', 
> ext_destdir=None, ext_pattern='\\.so(\\.[^/]*)?$', ext_sub_pattern=None, 
> ext_sub_repl=None, install_dir=None, name='mbed-host-tests', system='custom', 
> versions=['3.12', '3.11'], interpreter=['python{version}'], disable=None, 
> custom_tests=True)
> D: pybuild __init__:37: cannot initialize 'cmake' plugin: Missing command 
> 'cmake'
> D: pybuild __init__:37: cannot initialize 'meson' plugin: Missing command 
> 'meson'
> D: pybuild tools:232: invoking: /usr/bin/dpkg-architecture
> D: pybuild pybuild:155: detected build system: custom (certainty: 99%)
> I: pybuild base:310: python3.12 -m unittest discover -v -s test -p "*.py" -t 
> /<<PKGBUILDDIR>>
> D: pybuild tools:232: invoking: python3.12 -m unittest discover -v -s test -p 
> "*.py" -t /<<PKGBUILDDIR>>
> /<<PKGBUILDDIR>>/test/host_test_os_detect.py:33: SyntaxWarning: invalid 
> escape sequence '\d'
>   self.re_float = re.compile("^\d+\.\d+$")
> test_example (test.basic.BasicTestCase.test_example) ... ok
> test.basic_ht (unittest.loader._FailedTest.test.basic_ht) ... ERROR
> test.conn_primitive_remote 
> (unittest.loader._FailedTest.test.conn_primitive_remote) ... ERROR
> test.event_callback_decorator 
> (unittest.loader._FailedTest.test.event_callback_decorator) ... ERROR
> test.host_registry (unittest.loader._FailedTest.test.host_registry) ... ERROR
> test.host_test_base (unittest.loader._FailedTest.test.host_test_base) ... 
> ERROR
> test.host_test_os_detect 
> (unittest.loader._FailedTest.test.host_test_os_detect) ... ERROR
> test.host_test_plugins (unittest.loader._FailedTest.test.host_test_plugins) 
> ... ERROR
> test.host_test_scheme (unittest.loader._FailedTest.test.host_test_scheme) ... 
> ERROR
> test.mps2_copy (unittest.loader._FailedTest.test.mps2_copy) ... ERROR
> test.mps2_reset (unittest.loader._FailedTest.test.mps2_reset) ... ERROR
> 
> ======================================================================
> ERROR: test.basic_ht (unittest.loader._FailedTest.test.basic_ht)
> ----------------------------------------------------------------------
> ImportError: Failed to import test module: test.basic_ht
> Traceback (most recent call last):
>   File "/usr/lib/python3.12/unittest/loader.py", line 394, in _find_test_path
>     module = self._get_module_from_name(name)
>              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>   File "/usr/lib/python3.12/unittest/loader.py", line 337, in 
> _get_module_from_name
>     __import__(name)
>   File "/<<PKGBUILDDIR>>/test/basic_ht.py", line 21, in <module>
>     from mbed_host_tests import get_plugin_caps
>   File "/<<PKGBUILDDIR>>/mbed_host_tests/__init__.py", line 30, in <module>
>     import imp
> ModuleNotFoundError: No module named 'imp'
> 
> 
> ======================================================================
> ERROR: test.conn_primitive_remote 
> (unittest.loader._FailedTest.test.conn_primitive_remote)
> ----------------------------------------------------------------------
> ImportError: Failed to import test module: test.conn_primitive_remote
> Traceback (most recent call last):
>   File "/usr/lib/python3.12/unittest/loader.py", line 394, in _find_test_path
>     module = self._get_module_from_name(name)
>              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>   File "/usr/lib/python3.12/unittest/loader.py", line 337, in 
> _get_module_from_name
>     __import__(name)
>   File "/<<PKGBUILDDIR>>/test/conn_primitive_remote.py", line 22, in <module>
>     from mbed_host_tests.host_tests_conn_proxy.conn_primitive_remote import 
> RemoteConnectorPrimitive
>   File "/<<PKGBUILDDIR>>/mbed_host_tests/__init__.py", line 30, in <module>
>     import imp
> ModuleNotFoundError: No module named 'imp'
> 
> 
> ======================================================================
> ERROR: test.event_callback_decorator 
> (unittest.loader._FailedTest.test.event_callback_decorator)
> ----------------------------------------------------------------------
> ImportError: Failed to import test module: test.event_callback_decorator
> Traceback (most recent call last):
>   File "/usr/lib/python3.12/unittest/loader.py", line 394, in _find_test_path
>     module = self._get_module_from_name(name)
>              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>   File "/usr/lib/python3.12/unittest/loader.py", line 337, in 
> _get_module_from_name
>     __import__(name)
>   File "/<<PKGBUILDDIR>>/test/event_callback_decorator.py", line 17, in 
> <module>
>     from mbed_host_tests.host_tests.base_host_test import BaseHostTest, 
> event_callback
>   File "/<<PKGBUILDDIR>>/mbed_host_tests/__init__.py", line 30, in <module>
>     import imp
> ModuleNotFoundError: No module named 'imp'
> 
> 
> ======================================================================
> ERROR: test.host_registry (unittest.loader._FailedTest.test.host_registry)
> ----------------------------------------------------------------------
> ImportError: Failed to import test module: test.host_registry
> Traceback (most recent call last):
>   File "/usr/lib/python3.12/unittest/loader.py", line 394, in _find_test_path
>     module = self._get_module_from_name(name)
>              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>   File "/usr/lib/python3.12/unittest/loader.py", line 337, in 
> _get_module_from_name
>     __import__(name)
>   File "/<<PKGBUILDDIR>>/test/host_registry.py", line 20, in <module>
>     from mbed_host_tests.host_tests_registry import HostRegistry
>   File "/<<PKGBUILDDIR>>/mbed_host_tests/__init__.py", line 30, in <module>
>     import imp
> ModuleNotFoundError: No module named 'imp'
> 
> 
> ======================================================================
> ERROR: test.host_test_base (unittest.loader._FailedTest.test.host_test_base)
> ----------------------------------------------------------------------
> ImportError: Failed to import test module: test.host_test_base
> Traceback (most recent call last):
>   File "/usr/lib/python3.12/unittest/loader.py", line 394, in _find_test_path
>     module = self._get_module_from_name(name)
>              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>   File "/usr/lib/python3.12/unittest/loader.py", line 337, in 
> _get_module_from_name
>     __import__(name)
>   File "/<<PKGBUILDDIR>>/test/host_test_base.py", line 21, in <module>
>     from mbed_host_tests.host_tests_registry import HostRegistry
>   File "/<<PKGBUILDDIR>>/mbed_host_tests/__init__.py", line 30, in <module>
>     import imp
> ModuleNotFoundError: No module named 'imp'
> 
> 
> ======================================================================
> ERROR: test.host_test_os_detect 
> (unittest.loader._FailedTest.test.host_test_os_detect)
> ----------------------------------------------------------------------
> ImportError: Failed to import test module: test.host_test_os_detect
> Traceback (most recent call last):
>   File "/usr/lib/python3.12/unittest/loader.py", line 394, in _find_test_path
>     module = self._get_module_from_name(name)
>              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>   File "/usr/lib/python3.12/unittest/loader.py", line 337, in 
> _get_module_from_name
>     __import__(name)
>   File "/<<PKGBUILDDIR>>/test/host_test_os_detect.py", line 25, in <module>
>     from mbed_host_tests.host_tests_plugins.host_test_plugins import 
> HostTestPluginBase
>   File "/<<PKGBUILDDIR>>/mbed_host_tests/__init__.py", line 30, in <module>
>     import imp
> ModuleNotFoundError: No module named 'imp'
> 
> 
> ======================================================================
> ERROR: test.host_test_plugins 
> (unittest.loader._FailedTest.test.host_test_plugins)
> ----------------------------------------------------------------------
> ImportError: Failed to import test module: test.host_test_plugins
> Traceback (most recent call last):
>   File "/usr/lib/python3.12/unittest/loader.py", line 394, in _find_test_path
>     module = self._get_module_from_name(name)
>              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>   File "/usr/lib/python3.12/unittest/loader.py", line 337, in 
> _get_module_from_name
>     __import__(name)
>   File "/<<PKGBUILDDIR>>/test/host_test_plugins.py", line 21, in <module>
>     from mbed_host_tests.host_tests_plugins.module_reset_mbed import 
> HostTestPluginResetMethod_Mbed
>   File "/<<PKGBUILDDIR>>/mbed_host_tests/__init__.py", line 30, in <module>
>     import imp
> ModuleNotFoundError: No module named 'imp'
> 
> 
> ======================================================================
> ERROR: test.host_test_scheme 
> (unittest.loader._FailedTest.test.host_test_scheme)
> ----------------------------------------------------------------------
> ImportError: Failed to import test module: test.host_test_scheme
> Traceback (most recent call last):
>   File "/usr/lib/python3.12/unittest/loader.py", line 394, in _find_test_path
>     module = self._get_module_from_name(name)
>              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>   File "/usr/lib/python3.12/unittest/loader.py", line 337, in 
> _get_module_from_name
>     __import__(name)
>   File "/<<PKGBUILDDIR>>/test/host_test_scheme.py", line 21, in <module>
>     from mbed_host_tests.host_tests_registry import HostRegistry
>   File "/<<PKGBUILDDIR>>/mbed_host_tests/__init__.py", line 30, in <module>
>     import imp
> ModuleNotFoundError: No module named 'imp'
> 
> 
> ======================================================================
> ERROR: test.mps2_copy (unittest.loader._FailedTest.test.mps2_copy)
> ----------------------------------------------------------------------
> ImportError: Failed to import test module: test.mps2_copy
> Traceback (most recent call last):
>   File "/usr/lib/python3.12/unittest/loader.py", line 394, in _find_test_path
>     module = self._get_module_from_name(name)
>              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>   File "/usr/lib/python3.12/unittest/loader.py", line 337, in 
> _get_module_from_name
>     __import__(name)
>   File "/<<PKGBUILDDIR>>/test/mps2_copy.py", line 22, in <module>
>     from mbed_host_tests.host_tests_plugins.module_copy_mps2 import 
> HostTestPluginCopyMethod_MPS2
>   File "/<<PKGBUILDDIR>>/mbed_host_tests/__init__.py", line 30, in <module>
>     import imp
> ModuleNotFoundError: No module named 'imp'
> 
> 
> ======================================================================
> ERROR: test.mps2_reset (unittest.loader._FailedTest.test.mps2_reset)
> ----------------------------------------------------------------------
> ImportError: Failed to import test module: test.mps2_reset
> Traceback (most recent call last):
>   File "/usr/lib/python3.12/unittest/loader.py", line 394, in _find_test_path
>     module = self._get_module_from_name(name)
>              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>   File "/usr/lib/python3.12/unittest/loader.py", line 337, in 
> _get_module_from_name
>     __import__(name)
>   File "/<<PKGBUILDDIR>>/test/mps2_reset.py", line 24, in <module>
>     from mbed_host_tests.host_tests_plugins.module_reset_mps2 import 
> HostTestPluginResetMethod_MPS2
>   File "/<<PKGBUILDDIR>>/mbed_host_tests/__init__.py", line 30, in <module>
>     import imp
> ModuleNotFoundError: No module named 'imp'
> 
> 
> ----------------------------------------------------------------------
> Ran 11 tests in 0.001s
> 
> FAILED (errors=10)
> E: pybuild pybuild:395: test: plugin custom failed with: exit code=1: 
> python3.12 -m unittest discover -v -s test -p "*.py" -t /<<PKGBUILDDIR>>
> Traceback (most recent call last):
>   File "/usr/bin/pybuild", line 393, in main
>     run(func, i, version, c)
>   File "/usr/bin/pybuild", line 331, in run
>     result = func(context, args)
>              ^^^^^^^^^^^^^^^^^^^
>   File "/usr/share/dh-python/dhpython/build/base.py", line 363, in 
> wrapped_func
>     raise Exception(msg)
> Exception: exit code=1: python3.12 -m unittest discover -v -s test -p "*.py" 
> -t /<<PKGBUILDDIR>>
> I: pybuild base:310: python3.11 -m unittest discover -v -s test -p "*.py" -t 
> /<<PKGBUILDDIR>>
> D: pybuild tools:232: invoking: python3.11 -m unittest discover -v -s test -p 
> "*.py" -t /<<PKGBUILDDIR>>
> test_example (test.basic.BasicTestCase.test_example) ... ok
> test_get_plugin_caps 
> (test.basic_ht.BasicHostTestsTestCase.test_get_plugin_caps) ... ok
> test_constructor 
> (test.conn_primitive_remote.ConnPrimitiveRemoteTestCase.test_constructor) ... 
> [1702331899.36][remote][INF] remote resources initialization: 
> remote(host=None, port=8000)
> [1702331899.36][remote][INF] remote resources count: 1
> [1702331899.37][remote][INF] remote resources flashing with 'test.bin'...
> [1702331899.37][remote][INF] opening connection to platform at baudrate='9600'
> [1702331899.37][remote][INF] remote resources reset...
> ok
> test_finish 
> (test.conn_primitive_remote.ConnPrimitiveRemoteTestCase.test_finish) ... 
> [1702331899.37][remote][INF] remote resources initialization: 
> remote(host=None, port=8000)
> [1702331899.37][remote][INF] remote resources count: 1
> [1702331899.37][remote][INF] remote resources flashing with 'test.bin'...
> [1702331899.37][remote][INF] opening connection to platform at baudrate='9600'
> [1702331899.37][remote][INF] remote resources reset...
> ok
> test_read (test.conn_primitive_remote.ConnPrimitiveRemoteTestCase.test_read) 
> ... [1702331899.37][remote][INF] remote resources initialization: 
> remote(host=None, port=8000)
> [1702331899.37][remote][INF] remote resources count: 1
> [1702331899.37][remote][INF] remote resources flashing with 'test.bin'...
> [1702331899.37][remote][INF] opening connection to platform at baudrate='9600'
> [1702331899.37][remote][INF] remote resources reset...
> ok
> test_reset 
> (test.conn_primitive_remote.ConnPrimitiveRemoteTestCase.test_reset) ... 
> [1702331899.38][remote][INF] remote resources initialization: 
> remote(host=None, port=8000)
> [1702331899.38][remote][INF] remote resources count: 1
> [1702331899.38][remote][INF] remote resources flashing with 'test.bin'...
> [1702331899.38][remote][INF] opening connection to platform at baudrate='9600'
> [1702331899.38][remote][INF] remote resources reset...
> [1702331899.38][remote][INF] remote resources reset...
> ok
> test_write 
> (test.conn_primitive_remote.ConnPrimitiveRemoteTestCase.test_write) ... 
> [1702331899.38][remote][INF] remote resources initialization: 
> remote(host=None, port=8000)
> [1702331899.38][remote][INF] remote resources count: 1
> [1702331899.38][remote][INF] remote resources flashing with 'test.bin'...
> [1702331899.38][remote][INF] opening connection to platform at baudrate='9600'
> [1702331899.38][remote][INF] remote resources reset...
> ok
> test_event_callback_decorator 
> (test.event_callback_decorator.TestEvenCallbackDecorator.test_event_callback_decorator)
>  ... ok
> test_get_host_test 
> (test.host_registry.HostRegistryTestCase.test_get_host_test) ... ok
> test_host_test_has_name_attribute 
> (test.host_registry.HostRegistryTestCase.test_host_test_has_name_attribute) 
> ... ok
> test_host_test_str_not_empty 
> (test.host_registry.HostRegistryTestCase.test_host_test_str_not_empty) ... ok
> test_is_host_test (test.host_registry.HostRegistryTestCase.test_is_host_test) 
> ... ok
> test_register_host_test 
> (test.host_registry.HostRegistryTestCase.test_register_host_test) ... ok
> test_unregister_host_test 
> (test.host_registry.HostRegistryTestCase.test_unregister_host_test) ... ok
> test_host_test_has_no_rampUpDown_attribute 
> (test.host_test_base.BaseHostTestTestCase.test_host_test_has_no_rampUpDown_attribute)
>  ... ok
> test_host_test_has_setup_teardown_attribute 
> (test.host_test_base.BaseHostTestTestCase.test_host_test_has_setup_teardown_attribute)
>  ... ok
> test_detect_os_support_ext 
> (test.host_test_os_detect.HostOSDetectionTestCase.test_detect_os_support_ext) 
> ... ok
> test_os_info (test.host_test_os_detect.HostOSDetectionTestCase.test_os_info) 
> ... ok
> test_os_support 
> (test.host_test_os_detect.HostOSDetectionTestCase.test_os_support) ... ok
> test_supported_os_name 
> (test.host_test_os_detect.HostOSDetectionTestCase.test_supported_os_name) ... 
> ok
> test_examle (test.host_test_plugins.HostOSDetectionTestCase.test_examle) ... 
> ok
> test_pyserial_version_detect 
> (test.host_test_plugins.HostOSDetectionTestCase.test_pyserial_version_detect) 
> ... ok
> test_host_test_class_has_test_attr 
> (test.host_test_scheme.HostRegistryTestCase.test_host_test_class_has_test_attr)
> Check if host test has 'result' class member ... ok
> test_host_test_class_test_attr_callable 
> (test.host_test_scheme.HostRegistryTestCase.test_host_test_class_test_attr_callable)
> Check if host test has callable 'result' class member ... ok
> test_host_test_class_test_attr_callable_args_num 
> (test.host_test_scheme.HostRegistryTestCase.test_host_test_class_test_attr_callable_args_num)
> Check if host test has callable setup(), result() and teardown() class member 
> has 2 arguments ... ok
> test_copy_bin (test.mps2_copy.MPS2CopyTestCase.test_copy_bin) ... ok
> test_copy_elf (test.mps2_copy.MPS2CopyTestCase.test_copy_elf) ... ok
> test_check_sync (test.mps2_reset.MPS2ResetTestCase.test_check_sync) ... ok
> 
> ----------------------------------------------------------------------
> Ran 28 tests in 0.280s
> 
> OK
>       rm -fr -- /tmp/dh-xdg-rundir-Dace5ifi
> dh_auto_test: error: pybuild --test -i python{version} -p "3.12 3.11" 
> returned exit code 13


The full build log is available from:
http://qa-logs.debian.net/2023/12/12/python-mbed-host-tests_1.4.4-8_unstable.log

All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20231212;users=lu...@debian.org
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20231212&fusertaguser=lu...@debian.org&allbugs=1&cseverity=1&ctags=1&caffected=1#results

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

If you reassign this bug to another package, please mark it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects

If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.

Reply via email to