-
Notifications
You must be signed in to change notification settings - Fork 788
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commit adds TMT jobs for system tests triggered via Packit for all active Fedora and CentOS Stream releases on x86_64 and aarch64. Official Fedora and CentOS Stream spec and gating test configs can be synced from upstream by Packit, effectively upstreaming almost all mainteenance. Signed-off-by: Lokesh Mandvekar <[email protected]>
- Loading branch information
Showing
6 changed files
with
168 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
discover: | ||
how: fmf | ||
execute: | ||
how: tmt | ||
adjust: | ||
- when: "initiator == packit" | ||
because: "We need to test with updated packages from rhcontainerbot/podman-next copr" | ||
prepare+: | ||
how: shell | ||
script: | | ||
sed -i -n '/^priority=/!p;$apriority=1' /etc/yum.repos.d/*podman-next*.repo | ||
dnf -y upgrade --allowerasing | ||
order: 30 | ||
# FIXME: Use epel10 once bats is available there | ||
- when: distro == centos-stream-10 or distro == rhel-10 | ||
because: "bats isn't yet available on epel10" | ||
prepare+: | ||
how: install | ||
copr: rhcontainerbot/bats-el10 | ||
package: bats | ||
order: 30 | ||
- when: distro == centos-stream or distro == rhel | ||
because: "bats is present on EPEL on rhel9 / c9s" | ||
how: feature | ||
epel: enabled | ||
order: 20 | ||
|
||
/upstream: | ||
summary: Run tests on upstream PRs | ||
discover+: | ||
filter: tag:upstream | ||
adjust+: | ||
- enabled: false | ||
when: revdeps == yes or initiator is not defined or initiator != packit | ||
|
||
/downstream: | ||
summary: Run tests on bodhi / errata and dist-git PRs | ||
discover+: | ||
filter: tag:downstream | ||
adjust+: | ||
- enabled: false | ||
when: initiator == packit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
--- !Policy | ||
product_versions: | ||
- fedora-* | ||
decision_contexts: | ||
- bodhi_update_push_stable | ||
- bodhi_update_push_testing | ||
subject_type: koji_build | ||
rules: | ||
- !PassingTestCaseRule {test_case_name: fedora-ci.koji-build.tier0.functional} | ||
|
||
--- !Policy | ||
product_versions: | ||
- rhel-* | ||
decision_context: osci_compose_gate | ||
rules: | ||
- !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
require: | ||
- buildah-tests | ||
- git-daemon | ||
- slirp4netns | ||
|
||
environment: | ||
BUILDAH_BINARY: /usr/bin/buildah | ||
IMGTYPE_BINARY: /usr/bin/buildah-imgtype | ||
INET_BINARY: /usr/bin/buildah-inet | ||
COPY_BINARY: /usr/bin/buildah-copy | ||
TUTORIAL_BINARY: /usr/bin/buildah-tutorial | ||
TMPDIR: /var/tmp | ||
|
||
/local/root: | ||
tag: [ downstream, upstream ] | ||
summary: System test | ||
test: bash ./system.sh | ||
duration: 60m |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -exo pipefail | ||
|
||
uname -r | ||
|
||
rpm -q \ | ||
aardvark-dns \ | ||
buildah \ | ||
buildah-tests \ | ||
conmon \ | ||
container-selinux \ | ||
containers-common \ | ||
crun \ | ||
netavark \ | ||
systemd | ||
|
||
bats /usr/share/buildah/test/system |