[stable-2.15] ansible-test - Fix Alpine libexpat bootstrapping (#82897)

(cherry picked from commit ca168eb367)
pull/82906/head
Matt Clay 8 months ago committed by GitHub
parent 4008e2cf70
commit 7bed756498
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -0,0 +1,2 @@
bugfixes:
- ansible-test - The ``libexpat`` package is automatically upgraded during remote bootstrapping to maintain compatibility with newer Python packages.

@ -111,6 +111,15 @@ bootstrap_remote_alpine()
echo "Failed to install packages. Sleeping before trying again..." echo "Failed to install packages. Sleeping before trying again..."
sleep 10 sleep 10
done done
# Upgrade the `libexpat` package to ensure that an upgraded Python (`pyexpat`) continues to work.
while true; do
# shellcheck disable=SC2086
apk upgrade -q libexpat \
&& break
echo "Failed to upgrade libexpat. Sleeping before trying again..."
sleep 10
done
} }
bootstrap_remote_fedora() bootstrap_remote_fedora()

Loading…
Cancel
Save