Skip to content

Commit

Permalink
ansible-test - Fix Alpine libexpat bootstrapping
Browse files Browse the repository at this point in the history
  • Loading branch information
mattclay committed Mar 22, 2024
1 parent ad0ec47 commit ca168eb
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
2 changes: 2 additions & 0 deletions changelogs/fragments/ansible-test-alpine-libexpat.yml
@@ -0,0 +1,2 @@
bugfixes:
- ansible-test - The ``libexpat`` package is automatically upgraded during remote bootstrapping to maintain compatibility with newer Python packages.
9 changes: 9 additions & 0 deletions test/lib/ansible_test/_util/target/setup/bootstrap.sh
Expand Up @@ -106,6 +106,15 @@ bootstrap_remote_alpine()
echo "Failed to install packages. Sleeping before trying again..."
sleep 10
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()
Expand Down

0 comments on commit ca168eb

Please sign in to comment.