Skip to content

Render coverage badge using latest successful pipeline

Grzegorz Bizon requested to merge fix/improve-test-coverage-badge-pipelines into master

What does this MR do?

This MR make test coverage badge to report value for the latest successful pipeline, instead of the latest one, regardless the status.

Latest pipeline is often running, which makes coverage report inaccurate. Latest pipeline can be also the failed one, which may mean that not all stages got processed, therefore coverage report can be inaccurate as well.

This also improves coverage badge performance because it is not necessary to touch repository to get recent SHA on the branch.

Why was this MR needed?

See #21013 (closed)

What are the relevant issue numbers?

Closes #21013 (closed)

Does this MR meet the acceptance criteria?

Merge request reports

Loading