From 97ad72c434ff51f05754caf03ea57538896a5514 Mon Sep 17 00:00:00 2001 From: Jonathan Lebon Date: Tue, 30 Jan 2024 10:02:45 -0500 Subject: [PATCH] ci: Test `opt-usrlocal-overlays` end-to-end in Prow CI Since both Prow and CoreOS CI do a compose and run kola tests, we can change one of them to cover some different options without losing coverage on the default path. Follow-up to #4728. --- ci/prow/fcos-e2e.sh | 5 +++++ tests/kolainst/destructive/state-overlays | 10 +++++++--- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/ci/prow/fcos-e2e.sh b/ci/prow/fcos-e2e.sh index 2aaef627f4..46d5db3c7c 100755 --- a/ci/prow/fcos-e2e.sh +++ b/ci/prow/fcos-e2e.sh @@ -9,7 +9,12 @@ ls -al /usr/bin/rpm-ostree rpm-ostree --version cd $(mktemp -d) cosa init https://github.com/coreos/fedora-coreos-config/ +# let's turn on opt-usrlocal-overlays in this test since CoreOS CI already +# covers the off path +echo -e '\nopt-usrlocal-overlays: true\n' >> src/config/manifest.yaml cp /cosa/component-rpms/*.rpm overrides/rpm +# XXX: temporarily import new ostree until it makes it into FCOS +(cd overrides/rpm && curl -L --remote-name-all https://kojipkgs.fedoraproject.org//packages/ostree/2024.2/1.fc39/x86_64/ostree-{,libs-}2024.2-1.fc39.x86_64.rpm) cosa fetch cosa build cosa kola run 'ext.rpm-ostree.*' diff --git a/tests/kolainst/destructive/state-overlays b/tests/kolainst/destructive/state-overlays index 468b96b871..2a0d995e46 100755 --- a/tests/kolainst/destructive/state-overlays +++ b/tests/kolainst/destructive/state-overlays @@ -31,12 +31,16 @@ case "${AUTOPKGTEST_REBOOT_MARK:-}" in rpm-ostree override replace https://bodhi.fedoraproject.org/updates/FEDORA-2024-6c7480dd2f fi - # FCOS doesn't enable opt-usrlocal-overlays so use the hack instead - mkdir -p /etc/systemd/system/rpm-ostreed.service.d/ - cat > /etc/systemd/system/rpm-ostreed.service.d/state-overlay.conf < /etc/systemd/system/rpm-ostreed.service.d/state-overlay.conf <