From ccfa6e5b778c4344a3cfadebe24de980d8fc475e Mon Sep 17 00:00:00 2001 From: Lokesh Mandvekar Date: Wed, 27 Aug 2025 15:26:20 -0400 Subject: [PATCH 1/3] TMT: skopeo revdep tests Signed-off-by: Lokesh Mandvekar --- .fmf/version | 1 + .packit.yaml | 18 +++++++++++++++++- plans/skopeo.fmf | 24 ++++++++++++++++++++++++ 3 files changed, 42 insertions(+), 1 deletion(-) create mode 100644 .fmf/version create mode 100644 plans/skopeo.fmf diff --git a/.fmf/version b/.fmf/version new file mode 100644 index 0000000000..d00491fd7e --- /dev/null +++ b/.fmf/version @@ -0,0 +1 @@ +1 diff --git a/.packit.yaml b/.packit.yaml index 91f3dc7751..5b739c00f2 100644 --- a/.packit.yaml +++ b/.packit.yaml @@ -34,7 +34,7 @@ jobs: failure_comment: message: "Packit jobs failed. @containers/packit-build please check." enable_net: true - targets: + targets: &fedora_copr_targets - fedora-all - job: copr_build @@ -71,6 +71,22 @@ jobs: project: podman-next enable_net: true + # All tests specified in the `/plans/` subdir + # Tests for Fedora + - job: tests + trigger: pull_request + packages: [containers-common-fedora] + notifications: + failure_comment: + message: "Tests failed. @containers/packit-build please check." + targets: *fedora_copr_targets + 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] diff --git a/plans/skopeo.fmf b/plans/skopeo.fmf new file mode 100644 index 0000000000..01b0dd2846 --- /dev/null +++ b/plans/skopeo.fmf @@ -0,0 +1,24 @@ +discover: + how: fmf + url: https://github.com/lsm5/skopeo + ref: "ci-agnostic-2" +execute: + how: tmt +prepare: + # Ensure we're preferring packages from podman-next copr + - 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 + order: 20 + - name: Disable installing everything from srpm + how: install + exclude: + - ".*" + - name: Install the main package + how: install + package: + - containers-common From b61335c8b792d2e4d9adb45ea62b5e2b24bbb50a Mon Sep 17 00:00:00 2001 From: Lokesh Mandvekar Date: Fri, 29 Aug 2025 09:53:07 -0400 Subject: [PATCH 2/3] set orders in plan Signed-off-by: Lokesh Mandvekar --- plans/skopeo.fmf | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plans/skopeo.fmf b/plans/skopeo.fmf index 01b0dd2846..62acffd091 100644 --- a/plans/skopeo.fmf +++ b/plans/skopeo.fmf @@ -18,7 +18,9 @@ prepare: how: install exclude: - ".*" + order: 25 - name: Install the main package how: install package: - containers-common + order: 30 From 4d8e42a39a5914f36c2dca144cdc6fbe9ec4f65c Mon Sep 17 00:00:00 2001 From: Lokesh Mandvekar Date: Fri, 29 Aug 2025 10:12:30 -0400 Subject: [PATCH 3/3] try dnf update in podman-next step Signed-off-by: Lokesh Mandvekar --- plans/skopeo.fmf | 1 + 1 file changed, 1 insertion(+) diff --git a/plans/skopeo.fmf b/plans/skopeo.fmf index 62acffd091..b55a33ab59 100644 --- a/plans/skopeo.fmf +++ b/plans/skopeo.fmf @@ -13,6 +13,7 @@ prepare: if compgen -G $COPR_REPO_FILE > /dev/null; then sed -i -n '/^priority=/!p;$apriority=1' $COPR_REPO_FILE fi + dnf update -y --allowerasing --best order: 20 - name: Disable installing everything from srpm how: install