-
Notifications
You must be signed in to change notification settings - Fork 106
TMT: Updates to account for official CentOS Stream and OSCI gating. #345
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,21 +3,18 @@ discover: | |
execute: | ||
how: tmt | ||
prepare: | ||
how: feature | ||
epel: enabled | ||
|
||
/upstream: | ||
summary: Run SELinux specific Podman tests on upstream PRs | ||
discover+: | ||
filter: tag:upstream | ||
adjust+: | ||
enabled: false | ||
when: initiator is not defined or initiator != packit | ||
|
||
/downstream: | ||
summary: Run SELinux specific Podman tests on bodhi / errata and dist-git PRs | ||
discover+: | ||
filter: tag:downstream | ||
adjust+: | ||
enabled: false | ||
when: initiator == packit | ||
- when: distro == centos-stream or distro == rhel | ||
how: shell | ||
script: | | ||
dnf -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-$(rpm --eval '%{?rhel}').noarch.rpm | ||
dnf -y config-manager --set-enabled epel | ||
order: 10 | ||
- when: initiator == packit | ||
how: shell | ||
script: | | ||
COPR_REPO_FILE="/etc/yum.repos.d/*podman-next*.repo" | ||
if compgen -G $COPR_REPO_FILE > /dev/null; then | ||
sed -i -n '/^priority=/!p;$apriority=1' $COPR_REPO_FILE | ||
fi | ||
Comment on lines
+15
to
+18
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. would something like this work? I think it's more readable
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. actually I just pulled it out from memory and I am not sure if it's going to be the same for dnf4/dnf5. I should verify that There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Things have changed quite a bit between dnf4 and dnf5. So, unless we have something that works across the board, I'd prefer to keep it this way. I pulled this from packit project's own TMT config btw. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. right, this actually changes from dnf4/dnf5. I just verified that and in dnf5 it would be
which would add few lines in
different command, different file: I am good with There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. so LGTM! |
||
dnf -y upgrade --allowerasing | ||
order: 20 |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,17 @@ | ||
# Only common dependencies that are NOT required to run podman-tests.sh are | ||
# specified here. Everything else is in podman-tests.sh. | ||
require: | ||
- attr | ||
- bats | ||
- cpio | ||
- golang | ||
- make | ||
- container-selinux | ||
- podman-tests | ||
- policycoreutils | ||
|
||
/basic_check: | ||
tag: [ upstream, downstream ] | ||
summary: Run basic checks | ||
test: make basic_check | ||
|
||
/podman_e2e_test: | ||
tag: [ upstream, downstream ] | ||
summary: Run SELinux specific Podman e2e tests | ||
test: make podman_e2e_test | ||
test: | | ||
semodule --list=full | grep container | ||
semodule -B | ||
rpm -Vqf /var/lib/selinux/*/active/modules/200/container | ||
|
||
/podman_system_test: | ||
tag: [ upstream, downstream ] | ||
summary: Run SELinux specific Podman system tests | ||
test: make podman_system_test | ||
test: bash ./podman-tests.sh |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The removal of
/upstream
and/downstream
is intentional as we can run the same set of tests across the board.