I have the code coverage keyword set in .gitlab-ci.yml (coverage: ‘/Code coverage:.*?(\d+.\d+)/’) for our the UI test job. The value displayed in the job run log is
Code coverage: 87.36 %. The value displayed in the side menu and merge request shows
The information in `.gitlab-ci.yml` keyword reference | GitLab says to use
coverage: ‘/Code coverage: \d+.\d+/’ and gitlab will run the regex on that line to get the value (\d+(.\d+)?). But if I do it this way, no value is returned.
Gitlab is scraping 32% from somewhere in the job output, AFAICT. What version of Gitlab are you running as 15.+ no longer provides setting the Coverage RE in the project/group CI/CD settings (that’s where I had set it in 14.6.3 and it did work (I had left the coverage key out of my .gitlab-ci.yml - relied solely on the UI setting value).
Any chance the version you’re running still has this setting set & that’s what is causing 32 to be scraped? If nothing matches, that coverage value isn’t rendered. IHTH.