ansible-test - Drop Python 3.8 controller support. (#78237)

pull/78316/head
Matt Clay 2 years ago committed by GitHub
parent 681c32ec65
commit 90ef914f77
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -93,8 +93,8 @@ stages:
test: rhel/7.9 test: rhel/7.9
- name: RHEL 8.6 py36 - name: RHEL 8.6 py36
test: rhel/8.6@3.6 test: rhel/8.6@3.6
- name: RHEL 8.6 py38 - name: RHEL 8.6 py39
test: rhel/8.6@3.8 test: rhel/8.6@3.9
- name: RHEL 9.0 - name: RHEL 9.0
test: rhel/9.0 test: rhel/9.0
- name: FreeBSD 12.3 - name: FreeBSD 12.3
@ -142,7 +142,6 @@ stages:
nameFormat: Python {0} nameFormat: Python {0}
testFormat: galaxy/{0}/1 testFormat: galaxy/{0}/1
targets: targets:
- test: 3.8
- test: 3.9 - test: 3.9
- test: '3.10' - test: '3.10'
- test: 3.11 - test: 3.11
@ -154,7 +153,6 @@ stages:
nameFormat: Python {0} nameFormat: Python {0}
testFormat: generic/{0}/1 testFormat: generic/{0}/1
targets: targets:
- test: 3.8
- test: 3.9 - test: 3.9
- test: '3.10' - test: '3.10'
- test: 3.11 - test: 3.11

@ -0,0 +1,2 @@
minor_changes:
- ansible-test - Remove support for Python 3.8 on the controller.

@ -101,16 +101,8 @@ class MypyTest(SanityMultipleVersion):
display.warning(f'Skipping sanity test "{self.name}" due to missing virtual environment support on Python {args.controller_python.version}.') display.warning(f'Skipping sanity test "{self.name}" due to missing virtual environment support on Python {args.controller_python.version}.')
return SanitySkipped(self.name, python.version) return SanitySkipped(self.name, python.version)
# Temporary hack to make Python 3.8 a remote-only Python version since we'll be dropping controller support for it soon. controller_python_versions = CONTROLLER_PYTHON_VERSIONS
# This avoids having to change annotations or add ignores for issues that are specific to that version. remote_only_python_versions = REMOTE_ONLY_PYTHON_VERSIONS
change_version = '3.8'
if change_version not in CONTROLLER_PYTHON_VERSIONS or change_version in REMOTE_ONLY_PYTHON_VERSIONS:
raise Exception(f'Remove this hack now that Python {change_version} is not supported by the controller.')
controller_python_versions = tuple(version for version in CONTROLLER_PYTHON_VERSIONS if version != change_version)
remote_only_python_versions = REMOTE_ONLY_PYTHON_VERSIONS + (change_version,)
contexts = ( contexts = (
MyPyContext('ansible-test', ['test/lib/ansible_test/_util/target/sanity/import/'], controller_python_versions), MyPyContext('ansible-test', ['test/lib/ansible_test/_util/target/sanity/import/'], controller_python_versions),

@ -27,7 +27,7 @@ from struct import unpack, pack
from termios import TIOCGWINSZ from termios import TIOCGWINSZ
try: try:
from typing_extensions import TypeGuard # TypeGuard was added in Python 3.9 from typing_extensions import TypeGuard # TypeGuard was added in Python 3.10
except ImportError: except ImportError:
TypeGuard = None TypeGuard = None

@ -10,10 +10,10 @@ REMOTE_ONLY_PYTHON_VERSIONS = (
'3.5', '3.5',
'3.6', '3.6',
'3.7', '3.7',
'3.8',
) )
CONTROLLER_PYTHON_VERSIONS = ( CONTROLLER_PYTHON_VERSIONS = (
'3.8',
'3.9', '3.9',
'3.10', '3.10',
'3.11', '3.11',

@ -162,10 +162,6 @@ bootstrap_remote_freebsd()
# Declare platform/python version combinations which do not have supporting OS packages available. # Declare platform/python version combinations which do not have supporting OS packages available.
# For these combinations ansible-test will use pip to install the requirements instead. # For these combinations ansible-test will use pip to install the requirements instead.
case "${platform_version}/${python_version}" in case "${platform_version}/${python_version}" in
"12.3/3.8")
;;
"13.1/3.8")
;;
*) *)
jinja2_pkg="" # not available jinja2_pkg="" # not available
cryptography_pkg="" # not available cryptography_pkg="" # not available

Loading…
Cancel
Save