From 3ac3eddb3cfb3c43ad37189abf9704f6bf9c4e2b Mon Sep 17 00:00:00 2001 From: cid Date: Thu, 23 May 2024 14:35:35 +0100 Subject: [PATCH] Fix negative lookahead assertion syntax error Python regexes are deprecated in Zuul, so this commit updates the configuration to use RE2-compatible syntax. Change-Id: Ia7e516c151a4da93e00cee602299e722bbc972f2 --- zuul.d/ironic-inspector-jobs.yaml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/zuul.d/ironic-inspector-jobs.yaml b/zuul.d/ironic-inspector-jobs.yaml index f14c845e8..1959477c1 100644 --- a/zuul.d/ironic-inspector-jobs.yaml +++ b/zuul.d/ironic-inspector-jobs.yaml @@ -9,14 +9,16 @@ - ^.*\.rst$ - ^api-ref/.*$ - ^doc/.*$ - - ^ironic_inspector/test/(?!.*tempest).*$ - ^ironic/tests/.*$ - ^ironic_inspector/locale/.*$ + - ^ironic_inspector/test/.*$ - ^releasenotes/.*$ - ^tools/.*$ - ^test-requirements.txt$ - ^setup.cfg$ - ^tox.ini$ + - regex: ^ironic_inspector/test/.*tempest.*$ + negate: true vars: tox_envlist: all tempest_test_regex: Inspector @@ -99,13 +101,17 @@ - ^.*\.rst$ - ^api-ref/.*$ - ^doc/.*$ - - ^ironic_inspector/test/(?!.*tempest).*$ - ^ironic_inspector/locale/.*$ + - ^ironic_inspector/test/.*$ - ^releasenotes/.*$ - - ^tools/(?!bandit\.yml).*$ - ^test-requirements.txt$ - ^setup.cfg$ - ^tox.ini$ + - ^tools/.*$ + - regex: ^tools/bandit\.yml$ + negate: true + - regex: ^ironic_inspector/test/.*tempest.*$ + negate: true - job: name: ironic-inspector-grenade @@ -200,12 +206,14 @@ - ^.*\.rst$ - ^api-ref/.*$ - ^doc/.*$ - - ^ironic_inspector/test/(?!.*tempest).*$ - ^ironic_inspector/locale/.*$ + - ^ironic_inspector/test/.*$ - ^releasenotes/.*$ - ^setup.cfg$ - ^tools/.*$ - ^tox.ini$ + - regex: ^ironic_inspector/test/.*tempest.*$ + negate: true - job: name: ironic-inspector-tempest-managed