Incorrect coverage percentage displayed on job

Summary

Incorrect coverage percentage displayed on job

Steps to reproduce

Trigger a CI Job using the example project code below.

Example Project

https://gitlab.com/zookatron/gitlab-coverage-bug/

What is the current bug behavior?

The job output says the coverage percentage is 50% but the job displays 31% as the coverage percentage

What is the expected correct behavior?

The job displays 50% as the coverage percentage, matching the 50% shown in the job output

Relevant logs and/or screenshots

https://gitlab.com/zookatron/gitlab-coverage-bug/-/jobs/3419392268 gitlab-coverage-bug

Output of checks

This bug happens on GitLab.com