From 8822ed57215ed18ba1947c78c6e63a5db70dd56e Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Mon, 13 Nov 2023 10:58:40 +0100 Subject: [PATCH] Run cockpit storage tests in PRs This provides additional API/regression validation for stratisd PRs. See https://cockpit-project.org/blog/tmt-cross-project-testing.html Fixes https://issues.redhat.com/browse/COCKPIT-1070 Signed-off-by: Martin Pitt --- .packit.yaml | 19 +++++++++++++++++++ plans/all.fmf | 5 +++++ plans/cockpit.fmf | 20 ++++++++++++++++++++ 3 files changed, 44 insertions(+) create mode 100644 plans/cockpit.fmf diff --git a/.packit.yaml b/.packit.yaml index 8bae253d67d..bb3d31e1c45 100644 --- a/.packit.yaml +++ b/.packit.yaml @@ -33,6 +33,25 @@ jobs: - fedora-rawhide - job: tests + identifier: local trigger: pull_request targets: - fedora-rawhide + + # run Cockpit storage tests, see plans/ with `cockpit == yes` + - job: tests + identifier: cockpit + trigger: pull_request + notifications: + failure_comment: + message: "Cockpit tests failed for commit {commit_sha}. @martinpitt, @jelly, @mvollmer please check." + targets: + - fedora-development + 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 + tmt: + context: + plan: "cockpit" diff --git a/plans/all.fmf b/plans/all.fmf index 607d0442b0a..ca4c929ad5b 100644 --- a/plans/all.fmf +++ b/plans/all.fmf @@ -1,4 +1,9 @@ summary: top level management + +adjust: + when: plan == cockpit + enabled: false + prepare: - name: Install packages how: install diff --git a/plans/cockpit.fmf b/plans/cockpit.fmf new file mode 100644 index 00000000000..c35edd5f176 --- /dev/null +++ b/plans/cockpit.fmf @@ -0,0 +1,20 @@ +# reverse dependency test for https://github.com/cockpit-project/cockpit +# packit should automatically notify the cockpit maintainers on failures. +# For questions, please contact @martinpitt, @jelly, @mvollmer + +enabled: false +adjust: + when: plan == cockpit + enabled: true + +discover: + how: fmf + url: https://github.com/cockpit-project/cockpit + ref: main +execute: + how: tmt + +/optional: + summary: Run tests for optional packages (including storage) + discover+: + test: /test/browser/optional