Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CI:BUILD] Packit: run cockpit-podman tests in PRs #19500

Merged
merged 1 commit into from
Aug 24, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .fmf/version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1
16 changes: 16 additions & 0 deletions .packit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,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
Expand Down
32 changes: 32 additions & 0 deletions plans/cockpit-podman.fmf
Original file line number Diff line number Diff line change
@@ -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