#1146039 python-oslo.log: FTBFS: FAIL: oslo_log.tests.unit.test_log.LoggerTestCase.test_rotate_log

#1146039#5
Date:
2026-08-29 10:32:43 UTC
From:
To:
Dear maintainer:

During a rebuild of all packages in unstable, this package failed to build.

Below you will find the last part of the build log (probably the most
relevant part, but not necessarily). If required, the full build log
is available here:

https://people.debian.org/~sanvila/build-logs/202608/

About the archive rebuild: The build was made on virtual machines from AWS,
using sbuild and a reduced chroot with only build-essential packages.

If you cannot reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.

If this is really a bug in one of the build-depends, please use
reassign and add an affects on src:python-oslo.log, so that this is still
visible in the BTS web page for this package.

Thanks.
--------------------------------------------------------------------------------
[...]
======================================================================
FAIL: oslo_log.tests.unit.test_log.LoggerTestCase.test_rotate_log
oslo_log.tests.unit.test_log.LoggerTestCase.test_rotate_log
----------------------------------------------------------------------
testtools.testresult.real._StringException: Traceback (most recent call last):
  File "/usr/lib/python3.14/unittest/mock.py", line 1439, in patched
    return func(*newargs, **newkeywargs)
  File "/<<PKGBUILDDIR>>/oslo_log/tests/unit/test_log.py", line 184, in test_rotate_log
    self.assertEqual(self.log_handlers[0], handler_mock.return_value)
    ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/testtools/testcase.py", line 438, in assertEqual
    self.assertThat(observed, matcher, message)
    ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/testtools/testcase.py", line 587, in assertThat
    raise mismatch_error
testtools.matchers._impl.MismatchError: !=:
reference = <StreamHandler <stdout> (NOTSET)>
actual    = <MagicMock name='RotatingFileHandler()' id='140569650235440'>


======================================================================
FAIL: oslo_log.tests.unit.test_log.LoggerTestCase.test_timed_rotate_log
oslo_log.tests.unit.test_log.LoggerTestCase.test_timed_rotate_log
----------------------------------------------------------------------
testtools.testresult.real._StringException: Traceback (most recent call last):
  File "/usr/lib/python3.14/unittest/mock.py", line 1439, in patched
    return func(*newargs, **newkeywargs)
  File "/<<PKGBUILDDIR>>/oslo_log/tests/unit/test_log.py", line 166, in test_timed_rotate_log
    self.assertEqual(self.log_handlers[0], handler_mock.return_value)
    ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/testtools/testcase.py", line 438, in assertEqual
    self.assertThat(observed, matcher, message)
    ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/testtools/testcase.py", line 587, in assertThat
    raise mismatch_error
testtools.matchers._impl.MismatchError: !=:
reference = <StreamHandler <stdout> (NOTSET)>
actual    = <MagicMock name='TimedRotatingFileHandler()' id='140569650907184'>


======================================================================
FAIL: oslo_log.tests.unit.test_log.LoggerNameTestCase.test_rotate_log
oslo_log.tests.unit.test_log.LoggerNameTestCase.test_rotate_log
----------------------------------------------------------------------
testtools.testresult.real._StringException: Traceback (most recent call last):
  File "/usr/lib/python3.14/unittest/mock.py", line 1439, in patched
    return func(*newargs, **newkeywargs)
  File "/<<PKGBUILDDIR>>/oslo_log/tests/unit/test_log.py", line 184, in test_rotate_log
    self.assertEqual(self.log_handlers[0], handler_mock.return_value)
    ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/testtools/testcase.py", line 438, in assertEqual
    self.assertThat(observed, matcher, message)
    ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/testtools/testcase.py", line 587, in assertThat
    raise mismatch_error
testtools.matchers._impl.MismatchError: !=:
reference = <StreamHandler <stdout> (NOTSET)>
actual    = <MagicMock name='RotatingFileHandler()' id='140374972285344'>


======================================================================
FAIL: oslo_log.tests.unit.test_log.LoggerNameTestCase.test_timed_rotate_log
oslo_log.tests.unit.test_log.LoggerNameTestCase.test_timed_rotate_log
----------------------------------------------------------------------
testtools.testresult.real._StringException: Traceback (most recent call last):
  File "/usr/lib/python3.14/unittest/mock.py", line 1439, in patched
    return func(*newargs, **newkeywargs)
  File "/<<PKGBUILDDIR>>/oslo_log/tests/unit/test_log.py", line 166, in test_timed_rotate_log
    self.assertEqual(self.log_handlers[0], handler_mock.return_value)
    ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/testtools/testcase.py", line 438, in assertEqual
    self.assertThat(observed, matcher, message)
    ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/testtools/testcase.py", line 587, in assertThat
    raise mismatch_error
