Add option to filter build with matching when counting current running jobs #12
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Note: Job in the same category but with no parameters are not counted either
Signed-off-by: Nicolas Morey-Chaisemartin [email protected]
In our current CI at Kalray, we often have very long integration queues (build are very long and we have 30 people committing a lot).
To accelerate that, we want to run several integration (same project) in parallel. But it is only safe if these run do not target the same integration branch.
The branch being one of the parameters, I added a setting to the throttle plugin so we don't count the overll number of task but only the task whom parameter (specified in the throttle config) match.
This doesn't apply directly on 1.8.1 as I've been told it's buggy and is not written to be applied straight away.
If the feature seems interesting to other, it can be probably cleaned up and contributed. If not, I'm open to feedback on better ways to do this.