Skip to content

Conversation

@akoeplinger
Copy link
Member

@akoeplinger akoeplinger commented Sep 16, 2025

Alternative solution for the backport of #119722

Instead of backporting fixing the IDE0031 which is a quite large change we just turn the severity into suggestion.

Customer Impact

  • Customer reported
  • Found internally

There's a Roslyn bug where the suggestion severity for dotnet_style_null_propagation in .editorconfig incorrectly overrides the IDE0031 warning severity set in eng/CodeAnalysis.src.globalconfig on some machines only (root cause is currently being investigated in dotnet/roslyn#80301).

This causes build breaks on machines where this doesn't happen and the IDE0031 warning severity is active.

Regression

  • Yes
  • No

Testing

The CI build verifies this works.

Risk

Low. This just turns an analyzer code style finding from warning to suggestion.

Copilot AI review requested due to automatic review settings September 16, 2025 11:07
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR changes the severity level of IDE0031 (Use null propagation) from warning to suggestion in the CodeAnalysis configuration to address a Roslyn bug that causes inconsistent build behavior across different machines.

  • Changes IDE0031 analyzer severity from warning to suggestion to prevent build breaks
  • Addresses a Roslyn bug where .editorconfig settings incorrectly override globalconfig settings on some machines only
  • Provides a low-risk alternative to backporting the full fix from the original PR

@github-actions github-actions bot added the needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners label Sep 16, 2025
@akoeplinger
Copy link
Member Author

Build-only change required to fix build breaks, tell mode, applying Servicing-approved.

@akoeplinger akoeplinger added Servicing-approved Approved for servicing release area-Infrastructure and removed needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners labels Sep 16, 2025
@akoeplinger akoeplinger requested a review from sbomer September 16, 2025 11:08
@dotnet-policy-service
Copy link
Contributor

Tagging subscribers to this area: @dotnet/runtime-infrastructure
See info in area-owners.md if you want to be subscribed.

@tannergooding
Copy link
Member

Merging. Infrastructure fix required for clean builds

@tannergooding tannergooding merged commit 0657225 into release/10.0 Sep 18, 2025
161 of 162 checks passed
@tannergooding tannergooding deleted the fix-ide0031 branch September 18, 2025 17:54
@sbomer
Copy link
Member

sbomer commented Sep 18, 2025

Thanks @akoeplinger!

@github-actions github-actions bot locked and limited conversation to collaborators Oct 19, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-Infrastructure Servicing-approved Approved for servicing release

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants