Bug 2389363 - openapi-python-client: FTBFS in Fedora 43 and Rawhide: AssertionError: assert 'Unable to parse config' in '' in test_bad_config
Summary: openapi-python-client: FTBFS in Fedora 43 and Rawhide: AssertionError: assert...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: openapi-python-client
Version: 43
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Doğukan Çağatay
QA Contact:
URL: https://koschei.fedoraproject.org/pac...
Whiteboard:
Depends On:
Blocks: F43FTBFS PYC3.14rc3 F44FTBFS, RAWHIDEFTBFS
TreeView+ depends on / blocked
 
Reported: 2025-08-19 09:59 UTC by Karolina Surma
Modified: 2025-09-15 01:41 UTC (History)
1 user (show)

Fixed In Version: openapi-python-client-0.26.0-2.fc43
Clone Of:
Environment:
Last Closed: 2025-09-15 01:41:44 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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.


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