Skip to content
This repository was archived by the owner on May 27, 2025. It is now read-only.

Commit fd2ee9f

Browse files
authored
PR #1826: old-storage: better feedback, fix AlmaLinux
1 parent d442a9a commit fd2ee9f

File tree

2 files changed

+55
-7
lines changed

2 files changed

+55
-7
lines changed

examples/Dockerfile.almalinux_8ch

Lines changed: 28 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,37 @@ FROM almalinux:8
1616
#
1717
# 4. Issue #1103: Install libarchive to resolve cmake bug
1818
#
19-
# FIXME: This instruction seems to be running afoul of #1679. I’ve re-wrapped
20-
# it to have fewer continuations in hopes we trigger that less.
19+
# 5. AlmaLinux lost their GPG key, so manual intervention is required to
20+
# install current packages [1].
21+
#
22+
# [1]: https://almalinux.org/blog/2023-12-20-almalinux-8-key-update/
23+
RUN rpm --import https://repo.almalinux.org/almalinux/RPM-GPG-KEY-AlmaLinux
2124
RUN dnf install -y --setopt=install_weak_deps=false \
2225
epel-release \
23-
'dnf-command(config-manager)' \
24-
&& dnf config-manager --enable powertools \
25-
&& dnf install -y --setopt=install_weak_deps=false \
26+
'dnf-command(config-manager)'
27+
RUN dnf config-manager --enable powertools
28+
RUN dnf install -y --setopt=install_weak_deps=false \
2629
dnf-plugin-ovl \
27-
autoconf automake gcc git libarchive libpng-devel make python3 python3-devel python3-lark-parser python3-requests python3-sphinx python3-sphinx_rtd_theme rpm-build rpmlint rsync squashfs-tools squashfuse wget which \
30+
autoconf \
31+
automake \
32+
gcc \
33+
git \
34+
libarchive \
35+
libpng-devel \
36+
make \
37+
python3 \
38+
python3-devel \
39+
python3-lark-parser \
40+
python3-requests \
41+
python3-sphinx \
42+
python3-sphinx_rtd_theme \
43+
rpm-build \
44+
rpmlint \
45+
rsync \
46+
squashfs-tools \
47+
squashfuse \
48+
wget \
49+
which \
2850
&& dnf clean all
2951

3052
# Need wheel to install bundled Lark, and the RPM version doesn’t work.

test/old-storage

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,10 @@ else
7777
oldtars=$(printf '%s ' "$@") # https://www.shellcheck.net/wiki/SC2124
7878
fi
7979

80+
summary=''
81+
pass_ct=0
82+
fail_ct=0
83+
8084

8185
### Main loop
8286

@@ -113,9 +117,31 @@ for oldtar in $oldtars; do
113117
ch-image pull archlinux:latest
114118

115119
INFO "testing"
116-
ch-test -b ch-image --pedantic=no -s "$scope" all
120+
if (ch-test -b ch-image --pedantic=no -s "$scope" all); then
121+
pass_ct=$((pass_ct + 1))
122+
summary+="😁 ${oldtar}: PASS"$'\n'
123+
else
124+
fail_ct=$((fail_ct + 1))
125+
summary+="🤦 ${oldtar}: FAIL"$'\n'
126+
fi
127+
117128

118129
INFO "deleting: $storage"
119130
rm -Rf --one-file-system "$storage"
120131
[[ ! -d $storage ]]
121132
done
133+
134+
cat <<EOF
135+
136+
🌻🌻🌻 Summary 🌻🌻🌻
137+
138+
${summary}
139+
pass: ${pass_ct}
140+
fail: ${fail_ct}
141+
EOF
142+
143+
if [[ $fail_ct -gt 0 ]]; then
144+
echo
145+
fatal_msg 'one or more old storage test suites failed'
146+
exit 1
147+
fi

0 commit comments

Comments
 (0)