Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion contrib/pc-sanity/bin/check-production-suite.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
codename=$(lsb_release -cs)
oemcodename=$(get-oem-info.sh --oem-codename)
platform=$(get-oem-info.sh --platform-codename)
release_number=$(lsb_release -rs)

if [ -z "$codename" ] || [ -z "$oemcodename" ] || [ -z "$platform" ]; then
echo "Can't get oem info from the platform"
Expand Down Expand Up @@ -40,10 +41,20 @@ if ! [[ "$components" == *"$oemcodename"* ]]; then
exit 1
fi

if [ "$oemcodename" = "somerville" ]; then
if [ "$(echo "$release_number >= 24.04" | bc -l)" -eq 1 ]; then
# For versions 24.04 and newer, check platform archives for all OEMs
if ! [[ "$components" == *"$oemcodename-$platform"* ]]; then
echo "platform archive is not ready"
echo "$components"
exit 1
fi
elif [ "$(echo "$release_number == 22.04" | bc -l)" -eq 1 ]; then
# For 22.04, only check somerville
if [ "$oemcodename" = "somerville" ]; then
if ! [[ "$components" == *"$oemcodename-$platform"* ]]; then
echo "platform archive is not ready"
echo "$components"
exit 1
fi
fi
fi
4 changes: 3 additions & 1 deletion contrib/pc-sanity/units/pc-sanity/pc-sanity-check-env.pxu
Original file line number Diff line number Diff line change
Expand Up @@ -151,4 +151,6 @@ user: root
command: check-production-suite.sh
_summary: Check if production suite is created properly
_description:
Add a job to check the production suite is created correcly.
Add a job to check the production suite is created correctly.
On Ubuntu 22.04, only checks somerville platform archives.
On Ubuntu 24.04 and newer versions, checks platform archives for somerville, stella, and sutton.