Neutron tempest plugin zuul job definitions uses deprecated regex syntax

Bug #2037034 reported by Slawek Kaplonski
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
Fix Released
High
yatin

Bug Description

Details about deprecation are in https://<email address hidden>/thread/C2NADWASR3BFJI3J45ZCNKOZBJETF6NE/

We have issue in the neutron-tempest-plugin jobs:

Zuul encountered a deprecated syntax while parsing its configuration
in the repo openstack/neutron-tempest-plugin on branch master. The
problem was:

  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: (?!

The problem appears in the following job stanza:

  job:
      name: neutron-tempest-plugin-base-nested-switch
      parent: neutron-tempest-plugin-base
      abstract: true
      branches: ^(?!stable/(train|ussuri|victoria|wallaby|xena|yoga|zed)).*$
      # Comment nodeset and vars to switch back to non nested nodes
      nodeset: neutron-nested-virt-ubuntu-jammy
      vars: &nested_virt_vars
        devstack_localrc:
          LIBVIRT_TYPE: kvm
          LIBVIRT_CPU_MODE: host-passthrough
          CIRROS_VERSION: 0.6.2
          DEFAULT_IMAGE_NAME: cirros-0.6.2-x86_64-disk
          DEFAULT_IMAGE_FILE_NAME: cirros-0.6.2-x86_64-disk.img

  # Base nested switch job for yoga and zed

  in "openstack/neutron-tempest-plugin/zuul.d/base-nested-switch.yaml@master", line 22, column 3

Tags: tempest
yatin (yatinkarel)
Changed in neutron:
assignee: nobody → yatin (yatinkarel)
importance: Undecided → High
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to neutron-tempest-plugin (master)
Changed in neutron:
status: Confirmed → In Progress
tags: added: tempest
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to neutron-tempest-plugin (master)

Reviewed: https://review.opendev.org/c/openstack/neutron-tempest-plugin/+/896188
Committed: https://opendev.org/openstack/neutron-tempest-plugin/commit/97409c6992f87f323e135933945ecf8bc03eece3
Submitter: "Zuul (22348)"
Branch: master

commit 97409c6992f87f323e135933945ecf8bc03eece3
Author: yatinkarel <email address hidden>
Date: Fri Sep 22 11:41:17 2023 +0530

    Use RE2 compatible regex for branches

    Zuul has deprecated the usage of negative regex[1],
    this patch switches the branches regex to the supported
    one.

    [1] https://zuul-ci.org/docs/zuul/latest/project-config.html#regex

    Closes-Bug: #2037034
    Change-Id: I66dcb56ab5ba9cfdefbeb25f1d01871ea0d0d362

Changed in neutron:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/neutron-tempest-plugin 2.6.0

This issue was fixed in the openstack/neutron-tempest-plugin 2.6.0 release.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.