[mergebot] Add all-green option #77660
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.
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.
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. |
|
@pytorchbot revert this as it broke lint, see https://github.com/pytorch/pytorch/runs/6532480582?check_suite_focus=true |
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 Raised by https://github.com/pytorch/pytorch/actions/runs/2374794934 |
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. Pull Request resolved: pytorch#77660 Approved by: https://github.com/janeyx99
This reverts commit 8b113a2. Reverted pytorch#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.