From 10d3d982bbb27b3fa56447b706c66ebae72f46b7 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Thu, 21 Mar 2024 11:06:27 -0400 Subject: [PATCH] Revert "ci: Test `opt-usrlocal-overlays` end-to-end in Prow CI" This reverts commit a5046b7844bd4af2d568d5bd52ab561ca7f8f87f. --- ci/prow/fcos-e2e.sh | 5 ---- tests/kolainst/destructive/state-overlays | 28 +++++++++++++---------- 2 files changed, 16 insertions(+), 17 deletions(-) diff --git a/ci/prow/fcos-e2e.sh b/ci/prow/fcos-e2e.sh index c3cecae165..2aaef627f4 100755 --- a/ci/prow/fcos-e2e.sh +++ b/ci/prow/fcos-e2e.sh @@ -9,12 +9,7 @@ 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 stateoverlays in this test since CoreOS CI already -# covers the off path -echo -e '\nopt-usrlocal: "stateoverlay"\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 be06d2981b..1787a2b25d 100755 --- a/tests/kolainst/destructive/state-overlays +++ b/tests/kolainst/destructive/state-overlays @@ -1,8 +1,13 @@ #!/bin/bash + ## kola: ## tags: "needs-internet" -set -xeuo pipefail +set -euo pipefail + +# NOTE: This is disabled until https://github.com/coreos/rpm-ostree/issues/4879 +# is re-enabled. +exit 0 . ${KOLA_EXT_DATA}/libtest.sh @@ -31,7 +36,7 @@ case "${AUTOPKGTEST_REBOOT_MARK:-}" in rpm-ostree override replace https://bodhi.fedoraproject.org/updates/FEDORA-2024-6c7480dd2f fi - # FCOS doesn't enable opt-usrlocal = stateoverlay yet. It's on in Prow CI though. + # FCOS doesn't enable opt-usrlocal = stateoverlay. It's on in Prow CI though. # Just check the treefile so we do the right thing regardless of CoreOS CI # or Prow. if test "$(jq -r '.["opt-usrlocal"]' /usr/share/rpm-ostree/treefile.json)" = null; then @@ -40,14 +45,14 @@ case "${AUTOPKGTEST_REBOOT_MARK:-}" in [Service] Environment=RPMOSTREE_EXPERIMENTAL_FORCE_OPT_USRLOCAL_OVERLAY=1 EOF + fi - # This script itself is in /usr/local, so we need to move it back on top - # of the overlay if we used the hack. This simultaneously demos one way - # upgrading nodes could retain content if we turn on opt-usrlocal-overlays - # in FCOS. - cat > /etc/systemd/system/move-usr-local.service < /etc/systemd/system/move-usr-local.service <