testtools.matchers._impl.MismatchError: !=:
reference = <StreamHandler <stdout> (NOTSET)>
actual    = <MagicMock name='TimedRotatingFileHandler()' id='140374972289376'>
---------------------------------------------------------------------- Ran 184 tests in 1.809s FAILED (failures=4, skipped=1) + echo ======> STESTR TEST SUITE FAILED FOR python3.14: displaying pip3 freeze output... ======> STESTR TEST SUITE FAILED FOR python3.14: displaying pip3 freeze output... + [ -x /usr/bin/pip3 ] + pip3 freeze WARNING: The directory '/sbuild-nonexistent/.cache/pip' or its parent directory is not owned or is not writable by the current user. The cache has been disabled. Check the permissions and owner of that directory. If executing pip with sudo, you should use sudo's -H flag. alabaster==1.0.0 attrs==26.1.0 autocommand==2.2.2 autopage==0.6.0 babel==2.17.0 bandit==1.9.4 bcrypt==5.0.0 blinker==1.9.0 certifi==2026.7.22 chardet==5.2.0 charset-normalizer==3.4.7 cliff==4.13.3 cmd2==4.2.0+ds coverage==7.8.2 cryptography==49.0.0 debtcollector==3.0.0 decorator==5.2.1 defusedxml==0.7.1 deprecation==2.1.0 dnspython==2.8.0 docutils==0.23 dogpile.cache==1.5.0 dulwich==1.2.12 eventlet==0.40.4 fixtures==4.3.0 gitdb==4.0.12 GitPython==3.1.50 greenlet==3.3.2 idna==3.19 imagesize==2.0.0 inflect==7.5.0 iso8601==2.1.0 jaraco.context==6.0.1 jaraco.functools==4.1.0 jaraco.text==4.0.0 Jinja2==3.1.6 jmespath==1.0.1 jschema-to-python==1.2.3 jsonpatch==1.33 jsonpickle==4.0.2+dfsg jsonpointer==2.4 keystoneauth1==5.13.1 linkify-it-py==2.1.0 lxml==6.1.0 Mako==1.3.10.dev0 markdown-it-py==4.2.0 MarkupSafe==3.0.3 mdurl==0.1.2 more-itertools==11.1.0 msgpack==1.1.2 netaddr==1.3.0 oauthlib==3.3.1 openstackdocstheme==3.2.0 openstacksdk==4.10.0 os-client-config==2.3.0 os-service-types==1.8.2 oslo.config==10.3.0 oslo.context==6.3.0 oslo.i18n==6.7.2 oslo.log==8.1.0 oslo.serialization==5.9.1 oslo.utils==10.0.1 oslotest==6.0.0 packaging==26.2 pbr==7.0.3 platformdirs==4.10.0 prettytable==3.17.0 prompt_toolkit==3.0.53 psutil==7.1.0 pyasyncore==1.0.2 Pygments==2.20.0 PyJWT==2.13.0 pyparsing==3.3.2 pyperclip==1.11.0 python-dateutil==2.9.0 python-subunit==1.4.6 PyYAML==6.0.3 requests==2.34.2 requestsexceptions==1.4.0 rfc3986==2.0.0 rich==15.0.0 rich-argparse==1.8.0 roman-numerals==4.1.0 sarif-om==1.0.4 setuptools==78.1.1 smmap==6.0.0 snowballstemmer==3.1.1 Sphinx==9.1.0 stestr==4.2.1 stevedore==5.7.0 testtools==2.8.5 tomlkit==0.13.3 typeguard==4.4.4 typing_extensions==4.16.0 uc-micro-py==2.0.0 urllib3==2.7.0 voluptuous==0.16.0 wcwidth==0.2.14 wheel==0.47.0 wrapt==2.1.1 zipp==3.23.0 + exit 1 make[1]: *** [debian/rules:22: override_dh_auto_install] Error 1 make[1]: Leaving directory '/<<PKGBUILDDIR>>' make: *** [debian/rules:7: binary] Error 2 dpkg-buildpackage: error: debian/rules binary subprocess failed with exit status 2 --------------------------------------------------------------------------------