Bug 2389354

Summary: mkdocs: FTBFS in Fedora 43 and Rawhide: CLI tests failures
Product: [Fedora] Fedora Reporter: Karolina Surma <ksurma>
Component: mkdocsAssignee: Sandro Mani <manisandro>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 43CC: cstratak, davide, ekohlvan, epel-packagers-sig, manisandro, mhroncok, mkdocs-sig, rcallicotte
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
URL: https://koschei.fedoraproject.org/package/mkdocs
Whiteboard:
Fixed In Version: mkdocs-1.6.1-7.fc43 Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-09-28 01:01:13 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, 2384424, 2373702    

Description Karolina Surma 2025-08-19 08:38:29 UTC
Description of problem:
Package mkdocs fails to build from source in Fedora 43 and Rawhide.

Version-Release number of selected component (if applicable):
1.6.1-5.fc43

Steps to Reproduce:
koji build --scratch f44 mkdocs-1.6.1-5.fc43.src.rpm

Additional info:
This package is tracked by Koschei. See:
https://koschei.fedoraproject.org/package/mkdocs

Actual results:

24 tests related to CLI fail; an example failure:

FAIL: test_build_defaults (tests.cli_tests.CLITests.test_build_defaults)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib64/python3.14/unittest/mock.py", line 1432, in patched
    return func(*newargs, **newkeywargs)
  File "/builddir/build/BUILD/mkdocs-1.6.1-build/mkdocs-1.6.1/mkdocs/tests/cli_tests.py", line 228, in test_build_defaults
    mock_load_config.assert_called_once_with(
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
        config_file=None,
        ^^^^^^^^^^^^^^^^^
    ...<3 lines>...
        site_dir=None,
        ^^^^^^^^^^^^^^
    )
    ^
  File "/usr/lib64/python3.14/unittest/mock.py", line 245, in assert_called_once_with
    return mock.assert_called_once_with(*args, **kwargs)
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.14/unittest/mock.py", line 997, in assert_called_once_with
    return self.assert_called_with(*args, **kwargs)
           ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.14/unittest/mock.py", line 985, in assert_called_with
    raise AssertionError(_error_message()) from cause
AssertionError: expected call not found.
Expected: load_config(config_file=None, strict=None, theme=None, use_directory_urls=None, site_dir=None)
  Actual: load_config(config_file=None, strict=False, theme=None, use_directory_urls=False, site_dir=None)

Comment 1 Karolina Surma 2025-08-19 08:42:28 UTC
FTR, this may be caused by a regression in python3-click 8.2.2 and mitigated in https://src.fedoraproject.org/rpms/python-click/pull-request/27

Comment 2 Charalampos Stratakis 2025-08-21 11:45:06 UTC
With the click PR, instead of 24, 7 tests fail.

Comment 3 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 4 Fedora Update System 2025-09-23 18:51:08 UTC
FEDORA-2025-c4587bab59 (mkdocs-1.6.1-7.fc43) has been submitted as an update to Fedora 43.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-c4587bab59

Comment 5 Fedora Update System 2025-09-28 01:01:13 UTC
FEDORA-2025-c4587bab59 (mkdocs-1.6.1-7.fc43) has been pushed to the Fedora 43 stable repository.
If problem still persists, please make note of it in this bug report.