Repository navigation
Ignore neutral checks in AllChecksSuccessfull Merge policy - #6919
Merged
Merged
Conversation
premun
previously approved these changes
Nov 25, 2026
Contributor
There was a problem hiding this comment.
🔵 Needs a closer look
Maintainers need to validate whether the globally relaxed auto-merge guard handles delayed checks and skipped checks counted as successes, given the premature merges documented in #10511.
No open issues 🎉
What changed in this PR
This PR updates Maestro’s All Checks Successful merge policy to ignore neutral GitHub checks instead of treating them as failures. Pull requests with no remaining non-ignored checks still stay pending.
Changes:
- Adds a distinct neutral check state and maps GitHub’s neutral conclusion to it.
- Excludes neutral checks from policy evaluation and documents the behavior.
- Adds tests for conclusion mappings, mixed check outcomes, and neutral-only evaluations.
| File | Description |
|---|---|
| test/Maestro/Maestro.MergePolicies.Tests/AllChecksSuccessfulMergePolicyTests.cs | Tests neutral-check filtering and pending behavior. |
| test/Darc/Microsoft.DotNet.DarcLib.Tests/GitHubClientTests.cs | Tests GitHub check conclusion mappings. |
| src/Microsoft.DotNet.Darc/DarcLib/Models/CheckState.cs | Adds the Neutral state. |
| src/Microsoft.DotNet.Darc/DarcLib/GitHubClient.cs | Maps neutral conclusions to CheckState.Neutral. |
| src/Maestro/Maestro.MergePolicies/AllChecksSuccessfulMergePolicy.cs | Excludes neutral checks from evaluation. |
| docs/Darc.md | Documents neutral-check handling and merge requirements. |
Review effort: Balanced
premun
approved these changes
Nov 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
dotnet/arcade#10511