Bug 2336945

Summary: fedfind: FTBFS in Fedora Rawhide: AssertionError in TestRelease.test_all_stable
Product: [Fedora] Fedora Reporter: Karolina Surma <ksurma>
Component: fedfindAssignee: Adam Williamson <awilliam>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 42CC: awilliam
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
URL: https://koschei.fedoraproject.org/package/fedfind
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-03-30 14:54:34 UTC Type: ---
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: 2300528, 2322407    

Description Karolina Surma 2025-01-10 15:24:42 UTC
Description of problem:
Package fedfind fails to build from source in Fedora Rawhide.

Version-Release number of selected component (if applicable):
6.0.4-1.fc42

Steps to Reproduce:
koji build --scratch f42 fedfind-6.0.4-1.fc42.src.rpm

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

Reproducible: Always

Actual Results:  
_________________________ TestRelease.test_all_stable __________________________
self = <test_release.TestRelease object at 0x7f1ad48cf520>, http = None
httpkp = None
    @mock.patch("fedfind.release.CurrentRelease.exists", True)
    def test_all_stable(self, http, httpkp):
        """Test that we get the expected image dicts for all stable
        releases, using the test dl.fp.o and kojipkgs.fp.o servers.
        Also check there are no missing expected images (as a test
        for check_expected). Note this test is sensitive to the stupid
        'current/archive' detection in get_release: it will fail if
        the hardcoded cutoff there doesn't match the data in
        allstable.json.
        """
        ref = os.path.join(os.path.dirname(os.path.realpath(__file__)), "data", "allstable.json")
        with codecs.open(ref, encoding="utf-8") as reffh:
            expected = json.loads(reffh.read())
        # one thing we can handily check here, each time we bump the
        # backing data for this test to include a new release, is if
        # any sneaky new subvariants showed up...
        subvs = [subv.name for subv in fedfind.const.SUBVARIANTS]
        for relnum in expected:
            rel = fedfind.release.get_release(relnum)
            imgs = sorted(rel.all_images, key=lambda x: x["path"])
