Working on some WIP MR's and was having multiple pipelines run when I was not ready to have pipelines start running, which seemed like a waste of resources to me.
This can also happen when more than one person are collaborating on an MR, and push up work on an MR to get some prelim feedback.
I believe this will save the company A LOT of resources.
How do I see this happening?
We can look at the title of the MR, maybe have something like NOPIPELINE like we have for WIP: on MR's.
We can also default it to not running the pipelines, and then someone needs to turn it on to have the pipeline run.
Pre push hooks for frontend linting
Create Merge Request/Branch in an issue will cause branch name to fail danger bot if issue title is long.
Awesome thanks for following up on this @jyavorska
I mean maybe we could start with quantifying how much a pipeline costs the company in terms of resources.
My above recommendation was just a brainstorm and POC. A potential easier way would be defaulting to not run the pipeline of Feature Branches and having a button that triggers the pipeline might be a little more simple.
Something that came up in %12.7 that might be related is if master is failing should new pipelines be kicked off until master has been resolved? (Just another use case we could potentially explore)
Thanks for the feedback. Maybe we can start outlining the times where you wouldnt want to run the CI.
Ie, clicking the create merge request button?
But i think thats a good start. My larger point is how to cut down on unnecessary pipelines running. This would save the company and the users money and pipeline resource.
Another example is i just pushed a commit and need to ammend my commit, when i force push now i have 2 pipelines running, but instead of EVERY TIME I PUSH, id like it to default to no pipeline being run.
@sstern naming your MR with SKIPCI in it would achieve the same thing, and still allow for situations where someone does want a pipeline run on MR creation (like if you create a branch with changes in it at the same time you make the MR).
One situation @sstern that results in a lot of pipelines is when an MR has 10 or so suggestions, and you click on "apply suggestion" on each one and it makes 10 pipelines. It would save a lot of resources if there was an "apply all suggestions" button and it did them all as one commit.
@jyavorska seems like a good opportunity to figure out how to batch apply suggestions via a queue that is built during the review process -- where all suggestions in the queue would be applied at the end of the review. If we went with an "apply all" button, we would need a way to discard suggestions beforehand -- which i don't think currently exists when reviewing an MR (or i just haven't seen it).
This would also probably alleviate the pain points around the "apply suggestion" button not reflecting the current state often times after it is pressed. I've found that I need to refresh an MR for it to tell me if it was successfully applied or not.
Scott Sternchanged title from Allow Disabling of Pipelines in MR's to save resources to Ideas for saving pipeline runs in MR's to save resources
changed title from Allow Disabling of Pipelines in MR's to save resources to Ideas for saving pipeline runs in MR's to save resources
Scott Sternchanged title from Ideas for saving pipeline runs in MR's to save resources to Ideas for saving pipeline runs in MR's to save resources from a frontend perspective.
changed title from Ideas for saving pipeline runs in MR's to save resources to Ideas for saving pipeline runs in MR's to save resources from a frontend perspective.
Scott Sternchanged the descriptionCompare with previous version