-
-
Notifications
You must be signed in to change notification settings - Fork 318
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
Conditional status checks for PRs which do not require testing #6686
Comments
Maybe we can do it based on modified files, e.g. if only edits in |
Is there anything else we foresee not requiring status check tests to run? |
Not requiring any status check tests you mean? Probably some typo fixing in code comments. Even a small change in markdown file is covered by I personally would love to see spec-tests being skippable for unrelated PRs |
Yeah me too. There are some PRs that shouldn't need to go through these when they obviously don't modify for the functionality of Lodestar in any way. Currently, for
All tests for PRs:
For things that don't require extensive testing (docs changes, some repo maintenance chores, etc.), we should just have it run:
There are some things that don't necessarily touch only |
Here is a tentative strategy to implement this:
This proposed solution allows to merge even if some jobs are skipped, as long as the required workflows pass. Some of the jobs that could be skippable:
Jobs can be filtered by jobs:
build:
if: contains(github.event.pull_request.labels.*.name, '<label_name>') Workflows can be re-triggered when label are updated: on:
pull_request:
types: [ opened, synchronize, reopened, labeled, unlabeled ]
# defaults to "opened", "synchronize" and "reopened" Some actions that could be useful for auto-labeling: |
Problem description
Currently, all PRs will go through all status checks. Whether it is an actual feature code change or just a documentation change, we should have a way to signal skipping checks for PRs that don't need to go through the entire testing process. Document change PRs don't really need to run unit/spec/sim tests.
Solution description
We should create a label such as
status-skip-tests
we can use to signal the CI to skip certain status checks if tagged with this label.Additional context
No response
The text was updated successfully, but these errors were encountered: