[stable-2.14] ansible-test - Fix Alpine libexpat bootstrapping (#82898)

* [stable-2.14] ansible-test - Fix Alpine libexpat bootstrapping

(cherry picked from commit ca168eb367)

Co-authored-by: Matt Clay <matt@mystile.com>

* Alpine 3.16 has `expat` instead of `libexpat`
pull/82905/head
Matt Clay 8 months ago committed by GitHub
parent eef7bf7e4b
commit 4a99568fa3
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 `expat` package to ensure that an upgraded Python (`pyexpat`) continues to work.
while true; do
# shellcheck disable=SC2086
apk upgrade -q expat \
&& break
echo "Failed to upgrade expat. Sleeping before trying again..."
sleep 10
done
} }
bootstrap_remote_fedora() bootstrap_remote_fedora()

Loading…
Cancel
Save