diff --git a/packit.yaml b/packit.yaml index fd73bc8b..adb01692 100644 --- a/packit.yaml +++ b/packit.yaml @@ -19,24 +19,16 @@ jobs: - job: copr_build trigger: pull_request targets: - - fedora-40 - - fedora-41 - - fedora-latest-aarch64 - - fedora-development - centos-stream-9-x86_64 - - centos-stream-9-aarch64 - - centos-stream-10 - job: tests trigger: pull_request targets: - - fedora-40 - - fedora-41 - - fedora-latest-aarch64 - - fedora-development - - centos-stream-9-x86_64 - - centos-stream-9-aarch64 - - centos-stream-10 + centos-stream-9-x86_64: + distros: ["centos-stream-9", "CentOS-Stream-9-image-mode"] + tf_extra_params: + environments: + - artifacts: [] - job: copr_build trigger: release diff --git a/test/browser/browser.sh b/test/browser/browser.sh index 9796f12b..d34f7106 100755 --- a/test/browser/browser.sh +++ b/test/browser/browser.sh @@ -3,21 +3,40 @@ set -eux cd "${0%/*}/../.." -# HACK: ensure that critical components are up to date: https://github.com/psss/tmt/issues/682 -dnf update -y podman crun conmon criu - -# Missing iptables-nft dependency https://issues.redhat.com/browse/RHEL-58240 and -# https://bugzilla.redhat.com/show_bug.cgi?id=2319310 -if grep -Eq 'platform:(el10|f41)' /etc/os-release; then - dnf install -y iptables-nft -fi - -# if we run during cross-project testing against our main-builds COPR, then let that win -# even if Fedora has a newer revision -main_builds_repo="$(ls /etc/yum.repos.d/*cockpit*main-builds* 2>/dev/null || true)" -if [ -n "$main_builds_repo" ]; then - echo 'priority=0' >> "$main_builds_repo" - dnf distro-sync -y --repo 'copr*' cockpit-podman +# install dependencies programmatically due to https://issues.redhat.com/browse/TFT-3020 +TEST_DEPS="systemd-container cockpit-podman cockpit-ws cockpit-system criu nginx" + +if [ "${TMT_REBOOT_COUNT:-0}" -eq 0 ]; then + if bootc status | grep -q version; then + # redeploy ourselves with required test dependencies + # TODO: get correct c-podman version; https://packit.dev/docs/configuration/upstream/tests#optional-parameters + cat > Containerfile <> "$main_builds_repo" + dnf distro-sync -y --repo 'copr*' cockpit-podman + fi + fi fi # Show critical package versions diff --git a/test/browser/main.fmf b/test/browser/main.fmf index b00e9df4..f62291c4 100644 --- a/test/browser/main.fmf +++ b/test/browser/main.fmf @@ -1,10 +1,7 @@ -require: - - systemd-container - - cockpit-podman - - cockpit-ws - - cockpit-system - - criu - - nginx +# TF/tmt don't handle this with bootc: https://issues.redhat.com/browse/TFT-3020 +# done programmatically in test/browser/browser.sh +# require: + duration: 30m /system: