Skip to content

[Sonic] Move a few more Razor features to be sonic compatible - #84069

Merged
davidwengier merged 59 commits into
features/sonicfrom
dev/dawengie/MoreSonicTooling
Jun 12, 2026
Merged

davidwengier merged 59 commits into
features/sonicfrom
dev/dawengie/MoreSonicTooling

Add Razor selection range SONIC coverage

8d16ffc
Select commit
Loading
Failed to load commit list.
Azure Pipelines / roslyn-CI failed Jun 9, 2026 in 1h 13m 59s

Build #20260608.42 had test failures

Details

Tests

  • Failed: 3 (0.00%)
  • Passed: 1,173,241 (98.87%)
  • Other: 13,412 (1.13%)
  • Total: 1,186,656

Annotations

Check failure on line 19 in src/Razor/src/Compiler/Microsoft.CodeAnalysis.Razor.Compiler/src/Language/RazorCSharpDocumentWriter.cs

See this annotation in the file changed.

@azure-pipelines azure-pipelines / roslyn-CI

src/Razor/src/Compiler/Microsoft.CodeAnalysis.Razor.Compiler/src/Language/RazorCSharpDocumentWriter.cs#L19

src/Razor/src/Compiler/Microsoft.CodeAnalysis.Razor.Compiler/src/Language/RazorCSharpDocumentWriter.cs(19,39): error CA1068: (NETCORE_ENGINEERING_TELEMETRY=Build) Method 'Microsoft.AspNetCore.Razor.Language.RazorCSharpDocumentWriter.Write(Microsoft.AspNetCore.Razor.Language.Intermediate.DocumentIntermediateNode, Microsoft.AspNetCore.Razor.Language.RazorCodeDocument, bool, System.Threading.CancellationToken, bool)' should take CancellationToken as the last parameter (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1068)

Check failure on line 19 in src/Razor/src/Compiler/Microsoft.CodeAnalysis.Razor.Compiler/src/Language/RazorCSharpDocumentWriter.cs

See this annotation in the file changed.

@azure-pipelines azure-pipelines / roslyn-CI

src/Razor/src/Compiler/Microsoft.CodeAnalysis.Razor.Compiler/src/Language/RazorCSharpDocumentWriter.cs#L19

src/Razor/src/Compiler/Microsoft.CodeAnalysis.Razor.Compiler/src/Language/RazorCSharpDocumentWriter.cs(19,39): error CA1068: (NETCORE_ENGINEERING_TELEMETRY=Build) Method 'Microsoft.AspNetCore.Razor.Language.RazorCSharpDocumentWriter.Write(Microsoft.AspNetCore.Razor.Language.Intermediate.DocumentIntermediateNode, Microsoft.AspNetCore.Razor.Language.RazorCodeDocument, bool, System.Threading.CancellationToken, bool)' should take CancellationToken as the last parameter (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1068)

Check failure on line 221 in Build log

See this annotation in the file changed.

@azure-pipelines azure-pipelines / roslyn-CI

Build log #L221

Bash failed with error: 1

Check failure on line 222 in Build log

See this annotation in the file changed.

@azure-pipelines azure-pipelines / roslyn-CI

Build log #L222

Bash exited with return code: 1

Check failure on line 1 in Microsoft.CodeAnalysis.CSharp.UnitTests.DiagnosticAnalyzerTests.TestCancellationDuringDiagnosticComputation(actionKind: Symbol)

See this annotation in the file changed.

@azure-pipelines azure-pipelines / roslyn-CI

Microsoft.CodeAnalysis.CSharp.UnitTests.DiagnosticAnalyzerTests.TestCancellationDuringDiagnosticComputation(actionKind: Symbol)

Assert.Single() Failure: The collection was empty
Raw output
   at Microsoft.CodeAnalysis.CSharp.UnitTests.DiagnosticAnalyzerTests.TestCancellationDuringDiagnosticComputation(AnalyzerRegisterActionKind actionKind) in /_/src/Compilers/CSharp/Test/Emit3/Diagnostics/DiagnosticAnalyzerTests.cs:line 4246
--- End of stack trace from previous location ---

Check failure on line 1 in Microsoft.VisualStudio.Razor.LanguageClient.Cohost.CohostDocumentSymbolEndpointTest.DocumentSymbols_CSharpClassWithMethods_Legacy_MiscFile

See this annotation in the file changed.

@azure-pipelines azure-pipelines / roslyn-CI

Microsoft.VisualStudio.Razor.LanguageClient.Cohost.CohostDocumentSymbolEndpointTest.DocumentSymbols_CSharpClassWithMethods_Legacy_MiscFile

Expected AspNetCoreGeneratedDocument._home_example_SomeProject_File1.C to be in test provided markers
Raw output
   at Microsoft.VisualStudio.Razor.LanguageClient.Cohost.CohostDocumentSymbolEndpointTest.VerifySymbolInformationsAsync(String input, Boolean miscellaneousFile, Nullable`1 fileKind) in /_/src/Razor/src/Razor/test/Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests/Endpoints/CohostDocumentSymbolEndpointTest.cs:line 620
--- End of stack trace from previous location ---

Check failure on line 1 in Microsoft.VisualStudio.Razor.LanguageClient.Cohost.CohostDocumentSymbolEndpointTest.DocumentSymbols_CSharpClassWithMethods_Legacy_MiscFile

See this annotation in the file changed.

@azure-pipelines azure-pipelines / roslyn-CI

Microsoft.VisualStudio.Razor.LanguageClient.Cohost.CohostDocumentSymbolEndpointTest.DocumentSymbols_CSharpClassWithMethods_Legacy_MiscFile

Expected AspNetCoreGeneratedDocument._home_example_SomeProject_File1.C to be in test provided markers
Raw output
   at Microsoft.VisualStudio.Razor.LanguageClient.Cohost.CohostDocumentSymbolEndpointTest.VerifySymbolInformationsAsync(String input, Boolean miscellaneousFile, Nullable`1 fileKind) in /_/src/Razor/src/Razor/test/Microsoft.CodeAnalysis.Razor.CohostingShared.UnitTests/Endpoints/CohostDocumentSymbolEndpointTest.cs:line 620
--- End of stack trace from previous location ---