Bug 2351387

Summary: python-osc-lib fails to build with Python 3.14: testtools.matchers._impl.MismatchError in 4 tests
Product: [Fedora] Fedora Reporter: Karolina Surma <ksurma>
Component: python-osc-libAssignee: Alfredo Moralejo <amoralej>
Status: NEW --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: amoralej, apevec, fti-bugs, jakub.ruzicka, jpena, karlthered, ksurma, mhroncok, openstack-sig
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2322407, 2339432, 2339435, 2371937, 2371952, 2371971, 2371979, 2371998, 2372005, 2372009, 2372016, 2372109, 2372114, 2372158, 2372175, 2372207    

Description Karolina Surma 2025-03-11 15:21:09 UTC
python-osc-lib fails to build with Python 3.14.0a5.

==============================
Failed 4 tests - output below:
==============================

osc_lib.tests.utils.test_tags.TestTagHelps.test_add_tag_filtering_option_to_parser
----------------------------------------------------------------------------------

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

      File "/builddir/build/BUILD/python-osc-lib-3.1.0-build/osc-lib-3.1.0/osc_lib/tests/utils/test_tags.py", line 221, in test_add_tag_filtering_option_to_parser
            self._test_tag_method_help(
            ~~~~~~~~~~~~~~~~~~~~~~~~~~^
                tags.add_tag_filtering_option_to_parser,
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ...<39 lines>...
    """,
    ^^^^
            )
            ^

      File "/builddir/build/BUILD/python-osc-lib-3.1.0-build/osc-lib-3.1.0/osc_lib/tests/utils/test_tags.py", line 214, in _test_tag_method_help
    self.assertEqual(exp_normal % options_name, parser.format_help())
    ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

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

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

    testtools.matchers._impl.MismatchError: !=:
reference = '''\
usage: run.py [-h] [--tags <tag>[,<tag>,...]] [--any-tags <tag>[,<tag>,...]]
              [--not-tags <tag>[,<tag>,...]]
              [--not-any-tags <tag>[,<tag>,...]]

options:
  -h, --help            show this help message and exit
  --tags <tag>[,<tag>,...]
                        List test which have all given tag(s) (Comma-separated
                        list of tags)
  --any-tags <tag>[,<tag>,...]
                        List test which have any given tag(s) (Comma-separated
                        list of tags)
  --not-tags <tag>[,<tag>,...]
                        Exclude test which have all given tag(s) (Comma-
                        separated list of tags)
  --not-any-tags <tag>[,<tag>,...]
                        Exclude test which have any given tag(s) (Comma-
                        separated list of tags)
'''
actual    = '''\
usage: python3 -m stestr.subunit_runner.run [-h] [--tags <tag>[,<tag>,...]]
                                            [--any-tags <tag>[,<tag>,...]]
                                            [--not-tags <tag>[,<tag>,...]]
                                            [--not-any-tags <tag>[,<tag>,...]]

options:
  -h, --help            show this help message and exit
  --tags <tag>[,<tag>,...]
                        List test which have all given tag(s) (Comma-separated
                        list of tags)
  --any-tags <tag>[,<tag>,...]
                        List test which have any given tag(s) (Comma-separated
                        list of tags)
  --not-tags <tag>[,<tag>,...]
                        Exclude test which have all given tag(s) (Comma-
                        separated list of tags)
  --not-any-tags <tag>[,<tag>,...]
                        Exclude test which have any given tag(s) (Comma-
                        separated list of tags)
'''

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/08736446-python-osc-lib/

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

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 Karolina Surma 2025-06-11 16:01:25 UTC
*** Bug 2372019 has been marked as a duplicate of this bug. ***