Skip to content

Commit 7396002

Browse files
committed
Reject riscv64 for images from Ubuntu 25.10+
RVA23 is not supported on our builders
1 parent 7cf9c6f commit 7396002

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

naughty-from.sh

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,31 @@ externalPinsDir="$(dirname "$BASH_SOURCE")/.external-pins"
1111
declare -A externalPinsArchesCache=(
1212
#[img:tag]='["arch","arch",...]' # (json array of strings)
1313
)
14+
15+
# custom error message (for why Ubuntu 25.10+ does not support riscv64)
16+
message=''
17+
1418
_is_naughty() {
1519
local from="$1"; shift
1620

21+
# DOI cannot support riscv64 on Ubuntu 25.10+ since it uses RVA23 and hardware does not exist yet
22+
# > For Ubuntu 25.10 release we plan to raise the required RISC-V ISA profile family to RVA23
23+
# https://bugs.launchpad.net/ubuntu/+source/ubuntu-release-upgrader/+bug/2111715
24+
if [ "$BASHBREW_ARCH" = 'riscv64' ] && [[ "$from" == 'ubuntu:'* ]]; then
25+
normalized="$(bashbrew list --uniq "$from")" # catch when latest changes
26+
case "$normalized" in
27+
ubuntu:22.04 | ubuntu:24.04 | ubuntu:25.04 | ubuntu:jammy* | ubuntu:noble* | ubuntu:plucky*)
28+
# these are fine, let the rest of the tests try them
29+
;;
30+
*)
31+
# ubuntu 25.10+, uses riscv64 with RVA23
32+
# unsupported in DOI until hardware is acquired
33+
message='DOI cannot support riscv64 on Ubuntu 25.10+ since it uses RVA23 and hardware does not exist yet'
34+
return 0
35+
;;
36+
esac
37+
fi
38+
1739
case "$from" in
1840
# "scratch" isn't a real image and is always permissible (on non-Windows)
1941
scratch)
@@ -132,3 +154,7 @@ for naughtyFrom in "${naughtyFroms[@]:-}"; do
132154
echo " - $img (FROM $from) [$arches]"
133155
fi
134156
done
157+
158+
if [ -n "$message" ]; then
159+
echo " - $message"
160+
fi

0 commit comments

Comments
 (0)