Skip to content

Improve description of GitLab CI YAML `coverage` regex usage

Hello. I try to improve description of the coverage regex in .gitlab-ci.yml.

Current description reads like you should only match the line, and then GitLab extracts the number from the line. This is not true. It did not work.

I found the source of the algorithm:

https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/gitlab/ci/trace/stream.rb#L90

I try to describe it more thoroughly in the docs.

English is my second language, so it might not be ideal. Feel free to edit. Even reject this MR and do it yourself.

By the way, I can do the opposite and bring the implementation to the current docs. If that's what users want. But this will break a lot of builds, I guess.

Merge request reports