From 05bcf0bfaa4e116354f73fccf8f505dadf08fffa Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Tue, 1 Aug 2023 17:49:57 +0200 Subject: [PATCH] Packit: run cockpit-podman tests in PRs See https://cockpit-project.org/blog/tmt-cross-project-testing.html [NO NEW TESTS NEEDED] - quiesce bot, that whole commit *is* a new test Signed-off-by: Martin Pitt --- .fmf/version | 1 + .packit.yaml | 16 ++++++++++++++++ plans/cockpit-podman.fmf | 32 ++++++++++++++++++++++++++++++++ 3 files changed, 49 insertions(+) create mode 100644 .fmf/version create mode 100644 plans/cockpit-podman.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 6af2067962..27c772765d 100644 --- a/.packit.yaml +++ b/.packit.yaml @@ -31,6 +31,22 @@ jobs: project: podman-next enable_net: true + - job: tests + identifier: cockpit-revdeps + trigger: pull_request + targets: + - fedora-all + tf_extra_params: + environments: + - artifacts: + - type: repository-file + id: https://copr.fedorainfracloud.org/coprs/g/cockpit/main-builds/repo/fedora-$releasever/group_cockpit-main-builds-fedora-$releasever.repo + - 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: propose_downstream trigger: release update_release: false diff --git a/plans/cockpit-podman.fmf b/plans/cockpit-podman.fmf new file mode 100644 index 0000000000..86ed20c5ea --- /dev/null +++ b/plans/cockpit-podman.fmf @@ -0,0 +1,32 @@ +# reverse dependency test for https://github.com/cockpit-project/cockpit-podman/ +# if this fails in a non-obvious way, please contact the cockpit team in your PR for investigation: +# @martinpitt, @jelly, @marusak +enabled: false + +adjust+: + when: revdeps == yes + enabled: true + +discover: + how: fmf + url: https://github.com/cockpit-project/cockpit-podman + ref: "main" + +execute: + how: tmt + +# This has to duplicate cockpit-podman's plan structure; see https://github.com/teemtee/tmt/issues/1770 +/podman-system: + summary: Run cockpit-podman system tests + discover+: + test: /test/browser/system + +/podman-user: + summary: Run cockpit-podman user tests + discover+: + test: /test/browser/user + +/podman-misc: + summary: Run other cockpit-podman tests + discover+: + test: /test/browser/other