From 09285717775936b4611e3dbb92c661927a7cb226 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ely=C3=A9zer=20Rezende?= Date: Fri, 25 Jul 2025 10:18:38 -0400 Subject: [PATCH] Pin ansible-core for collection tests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Elyézer Rezende --- .github/actions/run_awx_devel/action.yml | 2 +- .github/workflows/ci.yml | 2 +- Makefile | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/actions/run_awx_devel/action.yml b/.github/actions/run_awx_devel/action.yml index 723e247783..0aae652307 100644 --- a/.github/actions/run_awx_devel/action.yml +++ b/.github/actions/run_awx_devel/action.yml @@ -36,7 +36,7 @@ runs: - name: Upgrade ansible-core shell: bash - run: python3 -m pip install --upgrade ansible-core + run: python3 -m pip install --upgrade 'ansible-core<2.18' - name: Install system deps shell: bash diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 94f1e41aa0..b0b0f20461 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -361,7 +361,7 @@ jobs: python-version: '3.x' - name: Upgrade ansible-core - run: python3 -m pip install --upgrade ansible-core + run: python3 -m pip install --upgrade 'ansible-core<2.18' - name: Download coverage artifacts uses: actions/download-artifact@v4 diff --git a/Makefile b/Makefile index 45f7fe2456..27c9753742 100644 --- a/Makefile +++ b/Makefile @@ -378,7 +378,7 @@ test_collection: if [ "$(VENV_BASE)" ]; then \ . $(VENV_BASE)/awx/bin/activate; \ fi && \ - if ! [ -x "$(shell command -v ansible-playbook)" ]; then pip install ansible-core; fi + if ! [ -x "$(shell command -v ansible-playbook)" ]; then pip install "ansible-core<2.19"; fi ansible --version py.test $(COLLECTION_TEST_DIRS) $(COVERAGE_ARGS) -v @if [ "${GITHUB_ACTIONS}" = "true" ]; \ @@ -417,7 +417,7 @@ install_collection: build_collection test_collection_sanity: rm -rf awx_collection_build/ rm -rf $(COLLECTION_INSTALL) - if ! [ -x "$(shell command -v ansible-test)" ]; then pip install ansible-core; fi + if ! [ -x "$(shell command -v ansible-test)" ]; then pip install "ansible-core<2.19"; fi ansible --version COLLECTION_VERSION=1.0.0 $(MAKE) install_collection cd $(COLLECTION_INSTALL) && \