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

Lower the priority of testing-farm-tag-repo as first prepare task #703

Merged
merged 1 commit into from
Sep 7, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 11 additions & 10 deletions tests/snapshot-gating.fmf
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,17 @@

summary: LLVM Tests for snapshot gating
prepare:
# 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
- name: Set testing-farm-tag-repository priority
how: shell
script: |
if dnf repolist | grep -q testing-farm-tag-repository; then
dnf install -y 'dnf5-command(config-manager)' || dnf install -y 'dnf-command(config-manager)'
dnf config-manager --save --setopt="testing-farm-tag-repository.priority=999" || \
dnf config-manager setopt "testing-farm-tag-repository.priority=999"
fi

- name: Enable copr repo
how: shell
script:
Expand All @@ -25,16 +36,6 @@ prepare:
# already in the system.
- dnf -y install --best llvm-libs

# 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: |
if dnf repolist | grep -q testing-farm-tag-repository; then
dnf install -y 'dnf5-command(config-manager)' || dnf install -y 'dnf-command(config-manager)'
dnf config-manager --save --setopt="testing-farm-tag-repository.priority=999" || \
dnf config-manager setopt "testing-farm-tag-repository.priority=999"
fi

- name: "Check that snapshot (~pre) version of LLVM is installed"
how: shell
order: 99
Expand Down
Loading