Skip to content

Commit

Permalink
TMT: revdep tests
Browse files Browse the repository at this point in the history
Co-authored-by: Chris Evich <[email protected]>
Signed-off-by: Lokesh Mandvekar <[email protected]>
  • Loading branch information
lsm5 and cevich committed Dec 23, 2024
1 parent 1f7dbe6 commit 7ebf2dc
Show file tree
Hide file tree
Showing 5 changed files with 152 additions and 10 deletions.
1 change: 1 addition & 0 deletions .fmf/version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1
49 changes: 39 additions & 10 deletions .packit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,18 @@ jobs:
- job: copr_build
trigger: pull_request
packages: [containers-common-fedora]
notifications: &ephemeral_build_failure_notification
failure_comment:
message: "Ephemeral COPR build failed. @containers/packit-build please check."
# notifications: &ephemeral_build_failure_notification
# 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 @@ -47,11 +48,11 @@ 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
targets: &centos_copr_targets
- centos-stream-all-x86_64
- centos-stream-all-aarch64

# Run on commit to main branch
- job: copr_build
Expand All @@ -65,6 +66,34 @@ 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
tmt:
context:
revdeps: "yes"

- 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
tmt:
context:
revdeps: "yes"

- job: propose_downstream
trigger: release
packages: [containers-common-fedora]
Expand Down
37 changes: 37 additions & 0 deletions plans/buildah.fmf
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
prepare:
- name: packages
how: install
package: [skopeo-tests]

enabled: false
adjust:
- when: revdeps == yes
enabled: true

adjust+:
- when: initiator == packit
because: "We need to test with updated packages from rhcontainerbot/podman-next copr"
prepare+:
- name: dnf repo priority
how: shell
script: sed -i -n '/^priority=/!p;$apriority=5' /etc/yum.repos.d/*rhcontainerbot*.repo
order: 10
- when: distro == centos-stream or distro == rhel
because: "bats package is present in epel"
prepare+:
- name: EPEL
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]

enabled: false
adjust:
- when: revdeps == yes
enabled: true

adjust+:
- when: initiator == packit
because: "We need to test with updated packages from rhcontainerbot/podman-next copr"
prepare+:
- name: dnf repo priority
how: shell
script: sed -i -n '/^priority=/!p;$apriority=5' /etc/yum.repos.d/*rhcontainerbot*.repo
order: 10
# 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

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

enabled: false
adjust:
- when: revdeps == yes
enabled: true

adjust+:
- when: initiator == packit
because: "We need to test with updated packages from rhcontainerbot/podman-next copr"
prepare+:
- name: dnf repo priority
how: shell
script: sed -i -n '/^priority=/!p;$apriority=5' /etc/yum.repos.d/*rhcontainerbot*.repo
order: 10
- when: distro == centos-stream or distro == rhel
because: "bats package is present in epel"
prepare+:
- name: EPEL
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

0 comments on commit 7ebf2dc

Please sign in to comment.