Skip to content

DecimalBinaryOp_03 fails on Linux in CI on master branch #34198

@jcouv

Description

@jcouv

I'm getting an error on Linux branch with DecimalBinaryOp_03 in two of my PRs, and I see that other PRs are affected too.
It's effectively doing: System.Console.WriteLine(12345678900000000M % 0.0000000012345678M);
We expect 0.000000000983 but got 0.0000000009832122.

Why did this appear in unrelated PRs (seems like CI should have prevented whatever caused this change from getting merged, unless we're not building in a controlled/isolated environment), and why only on the Linux legs?

Relates to #32576


Roslyn.Test.Utilities.ExecutionException : \nExecution failed for assembly '/opt/code/artifacts/tmp/Debug/RoslynTests'.\n

Expected: \n1007\n993\n7000\n142.85714285714285714285714286\n6\n-993\n-1007\n-7000\n-142.85714285714285714285714286\n-6\n123.0012300\n122.9987700\n0.15129000000000\n100000\n0.0000000\n12345678900000000.000000001235\n12345678899999999.999999998765\n15241577.6390794200000000\n10000000729000059778004901.796\n0.000000000983\n246913578.1246913578\n-0.1000000000\n15241578765584515.651425087878\n0.9999999991899999933660999449\n123456789.0123456789\n\n

Actual: 1007\n993\n7000\n142.85714285714285714285714286\n6\n-993\n-1007\n-7000\n-142.85714285714285714285714286\n-6\n123.0012300\n122.9987700\n0.15129000000000\n100000\n0.0000000\n12345678900000000.000000001235\n12345678899999999.999999998765\n15241577.6390794200000000\n10000000729000059778004901.796\n0.0000000009832122\n246913578.1246913578\n-0.1000000000\n15241578765584515.651425087878\n0.9999999991899999933660999449\n123456789.0123456789\n\n

 

Stack trace

  at Roslyn.Test.Utilities.Desktop.DesktopRuntimeEnvironment.Execute (System.String moduleName, System.String[] args, System.String expectedOutput) [0x00079] in <82d3df1bc9244dfab11b08c80afc1923>:0

  at Microsoft.CodeAnalysis.Test.Utilities.CompilationVerifier.Emit (System.String expectedOutput, System.Nullable`1[T] expectedReturnCode, System.String[] args, System.Collections.Generic.IEnumerable`1[T] manifestResources, Microsoft.CodeAnalysis.Emit.EmitOptions emitOptions, Microsoft.CodeAnalysis.Test.Utilities.Verification peVerify, Microsoft.CodeAnalysis.Test.Utilities.SignatureDescription[] expectedSignatures) [0x00055] in <82d3df1bc9244dfab11b08c80afc1923>:0

  at Microsoft.CodeAnalysis.Test.Utilities.CommonTestBase.Emit (Microsoft.CodeAnalysis.Compilation compilation, System.Collections.Generic.IEnumerable`1[T] dependencies, System.Collections.Generic.IEnumerable`1[T] manifestResources, Microsoft.CodeAnalysis.Test.Utilities.SignatureDescription[] expectedSignatures, System.String expectedOutput, System.Nullable`1[T] expectedReturnCode, System.String[] args, System.Action`1[T] assemblyValidator, System.Action`1[T] symbolValidator, Microsoft.CodeAnalysis.Emit.EmitOptions emitOptions, Microsoft.CodeAnalysis.Test.Utilities.Verification verify) [0x00016] in <82d3df1bc9244dfab11b08c80afc1923>:0

  at Microsoft.CodeAnalysis.Test.Utilities.CommonTestBase.CompileAndVerifyCommon (Microsoft.CodeAnalysis.Compilation compilation, System.Collections.Generic.IEnumerable`1[T] manifestResources, System.Collections.Generic.IEnumerable`1[T] dependencies, System.Action`1[T] sourceSymbolValidator, System.Action`1[T] assemblyValidator, System.Action`1[T] symbolValidator, Microsoft.CodeAnalysis.Test.Utilities.SignatureDescription[] expectedSignatures, System.String expectedOutput, System.Nullable`1[T] expectedReturnCode, System.String[] args, Microsoft.CodeAnalysis.Emit.EmitOptions emitOptions, Microsoft.CodeAnalysis.Test.Utilities.Verification verify) [0x00074] in <82d3df1bc9244dfab11b08c80afc1923>:0

  at Microsoft.CodeAnalysis.CSharp.Test.Utilities.CSharpTestBase.CompileAndVerify (Microsoft.CodeAnalysis.Compilation compilation, System.Collections.Generic.IEnumerable`1[T] manifestResources, System.Collections.Generic.IEnumerable`1[T] dependencies, System.Action`1[T] sourceSymbolValidator, System.Action`1[T] validator, System.Action`1[T] symbolValidator, Microsoft.CodeAnalysis.Test.Utilities.SignatureDescription[] expectedSignatures, System.String expectedOutput, System.Nullable`1[T] expectedReturnCode, System.String[] args, Microsoft.CodeAnalysis.Emit.EmitOptions emitOptions, Microsoft.CodeAnalysis.Test.Utilities.Verification verify) [0x00016] in <410994acfd424b9db2d2c066e1ae29e9>:0

  at Microsoft.CodeAnalysis.CSharp.Test.Utilities.CSharpTestBase.CompileAndVerify (Microsoft.CodeAnalysis.CSharp.Test.Utilities.CSharpTestSource source, System.Collections.Generic.IEnumerable`1[T] references, System.Collections.Generic.IEnumerable`1[T] manifestResources, System.Collections.Generic.IEnumerable`1[T] dependencies, System.Action`1[T] sourceSymbolValidator, System.Action`1[T] assemblyValidator, System.Action`1[T] symbolValidator, Microsoft.CodeAnalysis.Test.Utilities.SignatureDescription[] expectedSignatures, System.String expectedOutput, System.Nullable`1[T] expectedReturnCode, System.String[] args, Microsoft.CodeAnalysis.CSharp.CSharpCompilationOptions options, Microsoft.CodeAnalysis.CSharp.CSharpParseOptions parseOptions, Microsoft.CodeAnalysis.Emit.EmitOptions emitOptions, Roslyn.Test.Utilities.TargetFramework targetFramework, Microsoft.CodeAnalysis.Test.Utilities.Verification verify) [0x00034] in <410994acfd424b9db2d2c066e1ae29e9>:0

  at Microsoft.CodeAnalysis.CSharp.UnitTests.CodeGen.CodeGenTests.DecimalBinaryOp_03 () [0x0000e] in <713891092dbf4c60917eca0a107b2bf5>:0

  at (wrapper managed-to-native) System.Reflection.RuntimeMethodInfo.InternalInvoke(System.Reflection.RuntimeMethodInfo,object,object[],System.Exception&)

  at System.Reflection.Run

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions