Skip to content

Use .frontend-predictive-patterns for jest predictive jobs

Context

Implementation of gitlab-org/quality/engineering-productivity/team#470 (closed).

We would like to run jest predictive and rspec-all frontend_fixture jobs less often when the MR isn't approved.

What does this MR do and why?

Add .frontend-predictive-patterns file pattern, and use it for running jest predictive and rspec-all frontend_fixture jobs.

Understanding the changes in this MR

To run jest predictive jobs on a different pattern is fairly easy because no jobs depend on jest predictive jobs: we can pretty much just change the pattern.

To run rspec-all frontend_fixture jobs on a different pattern is not trivial, because they are needed by other jobs.

Rationale: For all jobs depending on rspec-all frontend_fixture, we need to think about when an MR isn't approved, where would the rspec-all frontend_fixture not being present be a problem...

Jobs depending on rspec-all frontend_fixture

Proof of work

See pipelines for the test MR:

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by David Dieulivol

Merge request reports