We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
We have a test case that fails internal builds, it started failing when the test ran on 5.0.101 it also fails on 5.0.102
Repro on a machine with 5.0.101 or 5.0.102 pin, the framework in the global.json and run build -c release -testcoreclr eventully observe the failure.
build -c release -testcoreclr
Failed Compile to Assembly [583 ms] Error Message: Expected: .field public static literal int32 x = int32(0x00000007) Entire actual: .assembly extern mscorlib { .publickeytoken = (B7 7A 5C 56 19 34 E0 89 ) .ver 4:0:0:0 } .assembly extern FSharp.Core { .publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A ) .ver 5:0:0:0 } .assembly extern System.Runtime { .publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A ) .ver 4:2:2:0 } .assembly extern System.Diagnostics.Debug { .publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A ) .ver 4:1:2:0 } .assembly test { .custom instance void [FSharp.Core]Microsoft.FSharp.Core.FSharpInterfaceDataVersionAttribute::.ctor(int32, int32, int32) = ( 01 00 02 00 00 00 00 00 00 00 00 00 00 00 00 00 ) .hash algorithm 0x00008004 .ver 0:0:0:0 } .mresource public FSharpSignatureData.test { } .mresource public FSharpOptimizationData.test { } .module test.dll .imagebase 0x00400000 .file alignment 0x00000200 .stackreserve 0x00100000 .subsystem 0x0003 .corflags 0x00000001 .class public abstract auto ansi sealed LiteralValue extends [runtime]System.Object { .custom instance void [FSharp.Core]Microsoft.FSharp.Core.CompilationMappingAttribute::.ctor(valuetype [FSharp.Core]Microsoft.FSharp.Core.SourceConstructFlags) = ( 01 00 07 00 00 00 00 00 ) .field public static literal valuetype [runtime]System.Int32 x = int32(0x00000007) .custom instance void [FSharp.Core]Microsoft.FSharp.Core.LiteralAttribute::.ctor() = ( 01 00 00 00 ) .custom instance void [System.Diagnostics.Debug]System.Diagnostics.DebuggerBrowsableAttribute::.ctor(valuetype [System.Diagnostics.Debug]System.Diagnostics.DebuggerBrowsableState) = ( 01 00 00 00 00 00 00 00 ) } .class private abstract auto ansi sealed '<StartupCode$test>'.$LiteralValue extends [runtime]System.Object { } Stack Trace: at FSharp.Test.Utilities.ILChecker.checkILAux(FSharpList`1 ildasmArgs, String dllFilePath, FSharpList`1 expectedIL) in C:\kevinransom\fsharp\tests\FSharp.Test.Utilities\ILChecker.fs:line 114 at FSharp.Test.Utilities.ILChecker.checkIL(String dllFilePath, FSharpList`1 expectedIL) in C:\kevinransom\fsharp\tests\FSharp.Test.Utilities\ILChecker.fs:line 124 at FSharp.Test.Utilities.ILVerifier.VerifyIL(FSharpList`1 expectedIL) in C:\kevinransom\fsharp\tests\FSharp.Test.Utilities\CompilerAssert.fs:line 32 at FSharp.Compiler.UnitTests.AstCompiler.AST Compiler Smoke Tests.Compile to Assembly() in C:\kevinransom\fsharp\tests\fsharp\Compiler\Infrastructure\AstCompiler.fs:line 37
The text was updated successfully, but these errors were encountered:
It seems that different IL is getting generated (or decompiled representation is different): int32 vs valuetype [runtime]System.Int32
We may need to tweak our notmalization before we compare IL.
I'm gonna look at it.
Sorry, something went wrong.
@vzarytovskii it's related to the sdk version, so it's likely resolution related.
Yeah, that's weird, since we didn't touch this test suite for a while.
Tracking
vzarytovskii
Successfully merging a pull request may close this issue.
We have a test case that fails internal builds, it started failing when the test ran on 5.0.101 it also fails on 5.0.102
Repro on a machine with 5.0.101 or 5.0.102 pin, the framework in the global.json and run
build -c release -testcoreclr
eventully observe the failure.The text was updated successfully, but these errors were encountered: