Skip to content

Commit 875d731

Browse files
Zuulopenstack-gerrit
authored andcommitted
Merge "Run functional test with threading mode"
2 parents 2e0bfb1 + e0a7d59 commit 875d731

2 files changed

Lines changed: 48 additions & 0 deletions

File tree

.zuul.yaml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,29 @@
7171
bindep_profile: test py313
7272
tox_envlist: py313-threading
7373

74+
- job:
75+
name: nova-tox-functional-py313-threading
76+
parent: openstack-tox-functional-py313
77+
description: |
78+
Run tox-based functional tests for the OpenStack Nova project
79+
under cPython version 3.13 with eventlet disabled (native threading).
80+
Uses tox with the ``functional-py313-threading`` environment.
81+
82+
This job also provides a parent for other projects to run the nova
83+
functional tests with threading on their own changes.
84+
required-projects:
85+
# including nova here makes this job reusable by other projects
86+
- openstack/nova
87+
- openstack/placement
88+
irrelevant-files: *functional-irrelevant-files
89+
vars:
90+
# explicitly stating the work dir makes this job reusable by other
91+
# projects
92+
zuul_work_dir: src/opendev.org/openstack/nova
93+
bindep_profile: test py313
94+
tox_envlist: functional-py313-threading
95+
timeout: 7200
96+
7497
- job:
7598
name: nova-tox-validate-backport
7699
parent: openstack-tox
@@ -950,6 +973,8 @@
950973
voting: false
951974
- nova-tox-functional-py310
952975
- nova-tox-functional-py313
976+
- nova-tox-functional-py313-threading:
977+
voting: false
953978
- tempest-integrated-compute:
954979
# NOTE(gmann): Policies changes do not need to run all the
955980
# integration test jobs. Running only tempest and grenade
@@ -979,6 +1004,8 @@
9791004
- nova-live-migration
9801005
- nova-tox-functional-py310
9811006
- nova-tox-functional-py313
1007+
- nova-tox-functional-py313-threading:
1008+
voting: false
9821009
- nova-multi-cell
9831010
- nova-next
9841011
- nova-tox-validate-backport

tox.ini

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,27 @@ commands =
118118
stestr --test-path=./nova/tests/functional run {posargs}
119119
stestr slowest
120120

121+
[testenv:functional-py313-threading]
122+
description =
123+
Run functional tests with native threading (eventlet disabled).
124+
passenv =
125+
{[testenv]passenv}
126+
GENERATE_SAMPLES
127+
setenv =
128+
{[testenv]setenv}
129+
# we do not have any greenlet leaks in functional tests so enforce that
130+
# by making greenlet leaks a failure.
131+
NOVA_RAISE_ON_GREENLET_LEAK=True
132+
# run the test without eventlet (native threading)
133+
OS_NOVA_DISABLE_EVENTLET_PATCHING=True
134+
deps =
135+
{[testenv]deps}
136+
openstack-placement>=9.0.0.0b1
137+
extras =
138+
commands =
139+
stestr --test-path=./nova/tests/functional run {posargs}
140+
stestr slowest
141+
121142
[testenv:functional-without-sample-db-tests]
122143
description =
123144
Run functional tests by excluding the API|Notification

0 commit comments

Comments
 (0)