Bug 2297674

Summary: python-oslo-config fails to build in Rwahide with Python 3.13
Product: [Fedora] Fedora Reporter: Miro Hrončok <mhroncok>
Component: python-oslo-configAssignee: Joel Capitao <jcapitao>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: rawhideCC: apevec, jcapitao, ksurma, markmc, openstack-sig
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: python-oslo-config-9.6.0-1.fc41 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-11-06 03:51:52 UTC Type: ---
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: 2260875, 2244836    

Description Miro Hrončok 2024-07-13 08:00:56 UTC
Building python-oslo-config-9.4.0-4.fc41 with tests enabled fails:


==============================
Failed 1 tests - output below:
==============================
oslo_config.tests.test_cfg.HelpTestCase.test_print_help_with_deprecated
-----------------------------------------------------------------------
Captured traceback:
~~~~~~~~~~~~~~~~~~~
    Traceback (most recent call last):
      File "/builddir/build/BUILD/python-oslo-config-9.4.0-build/oslo.config-9.4.0/oslo_config/tests/test_cfg.py", line 267, in test_print_help_with_deprecated
    self.assertIn('--a-bc A_BC, --d-ef A_BC, --d_ef A_BC', f.getvalue())
    ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/usr/lib/python3.13/site-packages/testtools/testcase.py", line 401, in assertIn
    self.assertThat(haystack, Contains(needle), message)
    ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/usr/lib/python3.13/site-packages/testtools/testcase.py", line 482, in assertThat
    raise mismatch_error
    testtools.matchers._impl.MismatchError: '--a-bc A_BC, --d-ef A_BC, --d_ef A_BC' not in "usage: test [-h] [--a-bc A_BC] [--config-dir DIR] [--config-file PATH]\n            [--u-vw U_VW] [--version]\n\nsomedesc\n\noptions:\n  -h, --help            show this help message and exit\n  --a-bc, --d-ef, --d_ef A_BC\n  --config-dir DIR      Path to a config directory to pull `*.conf` files\n                        from. This file set is sorted, so as to provide a\n                        predictable parse order if individual options are\n                        over-ridden. The set is parsed after the file(s)\n                        specified via previous --config-file, arguments hence\n                        over-ridden options in the directory take precedence.\n                        This option must be set from the command-line.\n  --config-file PATH    Path to a config file to use. Multiple config files\n                        can be specified, with values in later files taking\n                        precedence. Defaults to None. This option must be set\n                        from the command-line.\n  --u-vw, --x-yz, --x_yz U_VW\n  --version             show program's version number and exit\n\ntepilog\n"
======
Totals
======
Ran: 970 tests in 0.4166 sec.
 - Passed: 969
 - Skipped: 0
 - Expected Fail: 0
 - Unexpected Success: 0
 - Failed: 1
Sum of execute time for each test: 1.7361 sec.
==============
Worker Balance
==============
 - Worker 0 (162 tests) => 0:00:00.388106
 - Worker 1 (162 tests) => 0:00:00.354187
 - Worker 2 (162 tests) => 0:00:00.371493
 - Worker 3 (162 tests) => 0:00:00.400677
 - Worker 4 (161 tests) => 0:00:00.391893
 - Worker 5 (161 tests) => 0:00:00.301707
py313: exit 1 (2.56 seconds) /builddir/build/BUILD/python-oslo-config-9.4.0-build/oslo.config-9.4.0> stestr run --suppress-attachments pid=822
  py313: FAIL code 1 (2.58 seconds)
  evaluation failed :( (2.65 seconds)
error: Bad exit status from /var/tmp/rpm-tmp.E2pu2K (%check)
    Bad exit status from /var/tmp/rpm-tmp.E2pu2K (%check)


Reproducible: Always

Steps to Reproduce:
0. on branch rawhide
1. fedpkg build
Actual Results:  
failure

Expected Results:  
success

Comment 1 Fedora Release Engineering 2024-09-29 04:22:22 UTC
Dear Maintainer,

your package has an open Fails To Build From Source bug for Fedora 41.
Action is required from you.

If you can fix your package to build, perform a build in koji, and either create
an update in bodhi, or close this bug without creating an update, if updating is
not appropriate [1]. If you are working on a fix, set the status to ASSIGNED to
acknowledge this. If you have already fixed this issue, please close this Bugzilla report.

Following the policy for such packages [2], your package will be orphaned if
this bug remains in NEW state more than 8 weeks (not sooner than 2024-09-07).

A week before the mass branching of Fedora 42 according to the schedule [3],
any packages not successfully rebuilt at least on Fedora 40 will be
retired regardless of the status of this bug.

[1] https://docs.fedoraproject.org/en-US/fesco/Updates_Policy/
[2] https://docs.fedoraproject.org/en-US/fesco/Fails_to_build_from_source_Fails_to_install/
[3] https://fedorapeople.org/groups/schedule/f-42/f-42-key-tasks.html

Comment 2 Fedora Release Engineering 2024-10-20 04:22:14 UTC
Dear Maintainer,

your package has an open Fails To Build From Source bug for Fedora 41.
Action is required from you.

If you can fix your package to build, perform a build in koji, and either create
an update in bodhi, or close this bug without creating an update, if updating is
not appropriate [1]. If you are working on a fix, set the status to ASSIGNED to
acknowledge this. If you have already fixed this issue, please close this Bugzilla report.

Following the policy for such packages [2], your package will be orphaned if
this bug remains in NEW state more than 8 weeks (not sooner than 2024-09-07).

A week before the mass branching of Fedora 42 according to the schedule [3],
any packages not successfully rebuilt at least on Fedora 40 will be
retired regardless of the status of this bug.

[1] https://docs.fedoraproject.org/en-US/fesco/Updates_Policy/
[2] https://docs.fedoraproject.org/en-US/fesco/Fails_to_build_from_source_Fails_to_install/
[3] https://fedorapeople.org/groups/schedule/f-42/f-42-key-tasks.html

Comment 4 Fedora Update System 2024-10-28 12:15:58 UTC
FEDORA-2024-29d94a172e (python-oslo-config-9.6.0-1.fc41) has been submitted as an update to Fedora 41.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-29d94a172e

Comment 6 Fedora Update System 2024-10-29 01:31:40 UTC
FEDORA-2024-29d94a172e has been pushed to the Fedora 41 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-29d94a172e`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-29d94a172e

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 7 Fedora Update System 2024-11-06 03:51:52 UTC
FEDORA-2024-29d94a172e (python-oslo-config-9.6.0-1.fc41) has been pushed to the Fedora 41 stable repository.
If problem still persists, please make note of it in this bug report.