Commit status on blob detail page rendering twice

Summary

On the blob detail page for a file, e.g. https://gitlab.com/gl-demo-ultimate-mgrabowski/test/-/blob/main/.gitlab-ci.yml, the commit status is shown twice – once just as a tiny little green dot.

Relevant logs and/or screenshots

image

Output of checks

This bug happens on GitLab.com

Possible fixes

Looks like the two statūs come from https://gitlab.com/gitlab-org/gitlab/blob/a5cf98651a6009b70cc5c23fc1c3f6f7cdf16783/app/views/projects/commits/_commit.html.haml#L74-77

There's some code that should get rid of a "legacy status badge", but isn't working as intended apparently: https://gitlab.com/gitlab-org/gitlab/blob/a5cf98651a6009b70cc5c23fc1c3f6f7cdf16783/app/assets/javascripts/pages/projects/blob/show/index.js#L160-179