Skip to content

It looks like Microsoft.CodeAnalysis.MSBuild.UnitTests.MSBuildWorkspaceTests.TestOpenProject_AssemblyNameIsPath unit-test is flaky #50258

@AlekseyTs

Description

@AlekseyTs

Lately, I am consistently getting the test failure when run it on my dev box. Both from command line and from VS:

Microsoft.CodeAnalysis.MSBuild.UnitTests.MSBuildWorkspaceTests.TestOpenProject_AssemblyNameIsPath [FAIL]
  Assert.Equal() Failure
                                   ↓ (pos 50)
  Expected: ···l\Temp\2\RoslynTests
  Actual:   ···l\Temp\2\RoslynTests\fc082681-b2ee-4795-a7b1-cda1d73c7e31\CSh···
                                   ↑ (pos 50)
  Stack Trace:
    F:\GitHub\roslyn\src\Workspaces\MSBuildTest\MSBuildWorkspaceTests.cs(830,0): at Microsoft.CodeAnalysis.MSBuild.UnitTests.MSBuildWorkspaceTests.<TestOpenProject_AssemblyNameIsPath>d__40.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
       at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    --- End of stack trace from previous location where exception was thrown ---
       at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    --- End of stack trace from previous location where exception was thrown ---
       at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

The guid is different from run to run.
However, CI for a GitHub PR is passing.

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions