Convert py27 job to ubuntu jammy

Ubuntu Jammy is the last Ubuntu LTS with python2.7 packaged. However, it
uses different package names than Bionic so we need to update to match.
Make this conversion because Bionic is on its way out and if we're going
to keep running 2.7 tests we need to do so on a newer platform.

Change-Id: I1529bfea454a4d16c1a3d1b6db730a0accdf3d40
Signed-off-by: Clark Boylan <clark.boylan@gmail.com>
This commit is contained in:
Clark Boylan
2025-10-30 08:06:51 -07:00
parent 0fcfe8e598
commit 028a5c3b08
2 changed files with 9 additions and 7 deletions

View File

@@ -15,8 +15,8 @@
- name: Install Python 2.7
package:
name:
- python
- python-dev
- python2.7
- python2.7-dev
state: present
when: ansible_facts['distribution'] != "CentOS"
- name: Install Python 2.7 for CentOS 7

View File

@@ -81,7 +81,7 @@
- job:
name: openstack-tox-py27
parent: openstack-tox
nodeset: ubuntu-bionic
nodeset: ubuntu-jammy
timeout: 2400
description: |
Run unit tests for an OpenStack Python project under cPython version 2.7.
@@ -98,10 +98,12 @@
vars:
tox_envlist: py27
bindep_profile: test py27
# NOTE(gmann): This is stable branch job and new tox 4 require
# some changes in tox.ini to be compatible with it. Let's
# pin tox <4 for stable branches testing (<=stable/zed).
ensure_tox_version: '<4'
# Tox >=4 only supports python3 venvs. Need to pin to <4 for py27 venvs.
# We pin virtualenv because old tox does not and latest virtualenv that
# runs on python3.10 does not support python2.7 virtualenvs.
# This is an abuse of the ensure_tox_version argument but python2.7 is
# slowly on its way out so we make do.
ensure_tox_version: '<4 virtualenv<20.22.0'
- job:
name: openstack-tox-py35