Bug 2328021 - python-scantree fails to build with Python 3.14: AssertionError: assert 1.2218716144561768 < (2.0 / 2)
Summary: python-scantree fails to build with Python 3.14: AssertionError: assert 1.221...
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: Fedora
Classification: Fedora
Component: python-scantree
Version: 43
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Scott K Logan
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: PYTHON3.14
TreeView+ depends on / blocked
 
Reported: 2024-11-22 11:57 UTC by Karolina Surma
Modified: 2025-08-27 14:48 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2025-08-27 14:48:31 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Karolina Surma 2024-11-22 11:57:12 UTC
python-scantree fails to build with Python 3.14.0a2.

____________________ TestScantree.test_multiprocess_speedup ____________________

self = <test_scantree.TestScantree object at 0x7f79470ca350>
tmpdir = local('/tmp/pytest-of-mockbuild/pytest-0/test_multiprocess_speedup0')

    @pytest.mark.skipif(os.name == "nt", reason="Windows runs too slow for set limits")
    def test_multiprocess_speedup(self, tmpdir):
        num_files = 4
        for i in range(num_files):
            tmpdir.join(f"file_{i}").ensure()
    
        wait_time = 0.5
        expected_min_elapsed = wait_time * num_files
        slow_file_apply = get_slow_identity_f(wait_time)
        start = time()
        scantree(tmpdir, file_apply=slow_file_apply)
        end = time()
        elapsed_sequential = end - start
        assert elapsed_sequential > expected_min_elapsed
    
        start = time()
        scantree(tmpdir, file_apply=slow_file_apply, jobs=num_files)
        end = time()
        elapsed_muliproc = end - start
>       assert elapsed_muliproc < expected_min_elapsed / 2
E       assert 1.2218716144561768 < (2.0 / 2)

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/08292747-python-scantree/

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

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 Aoife Moloney 2025-02-26 13:17:59 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 42 development cycle.
Changing version to 42.

Comment 2 Karolina Surma 2025-08-27 14:48:31 UTC
python-scantree-0.0.4-5.fc43 built successfully.


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