Avoid to start pipelines that we don’t need to run #1131
Labels
area/dogfooding
Indicates an issue on dogfooding (aka using Pipeline to test Pipeline)
lifecycle/frozen
Indicates that an issue or PR should not be auto-closed due to staleness.
priority/important-longterm
Important over the long term, but may not be staffed and/or may need multiple releases to complete.
Today every CI pipeline includes two shared tasks:
/test <job-name>
commandThe CI event listener has two group interceptors (pull and comment) with shared logic.
Every repo repo has then two triggers (pull and comment) and one trigger template, which includes the list of CI jobs to execute.
This works fine, but it means that all CI jobs in the template are always started. If any of the checks fail, the end quickly.
Ideally we would like to not start CI jobs at all if they do not need to run, to consume fewer resources, as all CI jobs will allocated a PVC and clone the repo just to perform the checks.
A few options:
PipelineRun
levelwhen
expressions, so that if a certain input matches, thePipeline
is not started at all./cc @vdemeester @abayer @dibyom @lbernick @jerop
The text was updated successfully, but these errors were encountered: