Update gate jobs as per the 2025.1 cycle testing runtime

As per 2025.1 testing runtime[1], we need to test on Ubuntu
Noble and python 3.9 to 3.12.

Also fixing the memoryview error
   AttributeError: 'memoryview' object has no attribute 'decode'

Tracking: https://etherpad.opendev.org/p/migrate-to-noble

[1] https://governance.openstack.org/tc/reference/runtimes/2025.1.html

Change-Id: Idf0f211043c13c6b96f40fcf2891e84d5959fdb6
This commit is contained in:
Ghanshyam Mann 2024-01-03 18:51:35 -08:00
parent cffa9966df
commit 525cd14e18
3 changed files with 13 additions and 15 deletions

View File

@ -6,18 +6,14 @@
check:
jobs:
- openstack-tox-pep8
- openstack-tox-py35
- openstack-tox-py36
- openstack-tox-py37
- openstack-tox-py38
- openstack-tox-py39
- openstack-tox-py310
- openstack-tox-py311
- openstack-tox-py312
gate:
jobs:
- openstack-tox-pep8
- openstack-tox-py35
- openstack-tox-py36
- openstack-tox-py37
- openstack-tox-py38
- openstack-tox-py39
- openstack-tox-py310
- openstack-tox-py311
- openstack-tox-py312

View File

@ -80,7 +80,9 @@ class TestCollect(base.TestCase):
finally:
result.stopTestRun()
self.assertIsNotNone(result.counters_content)
content = json.loads(result.counters_content.decode('utf-8'))
if isinstance(result.counters_content, memoryview):
counters_content = result.counters_content.tobytes()
content = json.loads(counters_content.decode('utf-8'))
self.assertTrue(isinstance(content, dict))
self.assertIn('mysql', content)
self.assertIn('queues', content)
@ -107,7 +109,9 @@ class TestCollect(base.TestCase):
finally:
result.stopTestRun()
self.assertIsNotNone(result.counters_content)
content = json.loads(result.counters_content.decode('utf-8'))
if isinstance(result.counters_content, memoryview):
counters_content = result.counters_content.tobytes()
content = json.loads(counters_content.decode('utf-8'))
self.assertTrue(isinstance(content, dict))
self.assertIn('mysql', content)
self.assertIn('queues', content)

View File

@ -6,7 +6,7 @@ description_file =
author = OpenStack
author_email = openstack-discuss@lists.openstack.org
home_page = https://docs.openstack.org/os-performance-tools/latest/
python_requires = >=3.5
python_requires = >=3.9
classifier =
Environment :: OpenStack
Intended Audience :: Information Technology
@ -15,12 +15,10 @@ classifier =
Operating System :: POSIX :: Linux
Programming Language :: Python
Programming Language :: Python :: 3
Programming Language :: Python :: 3.5
Programming Language :: Python :: 3.6
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
Programming Language :: Python :: 3.11
Programming Language :: Python :: 3.12
Programming Language :: Python :: 3 :: Only
Programming Language :: Python :: Implementation :: CPython