[CI] Replace deprecated regex

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.

Change-Id: If287e800fb9ff428dbe6f9c4c046627f22afe3df
(cherry picked from commit 9b77bae8a3)
This commit is contained in:
Elod Illes 2024-06-18 15:10:13 +02:00
parent da9e56c9af
commit 8223e6a7c4

View File

@ -288,24 +288,11 @@
parent: devstack-tempest
description: |
Run tempest compute API tests using LVM image backend. This only runs
against nova/virt/libvirt/* changes.
# Copy irrelevant-files from nova-dsvm-multinode-base and then exclude
# anything that is not in nova/virt/libvirt/* or nova/privsep/*.
irrelevant-files:
- ^(?!.zuul.yaml)(?!nova/virt/libvirt/)(?!nova/privsep/).*$
- ^api-.*$
- ^(test-|)requirements.txt$
- ^.*\.rst$
- ^.git.*$
- ^doc/.*$
- ^nova/hacking/.*$
- ^nova/locale/.*$
- ^nova/tests/.*$
- ^nova/test.py$
- ^releasenotes/.*$
- ^setup.cfg$
- ^tools/.*$
- ^tox.ini$
against nova/virt/libvirt/*, nova/privsep/* and .zuul.yaml changes.
files:
- ^nova/virt/libvirt/.*$
- ^nova/privsep/.*$
- .zuul.yaml
vars:
# Increase the swap size to avoid OOM errors when running the tests.
configure_swap_size: 8192
@ -347,22 +334,11 @@
# NOTE(chateaulav): due to constraints with no IDE support for aarch64,
# tests have been limited to eliminate any items that are incompatible.
# This is to be re-evaluated as greater support is added and defined.
irrelevant-files:
- ^(?!.zuul.yaml)(?!nova/virt/libvirt/)(?!nova/objects/)(?!nova/scheduler/).*$
- ^api-.*$
- ^(test-|)requirements.txt$
- ^.*\.rst$
- ^.git.*$
- ^doc/.*$
- ^nova/hacking/.*$
- ^nova/locale/.*$
- ^nova/policies/.*$
- ^nova/tests/.*$
- ^nova/test.py$
- ^releasenotes/.*$
- ^setup.cfg$
- ^tools/.*$
- ^tox.ini$
files:
- ^nova/virt/libvirt/.*$
- ^nova/objects/.*$
- ^nova/scheduler/.*$
- .zuul.yaml
vars:
tox_envlist: all
tempest_test_regex: ^tempest\.(api\.compute\.servers|scenario\.test_network_basic_ops)
@ -846,11 +822,12 @@
- nova-ceph-multistore:
irrelevant-files: *nova-base-irrelevant-files
- neutron-linuxbridge-tempest:
irrelevant-files:
files:
# NOTE(mriedem): This job has its own irrelevant-files section
# so that we only run it on changes to networking and libvirt/vif
# code; we don't need to run this on all changes.
- ^(?!nova/network/.*)(?!nova/virt/libvirt/vif.py).*$
- ^nova/network/.*$
- nova/virt/libvirt/vif.py
- nova-live-migration
- nova-live-migration-ceph
- nova-lvm
@ -899,11 +876,12 @@
- nova-ceph-multistore:
irrelevant-files: *nova-base-irrelevant-files
- neutron-linuxbridge-tempest:
irrelevant-files:
files:
# NOTE(mriedem): This job has its own irrelevant-files section
# so that we only run it on changes to networking and libvirt/vif
# code; we don't need to run this on all changes.
- ^(?!nova/network/.*)(?!nova/virt/libvirt/vif.py).*$
- ^nova/network/.*$
- nova/virt/libvirt/vif.py
- tempest-integrated-compute:
irrelevant-files: *policies-irrelevant-files
- tempest-integrated-compute-enforce-scope-new-defaults: