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

Analyzers throwing all kinds of exceptions during build in VMR #4451

Closed
Winniexu01 opened this issue Jun 6, 2024 · 7 comments
Closed

Analyzers throwing all kinds of exceptions during build in VMR #4451

Winniexu01 opened this issue Jun 6, 2024 · 7 comments
Labels
area-upstream-fix Needs a change in a contributing repo ops-monitor Issues created/handled by the source build monitor role

Comments

@Winniexu01
Copy link
Member

Main build: https://dev.azure.com/dnceng/internal/_build/results?buildId=2467853&view=logs&j=b1caa8c7-837c-5a0e-fa2b-360b4dfa6cb4&t=5a647af6-2fef-58c2-4caf-850dc1bc163c

'source-build-reference-packages' failed:

    CSC : error AD0001: Analyzer 'Microsoft.NetCore.CSharp.Analyzers.Runtime.CSharpDetectPreviewFeatureAnalyzer' threw an exception of type 'System.NullReferenceException' with message 'Object reference not set to an instance of an object.'. [/vmr/src/source-build-reference-packages/src/referencePackages/src/system.text.json/7.0.0/System.Text.Json.7.0.0.csproj::TargetFramework=net7.0]
##[error]CSC(0,0): error AD0001: (NETCORE_ENGINEERING_TELEMETRY=Build) Analyzer 'Microsoft.NetCore.CSharp.Analyzers.Runtime.CSharpDetectPreviewFeatureAnalyzer' threw an exception of type 'System.NullReferenceException' with message 'Object reference not set to an instance of an object.'.
@Winniexu01 Winniexu01 added the ops-monitor Issues created/handled by the source build monitor role label Jun 6, 2024
@dotnet-issue-labeler dotnet-issue-labeler bot added area-infra Source-build infrastructure and reporting untriaged labels Jun 6, 2024
@MichaelSimons MichaelSimons added area-upstream-fix Needs a change in a contributing repo and removed area-infra Source-build infrastructure and reporting untriaged labels Jun 6, 2024
@MichaelSimons
Copy link
Member

Using this as a tracking issue until dotnet/roslyn-analyzers#7349 is fixed.

@MichaelSimons MichaelSimons moved this from Backlog to Blocked in .NET Source Build Jun 6, 2024
@Winniexu01
Copy link
Member Author

@mthalman
Copy link
Member

mthalman commented Jun 7, 2024

Add more information, release/9.0.1xx-preview5 build also fails with this issue: https://dev.azure.com/dnceng/internal/_build/results?buildId=2468664&view=logs&j=b1caa8c7-837c-5a0e-fa2b-360b4dfa6cb4&t=5a647af6-2fef-58c2-4caf-850dc1bc163c

That build is from main. The builds from release/9.0.1xx-preview5 look to be ok.

@ViktorHofer ViktorHofer changed the title 'source-build-reference-packages' failed during build in VMR Analyzers throwing all kinds of exceptions during build in VMR Jun 28, 2024
@akoeplinger
Copy link
Member

I filed dotnet/dnceng#3305 so we can track this as part of Build Analysis

@Winniexu01
Copy link
Member Author

CentOSStream9_Offline_PreviousSourceBuiltSdk_x64 throws error AD0001 'System.ArgumentNullException' in VMR:

CSC : error AD0001: Analyzer 'Microsoft.NetCore.Analyzers.Runtime.SpecifyIFormatProviderAnalyzer' threw an exception of type 'System.ArgumentNullException' with message 'Value cannot be null. (Parameter 'analyzerConfigOptionsProvider')'. [/vmr/src/vstest/src/vstest.console.arm64/vstest.console.arm64.csproj::TargetFramework=net9.0]

Build: https://dev.azure.com/dnceng/internal/_build/results?buildId=2491911&view=logs&j=2efcdee0-63a0-5f4c-6890-20d889251d12&t=687ca494-57d2-542a-c494-988bec6c615f

@mthalman
Copy link
Member

This issue seems resolved. Haven't seen it show up in any recent runs.

@github-project-automation github-project-automation bot moved this from Blocked to Done in .NET Source Build Jul 16, 2024
@akoeplinger
Copy link
Member

We're still seeing this a lot, dotnet/dnceng#3305 has a 24 hour hit count of 18, but it probably doesn't make sense to track this as part of the source-build repo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-upstream-fix Needs a change in a contributing repo ops-monitor Issues created/handled by the source build monitor role
Projects
Archived in project
Development

No branches or pull requests

4 participants