Skip to content

[skip-ci] TMT: revdep tests #1892

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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
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
49 changes: 37 additions & 12 deletions .packit.yaml
Original file line number Diff line number Diff line change
@@ -24,17 +24,18 @@ jobs:
- job: copr_build
trigger: pull_request
packages: [containers-common-fedora]
notifications: &ephemeral_build_failure_notification
notifications: &packit_failure_notification
failure_comment:
message: "Ephemeral COPR build failed. @containers/packit-build please check."
message: "[NON-BLOCKING] Packit jobs 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: *packit_failure_notification
enable_net: true
targets:
fedora-eln:
@@ -47,24 +48,48 @@ jobs:
- job: copr_build
trigger: pull_request
packages: [containers-common-centos]
notifications: *ephemeral_build_failure_notification
notifications: *packit_failure_notification
enable_net: true
targets:
- centos-stream-9
- centos-stream-10
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
trigger: commit
packages: [containers-common-fedora]
notifications:
failure_comment:
message: "podman-next COPR build failed. @containers/packit-build please check."
notifications: *packit_failure_notification
branch: main
owner: rhcontainerbot
project: podman-next
enable_net: true

- job: tests
trigger: pull_request
packages: [containers-common-fedora]
notifications: *packit_failure_notification
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]
notifications: *packit_failure_notification
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]
45 changes: 45 additions & 0 deletions plans/buildah.fmf
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
prepare:
- when: distro == centos-stream or distro == rhel
how: shell
script: |
BATS_VERSION=1.12.0
curl -L https://github.com/bats-core/bats-core/archive/refs/tags/v"$BATS_VERSION".tar.gz | tar -xz
cd bats-core-"$BATS_VERSION"
./install.sh /usr
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/containers/buildah
ref: "main"
test: /tests/tmt

execute:
how: tmt

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

# FIXME: reenable after buildah upstream fixes aarch64 testing
adjust:
enabled: false
when: arch == aarch64
70 changes: 70 additions & 0 deletions plans/podman.fmf
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
prepare:
- when: distro == centos-stream or distro == rhel
how: shell
script: |
BATS_VERSION=1.12.0
curl -L https://github.com/bats-core/bats-core/archive/refs/tags/v"$BATS_VERSION".tar.gz | tar -xz
cd bats-core-"$BATS_VERSION"
./install.sh /usr
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
# podman rpm hasn't built for CentOS Stream 10 on podman-next since
# March 2025, and the last build doesn't require slirp4netns
# automatically for podman-tests so we require it here
package: [podman-tests, slirp4netns]

discover:
how: fmf
url: https://github.com/containers/podman
ref: "main"

execute:
how: tmt

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

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

/rootless-local:
summary: Local rootless tests
discover+:
filter: 'tag:local & tag:rootless'
# FIXME: reenable after journald tests are handled for RHEL on upstream
adjust:
enabled: false
when: distro == centos-stream or distro == rhel

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

/rootless-remote:
summary: Remote rootless tests
discover+:
filter: 'tag:remote & tag:rootless'
# FIXME: reenable after journald tests are handled for RHEL on upstream
adjust:
enabled: false
when: distro == centos-stream or distro == rhel
40 changes: 40 additions & 0 deletions plans/skopeo.fmf
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
prepare:
- when: distro == centos-stream or distro == rhel
how: shell
script: |
BATS_VERSION=1.12.0
curl -L https://github.com/bats-core/bats-core/archive/refs/tags/v"$BATS_VERSION".tar.gz | tar -xz
cd bats-core-"$BATS_VERSION"
./install.sh /usr
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"
Loading
Oops, something went wrong.