Update gitlab_quality-test_tooling to make pipeline name determination compatible with CustomersDot
Problem
gitlab_quality-test_tooling was built with GitLab in mind so there are specific code paths in it that don't work very well with CustomersDot. One such incompatibility is how it determines the pipeline name and, in conjunction, the label to apply. The current implementation assumes that the ci_project_name
is enough to determine which environment a failing test was for but that is not the case for CustomersDot. This causes problems when using the gem as the assumptions we have specific to GitLab doesn't work for CustomersDot.
Proposal
Update pipeline name determination to make it less restrictive and allow us to define which ~found:*
label it will ultimately use for tagging E2E test failures. For context, in CustomersDot, the tests running on main
should be labeled with found:customers.stg.gitlab.com instead of ~found:main
.