Use MR labels to selectively run package-and-qa jobs
What does this MR do and why?
This is the last task on https://gitlab.com/gitlab-org/quality/team-tasks/-/issues/1287
This MR introduces the ability to use the devops::*
label on an MR to selectively auto run end-to-end tests in the qa directories corresponding to the MR label.
The list of specs returned from DetermineQATests
is populated in the QA_TESTS
variable. If the package-and-qa
job is run and QA_TESTS
is not empty, only the specified specs are run. If the package-and-qa
job is run and QA_TESTS
is empty, all specs are run.
Screenshots or screen recordings
These are strongly recommended to assist reviewers and reduce the time to merge your change.
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.