dotnet / dotnet/roslyn

Scripting unification tests broken

Open
#79,923 1 comment 0 reactions 1 assignee Claimed by @tmat View on GitHub
Area-Interactive Disabled Test
Dominant language
C#
Stars
20.7k
Forks
4.3k
PR merge metrics
PR metrics pending

Description

**Version Used**: a523b8425cc9c9821274fe221afe01a06125761c

Tests `References_Versioning_FxUnification1` and `References_Versioning_FxUnification2` are failing for me locally and in CI when [switched to an image with VS](https://github.com/dotnet/roslyn/pull/79911/commits/dac4814ef415a87fc87f64c66afac19d0038d49b). I think they are not failing in current CI because they are essentially skipped there due to this condition:

https://github.com/dotnet/roslyn/blob/cdc829e937047f803f7663d4339d24b0a8e7fc39/src/Scripting/CSharpTest.Desktop/InteractiveSessionReferencesTests.cs#L245-L249

The failure is not deterministic - the result is different each time, but it's always something like:

```
Differences:
"System, Version=2.0.0.0: ",
"System, Version=4.0.0.0",
"mscorlib, Version=4.0.0.0",
"System.Configuration, Version=4.0.0.0: ,global",
"System.Xml, Version=4.0.0.0: ,global",
++> "System.Data.SqlXml, Version=4.0.0.0: ",
--> "System.Data.SqlXml, Version=4.0.0.0: ,global",
"System.Security, Version=4.0.0.0: ,global",
"System.Core, Version=4.0.0.0: ,global",
"System.Numerics, Version=4.0.0.0: ,global",
"System.Configuration, Version=2.0.0.0: ",
"System.Xml, Version=2.0.0.0: ",
"System.Data.SqlXml, Version=2.0.0.0: ",
"System.Security, Version=2.0.0.0: "

Stack Trace: 
AssertEx.Equal[T](IEnumerable`1 expected, IEnumerable`1 actual, IEqualityComparer`1 comparer, String message, String itemSeparator, Func`2 itemInspector, String expectedValueSourcePath, Int32 expectedValueSourceLine) line 246
CompilationExtensions.VerifyAssemblyVersionsAndAliases(Compilation compilation, String[] expectedAssembliesAndAliases) line 181
InteractiveSessionReferencesTests.References_Versioning_FxUnification1() line 257
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.