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 655b0db02..fe77689fa 100644 --- a/.packit.yaml +++ b/.packit.yaml @@ -24,17 +24,17 @@ jobs: - job: copr_build trigger: pull_request packages: [containers-common-fedora] - notifications: &ephemeral_build_failure_notification - failure_comment: - message: "Ephemeral COPR build failed. @containers/packit-build please check." +# notifications: &ephemeral_build_failure_notification +# failure_comment: + # message: "Ephemeral COPR build failed. @containers/packit-build please check." enable_net: true - targets: - - fedora-all + targets: &fedora_copr_targets + - fedora-rawhide - job: copr_build - trigger: pull_request + trigger: ignore packages: [containers-common-eln] - notifications: *ephemeral_build_failure_notification + #notifications: *ephemeral_build_failure_notification enable_net: true targets: fedora-eln: @@ -45,11 +45,11 @@ jobs: - https://kojipkgs.fedoraproject.org/repos/eln-build/latest/x86_64/ - job: copr_build - trigger: pull_request + trigger: ignore packages: [containers-common-centos] - notifications: *ephemeral_build_failure_notification + #notifications: *ephemeral_build_failure_notification enable_net: true - targets: + targets: ¢os_copr_targets - centos-stream-9 - centos-stream-10 @@ -65,6 +65,20 @@ jobs: project: podman-next enable_net: true + - job: tests + trigger: pull_request + packages: [containers-common-fedora] + targets: *fedora_copr_targets + enable_net: true + tf_extra_params: + environments: + - artifacts: + - 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 packages: [containers-common-fedora] diff --git a/plans/podman.fmf b/plans/podman.fmf new file mode 100644 index 000000000..0e523022b --- /dev/null +++ b/plans/podman.fmf @@ -0,0 +1,36 @@ +prepare: + - name: packages + how: install + package: [podman-tests] + +enabled: false +adjust: + - when: revdeps == yes + enabled: true + +adjust+: + - when: initiator == packit + because: "We need to test with updated packages from rhcontainerbot/podman-next copr" + prepare+: + - name: dnf repo priority + how: shell + script: sed -i -n '/^priority=/!p;$apriority=5' /etc/yum.repos.d/*rhcontainerbot*.repo + - when: distro == centos-stream or distro == rhel + because: "bats package is present in epel" + prepare+: + - name: EPEL + how: feature + epel: enabled + +discover: + how: fmf + url: https://github.com/lsm5/podman + ref: "tmt-fedora-centos" + +execute: + how: tmt + +/system: + summary: Run podman system tests + discover+: + test: /test/tmt/system/* diff --git a/plans/skopeo.fmf b/plans/skopeo.fmf new file mode 100644 index 000000000..d73664706 --- /dev/null +++ b/plans/skopeo.fmf @@ -0,0 +1,36 @@ +prepare: + - name: packages + how: install + package: [skopeo-tests] + +enabled: false +adjust: + - when: revdeps == yes + enabled: true + +adjust+: + - when: initiator == packit + because: "We need to test with updated packages from rhcontainerbot/podman-next copr" + prepare+: + - name: dnf repo priority + how: shell + script: sed -i -n '/^priority=/!p;$apriority=5' /etc/yum.repos.d/*rhcontainerbot*.repo + - when: distro == centos-stream or distro == rhel + because: "bats package is present in epel" + prepare+: + - name: EPEL + how: feature + epel: enabled + +discover: + how: fmf + url: https://github.com/lsm5/skopeo + ref: "packit-gating-tests" + +execute: + how: tmt + +/system: + summary: Run skopeo system tests + discover+: + test: /systemtest/tmt