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

[skip-ci] TMT: revdep tests #1892

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions .fmf/version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1
42 changes: 24 additions & 18 deletions .packit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@ packages:
downstream_package_name: containers-common
pkg_tool: centpkg
specfile_path: rpm/containers-common.spec
containers-common-rhel:
downstream_package_name: containers-common
specfile_path: rpm/containers-common.spec
containers-common-eln:
downstream_package_name: containers-common
specfile_path: rpm/containers-common.spec
Expand All @@ -31,13 +28,14 @@ jobs:
failure_comment:
message: "Ephemeral COPR build failed. @containers/packit-build please check."
enable_net: true
targets:
- fedora-all
targets: &fedora_copr_targets
- fedora-all-x86_64
- fedora-all-aarch64

- job: copr_build
trigger: pull_request
packages: [containers-common-eln]
notifications: *ephemeral_build_failure_notification
#notifications: *ephemeral_build_failure_notification
enable_net: true
targets:
fedora-eln:
Expand All @@ -50,19 +48,13 @@ jobs:
- job: copr_build
trigger: pull_request
packages: [containers-common-centos]
notifications: *ephemeral_build_failure_notification
#notifications: *ephemeral_build_failure_notification
enable_net: true
targets:
- centos-stream-9
- centos-stream-10

- job: copr_build
trigger: pull_request
packages: [containers-common-rhel]
notifications: *ephemeral_build_failure_notification
enable_net: true
targets:
- epel-9
targets: &centos_copr_targets
- centos-stream-10-x86_64
- centos-stream-10-aarch64
- centos-stream-9-x86_64
- centos-stream-9-aarch64

# Run on commit to main branch
- job: copr_build
Expand All @@ -76,6 +68,20 @@ jobs:
project: podman-next
enable_net: true

- job: tests
trigger: pull_request
packages: [containers-common-fedora]
targets:
- fedora-rawhide
- fedora-42
- fedora-41
enable_net: true
tf_extra_params:
environments:
- artifacts:
- type: repository-file
id: https://copr.fedorainfracloud.org/coprs/rhcontainerbot/podman-next/repo/fedora-$releasever/rhcontainerbot-podman-next-fedora-$releasever.repo

- job: propose_downstream
trigger: release
packages: [containers-common-fedora]
Expand Down
38 changes: 38 additions & 0 deletions plans/buildah.fmf
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
prepare:
- 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
dnf -y upgrade --allowerasing
order: 20
- name: packages
how: install
package: [buildah-tests]

discover:
how: fmf
url: https://github.com/lsm5/buildah
ref: "tmt-system-tests"
test: /tests/tmt

execute:
how: tmt

provision:
how: artemis
hardware:
memory: ">= 16 GB"
cpu:
cores: ">= 4"
threads: ">=8"
disk:
- size: ">= 512 GB"
58 changes: 58 additions & 0 deletions plans/podman.fmf
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
prepare:
- 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
dnf -y upgrade --allowerasing
order: 20
- name: packages
how: install
package: [podman-tests]

discover:
how: fmf
url: https://github.com/lsm5/podman
ref: "tmt-fedora-centos"

execute:
how: tmt

provision:
how: artemis
hardware:
memory: ">= 16 GB"
cpu:
cores: ">= 4"
threads: ">=8"
disk:
- size: ">= 512 GB"

/local-root:
summary: Local rootful tests
discover+:
filter: 'tag:local & tag:root'

/local-rootless:
summary: Local rootless tests
discover+:
filter: 'tag:local & tag:rootless'

/remote-root:
summary: Remote rootful tests
discover+:
filter: 'tag:remote & tag:root'

/remote-rootless:
summary: Remote rootless tests
discover+:
filter: 'tag:remote & tag:rootless'

38 changes: 38 additions & 0 deletions plans/skopeo.fmf
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
prepare:
- 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
dnf -y upgrade --allowerasing
order: 20
- name: packages
how: install
package: [skopeo-tests]

discover:
how: fmf
url: https://github.com/containers/skopeo
ref: "main"
test: /systemtest/tmt

execute:
how: tmt

provision:
how: artemis
hardware:
memory: ">= 16 GB"
cpu:
cores: ">= 4"
threads: ">=8"
disk:
- size: ">= 512 GB"