Speed up Auto DevOps pipelines with `needs`
With the new needs
feature in GitLab CI we can speed up our pipelines.
There are several ways to do this:
- All of the
allow_failure
jobs in thetest
stage do not need to hold up deployment -
build
andtest
can run in parallel because thetest
job builds it's own test image anyway - We could also consider in review apps to start deployment as soon as the build is done. Since it's a review app we may be fine to deploy regardless of failing tests.
So basically I see the following additions to the CI YML:
production:
needs: [test, build]
test:
needs: []
review:
needs: [build]
Some of this can be done now but the needs: []
part is blocked by #30631 (closed) and that will have the biggest speedup in allowing this to kick off earlier.