rspec:coverage is not collecting coverage on rspec minimal jobs
Problem
The rspec:coverage
job is not collecting coverage from rspec * minimal
jobs.
Example: https://gitlab.com/gitlab-org/gitlab/-/jobs/1556991795#L73
$ bundle exec scripts/merge-simplecov
Coverage report generated for to /builds/gitlab-org/gitlab/coverage. 0 / 0 LOC (100.0%) covered.
Coverage report generated for to /builds/gitlab-org/gitlab/coverage/coverage.xml
In comparison, it is expected to collect coverage similar to https://gitlab.com/gitlab-org/gitlab/-/jobs/1557776729#L228
$ bundle exec scripts/merge-simplecov
Coverage report generated for rspec-ee-integration-pg12-1-4, rspec-ee-integration-pg12-2-4, rspec-ee-integration-pg12-3-4, rspec-ee-integration-pg12-4-4, rspec-ee-integration-pg12-geo, rspec-ee-system-pg12-1-6, rspec-ee-system-pg12-2-6, rspec-ee-system-pg12-3-6, rspec-ee-system-pg12-4-6, rspec-ee-system-pg12-5-6, rspec-ee-system-pg12-6-6, rspec-ee-system-pg12-geo, rspec-ee-unit-pg12-1-12, ... to /builds/gitlab-org/gitlab/coverage/coverage.xml
Likely this is caused by the list of dependencies in https://gitlab.com/gitlab-org/gitlab/blob/bf7d71320d2a4c3ee191c73923666239d748fd2e/.gitlab/ci/rails.gitlab-ci.yml#L451-472.
Impact
The code coverage visualization on Merge Request diff page will not show anything.
Edited by Albert