Next Iteration of Selective Test Execution: Use MR labels to decide on what tests to run
This is continuation of https://gitlab.com/gitlab-org/quality/team-tasks/-/issues/564.
MR labels can be mapped to either test directories for devops groups or Rspec meta on the specs and then this data can be used to inform decision on what tests to run on an MR in the package-and-qa
job.
A similar effort has been done by @sgregory2 here which can be made use of.
Tasks:
-
When a job does not need to run, make it manual instead of not including it at all. This will allow optionally triggering of those jobs when only the jobs matching the devops label will be run in an MR. => MR -
Remove QA_TEST
population out ofpackage-and-qa
job as it will be used as a condition for runningpackage-and-qa
=> New MR. RevertedMR -
Fetch the devops labels from CI_MERGE_REQUEST_LABELS
and map them to qa spec directories. Use the mapping to selectively auto run the jobs in those directories. => MR
Edited by Sanad Liaquat