Test coverage examples are broken
Problem to solve
Documentation provides examples to use in CI jobs to determine test coverage. The examples no longer work.
Further details
Using
(?i)total.*? (100(?:\.0+)?\%|[1-9]?\d(?:\.\d+)?\%)$
gives thejobs:test:coverage config must be a regular expression with re2 syntax
error at pipelines.
Related docs page with a broken example https://docs.gitlab.com/15.1/ee/ci/pipelines/settings.html#test-coverage-examples
Also holds for other examples.
Proposal
Prepending and appending a '/' resolves the issue. E.g. '/(?i)total.*? (100(?:\.0+)?\%|[1-9]?\d(?:\.\d+)?\%)$/'
Who can address the issue
I will submit a MR in the coming days to resolve the issue.
Other links/references
Issue raised in #362234 (comment 1031074140)