.gitlab-ci.d/base: Mark jobs as interruptible by default
PATCH 1/1 .gitlab-ci.d/base: Mark jobs as interruptible by default
When handling pull requests in the staging branch, it often happens that one of the job fails due to a problem, so that the pull request can't be merged. Peter/Richard/Stefan then informs the sender of the pull request and continues by pushing the next pending pull request from another subsystem maintainer. Now the problem is that there might still be lots of other running jobs in the pipeline of the first pull request, eating up precious CI minutes though the pipeline is not needed anymore. We can avoid this by marking the jobs as "interruptible". With this setting, the jobs from previous pipelines are automatically terminated when pushing a new one. If someone does not like this auto- matic termination, it can still be disabled in the settings of the repository. See this URL for details:
https://docs.gitlab.com/ee/ci/yaml/index.html#interruptible
--- .gitlab-ci.d/base.yml | 2 ++ 1 file changed, 2 insertions(+)
.gitlab-ci.d/base.yml +2 -0
@@ -11,6 +11,8 @@ # and show the duration of each line. FF_SCRIPT_SECTIONS: 1 + interruptible: true + rules: ############################################################# # Stage 1: exclude scenarios where we definitely don't
Signature · 1 line
2.31.1
Quoted 25 lines · Thomas Huth
When handling pull requests in the staging branch, it often happens that one of the job fails due to a problem, so that the pull request can't be merged. Peter/Richard/Stefan then informs the sender of the pull request and continues by pushing the next pending pull request from another subsystem maintainer. Now the problem is that there might still be lots of other running jobs in the pipeline of the first pull request, eating up precious CI minutes though the pipeline is not needed anymore. We can avoid this by marking the jobs as "interruptible". With this setting, the jobs from previous pipelines are automatically terminated when pushing a new one. If someone does not like this auto- matic termination, it can still be disabled in the settings of the repository. See this URL for details:
https://docs.gitlab.com/ee/ci/yaml/index.html#interruptible
Signed-off-by Thomas Huth <[email protected]>--- .gitlab-ci.d/base.yml | 2 ++ 1 file changed, 2 insertions(+).gitlab-ci.d/base.yml +0
-0
.gitlab-ci.d/base.yml line 14
Quoted 4 lines
.gitlab-ci.d/base.yml +1
-0@@ -11,6 +11,8 @@ # and show the duration of each line. FF_SCRIPT_SECTIONS: 1 + interruptible: true
It makes sense for mainstream, but seems counter-productive in forks. At least in my maintainer use case.
Is it possible to add a 'default' in .gitlab-ci.d/qemu-project.yml, so we can overwrite with a different namespace? 'interruptible' is listed in https://docs.gitlab.com/ee/ci/yaml/index.html#default.
Quoted 33 lines · Philippe Mathieu-Daudé
Quoted 26 lines · Thomas Huth
When handling pull requests in the staging branch, it often happens that one of the job fails due to a problem, so that the pull request can't be merged. Peter/Richard/Stefan then informs the sender of the pull request and continues by pushing the next pending pull request from another subsystem maintainer. Now the problem is that there might still be lots of other running jobs in the pipeline of the first pull request, eating up precious CI minutes though the pipeline is not needed anymore. We can avoid this by marking the jobs as "interruptible". With this setting, the jobs from previous pipelines are automatically terminated when pushing a new one. If someone does not like this auto- matic termination, it can still be disabled in the settings of the repository. See this URL for details:
https://docs.gitlab.com/ee/ci/yaml/index.html#interruptible
Signed-off-by Thomas Huth <[email protected]>---
.gitlab-ci.d/base.yml| 2 ++1 file changed, 2 insertions(+).gitlab-ci.d/base.yml +0
-0@@ -11,6 +11,8 @@ # and show the duration of each line.Quoted 2 lines
FF_SCRIPT_SECTIONS: 1
+ interruptible: trueIt makes sense for mainstream, but seems counter-productive in forks. At least in my maintainer use case.
Quoted 3 lines
Is it possible to add a 'default' in
.gitlab-ci.d/qemu-project.yml, so we can overwrite with a different namespace? 'interruptible' is listed in https://docs.gitlab.com/ee/ci/yaml/index.html#default.
As I wrote in the commit description: "If someone does not like this automatic termination, it can still be disabled in the settings of the repository."
See here for how to change the setting:
https://docs.gitlab.com/ee/ci/pipelines/settings.html#auto-cancel-redundant-pipelines
Thomas
Quoted 38 lines · Thomas Huth
Quoted 33 lines · Philippe Mathieu-Daudé
Quoted 26 lines · Thomas Huth
When handling pull requests in the staging branch, it often happens that one of the job fails due to a problem, so that the pull request can't be merged. Peter/Richard/Stefan then informs the sender of the pull request and continues by pushing the next pending pull request from another subsystem maintainer. Now the problem is that there might still be lots of other running jobs in the pipeline of the first pull request, eating up precious CI minutes though the pipeline is not needed anymore. We can avoid this by marking the jobs as "interruptible". With this setting, the jobs from previous pipelines are automatically terminated when pushing a new one. If someone does not like this auto- matic termination, it can still be disabled in the settings of the repository. See this URL for details:
https://docs.gitlab.com/ee/ci/yaml/index.html#interruptible
Signed-off-by Thomas Huth <[email protected]>---
.gitlab-ci.d/base.yml| 2 ++1 file changed, 2 insertions(+).gitlab-ci.d/base.yml +0
-0@@ -11,6 +11,8 @@ # and show the duration of each line.Quoted 2 lines
FF_SCRIPT_SECTIONS: 1
+ interruptible: trueIt makes sense for mainstream, but seems counter-productive in forks. At least in my maintainer use case.
Quoted 3 lines
Is it possible to add a 'default' in
.gitlab-ci.d/qemu-project.yml, so we can overwrite with a different namespace? 'interruptible' is listed in https://docs.gitlab.com/ee/ci/yaml/index.html#default.
Quoted 6 lines
As I wrote in the commit description: "If someone does not like this automatic termination, it can still be disabled in the settings of the repository."
See here for how to change the setting:
https://docs.gitlab.com/ee/ci/pipelines/settings.html#auto-cancel-redundant-pipelines
Oh I couldn't find this. Do you mind listing this URL in the commit description?
Quoted 41 lines · Philippe Mathieu-Daudé
Quoted 40 lines · Thomas Huth
Quoted 33 lines · Philippe Mathieu-Daudé
Quoted 26 lines · Thomas Huth
When handling pull requests in the staging branch, it often happens that one of the job fails due to a problem, so that the pull request can't be merged. Peter/Richard/Stefan then informs the sender of the pull request and continues by pushing the next pending pull request from another subsystem maintainer. Now the problem is that there might still be lots of other running jobs in the pipeline of the first pull request, eating up precious CI minutes though the pipeline is not needed anymore. We can avoid this by marking the jobs as "interruptible". With this setting, the jobs from previous pipelines are automatically terminated when pushing a new one. If someone does not like this auto- matic termination, it can still be disabled in the settings of the repository. See this URL for details:
https://docs.gitlab.com/ee/ci/yaml/index.html#interruptible
Signed-off-by Thomas Huth <[email protected]>---
.gitlab-ci.d/base.yml| 2 ++1 file changed, 2 insertions(+).gitlab-ci.d/base.yml +0
-0@@ -11,6 +11,8 @@ # and show the duration of each line.Quoted 2 lines
FF_SCRIPT_SECTIONS: 1
+ interruptible: trueIt makes sense for mainstream, but seems counter-productive in forks. At least in my maintainer use case.
Quoted 3 lines
Is it possible to add a 'default' in
.gitlab-ci.d/qemu-project.yml, so we can overwrite with a different namespace? 'interruptible' is listed in https://docs.gitlab.com/ee/ci/yaml/index.html#default.As I wrote in the commit description: "If someone does not like this automatic termination, it can still be disabled in the settings of the repository."
Quoted 8 lines
Quoted 5 lines
See here for how to change the setting:
https://docs.gitlab.com/ee/ci/pipelines/settings.html#auto-cancel-redundant-pipelines
Oh I couldn't find this. Do you mind listing this URL in the commit description?
It's linked from https://docs.gitlab.com/ee/ci/yaml/index.html#interruptible (which I mentioned already in the commit description) ... isn't that enough?
Thomas
Quoted 45 lines · Thomas Huth
Quoted 44 lines · Philippe Mathieu-Daudé
Quoted 43 lines · Thomas Huth
Quoted 33 lines · Philippe Mathieu-Daudé
Quoted 26 lines · Thomas Huth
When handling pull requests in the staging branch, it often happens that one of the job fails due to a problem, so that the pull request can't be merged. Peter/Richard/Stefan then informs the sender of the pull request and continues by pushing the next pending pull request from another subsystem maintainer. Now the problem is that there might still be lots of other running jobs in the pipeline of the first pull request, eating up precious CI minutes though the pipeline is not needed anymore. We can avoid this by marking the jobs as "interruptible". With this setting, the jobs from previous pipelines are automatically terminated when pushing a new one. If someone does not like this auto- matic termination, it can still be disabled in the settings of the repository. See this URL for details:
https://docs.gitlab.com/ee/ci/yaml/index.html#interruptible
Signed-off-by Thomas Huth <[email protected]>---
.gitlab-ci.d/base.yml| 2 ++1 file changed, 2 insertions(+).gitlab-ci.d/base.yml +0
-0@@ -11,6 +11,8 @@ # and show the duration of each line.Quoted 2 lines
FF_SCRIPT_SECTIONS: 1
+ interruptible: trueIt makes sense for mainstream, but seems counter-productive in forks. At least in my maintainer use case.
Quoted 3 lines
Is it possible to add a 'default' in
.gitlab-ci.d/qemu-project.yml, so we can overwrite with a different namespace? 'interruptible' is listed in https://docs.gitlab.com/ee/ci/yaml/index.html#default.As I wrote in the commit description: "If someone does not like this automatic termination, it can still be disabled in the settings of the repository."
See here for how to change the setting:
Quoted 6 lines
Quoted 4 lines
Oh I couldn't find this. Do you mind listing this URL in the commit description?
It's linked from https://docs.gitlab.com/ee/ci/yaml/index.html#interruptible (which I mentioned already in the commit description) ... isn't that enough?
Ah right. I guess it was too late when I looked at that yesterday :\
Quoted 13 lines · Thomas Huth
When handling pull requests in the staging branch, it often happens that one of the job fails due to a problem, so that the pull request can't be merged. Peter/Richard/Stefan then informs the sender of the pull request and continues by pushing the next pending pull request from another subsystem maintainer. Now the problem is that there might still be lots of other running jobs in the pipeline of the first pull request, eating up precious CI minutes though the pipeline is not needed anymore. We can avoid this by marking the jobs as "interruptible". With this setting, the jobs from previous pipelines are automatically terminated when pushing a new one. If someone does not like this auto- matic termination, it can still be disabled in the settings of the repository. See this URL for details:
Quoted 6 lines
https://docs.gitlab.com/ee/ci/yaml/index.html#interruptible
Signed-off-by Thomas Huth <[email protected]>--- .gitlab-ci.d/base.yml | 2 ++ 1 file changed, 2 insertions(+)
With regards,
Daniel
Signature · 3 lines
|: https://berrange.com -o- https://www.flickr.com/photos/dberrange :| |: https://libvirt.org -o- https://fstop138.berrange.com :| |: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|
Quoted 13 lines · Thomas Huth
When handling pull requests in the staging branch, it often happens that one of the job fails due to a problem, so that the pull request can't be merged. Peter/Richard/Stefan then informs the sender of the pull request and continues by pushing the next pending pull request from another subsystem maintainer. Now the problem is that there might still be lots of other running jobs in the pipeline of the first pull request, eating up precious CI minutes though the pipeline is not needed anymore. We can avoid this by marking the jobs as "interruptible". With this setting, the jobs from previous pipelines are automatically terminated when pushing a new one. If someone does not like this auto- matic termination, it can still be disabled in the settings of the repository. See this URL for details:
Quoted 3 lines
https://docs.gitlab.com/ee/ci/yaml/index.html#interruptible
Signed-off-by Thomas Huth <[email protected]>
Queued to testing/next, thanks.
Signature · 2 lines
Alex Bennée Virtualisation Tech Lead @ Linaro