Run as-if-foss pipeline before approval
What does this MR do and why?
Run as-if-foss pipeline before approval
Since the as-if-foss pipeline should only run what EE would run, and we only run predictive tests in EE, we should also only run predictive in as-if-foss. This should not be expensive to run.
This will also run full as-if-foss for those which EE run full first, but maybe that's really what we want anyway?
Validation
This is tested at !158365 (closed)
- It took changes from the merge request we found this: !154040 (merged)
- It changed
app/controllers/projects/jobs_controller.rb
- Before approval, the
rspec integration predictive
in as-if-foss pipeline did runspec/controllers/projects/jobs_controller_spec.rb
: https://gitlab.com/gitlab-org/gitlab-foss/-/jobs/7267250272 - Pipeline took 21 minutes: https://gitlab.com/gitlab-org/gitlab/-/pipelines/1360852894
- as-if-foss pipeline took 16 minutes: https://gitlab.com/gitlab-org/gitlab-foss/-/pipelines/1360858229
- It might be slowing the whole pipeline down a bit (since as-if-foss pipeline can easily come into the critical path), but probably ok?
Related to #470423 (closed)
Edited by Lin Jen-Shin