Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fmf: Fix installation of our main-builds COPR #1543

Merged
merged 1 commit into from
Jan 31, 2024

Conversation

martinpitt
Copy link
Member

@martinpitt martinpitt commented Jan 31, 2024

Commit 5ab52df was not sufficient: The problem wasn't the tag repository, but that current Fedora rawhide has a 83-3 rebuild of cockpit-podman which is formally newer than our 83-1.<git stamp> revisions from our main-builds COPR.

If the env has a main-builds COPR (for reverse dependency tests), we always want to install the latest version from that. So give it the highest priority (uninutitively, lower priority wins), and use distro-sync to up- or downgrade the package as necessary, and consider only the COPR.

Similar to cockpit-project/cockpit@7ab102a551


This fixes failures like in containers/podman#21388

I tested this in a fedora rawhide container, and it works fine:

# dnf distro-sync --repo 'copr*' cockpit-podman
Last metadata expiration check: 0:02:37 ago on Wed Jan 31 08:18:09 2024.
Dependencies resolved.
=========================================================================================================================
 Package
    Arch   Version                                        Repository                                                Size
=========================================================================================================================
Downgrading:
 cockpit-podman
    noarch 83-1.20240131051553986455.main.6.g3e5c585.fc40 copr:copr.fedorainfracloud.org:group_cockpit:main-builds 668 k

Transaction Summary
=========================================================================================================================
Downgrade  1 Package

[...]

 Downgrading      : cockpit-podman-83-1.20240131051553986455.main.6.g3e5c585.fc40.noarch                            1/2 
  Cleanup          : cockpit-podman-83-3.fc40.noarch                                                                 2/2 

Commit 5ab52df was not sufficient: The problem wasn't the tag
repository, but that current Fedora rawhide has a 83-3 rebuild of
cockpit-podman which is formally newer than our 83-1.<git stamp>
revisions from our main-builds COPR.

If the env has a main-builds COPR (for reverse dependency tests), we
always want to install the latest version from that. So give it the
highest priority (uninutitively, lower priority wins), and use
`distro-sync` to up- or downgrade the package as necessary, and consider
*only* the COPR.

Similar to cockpit-project/cockpit@7ab102a551
@martinpitt martinpitt merged commit 4e25158 into cockpit-project:main Jan 31, 2024
19 checks passed
@martinpitt martinpitt deleted the tf-main-builds branch January 31, 2024 09:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants