From e537ff6def3816bebffc70cffa06821136e847b2 Mon Sep 17 00:00:00 2001 From: "patchback[bot]" <45432694+patchback[bot]@users.noreply.github.com> Date: Sun, 21 Jun 2026 22:49:18 +0200 Subject: [PATCH] [PR #12303/69dd1edc backport][stable-11] CI: Don't install community.internal_test_tools for sanity tests (#12304) CI: Don't install community.internal_test_tools for sanity tests (#12303) Don't install community.internal_test_tools for sanity tests. (cherry picked from commit 69dd1edc406eed9b4b8c08b90fac5ae54e669772) Co-authored-by: Felix Fontein --- .github/workflows/ansible-test.yml | 2 -- tests/utils/shippable/shippable.sh | 12 +++++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ansible-test.yml b/.github/workflows/ansible-test.yml index 526070a550..b183e923cf 100644 --- a/.github/workflows/ansible-test.yml +++ b/.github/workflows/ansible-test.yml @@ -42,8 +42,6 @@ jobs: coverage: ${{ github.event_name == 'schedule' && 'always' || 'never' }} pull-request-change-detection: 'true' testing-type: sanity - pre-test-cmd: >- - git clone --depth=1 --single-branch https://github.com/ansible-collections/community.internal_test_tools.git ../../community/internal_test_tools units: runs-on: ubuntu-latest diff --git a/tests/utils/shippable/shippable.sh b/tests/utils/shippable/shippable.sh index 134ff6de4b..5adf19d547 100755 --- a/tests/utils/shippable/shippable.sh +++ b/tests/utils/shippable/shippable.sh @@ -78,14 +78,16 @@ if [ "${script}" == "linux" ] && [ "$after_script" == "ubuntu2004" ]; then COMMUNITY_CRYPTO_BRANCH=stable-2 fi -# Nothing further should be added to this list. +# To prevent Python dependencies on other collections only install other collections for unit and integration tests # This is to prevent modules or plugins in this collection having a runtime dependency on other collections. -retry git clone --depth=1 --single-branch https://github.com/ansible-collections/community.internal_test_tools.git "${ANSIBLE_COLLECTIONS_PATHS}/ansible_collections/community/internal_test_tools" -# NOTE: we're installing with git to work around Galaxy being a huge PITA (https://github.com/ansible/galaxy/issues/2429) -# retry ansible-galaxy -vvv collection install community.internal_test_tools + +if [ "${script}" != "sanity" ]; then + retry git clone --depth=1 --single-branch https://github.com/ansible-collections/community.internal_test_tools.git "${ANSIBLE_COLLECTIONS_PATHS}/ansible_collections/community/internal_test_tools" + # NOTE: we're installing with git to work around Galaxy being a huge PITA (https://github.com/ansible/galaxy/issues/2429) + # retry ansible-galaxy -vvv collection install community.internal_test_tools +fi if [ "${script}" != "sanity" ] && [ "${script}" != "units" ]; then - # To prevent Python dependencies on other collections only install other collections for integration tests retry git clone --depth=1 --single-branch https://github.com/ansible-collections/ansible.posix.git "${ANSIBLE_COLLECTIONS_PATHS}/ansible_collections/ansible/posix" retry git clone --depth=1 --single-branch --branch "${COMMUNITY_CRYPTO_BRANCH}" https://github.com/ansible-collections/community.crypto.git "${ANSIBLE_COLLECTIONS_PATHS}/ansible_collections/community/crypto" retry git clone --depth=1 --single-branch https://github.com/ansible-collections/community.docker.git "${ANSIBLE_COLLECTIONS_PATHS}/ansible_collections/community/docker"