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.
Build Analysis / Build Analysis failed Jun 9, 2026 in 0s

.NET Result Analysis

Details

Tip

To unconditionally bypass the build analysis check (turn it green), you can use the escape mechanism feature. The completion time may vary, potentially taking several minutes, depending on the build analysis workload at the moment.

Build Failures

roslyn-CI / Unix_Debug_CoreClr / Test_Linux_Debug / Test

[ 🚧 Create issue against infrastructure team] [ 📄 Create issue in this repo]
    ❌Bash failed with error: 1
    ❌Bash exited with return code: 1

roslyn-CI / Unix_Debug_CoreClr / Test_Linux_Debug_Spanish_Single_Machine / Test

[ 🚧 Create issue against infrastructure team] [ 📄 Create issue in this repo]
    ❌Bash failed with error: 1
    ❌Bash exited with return code: 1

roslyn-CI / Correctness / Correctness_Analyzers / Build with analyzers

[ 🚧 Create issue against infrastructure team] [ 📄 Create issue in this repo]
    ❌src/Razor/src/Compiler/Microsoft.CodeAnalysis.Razor.Compiler/src/Language/RazorCSharpDocumentWriter.cs(19,39): error CA1068: 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)

Test Failures (3 tests failed)

🔹 [All failing tests from roslyn-CI]

    ⚠️ 1 failing tests not displayed for this pipeline due to space limitations

    ❌ Microsoft.CodeAnalysis.CSharp.UnitTests.DiagnosticAnalyzerTests.TestCancellationDuringDiagnosticComputation(actionKind: Symbol) [Details] [0.02% failure rate]
    [ 🚧 Create issue against infrastructure team] [ 📄 Create issue in this repo]

    Failing Configuration

    Exception Message
    Assert.Single() Failure: The collection was empty
    CallStack
       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 ---
    ❌ Microsoft.VisualStudio.Razor.LanguageClient.Cohost.CohostDocumentSymbolEndpointTest.DocumentSymbols_CSharpClassWithMethods_Legacy_MiscFile [Details] [ failure rate]
    [ 🚧 Create issue against infrastructure team] [ 📄 Create issue in this repo]

    Failing Configurations (2)

    Exception Message
    Expected AspNetCoreGeneratedDocument._home_example_SomeProject_File1.C to be in test provided markers
    CallStack
       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 ---
    ❕ This is a new test, introduced on 0001-01-01

Was this helpful? Yes No