-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: skip jobs for chore commits #692
base: main
Are you sure you want to change the base?
Conversation
CircleCI has built-in functionality for this: https://circleci.com/docs/skip-build/ |
Well, it's not the same. You would need to add |
I am generally worried that this is pretty arbitrary and not necessarily intuitive as to which jobs get "skipped" for a chore, particularly for newly onboarded engineers. Why run unit tests for Also, what about PRs which start with |
I agree with @malept here, if a developer wishes to skip CI, they should use the |
Would be great to have
Well, why do we skip deployment for Hmm, it reminds me I should exclude scope from the message. Alternative approach would be to define parameters for the command, one for each type. And add custom blocks for every job in stencil. So the conditions can be fully configured per repo/use case like this https://github.com/getoutreach/orexservice/pull/632/files#diff-78a8a19706dbd2a4425dd72bdab0502ed7a2cef16365ab7030a5a0588927bf47R388
|
Link to code coverage report (posted by coverbot 🤖) |
Link to code coverage report (posted by coverbot 🤖) |
Link to code coverage report (posted by coverbot 🤖) |
@jaredallard , @malept I still would like to get this merged. I did several changes based on our conversation. Is there anything else you would like to see? |
Link to code coverage report (posted by coverbot 🤖) |
Ultimately, what I want to see is unsurprising behavior when it comes to skipping CI. I want to avoid increased support requests of the type "why isn't my PR passing CI?" or "why aren't my required checks passing when it's a chore?" I believe that having certain prefixes skip CI for an entire sets of conventional commit prefixes is a surprising behavior, especially for newly onboarded engineers. There may also be a unintended side effect where certain required checks on a repository will cause PRs to be unmergeable since the jobs aren't run. Additionally, I disagree with having My proposal is to have arbitrary commits in non-default branches explicitly have |
Please read CONTRIBUTING.md for additional information on contributing to this repository!
What this PR does / why we need it
We have recently done a lot of commits just to update docs or terraform. And we usually use
chore:
prefix for those commits as we do not need a release. There are no code changes (and it's on the PR reviewer to make sure chore commits do not change any code) but still all the long running builds are executed. It takes time, costs credits and does not bring any values. This PR introduces a stepskip_on_chore_commit
which can be used with various jobs we would like to skip.This is how an equivalent was developed and tested:
https://github.com/getoutreach/orexservice/pull/632/files
This is how it looks like in CircleCIL
https://app.circleci.com/pipelines/github/getoutreach/orexservice/3563/workflows/f4e52475-24f3-4d4e-aa6e-b8e97510d321
Jira ID
[XX-XX]
Notes for your reviewers