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

Workaround dnf5 copr issue in snapshot-gating tmt plan #670

Merged
merged 1 commit into from
Aug 27, 2024

Conversation

jchecahi
Copy link
Contributor

@jchecahi jchecahi commented Aug 26, 2024

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.

Related upstream issue: fedora-copr/copr#3387

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.
@jchecahi
Copy link
Contributor Author

Tested on Fedora Rawhide with testing-farm. The coprdep baseurl is now processed correctly, and no more 404 errors when querying the repo:

11:17:38             out: Updating and loading repositories:
11:17:38             out:  Copr repo for llvm-snapshots-big-merge 100% | 783.9 KiB/s | 185.8 KiB |  00m00s
11:17:45             out:  Fedora - Rawhide - Developmental packa 100% |   9.0 MiB/s |  58.5 MiB |  00m07s
11:17:45             out:  Fedora rawhide openh264 (From Cisco) - 100% |  21.9 KiB/s |   8.6 KiB |  00m00s
11:17:46             out:  Copr copr.fedorainfracloud.org/@fedora 100% |   1.5 MiB/s | 503.6 KiB |  00m00s
11:17:46             out:  Copr repo for llvm-snapshots-big-merge 100% | 619.1 KiB/s | 177.7 KiB |  00m00s
11:18:09             out:  Tag repository for rawhide             100% |  19.2 MiB/s |  62.2 MiB |  00m03s
11:18:09             out: Repositories loaded.

Full log link: https://artifacts.dev.testing-farm.io/a9293598-ec6d-4636-91d6-bc21f0123adb/work-snapshot-gatingx1flsele/log.txt

kwk

This comment was marked as outdated.

tests/snapshot-gating.fmf Show resolved Hide resolved
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

@kwk kwk merged commit e93cddd into fedora-llvm-team:main Aug 27, 2024
4 of 5 checks passed
@kwk kwk mentioned this pull request Aug 27, 2024
@kwk
Copy link
Collaborator

kwk commented Aug 27, 2024

@jchecahi I wonder if we should re-address this according to the way I did it here for the project instructions: #677 . Then we have a future proof version of the fix that doesn't require dnf-3.

jchecahi pushed a commit to jchecahi/llvm-snapshots that referenced this pull request Aug 27, 2024
Followup fedora-llvm-team#670. Reimplement without using a specific dnf.
Replace the unexpanded $distname variable in the script
jchecahi pushed a commit to jchecahi/llvm-snapshots that referenced this pull request Aug 27, 2024
Followup fedora-llvm-team#670. Reimplement without using a specific dnf.
Replace the unexpanded $distname variable in the script
jchecahi pushed a commit to jchecahi/llvm-snapshots that referenced this pull request Aug 28, 2024
Followup fedora-llvm-team#670. Reimplement without using a specific dnf.
Replace the unexpanded $distname variable in the script
kwk pushed a commit that referenced this pull request Aug 28, 2024
This change 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 #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

Fixes #671

---------

Co-authored-by: Jesus Checa Hidalgo <[email protected]>
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.

2 participants