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

Include project diagnostic suppressors in host analyzer execution #75684

Draft
wants to merge 4 commits into
base: release/dev17.12
Choose a base branch
from

Avoid possible key collection in analyzer telemetry

aa3df16
Select commit
Loading
Failed to load commit list.
Draft

Include project diagnostic suppressors in host analyzer execution #75684

Avoid possible key collection in analyzer telemetry
aa3df16
Select commit
Loading
Failed to load commit list.
Build Analysis / Build Analysis failed Nov 21, 2024 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.

Known Infrastructure Errors

Test Failures (6 tests failed)

🔹 [All failing tests from roslyn-integration-CI]

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

    Roslyn.VisualStudio.IntegrationTests.CSharp.CSharpGenerateFromUsage.GenerateLocal(VS2022) [Details] [98.78% failure rate]
    [ 🚧 Report test infrastructure issue] [ 📄 Report test repository issue]

    Failing Configuration

    Data Driven SubResults
      Roslyn.VisualStudio.IntegrationTests.CSharp.CSharpGenerateFromUsage.GenerateLocal (VS2022)
      Exception Message
      Assert.Contains() Failure: Sub-string not found
      String:    "class Program\r\n{\r\n    static void Main(st"···
      Not found: "class Program\r\n{\r\n    static void Main(st"···
      Stack Trace
         at Roslyn.VisualStudio.IntegrationTests.InProcess.EditorVerifierInProcess.<TextContainsAsync>d__7.MoveNext() in /_/src/VisualStudio/IntegrationTest/New.IntegrationTests/InProcess/EditorVerifierInProcess.cs:line 91
      --- End of stack trace from previous location where exception was thrown ---
         at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
         at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
         at Roslyn.VisualStudio.IntegrationTests.CSharp.CSharpGenerateFromUsage.<GenerateLocal>d__3.MoveNext() in /_/src/VisualStudio/IntegrationTest/New.IntegrationTests/CSharp/CSharpGenerateFromUsage.cs:line 36
      --- End of stack trace from previous location where exception was thrown ---
         at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
         at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
         at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
      --- End of stack trace from previous location where exception was thrown ---
         at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
         at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
      --- End of stack trace from previous location where exception was thrown ---
         at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
         at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    Roslyn.VisualStudio.IntegrationTests.CSharp.CSharpTyping.TypingInPartialType(VS2022) [Details] [100.00% failure rate]
    [ 🚧 Report test infrastructure issue] [ 📄 Report test repository issue]

    Failing Configuration

    Data Driven SubResults
      Roslyn.VisualStudio.IntegrationTests.CSharp.CSharpTyping.TypingInPartialType (VS2022)
      Exception Message
      Assert.Contains() Failure: Sub-string not found
      String:    "\r\npublic partial class Test\r\n{\r\n    priva"···
      Not found: "\r\npublic partial class Test\r\n{\r\n    priva"···
      Stack Trace
         at Roslyn.VisualStudio.IntegrationTests.InProcess.EditorVerifierInProcess.<TextContainsAsync>d__7.MoveNext() in /_/src/VisualStudio/IntegrationTest/New.IntegrationTests/InProcess/EditorVerifierInProcess.cs:line 91
      --- End of stack trace from previous location where exception was thrown ---
         at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
         at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
         at Roslyn.VisualStudio.IntegrationTests.CSharp.CSharpTyping.<TypingInPartialType>d__3.MoveNext() in /_/src/VisualStudio/IntegrationTest/New.IntegrationTests/CSharp/CSharpTyping.cs:line 73
      --- End of stack trace from previous location where exception was thrown ---
         at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
         at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
         at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
      --- End of stack trace from previous location where exception was thrown ---
         at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
         at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
      --- End of stack trace from previous location where exception was thrown ---
         at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
         at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    Roslyn.VisualStudio.NewIntegrationTests.CSharp.CSharpRedirectFeaturesAnalyzers.DoesNotUseHostOptions_WhenEnforceCodeStyleInBuildIsTrue(VS2022) [Details] [15.35% failure rate]
    [ 🚧 Report test infrastructure issue] [ 📄 Report test repository issue]

    Failing Configuration

    Data Driven SubResults
      Roslyn.VisualStudio.NewIntegrationTests.CSharp.CSharpRedirectFeaturesAnalyzers.DoesNotUseHostOptions_WhenEnforceCodeStyleInBuildIsTrue (VS2022)
      Exception Message
      Expected:
      C.cs(3, 5): error IDE0055: Fix formatting,
      C.cs(4, 5): error IDE0055: Fix formatting,
      C.cs(6, 5): error IDE0055: Fix formatting
      Actual:
      Microsoft.CSharp.Core.targets(116, 10): error MSB4064: The "InterceptorsNamespaces" parameter is not supported by the "Csc" task loaded from assembly: Microsoft.Build.Tasks.CodeAnalysis, Version=4.12.10.37901, Culture=neutral, PublicKeyToken=31bf3856ad364e35 from the path: C:\Users\cloudtest\.nuget\packages\microsoft.net.sdk.compilers.toolset\9.0.100-preview.7.24407.12\Microsoft.Build.Tasks.CodeAnalysis.dll. Verify that the parameter exists on the task, the <UsingTask> points to the correct assembly, and it is a settable public instance property.,
      Microsoft.CSharp.Core.targets(89, 5): error MSB4063: The "Csc" task could not be initialized with its input parameters. 
      Differences:
      ++> Microsoft.CSharp.Core.targets(116, 10): error MSB4064: The "InterceptorsNamespaces" parameter is not supported by the "Csc" task loaded from assembly: Microsoft.Build.Tasks.CodeAnalysis, Version=4.12.10.37901, Culture=neutral, PublicKeyToken=31bf3856ad364e35 from the path: C:\Users\cloudtest\.nuget\packages\microsoft.net.sdk.compilers.toolset\9.0.100-preview.7.24407.12\Microsoft.Build.Tasks.CodeAnalysis.dll. Verify that the parameter exists on the task, the <UsingTask> points to the correct assembly, and it is a settable public instance property.,
      ++> Microsoft.CSharp.Core.targets(89, 5): error MSB4063: The "Csc" task could not be initialized with its input parameters. ,
      --> C.cs(3, 5): error IDE0055: Fix formatting,
      --> C.cs(4, 5): error IDE0055: Fix formatting,
      --> C.cs(6, 5): error IDE0055: Fix formatting
      
      Stack Trace
         at Roslyn.Test.Utilities.AssertEx.Equal[T](IEnumerable`1 expected, IEnumerable`1 actual, IEqualityComparer`1 comparer, String message, String itemSeparator, Func`2 itemInspector, String expectedValueSourcePath, Int32 expectedValueSourceLine) in /_/src/Compilers/Test/Core/Assert/AssertEx.cs:line 247
         at Roslyn.Test.Utilities.AssertEx.Equal[T](ImmutableArray`1 expected, ImmutableArray`1 actual) in /_/src/Compilers/Test/Core/Assert/AssertEx.cs:line 198
         at Roslyn.VisualStudio.NewIntegrationTests.CSharp.CSharpRedirectFeaturesAnalyzers.<DoesNotUseHostOptions_WhenEnforceCodeStyleInBuildIsTrue>d__4.MoveNext() in /_/src/VisualStudio/IntegrationTest/New.IntegrationTests/CSharp/CSharpRedirectFeaturesAnalyzers.cs:line 39
      --- End of stack trace from previous location where exception was thrown ---
         at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
         at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
         at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
      --- End of stack trace from previous location where exception was thrown ---
         at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
         at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
      --- End of stack trace from previous location where exception was thrown ---
         at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
         at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    Roslyn.VisualStudio.NewIntegrationTests.CSharp.CSharpRedirectFeaturesAnalyzers.UsesHostOptions_WhenEnforceCodeStyleInBuildIsFalse(VS2022) [Details] [29.17% failure rate]
    [ 🚧 Report test infrastructure issue] [ 📄 Report test repository issue]

    Failing Configuration

    Data Driven SubResults
      Roslyn.VisualStudio.NewIntegrationTests.CSharp.CSharpRedirectFeaturesAnalyzers.UsesHostOptions_WhenEnforceCodeStyleInBuildIsFalse (VS2022)
      Exception Message
      Expected:
      C.cs(3, 5): error IDE0055: Fix formatting,
      C.cs(4, 5): error IDE0055: Fix formatting,
      C.cs(6, 5): error IDE0055: Fix formatting
      Actual:
      Microsoft.CSharp.Core.targets(116, 10): error MSB4064: The "InterceptorsNamespaces" parameter is not supported by the "Csc" task loaded from assembly: Microsoft.Build.Tasks.CodeAnalysis, Version=4.12.10.37901, Culture=neutral, PublicKeyToken=31bf3856ad364e35 from the path: C:\Users\cloudtest\.nuget\packages\microsoft.net.sdk.compilers.toolset\9.0.100-preview.7.24407.12\Microsoft.Build.Tasks.CodeAnalysis.dll. Verify that the parameter exists on the task, the <UsingTask> points to the correct assembly, and it is a settable public instance property.,
      Microsoft.CSharp.Core.targets(89, 5): error MSB4063: The "Csc" task could not be initialized with its input parameters. 
      Differences:
      ++> Microsoft.CSharp.Core.targets(116, 10): error MSB4064: The "InterceptorsNamespaces" parameter is not supported by the "Csc" task loaded from assembly: Microsoft.Build.Tasks.CodeAnalysis, Version=4.12.10.37901, Culture=neutral, PublicKeyToken=31bf3856ad364e35 from the path: C:\Users\cloudtest\.nuget\packages\microsoft.net.sdk.compilers.toolset\9.0.100-preview.7.24407.12\Microsoft.Build.Tasks.CodeAnalysis.dll. Verify that the parameter exists on the task, the <UsingTask> points to the correct assembly, and it is a settable public instance property.,
      ++> Microsoft.CSharp.Core.targets(89, 5): error MSB4063: The "Csc" task could not be initialized with its input parameters. ,
      --> C.cs(3, 5): error IDE0055: Fix formatting,
      --> C.cs(4, 5): error IDE0055: Fix formatting,
      --> C.cs(6, 5): error IDE0055: Fix formatting
      
      Stack Trace
         at Roslyn.Test.Utilities.AssertEx.Equal[T](IEnumerable`1 expected, IEnumerable`1 actual, IEqualityComparer`1 comparer, String message, String itemSeparator, Func`2 itemInspector, String expectedValueSourcePath, Int32 expectedValueSourceLine) in /_/src/Compilers/Test/Core/Assert/AssertEx.cs:line 247
         at Roslyn.Test.Utilities.AssertEx.Equal[T](ImmutableArray`1 expected, ImmutableArray`1 actual) in /_/src/Compilers/Test/Core/Assert/AssertEx.cs:line 198
         at Roslyn.VisualStudio.NewIntegrationTests.CSharp.CSharpRedirectFeaturesAnalyzers.<UsesHostOptions_WhenEnforceCodeStyleInBuildIsFalse>d__5.MoveNext() in /_/src/VisualStudio/IntegrationTest/New.IntegrationTests/CSharp/CSharpRedirectFeaturesAnalyzers.cs:line 61
      --- End of stack trace from previous location where exception was thrown ---
         at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
         at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
         at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
      --- End of stack trace from previous location where exception was thrown ---
         at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
         at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
      --- End of stack trace from previous location where exception was thrown ---
         at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
         at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    Roslyn.VisualStudio.NewIntegrationTests.CSharp.CSharpWinForms.AddClickHandler(VS2022) [Details] [100.00% failure rate]
    [ 🚧 Report test infrastructure issue] [ 📄 Report test repository issue]

    Failing Configuration

    Data Driven SubResults
      Roslyn.VisualStudio.NewIntegrationTests.CSharp.CSharpWinForms.AddClickHandler (VS2022)
      Exception Message
      Assert.Contains() Failure: Sub-string not found
      String:    "using System;\r\nusing System.Collections.G"···
      Not found: "    public partial class Form1 : Form\r\n  "···
      Stack Trace
         at Roslyn.VisualStudio.NewIntegrationTests.CSharp.CSharpWinForms.<AddClickHandler>d__6.MoveNext() in /_/src/VisualStudio/IntegrationTest/New.IntegrationTests/CSharp/CSharpWinForms.cs:line 97
      --- End of stack trace from previous location where exception was thrown ---
         at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
         at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
         at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
      --- End of stack trace from previous location where exception was thrown ---
         at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
         at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
      --- End of stack trace from previous location where exception was thrown ---
         at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
         at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

Was this helpful? Yes No