Skip to content

Commit 656b66f

Browse files
committed
WIP DO NOT MERGE: Build against a Rawhide RPM
- Set VM_IMAGE_NAME on the currently-deleted tests as well DO NOT MERGE: Depends on UNMERGED containers/automation_images#411 . Signed-off-by: Miloslav Trmač <[email protected]>
1 parent 55d1eaf commit 656b66f

File tree

2 files changed

+19
-18
lines changed

2 files changed

+19
-18
lines changed

.cirrus.yml

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,14 @@ env:
3030
SKOPEO_PR: 2645
3131

3232
# Google-cloud VM Images
33-
IMAGE_SUFFIX: "c20250721t181111z-f42f41d13"
33+
# If you are updating IMAGE_SUFFIX: We are currently using rawhide for
34+
# the containers_image_sequoia tests because the rust-podman-sequoia
35+
# package is not available in earlier releases; once we update to a future
36+
# Fedora release (or if the package is backported), switch back from Rawhide
37+
# to the latest Fedora release.
38+
IMAGE_SUFFIX: "c20250730t185529z-f42f41d13"
3439
FEDORA_CACHE_IMAGE_NAME: "fedora-${IMAGE_SUFFIX}"
40+
RAWHIDE_CACHE_IMAGE_NAME: "rawhide-${IMAGE_SUFFIX}"
3541

3642
# Container FQIN's (include bleeding-edge development-level container deps.)
3743
FEDORA_CONTAINER_FQIN: "quay.io/libpod/fedora_podman:${IMAGE_SUFFIX}"
@@ -55,9 +61,12 @@ validate_task:
5561
# Required to be 200gig, do not modify - has i/o performance impact
5662
# according to gcloud CLI tool warning messages.
5763
disk: 200
58-
image_name: ${FEDORA_CACHE_IMAGE_NAME}
64+
# Eventually, hard-code FEDORA_CACHE_IMAGE_NAME here again and remove the
65+
# VM_IMAGE_NAME parameter.
66+
image_name: ${VM_IMAGE_NAME}
5967
env:
6068
HOME: "/root" # default unset, needed by golangci-lint.
69+
VM_IMAGE_NAME: ${FEDORA_CACHE_IMAGE_NAME}
6170
script: |
6271
git remote update
6372
make tools
@@ -68,6 +77,8 @@ validate_task:
6877
cross_task:
6978
only_if: $CIRRUS_PR != $CIRRUS_PR
7079
gce_instance: *fedora_vm
80+
env:
81+
VM_IMAGE_NAME: ${FEDORA_CACHE_IMAGE_NAME}
7182
script: make cross
7283

7384

@@ -78,9 +89,10 @@ test_task:
7889
only_if: &not_docs $CIRRUS_CHANGE_TITLE !=~ '.*CI:DOCS.*'
7990
gce_instance: *fedora_vm
8091
matrix:
81-
- name: "Test w/ Sequoia"
92+
- name: "Test w/ Sequoia (currently Rawhide)"
8293
env:
8394
BUILDTAGS: &withsequoia 'containers_image_sequoia'
95+
VM_IMAGE_NAME: ${RAWHIDE_CACHE_IMAGE_NAME}
8496
script: ${GOSRC}/${SCRIPT_BASE}/runner.sh image_tests
8597

8698

@@ -96,9 +108,10 @@ test_skopeo_task:
96108
- validate
97109
gce_instance: *fedora_vm
98110
matrix:
99-
- name: "Skopeo Test w/ Sequoia"
111+
- name: "Skopeo Test w/ Sequoia (currently Rawhide)"
100112
env:
101113
BUILDTAGS: *withsequoia
114+
VM_IMAGE_NAME: ${RAWHIDE_CACHE_IMAGE_NAME}
102115
setup_script: >-
103116
"${GOSRC}/${SCRIPT_BASE}/runner.sh" setup
104117
vendor_script: >-
@@ -127,6 +140,7 @@ meta_task:
127140
# Space-separated list of images used by this repository state
128141
IMGNAMES: |
129142
${FEDORA_CACHE_IMAGE_NAME}
143+
${RAWHIDE_CACHE_IMAGE_NAME}
130144
BUILDID: "${CIRRUS_BUILD_ID}"
131145
REPOREF: "${CIRRUS_REPO_NAME}"
132146
GCPJSON: ENCRYPTED[04306103eee1933f87deb8a5af6514a7e3164aa589d6079abc0451eb2360879430ed020d6e025ca64ef667138ce9d786]

contrib/cirrus/runner.sh

Lines changed: 1 addition & 14 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
if [[ -r "/etc/automation_environment" ]]; then
1210
source /etc/automation_environment
1311
source $AUTOMATION_LIB_PATH/common_lib.sh
@@ -97,24 +95,13 @@ _run_image_tests() {
9795
msg "Setup known_hosts for root"
9896
ssh-keyscan localhost > /root/.ssh/known_hosts \
9997

100-
if [[ "$BUILDTAGS" =~ containers_image_sequoia ]]; then
101-
# FIXME: All of this should be removed after libpodman_sequoia is packaged; instead, install the RPM at image build time.
102-
dnf install -y rustc cargo clang-devel capnproto
103-
git clone https://github.com/ueno/podman-sequoia
104-
(cd podman-sequoia && git checkout $PODMAN_SEQUOIA_COMMIT)
105-
chown -R $ROOTLESS_USER:$ROOTLESS_USER podman-sequoia
106-
msg "Building libpodman_sequoia"
107-
showrun ssh $ROOTLESS_USER@localhost "cd $GOSRC/podman-sequoia; cargo build --release"
108-
fi
109-
11098
msg "Start rekor server as $ROOTLESS_USER"
11199
showrun ssh $ROOTLESS_USER@localhost $GOSRC/signature/sigstore/rekor/testdata/start-rekor.sh ci
112100
# remove rekor server on function exit
113101
trap "ssh $ROOTLESS_USER@localhost $GOSRC/signature/sigstore/rekor/testdata/start-rekor.sh ci remove" RETURN
114102

115103
msg "Executing tests as $ROOTLESS_USER"
116-
showrun ssh $ROOTLESS_USER@localhost make -C $GOSRC test "BUILDTAGS='$BUILDTAGS'" "TESTFLAGS=-v" "REKOR_SERVER_URL='http://127.0.0.1:3000'" \
117-
SEQUOIA_SONAME_DIR="$GOSRC/podman-sequoia/target/release"
104+
showrun ssh $ROOTLESS_USER@localhost make -C $GOSRC test "BUILDTAGS='$BUILDTAGS'" "TESTFLAGS=-v" "REKOR_SERVER_URL='http://127.0.0.1:3000'"
118105
}
119106

120107
req_env_vars GOSRC

0 commit comments

Comments
 (0)