Skip to content

CscBench test failing spuriously #4968

@RussKeldorph

Description

@RussKeldorph

Test case tests\src\JIT\Performance\CodeQuality\Roslyn\CscBench.cs seems to be failing in the CI spuriously. I think I remember seeing this on both Windows and Linux, but the only examples I can find are on Ubuntu, so perhaps assume it is Linux-specific for now.

From Andy:
I wonder if it’s some kind of race condition or similar setting up the overlay test directory. I noticed in the past that it was easy to end up with different resolved versions in the various project.json files and when the overlay processing goes to flatten all these into one directory, I wonder if sometimes (or just on some machines, or just on Ubuntu, etc) it ends up with a different set of implementation assemblies.

It feels like either we should head towards having all tests in CoreCLR share a single project.json so we can’t have version mismatches like this, or have one overlay directory per project.json, or may be do something else to keep things straight.

Examples of (probably) spurious failures:
http://dotnet-ci.cloudapp.net/job/dotnet_coreclr/job/release_ubuntu_tst_prtest/969/testReport/junit/JIT.Performance.CodeQuality.Roslyn/CscBench/CscBench/
http://dotnet-ci.cloudapp.net/job/dotnet_coreclr/job/release_ubuntu_tst_prtest/971/testReport/junit/JIT.Performance.CodeQuality.Roslyn/CscBench/CscBench/

Sample output from CI:
MESSAGE:
BEGIN EXECUTION /mnt/j/workspace/dotnet_coreclr/release_ubuntu_tst_prtest/bin/tests/Windows_NT.x64.Release/Tests/coreoverlay/corerun CscBench.exe libust[34441/34441]: Warning: HOME environment variable not set. Disabling LTTng-UST per-user tracing. (in setup_local_apps() at lttng-ust-comm.c:305) Unhandled Exception: System.IO.FileLoadException: Could not load file or assembly 'System.Runtime, Version=4.0.21.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) at Microsoft.CodeAnalysis.CSharp.CSharpCompilation.AddSyntaxTrees(IEnumerable1 trees) at Microsoft.CodeAnalysis.CSharp.CSharpCompilation.Create(String assemblyName, CSharpCompilationOptions options, IEnumerable1 syntaxTrees, IEnumerable`1 references, CSharpCompilation previousSubmission, Type returnType, Type hostObjectType, Boolean isSubmission) at CscBench.CompileBench() at CscBench.Main() ./CscBench.sh: line 55: 34441 Aborted (core dumped) $_DebuggerFullPath "$CORE_ROOT/corerun" CscBench.exe $CLRTestExecutionArguments $Host_Args Expected: 100 Actual: 134 END EXECUTION - FAILED
+++++++++++++++++++
STACK TRACE:

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions