Bug 2389363

Summary: openapi-python-client: FTBFS in Fedora 43 and Rawhide: AssertionError: assert 'Unable to parse config' in '' in test_bad_config
Product: [Fedora] Fedora Reporter: Karolina Surma <ksurma>
Component: openapi-python-clientAssignee: Doğukan Çağatay <dogukan.cagatay>
Status: CLOSED ERRATA QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 43CC: dogukan.cagatay
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
URL: https://koschei.fedoraproject.org/package/openapi-python-client
Whiteboard:
Fixed In Version: openapi-python-client-0.26.0-2.fc43 Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-09-15 01:41:44 UTC 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: 2339432, 2373702, 2384424    

Description Karolina Surma 2025-08-19 09:59:55 UTC
Description of problem:
Package openapi-python-client fails to build from source in Fedora Rawhide.

Version-Release number of selected component (if applicable):
0.24.3-4.fc43

Steps to Reproduce:
koji build --scratch f44 openapi-python-client-0.24.3-4.fc43.src.rpm

Additional info:
This package is tracked by Koschei. See:
https://koschei.fedoraproject.org/package/openapi-python-client

Results:
_______________________________ test_bad_config ________________________________
    def test_bad_config() -> None:
        from openapi_python_client.cli import app
    
        config_path = "config/path"
        path = "cool/path"
    
        result = runner.invoke(app, ["generate", f"--config={config_path}", f"--path={path}"])
    
        assert result.exit_code == 2
>       assert "Unable to parse config" in result.stdout
E       AssertionError: assert 'Unable to parse config' in ''
E        +  where '' = <Result SystemExit(2)>.stdout
tests/test_cli.py:24: AssertionError
=============================== warnings summary ===============================
tests/test_parser/test_properties/test_model_property.py::TestBuild::test_additional_schemas[additional_properties_schema4-expected_additional_properties4]
  /usr/lib/python3.14/site-packages/pydantic/main.py:463: UserWarning: Pydantic serializer warnings:
    PydanticSerializationUnexpectedValue(Expected `enum` - serialized value may not be as expected [input_value='string', input_type=str])
    PydanticSerializationUnexpectedValue(Expected `list[enum]` - serialized value may not be as expected [input_value='string', input_type=str])
    return self.__pydantic_serializer__.to_python(
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
=========================== short test summary info ============================
FAILED tests/test_cli.py::test_bad_config - AssertionError: assert 'Unable to...

Comment 1 Miro Hrončok 2025-08-26 11:08:43 UTC
Hello. This is a bulk comment.

This package still needs to be rebuilt and/or shipped with Python 3.14.0rc2+ bytecode in Fedora 43.

The Beta Freeze of Fedora 43 is scheduled to start today. Please prioritize this bugzilla accordingly.

Thanks.

Comment 2 Fedora Update System 2025-08-31 06:42:42 UTC
FEDORA-2025-4fa4f61732 (openapi-python-client-0.26.0-1.fc43) has been submitted as an update to Fedora 43.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-4fa4f61732

Comment 3 Doğukan Çağatay 2025-08-31 06:51:57 UTC
Test error was identified to be related to `click` library breaking change in `8.2.0+`, it is reported to the upstream. 

Upstream bug report: https://github.com/openapi-generators/openapi-python-client/pull/1308
Upstream bug fix: https://github.com/openapi-generators/openapi-python-client/pull/1309

Package was patched with the fix applied to the version `0.26.0`. Bodhi update was created for Fedora 43.

Comment 4 Fedora Update System 2025-09-01 02:09:24 UTC
FEDORA-2025-1857d41ae2 has been pushed to the Fedora 43 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2025-1857d41ae2`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-1857d41ae2

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

Comment 5 Fedora Update System 2025-09-07 04:35:31 UTC
FEDORA-2025-1857d41ae2 has been pushed to the Fedora 43 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2025-1857d41ae2`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-1857d41ae2

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

Comment 6 Fedora Update System 2025-09-15 01:41:44 UTC
FEDORA-2025-1857d41ae2 (openapi-python-client-0.26.0-2.fc43 and python-typer-0.17.4-1.fc43) has been pushed to the Fedora 43 stable repository.
If problem still persists, please make note of it in this bug report.