Skip to content

Ignore neutral checks in AllChecksSuccessfull Merge policy - #6919

Merged
dkurepa merged 2 commits into
dotnet:mainfrom
dkurepa:dkurepa/IgnoreNeutralChecks
Nov 26, 2026
Merged

dkurepa merged 2 commits into
dotnet:mainfrom
dkurepa:dkurepa/IgnoreNeutralChecks

Conversation

@dkurepa

@dkurepa dkurepa commented Nov 25, 2026

Copy link
Copy Markdown
Member

Copilot AI balanced review requested due to automatic review settings November 25, 2026 16:12
premun
premun previously approved these changes Nov 25, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 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

@dkurepa
dkurepa merged commit b56170d into dotnet:main Nov 26, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants