From c64e5267ec432a812a06d4f1f746a20681f8bb3a Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Wed, 2 Aug 2023 10:28:20 +0200 Subject: [PATCH] ci: Packit: Run cockpit storage tests in PRs See https://cockpit-project.org/blog/tmt-cross-project-testing.html --- .fmf/version | 1 + .packit.yaml | 19 +++++++++++++++++++ plans/cockpit.fmf | 22 ++++++++++++++++++++++ 3 files changed, 42 insertions(+) create mode 100644 .fmf/version create mode 100644 plans/cockpit.fmf diff --git a/.fmf/version b/.fmf/version new file mode 100644 index 000000000..d00491fd7 --- /dev/null +++ b/.fmf/version @@ -0,0 +1 @@ +1 diff --git a/.packit.yaml b/.packit.yaml index 559f2f00a..f00425a12 100644 --- a/.packit.yaml +++ b/.packit.yaml @@ -26,6 +26,25 @@ jobs: additional_repos: - "copr://@storage/udisks-daily" +# run tests for udisks consumers, see plans/ with `revdeps == yes` +- job: tests + identifier: revdeps + trigger: pull_request + targets: + - fedora-rawhide-x86_64 + - fedora-latest-x86_64 + - fedora-latest-stable-x86_64 + 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/g/storage/udisks-daily/repo/fedora-$releasever/group_storage-udisks-daily-fedora-$releasever.repo + tmt: + context: + revdeps: "yes" + - job: copr_build trigger: commit owner: "@storage" diff --git a/plans/cockpit.fmf b/plans/cockpit.fmf new file mode 100644 index 000000000..3906483f7 --- /dev/null +++ b/plans/cockpit.fmf @@ -0,0 +1,22 @@ +# reverse dependency test for https://github.com/cockpit-project/cockpit +# if this fails in a non-obvious way, please contact the cockpit team in your PR for investigation: +# @martinpitt, @marusak, @mvollmer +enabled: false + +adjust+: + when: revdeps == yes + enabled: true + +discover: + how: fmf + url: https://github.com/cockpit-project/cockpit + ref: main + +execute: + how: tmt + +# this includes the storage tests +/optional: + summary: Run tests for optional packages + discover+: + test: /test/browser/optional