Skip to content

Commit 3479866

Browse files
author
Elod Illes
committed
[CI] Replace deprecated regex and remove Centos8 and pin xena-last
Latest Zuul drops the following warnings: All regular expressions must conform to RE2 syntax, but an expression using the deprecated Perl-style syntax has been detected. Adjust the configuration to conform to RE2 syntax. The RE2 syntax error is: invalid perl operator: (?! This patch replaces the 'irrelevant-files' to 'files' with explicitly listing the pattern which files should be the tests run against. Conflicts: .zuul.yaml NOTE(elod.illes): parts of the Xena version of this patch were not needed as they were not introduced in Wallaby yet. Also, devstack-gate based base job is dropped as it is not used in zuul.yaml at all and devstack-gate is retired and removed completely. Change-Id: If287e800fb9ff428dbe6f9c4c046627f22afe3df (cherry picked from commit 9b77bae) (cherry picked from commit 8223e6a) (cherry picked from commit 510a27b) (cherry picked from commit 197b14d) (cherry picked from commit ffc252e) (cherry picked from commit 23fc1b9) (cherry picked from commit 6fadd99)
1 parent bff6da2 commit 3479866

File tree

1 file changed

+26
-51
lines changed

1 file changed

+26
-51
lines changed

.zuul.yaml

Lines changed: 26 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,6 @@
11
# See https://docs.openstack.org/infra/manual/drivers.html#naming-with-zuul-v3
22
# for job naming conventions.
33

4-
- job:
5-
name: nova-dsvm-multinode-base
6-
parent: legacy-dsvm-base-multinode
7-
description: |
8-
Base job for multinode nova devstack/tempest jobs.
9-
Will setup firewall rules on all the nodes allowing them to talk to
10-
each other.
11-
timeout: 10800
12-
required-projects:
13-
- openstack/devstack-gate
14-
- openstack/nova
15-
- openstack/tempest
16-
irrelevant-files: &dsvm-irrelevant-files
17-
- ^api-.*$
18-
- ^(test-|)requirements.txt$
19-
- ^.*\.rst$
20-
- ^.git.*$
21-
- ^doc/.*$
22-
- ^nova/hacking/.*$
23-
- ^nova/locale/.*$
24-
- ^nova/policies/.*$
25-
- ^nova/tests/.*$
26-
- ^nova/test.py$
27-
- ^releasenotes/.*$
28-
- ^setup.cfg$
29-
- ^tools/.*$
30-
- ^tox.ini$
31-
324
- job:
335
name: nova-tox-functional-py38
346
parent: openstack-tox-functional-py38
@@ -95,7 +67,21 @@
9567
description: |
9668
Run tempest live migration tests against local qcow2 ephemeral storage
9769
and shared LVM/iSCSI cinder volumes.
98-
irrelevant-files: *dsvm-irrelevant-files
70+
irrelevant-files: &dsvm-irrelevant-files
71+
- ^api-.*$
72+
- ^(test-|)requirements.txt$
73+
- ^.*\.rst$
74+
- ^.git.*$
75+
- ^doc/.*$
76+
- ^nova/hacking/.*$
77+
- ^nova/locale/.*$
78+
- ^nova/policies/.*$
79+
- ^nova/tests/.*$
80+
- ^nova/test.py$
81+
- ^releasenotes/.*$
82+
- ^setup.cfg$
83+
- ^tools/.*$
84+
- ^tox.ini$
9985
vars:
10086
tox_envlist: all
10187
tempest_test_regex: (^tempest\.api\.compute\.admin\.(test_live_migration|test_migration))
@@ -189,24 +175,11 @@
189175
parent: devstack-tempest
190176
description: |
191177
Run tempest compute API tests using LVM image backend. This only runs
192-
against nova/virt/libvirt/* changes.
193-
# Copy irrelevant-files from nova-dsvm-multinode-base and then exclude
194-
# anything that is not in nova/virt/libvirt/* or nova/privsep/*.
195-
irrelevant-files:
196-
- ^(?!.zuul.yaml)(?!nova/virt/libvirt/)(?!nova/privsep/).*$
197-
- ^api-.*$
198-
- ^(test-|)requirements.txt$
199-
- ^.*\.rst$
200-
- ^.git.*$
201-
- ^doc/.*$
202-
- ^nova/hacking/.*$
203-
- ^nova/locale/.*$
204-
- ^nova/tests/.*$
205-
- ^nova/test.py$
206-
- ^releasenotes/.*$
207-
- ^setup.cfg$
208-
- ^tools/.*$
209-
- ^tox.ini$
178+
against nova/virt/libvirt/*, nova/privsep/* and .zuul.yaml changes.
179+
files:
180+
- ^nova/virt/libvirt/.*$
181+
- ^nova/privsep/.*$
182+
- .zuul.yaml
210183
vars:
211184
# We use the "all" environment for tempest_test_regex and
212185
# tempest_black_regex.
@@ -528,11 +501,12 @@
528501
- nova-ceph-multistore:
529502
irrelevant-files: *dsvm-irrelevant-files
530503
- neutron-tempest-linuxbridge:
531-
irrelevant-files:
504+
files:
532505
# NOTE(mriedem): This job has its own irrelevant-files section
533506
# so that we only run it on changes to networking and libvirt/vif
534507
# code; we don't need to run this on all changes.
535-
- ^(?!nova/network/.*)(?!nova/virt/libvirt/vif.py).*$
508+
- ^nova/network/.*$
509+
- nova/virt/libvirt/vif.py
536510
- nova-live-migration
537511
- nova-lvm
538512
- nova-multi-cell
@@ -582,11 +556,12 @@
582556
- nova-ceph-multistore:
583557
irrelevant-files: *dsvm-irrelevant-files
584558
- neutron-tempest-linuxbridge:
585-
irrelevant-files:
559+
files:
586560
# NOTE(mriedem): This job has its own irrelevant-files section
587561
# so that we only run it on changes to networking and libvirt/vif
588562
# code; we don't need to run this on all changes.
589-
- ^(?!nova/network/.*)(?!nova/virt/libvirt/vif.py).*$
563+
- ^nova/network/.*$
564+
- nova/virt/libvirt/vif.py
590565
- tempest-integrated-compute:
591566
irrelevant-files: *policies-irrelevant-files
592567
- nova-grenade-multinode:

0 commit comments

Comments
 (0)