Skip to content
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

Analyzer 'Microsoft.NetCore.CSharp.Analyzers.Performance.CSharpConstantExpectedAnalyzer' threw an exception of type 'System.InvalidCastException` #106088

Open
steveharter opened this issue Aug 7, 2024 · 7 comments
Labels
area-Infrastructure-libraries code-analyzer Marks an issue that suggests a Roslyn analyzer Known Build Error Use this to report build issues in the .NET Helix tab
Milestone

Comments

@steveharter
Copy link
Member

steveharter commented Aug 7, 2024

Build Information

Build: https://dev.azure.com/dnceng-public/cbb18261-c48f-4abb-8651-8cdcb5474649/_build/results?buildId=768643
Build error leg or test failing: Build / linux-arm64 Debug Mono_MiniJIT_LibrariesTests / Build product
Pull request: #105776

Error Message

Fill the error message using step by step known issues guidance.

{
  "ErrorMessage": "",
  "ErrorPattern": "'Unable to cast object of type 'Microsoft.CodeAnalysis.CSharp.Symbols.PublicModel.NonErrorNamedTypeSymbol' to type 'Microsoft.CodeAnalysis.IMethodSymbol'.'.",
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}

Known issue validation

Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=768643
Error message validated: ['Unable to cast object of type 'Microsoft.CodeAnalysis.CSharp.Symbols.PublicModel.NonErrorNamedTypeSymbol' to type 'Microsoft.CodeAnalysis.IMethodSymbol'.'.]
Result validation: ✅ Known issue matched with the provided build.
Validation performed at: 8/7/2024 5:32:23 PM UTC

Report

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
0 0 0
@steveharter steveharter added blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms' code-analyzer Marks an issue that suggests a Roslyn analyzer Known Build Error Use this to report build issues in the .NET Helix tab labels Aug 7, 2024
Copy link
Contributor

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

@dotnet-policy-service dotnet-policy-service bot added the untriaged New issue has not been triaged by the area owner label Aug 7, 2024
@carlossanlop
Copy link
Member

This issue will track the failures in PRs to mark them as known build errors, but I think we also need to notify the creator (or most recent modifier) of this analyzer either in roslyn or in roslyn-analyzers (wherever the analyzer lives).

@carlossanlop
Copy link
Member

This analyzer is from dotnet/roslyn: https://github.com/dotnet/roslyn/blob/969c5177a3fe0a13171c561b45b2d808b9659e56/src/Compilers/CSharp/Portable/Symbols/PublicModel/NonErrorNamedTypeSymbol.cs#L11

@jaredpar do you know who can triage this failure so we can decide on the milestone for the issue?

@carlossanlop carlossanlop removed the untriaged New issue has not been triaged by the area owner label Aug 7, 2024
@jaredpar
Copy link
Member

jaredpar commented Aug 7, 2024

Is this a one off failure or a persistent one? If it's a one off then it's possible it's another dupe of #105572. That can also manifest as cast exceptions.

@carlossanlop
Copy link
Member

So far there's only been one hit, according to the KnownBuildError table in this issue description.

@carlossanlop carlossanlop added this to the Future milestone Aug 7, 2024
@jeffschwMSFT jeffschwMSFT removed the blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms' label Sep 11, 2024
@jeffschwMSFT
Copy link
Member

removing 'blocking-clean-ci' as it has not failed in 30 days

24-Hour Hit Count 7-Day Hit Count 1-Month Count
0 0 0

@jaredpar
Copy link
Member

@jeffschwMSFT given the primary bug was fixed and it's 30 days clean should we close the issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-Infrastructure-libraries code-analyzer Marks an issue that suggests a Roslyn analyzer Known Build Error Use this to report build issues in the .NET Helix tab
Projects
None yet
Development

No branches or pull requests

4 participants