From ea933bc9785fad64effab18fff2fd87b22f5eb3d Mon Sep 17 00:00:00 2001 From: Rafael Guterres Jeffman Date: Tue, 17 Oct 2023 16:05:51 -0300 Subject: [PATCH] upstream CI: Pin Python version to 3.11 Azure Ubuntu images have Python 3.12 available, and as we did not pin the requested Python version, the latest available one was used, causing image preparation and tests to fail. This patch pins Python version to 3.11 until test can be executed with Python 3.12 and later. --- tests/azure/templates/fast_tests.yml | 4 ++++ tests/azure/templates/galaxy_tests.yml | 4 ++++ tests/azure/templates/group_tests.yml | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/tests/azure/templates/fast_tests.yml b/tests/azure/templates/fast_tests.yml index cde72a70c0..9c6c80f3ac 100644 --- a/tests/azure/templates/fast_tests.yml +++ b/tests/azure/templates/fast_tests.yml @@ -17,6 +17,7 @@ jobs: build_number: ${{ parameters.build_number }} scenario: ${{ parameters.scenario }} ansible_version: ${{ parameters.ansible_version }} + python_version: '< 3.12' - template: playbook_fast.yml parameters: @@ -25,6 +26,7 @@ jobs: build_number: ${{ parameters.build_number }} scenario: ${{ parameters.scenario }} ansible_version: ${{ parameters.ansible_version }} + python_version: '< 3.12' - template: playbook_fast.yml parameters: @@ -33,9 +35,11 @@ jobs: build_number: ${{ parameters.build_number }} scenario: ${{ parameters.scenario }} ansible_version: ${{ parameters.ansible_version }}z + python_version: '< 3.12' # - template: pytest_tests.yml # parameters: # build_number: ${{ parameters.build_number }} # scenario: ${{ parameters.scenario }} # ansible_version: ${{ parameters.ansible_version }} +# python_version: '< 3.12' diff --git a/tests/azure/templates/galaxy_tests.yml b/tests/azure/templates/galaxy_tests.yml index 809e28297d..465097de2e 100644 --- a/tests/azure/templates/galaxy_tests.yml +++ b/tests/azure/templates/galaxy_tests.yml @@ -17,6 +17,7 @@ jobs: build_number: ${{ parameters.build_number }} scenario: ${{ parameters.scenario }} ansible_version: ${{ parameters.ansible_version }} + python_version: '< 3.12' - template: galaxy_script.yml parameters: @@ -25,6 +26,7 @@ jobs: build_number: ${{ parameters.build_number }} scenario: ${{ parameters.scenario }} ansible_version: ${{ parameters.ansible_version }} + python_version: '< 3.12' - template: galaxy_script.yml parameters: @@ -33,6 +35,7 @@ jobs: build_number: ${{ parameters.build_number }} scenario: ${{ parameters.scenario }} ansible_version: ${{ parameters.ansible_version }} + python_version: '< 3.12' # Temporarily disable due to issues with ansible docker plugin. #- template: galaxy_pytest_script.yml @@ -40,3 +43,4 @@ jobs: # build_number: ${{ parameters.build_number }} # scenario: ${{ parameters.scenario }} # ansible_version: ${{ parameters.ansible_version }} +# python_version: '< 3.12' diff --git a/tests/azure/templates/group_tests.yml b/tests/azure/templates/group_tests.yml index 5e374fc64e..38f183dd97 100644 --- a/tests/azure/templates/group_tests.yml +++ b/tests/azure/templates/group_tests.yml @@ -17,6 +17,7 @@ jobs: build_number: ${{ parameters.build_number }} scenario: ${{ parameters.scenario }} ansible_version: ${{ parameters.ansible_version }} + python_version: '< 3.12' - template: playbook_tests.yml parameters: @@ -25,6 +26,7 @@ jobs: build_number: ${{ parameters.build_number }} scenario: ${{ parameters.scenario }} ansible_version: ${{ parameters.ansible_version }} + python_version: '< 3.12' - template: playbook_tests.yml parameters: @@ -33,6 +35,7 @@ jobs: build_number: ${{ parameters.build_number }} scenario: ${{ parameters.scenario }} ansible_version: ${{ parameters.ansible_version }} + python_version: '< 3.12' # Temporarily disabled due to ansible docker plugin issue. #- template: pytest_tests.yml @@ -40,3 +43,4 @@ jobs: # build_number: ${{ parameters.build_number }} # scenario: ${{ parameters.scenario }} # ansible_version: ${{ parameters.ansible_version }} +# python_version: '< 3.12'