Skip to content

Commit dbbaaa3

Browse files
committed
DO NOT MERGE: Rely on podman-sequoia being present in the CI image
Relies on UNMERGED containers/automation_images#411 . Signed-off-by: Miloslav Trmač <[email protected]>
1 parent 2b2b821 commit dbbaaa3

File tree

2 files changed

+21
-23
lines changed

2 files changed

+21
-23
lines changed

.cirrus.yml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,14 @@ env:
2121
SCRIPT_BASE: "./contrib/cirrus"
2222

2323
# Google-cloud VM Images
24-
IMAGE_SUFFIX: "c20250721t181111z-f42f41d13"
24+
# If you are updating IMAGE_SUFFIX: We are currently using rawhide for
25+
# the containers_image_sequoia tests because the rust-podman-sequoia
26+
# package is not available in earlier releases; once we update to a future
27+
# Fedora release (or if the package is backported), switch back from Rawhide
28+
# to the latest Fedora release.
29+
IMAGE_SUFFIX: "c20250730t185529z-f42f41d13"
2530
FEDORA_CACHE_IMAGE_NAME: "fedora-${IMAGE_SUFFIX}"
31+
RAWHIDE_CACHE_IMAGE_NAME: "rawhide-${IMAGE_SUFFIX}"
2632

2733
# Container FQIN's
2834
FEDORA_CONTAINER_FQIN: "quay.io/libpod/fedora_podman:${IMAGE_SUFFIX}"
@@ -190,17 +196,21 @@ test_skopeo_task:
190196
# Required to be 200gig, do not modify - has i/o performance impact
191197
# according to gcloud CLI tool warning messages.
192198
disk: 200
193-
image_name: ${FEDORA_CACHE_IMAGE_NAME}
199+
image_name: ${VM_IMAGE_NAME}
194200
matrix:
195201
- name: "Skopeo Test" # N/B: Name ref. by hack/get_fqin.sh
196202
env:
197203
BUILDTAGS: ''
204+
VM_IMAGE_NAME: ${FEDORA_CACHE_IMAGE_NAME}
198205
- name: "Skopeo Test w/ opengpg"
199206
env:
200207
BUILDTAGS: *withopengpg
201-
- name: "Skopeo test w/ Sequoia"
208+
VM_IMAGE_NAME: ${FEDORA_CACHE_IMAGE_NAME}
209+
- name: "Skopeo test w/ Sequoia (currently Rawhide)"
202210
env:
203211
BUILDTAGS: 'containers_image_sequoia'
212+
# If you are removing the use of rawhide, also remove the VM_IMAGE_NAME condition from runner.sh .
213+
VM_IMAGE_NAME: ${RAWHIDE_CACHE_IMAGE_NAME}
204214
setup_script: >-
205215
"${GOSRC}/${SCRIPT_BASE}/runner.sh" setup
206216
vendor_script: >-

contrib/cirrus/runner.sh

Lines changed: 8 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66

77
set -e
88

9-
PODMAN_SEQUOIA_COMMIT=7dda4eaf22db19c487a6fbc01fa35838c888e0ab # FIXME: drop
10-
119
# BEGIN Global export of all variables
1210
set -a
1311

@@ -73,8 +71,10 @@ _run_setup() {
7371
# automation, but the sources are in different directories. It's
7472
# possible for a mismatch to happen, but should (hopefully) be unlikely.
7573
# Double-check to make sure.
74+
# Temporarily, allow running on Rawhide VMs and consuming older binaries:
75+
# that should be compatible enough. Eventually, we’ll stop using Rawhide again.
7676
if ! grep -Fqx "ID=$OS_RELEASE_ID" $mnt/etc/os-release || \
77-
! grep -Fqx "VERSION_ID=$OS_RELEASE_VER" $mnt/etc/os-release; then
77+
{ ! [[ "$VM_IMAGE_NAME" =~ "rawhide" ]] && ! grep -Fqx "VERSION_ID=$OS_RELEASE_VER" $mnt/etc/os-release; } then
7878
die "Somehow $SKOPEO_CIDEV_CONTAINER_FQIN is not based on $OS_REL_VER."
7979
fi
8080
msg "Copying test binaries from $SKOPEO_CIDEV_CONTAINER_FQIN /usr/local/bin/"
@@ -98,20 +98,8 @@ _run_vendor() {
9898
}
9999

100100
_run_build() {
101-
if [[ "$BUILDTAGS" =~ containers_image_sequoia ]]; then
102-
# FIXME: All of this should be removed after libpodman_sequoia is packaged; instead, install the RPM at image build time.
103-
dnf install -y rustc cargo clang-devel capnproto
104-
msg "Checking out libpodman_sequoia"
105-
git clone https://github.com/ueno/podman-sequoia
106-
(cd podman-sequoia && git checkout $PODMAN_SEQUOIA_COMMIT)
107-
msg "Building libpodman_sequoia"
108-
(cd podman-sequoia; cargo build --release)
109-
msg "Built $(pwd)/podman-sequoia/target/release:"
110-
ls -la $(pwd)/podman-sequoia/target/release
111-
fi
112-
113-
make bin/skopeo BUILDTAGS="$BUILDTAGS" SEQUOIA_SONAME_DIR=$(pwd)/podman-sequoia/target/release
114-
make install PREFIX=/usr/local BUILDTAGS="$BUILDTAGS" SEQUOIA_SONAME_DIR=$(pwd)/podman-sequoia/target/release
101+
make bin/skopeo BUILDTAGS="$BUILDTAGS"
102+
make install PREFIX=/usr/local BUILDTAGS="$BUILDTAGS"
115103
}
116104

117105
_run_cross() {
@@ -123,7 +111,7 @@ _run_doccheck() {
123111
}
124112

125113
_run_unit() {
126-
make test-unit-local BUILDTAGS="$BUILDTAGS" SEQUOIA_SONAME_DIR=$(pwd)/podman-sequoia/target/release
114+
make test-unit-local BUILDTAGS="$BUILDTAGS"
127115
}
128116

129117
_podman_reset() {
@@ -133,13 +121,13 @@ _podman_reset() {
133121

134122
_run_integration() {
135123
_podman_reset
136-
make test-integration-local BUILDTAGS="$BUILDTAGS" SEQUOIA_SONAME_DIR=$(pwd)/podman-sequoia/target/release
124+
make test-integration-local BUILDTAGS="$BUILDTAGS"
137125
}
138126

139127
_run_system() {
140128
_podman_reset
141129
##### Note: Test MODIFIES THE HOST SETUP #####
142-
make test-system-local BUILDTAGS="$BUILDTAGS" SEQUOIA_SONAME_DIR=$(pwd)/podman-sequoia/target/release
130+
make test-system-local BUILDTAGS="$BUILDTAGS"
143131
}
144132

145133
req_env_vars SKOPEO_PATH

0 commit comments

Comments
 (0)