Bug 2259647

Summary: python-colcon-core FTBFS with python-setuptools 69.0.3 (coming to Fedora Rawhide)
Product: [Fedora] Fedora Reporter: Karolina Surma <ksurma>
Component: python-colcon-coreAssignee: Scott K Logan <logans>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: logans
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-colcon-core-0.15.2-1.fc38 python-colcon-core-0.15.2-1.el8 python-colcon-core-0.15.2-1.fc39 python-colcon-core-0.15.2-1.el9 python-colcon-core-0.15.2-1.el7 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-02-01 01:24:43 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: 2250718    

Description Karolina Surma 2024-01-22 14:27:45 UTC
python-colcon-core FTBFS with python-setuptools 69.0.3 (coming to Fedora Rawhide).

______________________________ test_build_package ______________________________

    def test_build_package():
        event_loop = new_event_loop()
        asyncio.set_event_loop(event_loop)
        try:
            with TemporaryDirectory(prefix='test_colcon_') as tmp_path_str:
                tmp_path = Path(tmp_path_str)
                python_build_task = PythonBuildTask()
                package = PackageDescriptor(tmp_path / 'src')
                package.name = 'test_package'
                package.type = 'python'
    
                context = TaskContext(
                    pkg=package,
                    args=SimpleNamespace(
                        path=str(tmp_path / 'src'),
                        build_base=str(tmp_path / 'build'),
                        install_base=str(tmp_path / 'install'),
                        symlink_install=False,
                    ),
                    dependencies={}
                )
                python_build_task.set_context(context=context)
    
                pkg = python_build_task.context.pkg
    
                pkg.path.mkdir()
                (pkg.path / 'setup.py').write_text(
                    'from setuptools import setup\n'
                    'setup(\n'
                    '    name="test_package",\n'
                    '    packages=["my_module"],\n'
                    ')\n'
                )
                (pkg.path / 'my_module').mkdir()
                (pkg.path / 'my_module' / '__init__.py').touch()
    
                src_base = Path(python_build_task.context.args.path)
    
                source_files_before = set(src_base.rglob('*'))
                rc = event_loop.run_until_complete(python_build_task.build())
                assert not rc
                source_files_after = set(src_base.rglob('*'))
                assert source_files_before == source_files_after
    
                build_base = Path(python_build_task.context.args.build_base)
                assert 1 == len(list(build_base.rglob('my_module/__init__.py')))
    
                install_base = Path(python_build_task.context.args.install_base)
                assert 1 == len(list(install_base.rglob('my_module/__init__.py')))
    
                pkg_info, = install_base.rglob('PKG-INFO')
>               assert 'Name: test-package' in pkg_info.read_text().splitlines()
E               AssertionError: assert 'Name: test-package' in ['Metadata-Version: 2.1', 'Name: test_package', 'Version: 0.0.0']
E                +  where ['Metadata-Version: 2.1', 'Name: test_package', 'Version: 0.0.0'] = <built-in method splitlines of str object at 0x7f3083b62aa0>()
E                +    where <built-in method splitlines of str object at 0x7f3083b62aa0> = 'Metadata-Version: 2.1\nName: test_package\nVersion: 0.0.0\n'.splitlines
E                +      where 'Metadata-Version: 2.1\nName: test_package\nVersion: 0.0.0\n' = <bound method Path.read_text of PosixPath('/tmp/test_colcon_gbxgy_nc/install/lib/python3.12/site-packages/test_package-0.0.0-py3.12.egg-info/PKG-INFO')>()
E                +        where <bound method Path.read_text of PosixPath('/tmp/test_colcon_gbxgy_nc/install/lib/python3.12/site-packages/test_package-0.0.0-py3.12.egg-info/PKG-INFO')> = PosixPath('/tmp/test_colcon_gbxgy_nc/install/lib/python3.12/site-packages/test_package-0.0.0-py3.12.egg-info/PKG-INFO').read_text

test/test_build_python.py:99: AssertionError
=========================== short test summary info ============================
FAILED test/test_build_python.py::test_build_package - AssertionError: assert...


Build log:
https://download.copr.fedorainfracloud.org/results/ksurma/setuptools-69.0.3:custom:isolated/fedora-rawhide-x86_64/06901519-python-colcon-core/builder-live.log.gz

All build attempts:
https://copr.fedorainfracloud.org/coprs/ksurma/setuptools-69.0.3/package/python-colcon-core/

Comment 1 Fedora Update System 2024-01-23 04:50:31 UTC
FEDORA-2024-98e23e52e8 has been submitted as an update to Fedora 39. https://bodhi.fedoraproject.org/updates/FEDORA-2024-98e23e52e8

Comment 2 Fedora Update System 2024-01-23 04:51:10 UTC
FEDORA-2024-b9b60dd054 has been submitted as an update to Fedora 38. https://bodhi.fedoraproject.org/updates/FEDORA-2024-b9b60dd054

Comment 3 Fedora Update System 2024-01-23 04:51:48 UTC
FEDORA-EPEL-2024-90a0477b15 has been submitted as an update to Fedora EPEL 9. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2024-90a0477b15

Comment 4 Fedora Update System 2024-01-23 04:52:26 UTC
FEDORA-EPEL-2024-8464293a37 has been submitted as an update to Fedora EPEL 7. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2024-8464293a37

Comment 5 Fedora Update System 2024-01-23 04:53:06 UTC
FEDORA-EPEL-2024-1ffe38b11b has been submitted as an update to Fedora EPEL 8. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2024-1ffe38b11b

Comment 6 Fedora Update System 2024-01-24 01:38:53 UTC
FEDORA-2024-98e23e52e8 has been pushed to the Fedora 39 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-98e23e52e8`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-98e23e52e8

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

Comment 7 Fedora Update System 2024-01-24 01:43:24 UTC
FEDORA-EPEL-2024-1ffe38b11b has been pushed to the Fedora EPEL 8 testing repository.

You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2024-1ffe38b11b

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

Comment 8 Fedora Update System 2024-01-24 01:50:41 UTC
FEDORA-EPEL-2024-8464293a37 has been pushed to the Fedora EPEL 7 testing repository.

You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2024-8464293a37

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

Comment 9 Fedora Update System 2024-01-24 01:53:47 UTC
FEDORA-EPEL-2024-90a0477b15 has been pushed to the Fedora EPEL 9 testing repository.

You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2024-90a0477b15

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

Comment 10 Fedora Update System 2024-01-24 02:27:46 UTC
FEDORA-2024-b9b60dd054 has been pushed to the Fedora 38 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-b9b60dd054`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-b9b60dd054

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

Comment 11 Fedora Update System 2024-02-01 01:24:43 UTC
FEDORA-2024-b9b60dd054 has been pushed to the Fedora 38 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 12 Fedora Update System 2024-02-01 01:43:04 UTC
FEDORA-EPEL-2024-1ffe38b11b has been pushed to the Fedora EPEL 8 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 13 Fedora Update System 2024-02-01 01:55:07 UTC
FEDORA-2024-98e23e52e8 has been pushed to the Fedora 39 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 14 Fedora Update System 2024-02-01 01:58:01 UTC
FEDORA-EPEL-2024-90a0477b15 has been pushed to the Fedora EPEL 9 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 15 Fedora Update System 2024-02-01 02:02:36 UTC
FEDORA-EPEL-2024-8464293a37 has been pushed to the Fedora EPEL 7 stable repository.
If problem still persists, please make note of it in this bug report.