-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commit introduces TMT test jobs triggered via packit to run system tests on testing-farm infrastructure. Tests are run for all active Fedora environments for aarch64 and x86_64. The same test plan will be reused by Fedora for bodhi, zuul and fedora-ci gating tests. Packit will handle syncing of test plan and sources from upstream to downstream. Jobs will be selectively triggered for `main` v/s release branches based on the `release` PR label. The GHA for labeling PRs has also been updated in this commit. Test jobs on the main branch will include builds from the `rhcontainerbot/podman-next` copr while tests on release branches will only include official distro packages. Signed-off-by: Lokesh Mandvekar <[email protected]>
- Loading branch information
Showing
9 changed files
with
185 additions
and
10 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
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
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,40 @@ | ||
discover: | ||
how: fmf | ||
execute: | ||
how: tmt | ||
environment: | ||
PODMAN: /usr/bin/podman | ||
PODMAN_REMOTE: /usr/bin/podman-remote | ||
PODMAN_TESTING: /usr/bin/podman-testing | ||
QUADLET: /usr/libexec/podman/quadlet | ||
ROOTLESS_USER: fedora | ||
PODMAN_SOURCE_DIR: $TMT_TREE | ||
adjust: | ||
environment+: | ||
PODMAN_SOURCE_DIR: $TMT_SOURCE_DIR | ||
when: initiator != packit or initiator != human | ||
|
||
prepare: | ||
how: shell | ||
script: | | ||
rm -f /etc/yum.repos.d/tag-repository.repo | ||
loginctl enable-linger fedora | ||
|
||
/upstream: | ||
summary: Run tests on upstream PRs | ||
discover+: | ||
filter: tag:upstream | ||
adjust+: | ||
enabled: false | ||
when: initiator is not defined or initiator != packit | ||
|
||
/downstream: | ||
summary: Run tests on bodhi / errata and dist-git PRs | ||
discover+: | ||
filter: tag:downstream | ||
dist-git-install-builddeps: true | ||
dist-git-source: true | ||
dist-git-remove-fmf-root: true | ||
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,22 @@ | ||
PODMAN | ||
PODMAN_REMOTE | ||
PODMAN_SOURCE_DIR | ||
PODMAN_TESTING | ||
QUADLET | ||
ROOTLESS_USER | ||
TMT_TREE | ||
TMT_PLAN_DATA | ||
TMT_VERSION | ||
TMT_TEST_NAME | ||
TMT_TEST_DATA | ||
TMT_TEST_SERIAL_NUMBER | ||
TMT_TEST_ITERATION_ID | ||
TMT_TEST_METADATA | ||
TMT_SOURCE_DIR | ||
TMT_REBOOT_COUNT | ||
TMT_TEST_RESTART_COUNT | ||
TMT_TOPOLOGY_BASH | ||
TMT_TOPOLOGY_YAML | ||
TMT_TEST_PIDFILE | ||
TMT_TEST_PIDFILE_LOCK | ||
TMT_TEST_PIDFILE_ROOT |
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 @@ | ||
--- !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} | ||
|
||
# recipients: jnovy, lsm5, santiago | ||
--- !Policy | ||
product_versions: | ||
- rhel-10 | ||
- rhel-9 | ||
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
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,32 @@ | ||
require: | ||
- bats | ||
- golang | ||
- make | ||
- podman | ||
- podman-remote | ||
- podman-tests | ||
- slirp4netns | ||
|
||
/local-root: | ||
tag: [ downstream, upstream ] | ||
summary: local rootful test | ||
test: ls -al $PODMAN_SOURCE_DIR && bash $PODMAN_SOURCE_DIR/test/tmt/test.sh localsystem | ||
duration: 60m | ||
|
||
/local-rootless: | ||
tag: [ downstream, upstream ] | ||
summary: rootless test | ||
test: ls -al $PODMAN_SOURCE_DIR && rm -rf /home/$ROOTLESS_USER/.local/share/containers && su --whitelist-environment=$(cat $PODMAN_SOURCE_DIR/plans/tmt-envvars | tr '\n' ',') - $ROOTLESS_USER -c 'bash $PODMAN_SOURCE_DIR/test/tmt/test.sh localsystem' | ||
duration: 60m | ||
|
||
/remote-root: | ||
tag: [ downstream, upstream ] | ||
summary: remote rootful test | ||
test: ls -al $PODMAN_SOURCE_DIR && bash $PODMAN_SOURCE_DIR/test/tmt/test.sh remotesystem | ||
duration: 60m | ||
|
||
/remote-rootless: | ||
tag: [ downstream, upstream ] | ||
summary: remote rootless test | ||
test: ls -al $PODMAN_SOURCE_DIR && rm -rf /home/$ROOTLESS_USER/.local/share/containers && su --whitelist-environment=$(cat $PODMAN_SOURCE_DIR/plans/tmt-envvars | tr '\n' ',') - $ROOTLESS_USER -c 'bash $PODMAN_SOURCE_DIR/test/tmt/test.sh remotesystem' | ||
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,13 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -exo pipefail | ||
|
||
whoami | ||
|
||
ls -al | ||
|
||
uname -r | ||
|
||
rpm -q aardvark-dns buildah conmon container-selinux containers-common crun netavark passt podman skopeo slirp4netns systemd | ||
|
||
make -C $PODMAN_SOURCE_DIR $1 |