Bug 2368746 - python-oslo-log fails to build with Python 3.14: 2 test failures (MismatchErrors)
Summary: python-oslo-log fails to build with Python 3.14: 2 test failures (MismatchErr...
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: python-oslo-log
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Gwyn Ciesla
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: PYTHON3.14
TreeView+ depends on / blocked
 
Reported: 2025-05-27 12:57 UTC by Miro Hrončok
Modified: 2025-06-09 21:08 UTC (History)
7 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2025-06-09 21:08:54 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Launchpad.net oslo.log/+bug/2111881 0 None None None 2025-05-28 06:51:43 UTC

Description Miro Hrončok 2025-05-27 12:57:47 UTC
python-oslo-log fails to build with Python 3.14.0b2.

==============================
Failed 2 tests - output below:
==============================

oslo_log.tests.unit.test_rate_limit.LogRateLimitTestCase.test_rate_limit_except_level
-------------------------------------------------------------------------------------

Captured traceback:
~~~~~~~~~~~~~~~~~~~
    Traceback (most recent call last):

      File "/usr/lib64/python3.14/unittest/mock.py", line 1427, in patched
    return func(*newargs, **newkeywargs)

      File "/builddir/build/BUILD/python-oslo-log-6.1.2-build/oslo.log-6.1.2/oslo_log/tests/unit/test_rate_limit.py", line 87, in test_rate_limit_except_level
    self.assertEqual(stream.getvalue(),
    ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^
                     'error 1\n'
                     ^^^^^^^^^^^
                     'Logging rate limit: drop after 1 records/1 sec\n'
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                     'critical 3\n'
                     ^^^^^^^^^^^^^^
                     'critical 4\n')
                     ^^^^^^^^^^^^^^^

      File "/usr/lib/python3.14/site-packages/testtools/testcase.py", line 421, in assertEqual
    self.assertThat(observed, matcher, message)
    ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^

      File "/usr/lib/python3.14/site-packages/testtools/testcase.py", line 511, in assertThat
    raise mismatch_error

    testtools.matchers._impl.MismatchError: !=:
reference = '''\
error 1
critical 3
critical 4
'''
actual    = '''\
error 1
Logging rate limit: drop after 1 records/1 sec
critical 3
critical 4
'''



oslo_log.tests.unit.test_rate_limit.LogRateLimitTestCase.test_rate_limit
------------------------------------------------------------------------

Captured traceback:
~~~~~~~~~~~~~~~~~~~
    Traceback (most recent call last):

      File "/usr/lib64/python3.14/unittest/mock.py", line 1427, in patched
    return func(*newargs, **newkeywargs)

      File "/builddir/build/BUILD/python-oslo-log-6.1.2-build/oslo.log-6.1.2/oslo_log/tests/unit/test_rate_limit.py", line 59, in test_rate_limit
    self.assertEqual(stream.getvalue(),
    ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^
                     'message 1\n'
                     ^^^^^^^^^^^^^
                     'message 2\n'
                     ^^^^^^^^^^^^^
                     'Logging rate limit: drop after 2 records/1 sec\n')
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

      File "/usr/lib/python3.14/site-packages/testtools/testcase.py", line 421, in assertEqual
    self.assertThat(observed, matcher, message)
    ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^

      File "/usr/lib/python3.14/site-packages/testtools/testcase.py", line 511, in assertThat
    raise mismatch_error

    testtools.matchers._impl.MismatchError: !=:
reference = '''\
message 1
message 2
'''
actual    = '''\
message 1
message 2
Logging rate limit: drop after 2 records/1 sec
'''




======
Totals
======
Ran: 187 tests in 1.2868 sec.
 - Passed: 184
 - Skipped: 1
 - Expected Fail: 0
 - Unexpected Success: 0
 - Failed: 2
Sum of execute time for each test: 1.4155 sec.

==============
Worker Balance
==============
 - Worker 0 (94 tests) => 0:00:00.200413
 - Worker 1 (93 tests) => 0:00:01.249145
py314: exit 1 (2.22 seconds) /builddir/build/BUILD/python-oslo-log-6.1.2-build/oslo.log-6.1.2> stestr run pid=855
  py314: FAIL code 1 (2.23 seconds)
  evaluation failed :( (2.32 seconds)

https://docs.python.org/3.14/whatsnew/3.14.html

For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/@python/python3.14/fedora-rawhide-x86_64/09092263-python-oslo-log/

For all our attempts to build python-oslo-log with Python 3.14, see:
https://copr.fedorainfracloud.org/coprs/g/python/python3.14/package/python-oslo-log/

Testing and mass rebuild of packages is happening in copr.
You can follow these instructions to test locally in mock if your package builds with Python 3.14:
https://copr.fedorainfracloud.org/coprs/g/python/python3.14/

Let us know here if you have any questions.

Python 3.14 is planned to be included in Fedora 43.
To make that update smoother, we're building Fedora packages with all pre-releases of Python 3.14.
A build failure prevents us from testing all dependent packages (transitive [Build]Requires),
so if this package is required a lot, it's important for us to get it fixed soon.

We'd appreciate help from the people who know this package best,
but if you don't want to work on this now, let us know so we can try to work around it on our side.

Comment 1 Fedora Admin user for bugzilla script actions 2025-06-07 02:20:13 UTC
This package has changed maintainer in Fedora. Reassigning to the new maintainer of this component.


Note You need to log in before you can comment on or make changes to this bug.