From b6ce108fc62f367743ce0f3a4d9eff49955f7b25 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 | 3 +++ tests/kolainst/destructive/state-overlays | 10 +++++++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/ci/prow/fcos-e2e.sh b/ci/prow/fcos-e2e.sh index 6365ad84e8..2754d2e0f2 100755 --- a/ci/prow/fcos-e2e.sh +++ b/ci/prow/fcos-e2e.sh @@ -9,6 +9,9 @@ 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 rsync -rlv /cosa/component-install/ overrides/rootfs/ cosa fetch cosa build diff --git a/tests/kolainst/destructive/state-overlays b/tests/kolainst/destructive/state-overlays index c2aac0d1c5..e10ca33a31 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 <