Skip to content

Commit

Permalink
Run cockpit storage tests in PRs
Browse files Browse the repository at this point in the history
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 <mpitt@redhat.com>
  • Loading branch information
martinpitt committed Nov 14, 2023
1 parent e11e58c commit 8822ed5
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .packit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
5 changes: 5 additions & 0 deletions plans/all.fmf
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
summary: top level management

adjust:
when: plan == cockpit
enabled: false

prepare:
- name: Install packages
how: install
Expand Down
20 changes: 20 additions & 0 deletions plans/cockpit.fmf
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 8822ed5

Please sign in to comment.