>           assert expected[relnum] == imgs
E           AssertionError: assert [{'alt': Fals... 1, ...}, ...] == [{'alt': Fals... 1, ...}, ...]
E             
E             At index 8 diff: {'alt': False, 'arch': 'aarch64', 'direct_url': 'http://localhost:5001/pub/archive/fedora/linux/releases/30/Container/aarch64/images/Fedora-Container-Base-30-1.2.aarch64.tar.xz', 'disc_number': 1, 'format': 'tar.xz', 'path': 'Container/aarch64/images/Fedora-Container-Base-30-1.2.aarch64.tar.xz', 'subvariant': 'Container_Base', 'type': '', 'url': 'http://localhost:5001/pub/archive/fedora/linux/releases/30/Container/aarch64/images/Fedora-Container-Base-30-1.2.aarch64.tar.xz', 'variant': 'Container'} != {'path': 'Container/aarch64/images/Fedora-Container-B...
E             
E             ...Full output truncated (2 lines hidden), use '-vv' to show
tests/test_release.py:1047: AssertionError
----------------------------- Captured stderr call -----------------------------
127.0.0.1 - - [04/Jan/2025 14:47:56] "GET /pub/archive/imagelist-archive HTTP/1.1" 200 -
127.0.0.1 - - [04/Jan/2025 14:47:56] "GET /pub/archive/imagelist-archive HTTP/1.1" 200 -
127.0.0.1 - - [04/Jan/2025 14:47:56] "GET /pub/archive/imagelist-archive HTTP/1.1" 200 -
127.0.0.1 - - [04/Jan/2025 14:47:56] "GET /pub/archive/imagelist-archive HTTP/1.1" 200 -
127.0.0.1 - - [04/Jan/2025 14:47:56] "GET /pub/archive/imagelist-archive HTTP/1.1" 200 -
127.0.0.1 - - [04/Jan/2025 14:47:56] "GET /pub/archive/imagelist-archive HTTP/1.1" 200 -
127.0.0.1 - - [04/Jan/2025 14:47:56] "GET /pub/archive/imagelist-archive HTTP/1.1" 200 -
127.0.0.1 - - [04/Jan/2025 14:47:56] "GET /pub/archive/imagelist-archive HTTP/1.1" 200 -
127.0.0.1 - - [04/Jan/2025 14:47:56] "GET /pub/archive/imagelist-archive HTTP/1.1" 200 -
127.0.0.1 - - [04/Jan/2025 14:47:56] "GET /pub/archive/imagelist-archive HTTP/1.1" 200 -
127.0.0.1 - - [04/Jan/2025 14:47:56] "GET /pub/archive/imagelist-archive HTTP/1.1" 200 -
127.0.0.1 - - [04/Jan/2025 14:47:56] "GET /pub/archive/imagelist-archive HTTP/1.1" 200 -
127.0.0.1 - - [04/Jan/2025 14:47:56] "GET /pub/archive/imagelist-archive HTTP/1.1" 200 -
127.0.0.1 - - [04/Jan/2025 14:47:56] "GET /pub/archive/imagelist-archive HTTP/1.1" 200 -
127.0.0.1 - - [04/Jan/2025 14:47:56] "GET /pub/archive/imagelist-archive HTTP/1.1" 200 -
127.0.0.1 - - [04/Jan/2025 14:47:56] "GET /pub/alt/imagelist-alt HTTP/1.1" 200 -
127.0.0.1 - - [04/Jan/2025 14:47:56] "GET /pub/archive/imagelist-archive HTTP/1.1" 200 -
127.0.0.1 - - [04/Jan/2025 14:47:56] "GET /pub/alt/imagelist-alt HTTP/1.1" 200 -
127.0.0.1 - - [04/Jan/2025 14:47:56] "GET /pub/archive/imagelist-archive HTTP/1.1" 200 -
127.0.0.1 - - [04/Jan/2025 14:47:56] "GET /pub/alt/imagelist-alt HTTP/1.1" 200 -
127.0.0.1 - - [04/Jan/2025 14:47:56] "GET /pub/archive/imagelist-archive HTTP/1.1" 200 -
127.0.0.1 - - [04/Jan/2025 14:47:56] "GET /pub/alt/imagelist-alt HTTP/1.1" 200 -
127.0.0.1 - - [04/Jan/2025 14:47:56] "GET /pub/archive/imagelist-archive HTTP/1.1" 200 -
127.0.0.1 - - [04/Jan/2025 14:47:56] "GET /pub/alt/imagelist-alt HTTP/1.1" 200 -
127.0.0.1 - - [04/Jan/2025 14:47:56] "GET /pub/archive/imagelist-archive HTTP/1.1" 200 -
127.0.0.1 - - [04/Jan/2025 14:47:56] "GET /pub/alt/imagelist-alt HTTP/1.1" 200 -
127.0.0.1 - - [04/Jan/2025 14:47:56] "GET /pub/archive/imagelist-archive HTTP/1.1" 200 -
127.0.0.1 - - [04/Jan/2025 14:47:56] "GET /pub/alt/imagelist-alt HTTP/1.1" 200 -
127.0.0.1 - - [04/Jan/2025 14:47:56] "GET /pub/archive/imagelist-archive HTTP/1.1" 200 -
127.0.0.1 - - [04/Jan/2025 14:47:56] "GET /pub/alt/imagelist-alt HTTP/1.1" 200 -
127.0.0.1 - - [04/Jan/2025 14:47:56] "GET /pub/archive/imagelist-archive HTTP/1.1" 200 -
127.0.0.1 - - [04/Jan/2025 14:47:56] "GET /pub/alt/imagelist-alt HTTP/1.1" 200 -
127.0.0.1 - - [04/Jan/2025 14:47:56] "GET /pub/archive/imagelist-archive HTTP/1.1" 200 -
127.0.0.1 - - [04/Jan/2025 14:47:56] "GET /pub/alt/imagelist-alt HTTP/1.1" 200 -
127.0.0.1 - - [04/Jan/2025 14:47:56] "GET /compose/metadata-archive/series/Fedora-24 HTTP/1.1" 200 -
127.0.0.1 - - [04/Jan/2025 14:47:56] code 404, message File not found
127.0.0.1 - - [04/Jan/2025 14:47:56] "GET /compose/metadata-archive/2016/Fedora-24-20160614.0/composeinfo.json HTTP/1.1" 404 -
127.0.0.1 - - [04/Jan/2025 14:47:56] code 404, message File not found
127.0.0.1 - - [04/Jan/2025 14:47:56] "GET /compose/metadata-archive/2016/Fedora-24-20160614.0/composeinfo.json HTTP/1.1" 404 -
127.0.0.1 - - [04/Jan/2025 14:47:56] code 404, message File not found
127.0.0.1 - - [04/Jan/2025 14:47:56] "GET /compose/metadata-archive/2016/Fedora-24-20160614.0/composeinfo.json HTTP/1.1" 404 -
127.0.0.1 - - [04/Jan/2025 14:47:56] code 404, message File not found
127.0.0.1 - - [04/Jan/2025 14:47:56] "GET /compose/metadata-archive/2016/Fedora-24-20160614.0/composeinfo.json HTTP/1.1" 404 -
127.0.0.1 - - [04/Jan/2025 14:47:56] code 404, message File not found
127.0.0.1 - - [04/Jan/2025 14:47:56] "GET /compose/metadata-archive/2016/Fedora-24-20160614.0/composeinfo.json HTTP/1.1" 404 -
127.0.0.1 - - [04/Jan/2025 14:47:56] "GET /compose/metadata-archive/2016/Fedora-24-20160614.0/images.json HTTP/1.1" 200 -
127.0.0.1 - - [04/Jan/2025 14:47:56] "GET /pub/archive/imagelist-archive HTTP/1.1" 200 -
127.0.0.1 - - [04/Jan/2025 14:47:56] "GET /pub/alt/imagelist-alt HTTP/1.1" 200 -
127.0.0.1 - - [04/Jan/2025 14:47:56] "GET /compose/metadata-archive/series/Fedora-25 HTTP/1.1" 200 -
127.0.0.1 - - [04/Jan/2025 14:47:56] code 404, message File not found
127.0.0.1 - - [04/Jan/2025 14:47:56] "GET /compose/metadata-archive/2016/Fedora-25-20161115.0/composeinfo.json HTTP/1.1" 404 -
127.0.0.1 - - [04/Jan/2025 14:47:56] code 404, message File not found
127.0.0.1 - - [04/Jan/2025 14:47:56] "GET /compose/metadata-archive/2016/Fedora-25-20161115.0/composeinfo.json HTTP/1.1" 404 -
127.0.0.1 - - [04/Jan/2025 14:47:56] code 404, message File not found
127.0.0.1 - - [04/Jan/2025 14:47:56] "GET /compose/metadata-archive/2016/Fedora-25-20161115.0/composeinfo.json HTTP/1.1" 404 -
127.0.0.1 - - [04/Jan/2025 14:47:56] code 404, message File not found
127.0.0.1 - - [04/Jan/2025 14:47:56] "GET /compose/metadata-archive/2016/Fedora-25-20161115.0/composeinfo.json HTTP/1.1" 404 -
127.0.0.1 - - [04/Jan/2025 14:47:56] code 404, message File not found
127.0.0.1 - - [04/Jan/2025 14:47:56] "GET /compose/metadata-archive/2016/Fedora-25-20161115.0/composeinfo.json HTTP/1.1" 404 -
127.0.0.1 - - [04/Jan/2025 14:47:56] "GET /compose/metadata-archive/2016/Fedora-25-20161115.0/images.json HTTP/1.1" 200 -
127.0.0.1 - - [04/Jan/2025 14:47:56] "GET /pub/archive/imagelist-archive HTTP/1.1" 200 -
127.0.0.1 - - [04/Jan/2025 14:47:56] "GET /pub/alt/imagelist-alt HTTP/1.1" 200 -
127.0.0.1 - - [04/Jan/2025 14:47:56] "GET /compose/metadata-archive/series/Fedora-26 HTTP/1.1" 200 -
127.0.0.1 - - [04/Jan/2025 14:47:56] code 404, message File not found
127.0.0.1 - - [04/Jan/2025 14:47:56] "GET /compose/metadata-archive/2017/Fedora-26-20170705.0/composeinfo.json HTTP/1.1" 404 -
127.0.0.1 - - [04/Jan/2025 14:47:56] code 404, message File not found
127.0.0.1 - - [04/Jan/2025 14:47:56] "GET /compose/metadata-archive/2017/Fedora-26-20170705.0/composeinfo.json HTTP/1.1" 404 -
127.0.0.1 - - [04/Jan/2025 14:47:56] code 404, message File not found
127.0.0.1 - - [04/Jan/2025 14:47:56] "GET /compose/metadata-archive/2017/Fedora-26-20170705.0/composeinfo.json HTTP/1.1" 404 -
127.0.0.1 - - [04/Jan/2025 14:47:56] code 404, message File not found
127.0.0.1 - - [04/Jan/2025 14:47:56] "GET /compose/metadata-archive/2017/Fedora-26-20170705.0/composeinfo.json HTTP/1.1" 404 -
127.0.0.1 - - [04/Jan/2025 14:47:56] code 404, message File not found
127.0.0.1 - - [04/Jan/2025 14:47:56] "GET /compose/metadata-archive/2017/Fedora-26-20170705.0/composeinfo.json HTTP/1.1" 404 -
127.0.0.1 - - [04/Jan/2025 14:47:56] "GET /compose/metadata-archive/2017/Fedora-26-20170705.0/images.json HTTP/1.1" 200 -
127.0.0.1 - - [04/Jan/2025 14:47:56] "GET /pub/archive/imagelist-archive HTTP/1.1" 200 -
127.0.0.1 - - [04/Jan/2025 14:47:56] "GET /pub/alt/imagelist-alt HTTP/1.1" 200 -
127.0.0.1 - - [04/Jan/2025 14:47:56] "GET /compose/metadata-archive/series/Fedora-27 HTTP/1.1" 200 -
127.0.0.1 - - [04/Jan/2025 14:47:56] code 404, message File not found
127.0.0.1 - - [04/Jan/2025 14:47:56] "GET /compose/metadata-archive/2017/Fedora-27-20171105.0/composeinfo.json HTTP/1.1" 404 -
127.0.0.1 - - [04/Jan/2025 14:47:56] code 404, message File not found
127.0.0.1 - - [04/Jan/2025 14:47:56] "GET /compose/metadata-archive/2017/Fedora-27-20171105.0/composeinfo.json HTTP/1.1" 404 -
127.0.0.1 - - [04/Jan/2025 14:47:56] code 404, message File not found
127.0.0.1 - - [04/Jan/2025 14:47:56] "GET /compose/metadata-archive/2017/Fedora-27-20171105.0/composeinfo.json HTTP/1.1" 404 -
127.0.0.1 - - [04/Jan/2025 14:47:56] code 404, message File not found
127.0.0.1 - - [04/Jan/2025 14:47:56] "GET /compose/metadata-archive/2017/Fedora-27-20171105.0/composeinfo.json HTTP/1.1" 404 -
127.0.0.1 - - [04/Jan/2025 14:47:56] code 404, message File not found
127.0.0.1 - - [04/Jan/2025 14:47:56] "GET /compose/metadata-archive/2017/Fedora-27-20171105.0/composeinfo.json HTTP/1.1" 404 -
127.0.0.1 - - [04/Jan/2025 14:47:56] "GET /compose/metadata-archive/2017/Fedora-27-20171105.0/images.json HTTP/1.1" 200 -
127.0.0.1 - - [04/Jan/2025 14:47:57] "GET /pub/archive/imagelist-archive HTTP/1.1" 200 -
127.0.0.1 - - [04/Jan/2025 14:47:57] "GET /pub/alt/imagelist-alt HTTP/1.1" 200 -
127.0.0.1 - - [04/Jan/2025 14:47:57] "GET /compose/metadata-archive/series/Fedora-28 HTTP/1.1" 200 -
127.0.0.1 - - [04/Jan/2025 14:47:57] code 404, message File not found
127.0.0.1 - - [04/Jan/2025 14:47:57] "GET /compose/metadata-archive/2018/Fedora-28-20180425.0/composeinfo.json HTTP/1.1" 404 -
127.0.0.1 - - [04/Jan/2025 14:47:57] code 404, message File not found
127.0.0.1 - - [04/Jan/2025 14:47:57] "GET /compose/metadata-archive/2018/Fedora-28-20180425.0/composeinfo.json HTTP/1.1" 404 -
127.0.0.1 - - [04/Jan/2025 14:47:57] code 404, message File not found
127.0.0.1 - - [04/Jan/2025 14:47:57] "GET /compose/metadata-archive/2018/Fedora-28-20180425.0/composeinfo.json HTTP/1.1" 404 -
127.0.0.1 - - [04/Jan/2025 14:47:57] code 404, message File not found
127.0.0.1 - - [04/Jan/2025 14:47:57] "GET /compose/metadata-archive/2018/Fedora-28-20180425.0/composeinfo.json HTTP/1.1" 404 -
127.0.0.1 - - [04/Jan/2025 14:47:57] code 404, message File not found
127.0.0.1 - - [04/Jan/2025 14:47:57] "GET /compose/metadata-archive/2018/Fedora-28-20180425.0/composeinfo.json HTTP/1.1" 404 -
127.0.0.1 - - [04/Jan/2025 14:47:57] "GET /compose/metadata-archive/2018/Fedora-28-20180425.0/images.json HTTP/1.1" 200 -
127.0.0.1 - - [04/Jan/2025 14:47:57] "GET /pub/archive/imagelist-archive HTTP/1.1" 200 -
127.0.0.1 - - [04/Jan/2025 14:47:57] "GET /pub/alt/imagelist-alt HTTP/1.1" 200 -
127.0.0.1 - - [04/Jan/2025 14:47:57] "GET /compose/metadata-archive/series/Fedora-29 HTTP/1.1" 200 -
127.0.0.1 - - [04/Jan/2025 14:47:57] code 404, message File not found
127.0.0.1 - - [04/Jan/2025 14:47:57] "GET /compose/metadata-archive/2018/Fedora-29-20181024.1/composeinfo.json HTTP/1.1" 404 -
127.0.0.1 - - [04/Jan/2025 14:47:57] code 404, message File not found
127.0.0.1 - - [04/Jan/2025 14:47:57] "GET /compose/metadata-archive/2018/Fedora-29-20181024.1/composeinfo.json HTTP/1.1" 404 -
127.0.0.1 - - [04/Jan/2025 14:47:57] code 404, message File not found
127.0.0.1 - - [04/Jan/2025 14:47:57] "GET /compose/metadata-archive/2018/Fedora-29-20181024.1/composeinfo.json HTTP/1.1" 404 -
127.0.0.1 - - [04/Jan/2025 14:47:57] code 404, message File not found
127.0.0.1 - - [04/Jan/2025 14:47:57] "GET /compose/metadata-archive/2018/Fedora-29-20181024.1/composeinfo.json HTTP/1.1" 404 -
127.0.0.1 - - [04/Jan/2025 14:47:57] code 404, message File not found
127.0.0.1 - - [04/Jan/2025 14:47:57] "GET /compose/metadata-archive/2018/Fedora-29-20181024.1/composeinfo.json HTTP/1.1" 404 -
127.0.0.1 - - [04/Jan/2025 14:47:57] "GET /compose/metadata-archive/2018/Fedora-29-20181024.1/images.json HTTP/1.1" 200 -
127.0.0.1 - - [04/Jan/2025 14:47:57] "GET /pub/archive/imagelist-archive HTTP/1.1" 200 -
127.0.0.1 - - [04/Jan/2025 14:47:57] "GET /pub/alt/imagelist-alt HTTP/1.1" 200 -
127.0.0.1 - - [04/Jan/2025 14:47:57] code 404, message File not found
127.0.0.1 - - [04/Jan/2025 14:47:57] "GET /compose/metadata-archive/series/Fedora-30 HTTP/1.1" 404 -
127.0.0.1 - - [04/Jan/2025 14:47:57] code 404, message File not found
127.0.0.1 - - [04/Jan/2025 14:47:57] "GET /compose/metadata-archive/series/Fedora-30 HTTP/1.1" 404 -
127.0.0.1 - - [04/Jan/2025 14:47:57] code 404, message File not found
127.0.0.1 - - [04/Jan/2025 14:47:57] "GET /compose/metadata-archive/series/Fedora-30 HTTP/1.1" 404 -
127.0.0.1 - - [04/Jan/2025 14:47:57] code 404, message File not found
127.0.0.1 - - [04/Jan/2025 14:47:57] "GET /compose/metadata-archive/series/Fedora-30 HTTP/1.1" 404 -
127.0.0.1 - - [04/Jan/2025 14:47:57] code 404, message File not found
127.0.0.1 - - [04/Jan/2025 14:47:57] "GET /compose/metadata-archive/series/Fedora-30 HTTP/1.1" 404 -

Comment 1 Aoife Moloney 2025-02-26 13:22:23 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 42 development cycle.
Changing version to 42.

Comment 2 Fedora Release Engineering 2025-03-30 04:22:20 UTC
Dear Maintainer,

your package has an open Fails To Build From Source bug for Fedora 42.
Action is required from you.

If you can fix your package to build, perform a build in koji, and either create
an update in bodhi, or close this bug without creating an update, if updating is
not appropriate [1]. If you are working on a fix, set the status to ASSIGNED to
acknowledge this. If you have already fixed this issue, please close this Bugzilla report.

Following the policy for such packages [2], your package will be orphaned if
this bug remains in NEW state more than 8 weeks (not sooner than 2025-03-07).

A week before the mass branching of Fedora 43 according to the schedule [3],
any packages not successfully rebuilt at least on Fedora 41 will be
retired regardless of the status of this bug.

[1] https://docs.fedoraproject.org/en-US/fesco/Updates_Policy/
[2] https://docs.fedoraproject.org/en-US/fesco/Fails_to_build_from_source_Fails_to_install/
[3] https://fedorapeople.org/groups/schedule/f-43/f-43-key-tasks.html

Comment 3 Adam Williamson 2025-03-30 14:54:34 UTC
I fixed this months ago, I don't know why the bot didn't notice the builds that have happened since.