Skip to content

SchemaError: '^[^\\/~\\^\\: \\[\\]\\\\]+(\\/[^\\/~\\^\\: \\[\\]\\\\]+)*$' is not a 'regex' #550

Open
@Borda

Description

@Borda

Hello, recently we started to see the following validation error on workflows that are running correctly

.azure/gpu-integrations.yml
Error: schemafile was not valid

SchemaError: '^[^\\/~\\^\\: \\[\\]\\\\]+(\\/[^\\/~\\^\\: \\[\\]\\\\]+)*$' is not a 'regex'

Failed validating 'format' in metaschema['properties']['definitions']['additionalProperties']['properties']['pattern']:
    {'type': 'string', 'format': 'regex'}

On schema['definitions']['branchFilter']['pattern']:
    '^[^\\/~\\^\\: \\[\\]\\\\]+(\\/[^\\/~\\^\\: \\[\\]\\\\]+)*$'
  in "/opt/hostedtoolcache/Python/3.10.16/x64/lib/python3.10/site-packages/check_jsonschema/checker.py", line 56
  >>> return self._schema_loader.get_validator(

with the latest release 0.31.3 and the schema is https://github.com/Lightning-AI/torchmetrics/blob/master/.azure/gpu-integrations.yml

ref: https://github.com/Lightning-AI/torchmetrics/actions/runs/14233511381/job/39888573782?pr=3038

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions