This repository was archived by the owner on May 27, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +55
-7
lines changed Expand file tree Collapse file tree 2 files changed +55
-7
lines changed Original file line number Diff line number Diff 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
2124RUN 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.
Original file line number Diff line number Diff line change 7777 oldtars=$( printf ' %s ' " $@ " ) # https://www.shellcheck.net/wiki/SC2124
7878fi
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 ]]
121132done
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
You can’t perform that action at this time.
0 commit comments