-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Add label if pre-commit passes #12527
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Harry Mellor <[email protected]>
👋 Hi! Thank you for contributing to the vLLM project. Once the PR is approved and ready to go, your PR reviewer(s) can run CI to test the changes comprehensively before merging. To run CI, PR reviewers can do one of these:
🚀 |
Signed-off-by: Harry Mellor <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for doing this!
Does this mean if a PR with ready
label does not have pre-commit passed
, we will still not run the full CI?
The idea I have for this is that:
It still needs:
This should have significant cost savings on PRs where ready has been added but pre-commit failing code has been pushed. |
Signed-off-by: Harry Mellor <[email protected]>
Signed-off-by: Harry Mellor <[email protected]>
This seems fine, though I think we could accomplish the same thing in diff --git a/.github/mergify.yml b/.github/mergify.yml
index 43bc5ce62..225d311fc 100644
--- a/.github/mergify.yml
+++ b/.github/mergify.yml
@@ -95,3 +95,23 @@ pull_request_rules:
label:
remove:
- needs-rebase
+
+- name: add 'pre-commit passed' label on successful pre-commit job
+ description: Automatically apply pre-commit passed label
+ conditions:
+ - check-success=pre-commit
+ actions:
+ label:
+ add:
+ - pre-commit passed
+
+- name: remove 'pre-commit passed' label when success status is not present
+ description: Remove pre-commit passed label when not marked as successful
+ conditions:
+ - or:
+ - check-pending=pre-commit
+ - check-failure=pre-commit
+ actions:
+ label:
+ remove:
+ - pre-commit passed
|
I originally based this action on |
Signed-off-by: Harry Mellor <[email protected]>
Allows Buildkite to not run CI until pre-commit is passing, saving CI cost.
Originally discussed in https://vllm-dev.slack.com/archives/C07R5PAL2L9/p1736691851928849