-
Notifications
You must be signed in to change notification settings - Fork 26.3k
[mergebot] Add all-green option #77660
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
Conversation
🔗 Helpful links
❌ 4 New FailuresAs of commit f04e6a9 (more details on the Dr. CI page): Expand to see more
🕵️ 4 new failures recognized by patternsThe following CI failures do not appear to be due to upstream breakages
|
janeyx99
left a comment
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.
I think the best way to do this while abiding by other checks is to pass all_green to find_matching_merge_rules still and then changing the code near
if rule.mandatory_checks_name is not None:
to check all checks instead of just the mandatory ones if allgreen is true
| if len(pending_checks) > 0: | ||
| reject_reason = f"Refusing to merge as mandatory check(s) {','.join(pending_checks)} are missing" | ||
| raise MandatoryChecksMissingError(reject_reason) | ||
| pr.merge_into(repo, dry_run=dry_run) |
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.
Oh I see, this calls the code that makes the find_matching_merge_rule. In that case go for it lol, but Eli's comment about the API limit is important since we did have SEVs about our GITHUB_TOKEN getting overused.
|
@pytorchbot merge -g |
|
Hey @zengk95. |
This reverts commit 340c412. Reverted #77660 on behalf of https://github.com/malfet due to as it broke lint, see https://github.com/pytorch/pytorch/runs/6532480582?check_suite_focus=true
|
Looks like a land race |
|
@pytorchbot rebase |
|
Rebase failed due to Command |
Since we released on-green, some people have requested an all green option to include everything. I was thinking of how to best add this into find_matching_merge_rule but I couldn't think of a good a great way since the option isn't really a merge_rule, rather overriding it so I just put it outside the method. Pull Request resolved: #77660 Approved by: https://github.com/janeyx99
This reverts commit 340c412. Reverted #77660 on behalf of https://github.com/malfet due to as it broke lint, see https://github.com/pytorch/pytorch/runs/6532480582?check_suite_focus=true
Since we released on-green, some people have requested an all green option to include everything.
I was thinking of how to best add this into find_matching_merge_rule but I couldn't think of a good a great way since the option isn't really a merge_rule, rather overriding it so I just put it outside the method.