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
50 changes: 32 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
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
#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,28 @@ jobs:
project: podman-next
enable_net: true

- job: tests
trigger: pull_request
packages: [containers-common-fedora]
targets: *fedora_copr_targets
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: tests
trigger: pull_request
packages: [containers-common-centos]
targets: *centos_copr_targets
enable_net: true
tf_extra_params:
environments:
- artifacts:
- type: repository-file
id: https://copr.fedorainfracloud.org/coprs/rhcontainerbot/podman-next/repo/centos-stream-$releasever/rhcontainerbot-podman-next-centos-stream-$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:
- name: packages
how: install
package: [skopeo-tests]

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
# 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
- when: distro == centos-stream-9 or distro == rhel-9
because: "bats is present on EPEL on rhel9 / c9s"
prepare:
how: feature
epel: enabled

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

execute:
how: tmt

/system:
summary: Run buildah system tests
discover+:
test: /tests/tmt
38 changes: 38 additions & 0 deletions plans/podman.fmf
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
prepare:
- name: packages
how: install
package: [bats, podman-tests]

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
# 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
- when: distro == centos-stream-9 or distro == rhel-9
because: "bats is present on EPEL on rhel9 / c9s"
prepare:
how: feature
epel: enabled

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

execute:
how: tmt

/system:
summary: Run podman system tests
discover+:
test: /test/tmt/system/*
38 changes: 38 additions & 0 deletions plans/skopeo.fmf
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
prepare:
- name: packages
how: install
package: [skopeo-tests]

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
# 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
- when: distro == centos-stream-9 or distro == rhel-9
because: "bats is present on EPEL on rhel9 / c9s"
prepare:
how: feature
epel: enabled

discover:
how: fmf
url: https://github.com/lsm5/skopeo
ref: "packit-gating-tests"

execute:
how: tmt

/system:
summary: Run skopeo system tests
discover+:
test: /systemtest/tmt