From d366a785b8cf13f5b83f5ca9806d7012143efc9e Mon Sep 17 00:00:00 2001 From: Tim Burke Date: Tue, 19 Aug 2025 09:43:45 -0700 Subject: [PATCH] CI: Fix py27/py36/py37 jobs Stop using bionic for py27 and py37; we can use pyenv to install it on jammy. The py36 job still needs bionic; pin ansible to version 9 now that 11 is the default. Conflicts: .zuul.yaml Change-Id: I83e3bc609433995875e47c4103ca945154088a65 Signed-off-by: Tim Burke Co-Authored-By: Alistair Coles Related-Change: Ida8be4477116d3b44e3d7b470a183d2298e2d3d5 Related-Change: I16af4fc74974979bdf68390b42b2f571a8183a05 (cherry picked from commit 972baf30df79174565b34e8d0081854816e5fc82) (cherry picked from commit dc98a8463506ac520c469adb0ef47d0f7753905a) (cherry picked from commit fc6a0494266df3a480b49e64da83cb1430191a2d) --- .zuul.yaml | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/.zuul.yaml b/.zuul.yaml index cfb3c5291e..c649c70105 100644 --- a/.zuul.yaml +++ b/.zuul.yaml @@ -14,6 +14,7 @@ - job: name: swift-tox-py27 parent: swift-tox-base + nodeset: ubuntu-focal description: | Run unit-tests for swift under cPython version 2.7. @@ -22,6 +23,9 @@ tools/test-setup.sh. vars: tox_envlist: py27 + bindep_profile: test py27 + python_use_pyenv: True + python_version: 2.7 tox_environment: NOSE_COVER_HTML: 1 NOSE_COVER_HTML_DIR: '{toxinidir}/cover' @@ -31,6 +35,7 @@ name: swift-tox-py36 parent: swift-tox-base nodeset: ubuntu-bionic + ansible-version: 9 description: | Run unit-tests for swift under cPython version 3.6. @@ -40,6 +45,7 @@ vars: tox_envlist: py36 bindep_profile: test py36 + python_version: 3.6 tox_environment: NOSE_COVER_HTML: 1 NOSE_COVER_HTML_DIR: '{toxinidir}/cover' @@ -48,7 +54,6 @@ - job: name: swift-tox-py37 parent: swift-tox-base - nodeset: ubuntu-bionic description: | Run unit-tests for swift under cPython version 3.7. @@ -58,6 +63,7 @@ vars: tox_envlist: py37 bindep_profile: test py37 + python_use_pyenv: True python_version: 3.7 tox_environment: NOSE_COVER_HTML: 1 @@ -121,6 +127,7 @@ - job: name: swift-tox-func-py27 parent: swift-tox-base + nodeset: ubuntu-focal description: | Run functional tests for swift under cPython version 2.7. @@ -129,6 +136,9 @@ tools/test-setup.sh. vars: tox_envlist: func + bindep_profile: test py27 + python_use_pyenv: True + python_version: 2.7 - job: name: swift-tox-func-py38 @@ -215,7 +225,7 @@ - job: name: swift-tox-func-encryption-py27 - parent: swift-tox-base + parent: swift-tox-func-py27 description: | Run functional tests for swift under cPython version 2.7. @@ -227,7 +237,7 @@ - job: name: swift-tox-func-ec-py27 - parent: swift-tox-base + parent: swift-tox-func-py27 description: | Run functional tests for swift under cPython version 2.7. @@ -403,6 +413,7 @@ nodeset: ubuntu-jammy vars: bindep_profile: test py27 + python_use_pyenv: True python_version: 2.7 tox_environment: TMPDIR: '{{ ansible_env.HOME }}/xfstmp'