Skip to content

Commit

Permalink
Workaround dnf5 copr issue in snapshot-gating tmt plan (#670)
Browse files Browse the repository at this point in the history
dnf5 copr plugin has problems resolving the distname variable that
we use in our Runtime dependency repos. This is needed to be able to
use both fedora and rhel chroots. We will use dnf4 until the issue
with dnf5 is resolved.

Co-authored-by: Jesus Checa Hidalgo <[email protected]>
  • Loading branch information
jchecahi and Jesus Checa Hidalgo committed Aug 27, 2024
1 parent b21d85c commit e93cddd
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions tests/snapshot-gating.fmf
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,15 @@

summary: LLVM Tests for snapshot gating
prepare:
- how: install
copr: "@fedora-llvm-team/$COPR_PROJECT $COPR_CHROOT"
# Lower the priority of the testing-farm-tag-repository so that our copr repo is picked up.
# See: https://docs.testing-farm.io/Testing%20Farm/0.1/test-environment.html#_tag_repository
# dnf5's copr plugin has trouble resolving the runtime dependency repos, so
# we need to use dnf4. Check https://github.com/fedora-copr/copr/issues/3387
- name: Enable copr repo
how: shell
script: |
dnf install -y dnf-plugins-core
dnf-3 -y copr enable @fedora-llvm-team/$COPR_PROJECT $COPR_CHROOT
# Lower the priority of the testing-farm-tag-repository so that our copr repo is picked up.
# See: https://docs.testing-farm.io/Testing%20Farm/0.1/test-environment.html#_tag_repository
- how: shell
script: |
dnf install -y dnf-plugins-core
Expand Down

0 comments on commit e93cddd

Please sign in to comment.