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

Fix copr packages not installed in Fedora 41 and newer #680

Merged
merged 3 commits into from
Aug 28, 2024

Conversation

jchecahi
Copy link
Contributor

This PR fixes package installation issues in tmt runs due to dnf5 incompatibilities. Changes introduced:

  • Added a check to ensure that llvm-libs is a snapshots package coming from copr (~pre version)
  • Rewrite fix for dnf5 not resolving the copr runtime dependency repo. Implementation in Workaround dnf5 copr issue in snapshot-gating tmt plan #670 was forcing to use dnf4, while this one is dnf version agnostic.
  • Improve how testing-farm-tag-repository priority is handled. Before trying to modify the repo we check that it exists, hence we no longer need to mask the result of commands. This now works with both dnf4 and dnf5

Tested in several environments to verify all works as expected.

Fixes #671

Jesus Checa Hidalgo added 3 commits August 28, 2024 08:01
Add a prepare step that checks the version of installed llvm-libs
to ensure it's a copr package.
Followup fedora-llvm-team#670. Reimplement without using a specific dnf.
Replace the unexpanded $distname variable in the script
Before trying to modify the repo we check that it exists, hence we no
longer need to mask the result of commands. This now works with both
dnf4 and dnf5

Fixes fedora-llvm-team#671
@jchecahi jchecahi requested a review from kwk August 28, 2024 06:26
Copy link
Collaborator

@kwk kwk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

- name: "Check that snapshot (~pre) version of LLVM is installed"
how: shell
order: 99
script: rpm -q --qf "%{version}" llvm-libs | grep '~pre'
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is neat! Nice improvement to use the query format.

@kwk kwk merged commit 7bebcfe into fedora-llvm-team:main Aug 28, 2024
4 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Copr packages not installed in Fedora 41 and Rawhide
2 participants