Skip to content
New issue

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

Add new Units type to ease UoM conversions #17518

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

Apply code formatting

ae834a8
Select commit
Loading
Failed to load commit list.
Draft

Add new Units type to ease UoM conversions #17518

Apply code formatting
ae834a8
Select commit
Loading
Failed to load commit list.
Azure Pipelines / fsharp-ci failed Aug 11, 2024 in 53m 37s

Build #20240810.13 had test failures

Details

Tests

  • Failed: 5 (0.01%)
  • Passed: 38,326 (95.98%)
  • Other: 1,602 (4.01%)
  • Total: 39,933

Annotations

Check failure on line 115808 in Build log

See this annotation in the file changed.

@azure-pipelines azure-pipelines / fsharp-ci

Build log #L115808

(NETCORE_ENGINEERING_TELEMETRY=Test) Failure running tests

Check failure on line 115809 in Build log

See this annotation in the file changed.

@azure-pipelines azure-pipelines / fsharp-ci

Build log #L115809

Cmd.exe exited with code '1'.

Check failure on line 141934 in Build log

See this annotation in the file changed.

@azure-pipelines azure-pipelines / fsharp-ci

Build log #L141934

(NETCORE_ENGINEERING_TELEMETRY=Test) Failure running tests

Check failure on line 141935 in Build log

See this annotation in the file changed.

@azure-pipelines azure-pipelines / fsharp-ci

Build log #L141935

Cmd.exe exited with code '1'.

Check failure on line 1 in Conformance.BasicGrammarElements.CustomAttributes_AttributeUsage.AssemblyVersion03_fs

See this annotation in the file changed.

@azure-pipelines azure-pipelines / fsharp-ci

Conformance.BasicGrammarElements.CustomAttributes_AttributeUsage.AssemblyVersion03_fs

System.Exception : Operation failed (expected to succeed).
 All errors:
[]

----output-----
Version:  1.2.8987.121 defaultBuild: 8988 defaultRevision: 121

----error-------
System.Exception: Failed: 1
   at AssemblyVersion03.staticInitialization@()
   at <StartupCode$AssemblyVersion03>.$AssemblyVersion03.main@()

   at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
   at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)
----------
Raw output
   at FSharp.Test.Compiler.Assertions.shouldSucceed(CompilationResult result) in /Users/runner/work/1/s/tests/FSharp.Test.Utilities/Compiler.fs:line 1530
   at Conformance.BasicGrammarElements.CustomAttributes_AttributeUsage.AssemblyVersion03_fs(CompilationUnit compilation) in /Users/runner/work/1/s/tests/FSharp.Compiler.ComponentTests/Conformance/BasicGrammarElements/CustomAttributes/AttributeUsage/AttributeUsage.fs:line 43

   at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
   at System.Reflection.MethodBaseInvoker.InvokeDirectByRefWithFewArgs(Object obj, Span`1 copyOfArgs, BindingFlags invokeAttr)

Check failure on line 1 in Conformance.BasicGrammarElements.CustomAttributes_AttributeUsage.AssemblyVersion03_fs

See this annotation in the file changed.

@azure-pipelines azure-pipelines / fsharp-ci

Conformance.BasicGrammarElements.CustomAttributes_AttributeUsage.AssemblyVersion03_fs

System.Exception : Operation failed (expected to succeed).
 All errors:
[]

----output-----
Version:  1.2.8987.182 defaultBuild: 8988 defaultRevision: 182

----error-------
System.Exception: Failed: 1
   at AssemblyVersion03.staticInitialization@()
   at <StartupCode$AssemblyVersion03>.$AssemblyVersion03.main@()
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
   at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)
----------
Raw output
   at FSharp.Test.Compiler.Assertions.shouldSucceed(CompilationResult result) in D:\a\_work\1\s\tests\FSharp.Test.Utilities\Compiler.fs:line 1530
   at Conformance.BasicGrammarElements.CustomAttributes_AttributeUsage.AssemblyVersion03_fs(CompilationUnit compilation) in D:\a\_work\1\s\tests\FSharp.Compiler.ComponentTests\Conformance\BasicGrammarElements\CustomAttributes\AttributeUsage\AttributeUsage.fs:line 43
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
   at System.Reflection.MethodBaseInvoker.InvokeDirectByRefWithFewArgs(Object obj, Span`1 copyOfArgs, BindingFlags invokeAttr)

Check failure on line 1 in FSharp.Core.UnitTests.Portable.SurfaceArea.SurfaceAreaTest.VerifySurfaceAreaFSharpCore

See this annotation in the file changed.

@azure-pipelines azure-pipelines / fsharp-ci

FSharp.Core.UnitTests.Portable.SurfaceArea.SurfaceAreaTest.VerifySurfaceAreaFSharpCore

System.Exception : Assembly: FSharp.Core, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a

              Expected and actual surface area don't match. To see the delta, run:
                  windiff D:\a\_work\1\s\tests\FSharp.Core.UnitTests\FSharp.Core.SurfaceArea.netstandard21.release.bsl D:\a\_work\1\s\artifacts\bin\FSharp.Core.UnitTests\Release\net9.0\FSharp.Core.SurfaceArea.netstandard21.release.out

              Unexpectedly missing (expected, not actual):

Unexpectedly present (actual, not expected):
    Microsoft.FSharp.Core.Units: Byte Add(Byte)
    Microsoft.FSharp.Core.Units: Byte Cast(Byte)
    Microsoft.FSharp.Core.Units: Byte Remove(Byte)
    Microsoft.FSharp.Core.Units: Byte[] AddArray(Byte[])
    Microsoft.FSharp.Core.Units: Byte[] CastArray(Byte[])
    Microsoft.FSharp.Core.Units: Byte[] RemoveArray(Byte[])
    Microsoft.FSharp.Core.Units: Double Add(Double)
    Microsoft.FSharp.Core.Units: Double Cast(Double)
    Microsoft.FSharp.Core.Units: Double Remove(Double)
    Microsoft.FSharp.Core.Units: Double[] AddArray(Double[])
    Microsoft.FSharp.Core.Units: Double[] CastArray(Double[])
    Microsoft.FSharp.Core.Units: Double[] RemoveArray(Double[])
    Microsoft.FSharp.Core.Units: Int16 Add(Int16)
    Microsoft.FSharp.Core.Units: Int16 Cast(Int16)
    Microsoft.FSharp.Core.Units: Int16 Remove(Int16)
    Microsoft.FSharp.Core.Units: Int16[] AddArray(Int16[])
    Microsoft.FSharp.Core.Units: Int16[] CastArray(Int16[])
    Microsoft.FSharp.Core.Units: Int16[] RemoveArray(Int16[])
    Microsoft.FSharp.Core.Units: Int32 Add(Int32)
    Microsoft.FSharp.Core.Units: Int32 Cast(Int32)
    Microsoft.FSharp.Core.Units: Int32 Remove(Int32)
    Microsoft.FSharp.Core.Units: Int32[] AddArray(Int32[])
    Microsoft.FSharp.Core.Units: Int32[] CastArray(Int32[])
    Microsoft.FSharp.Core.Units: Int32[] RemoveArray(Int32[])
    Microsoft.FSharp.Core.Units: Int64 Add(Int64)
    Microsoft.FSharp.Core.Units: Int64 Cast(Int64)
    Microsoft.FSharp.Core.Units: Int64 Remove(Int64)
    Microsoft.FSharp.Core.Units: Int64[] AddArray(Int64[])
    Microsoft.FSharp.Core.Units: Int64[] CastArray(Int64[])
    Microsoft.FSharp.Core.Units: Int64[] RemoveArray(Int64[])
    Microsoft.FSharp.Core.Units: IntPtr Add(IntPtr)
    Microsoft.FSharp.Core.Units: IntPtr Cast(IntPtr)
    Microsoft.FSharp.Core.Units: IntPtr Remove(IntPtr)
    Microsoft.FSharp.Core.Units: IntPtr[] AddArray(IntPtr[])
    Microsoft.FSharp.Core.Units: IntPtr[] RemoveArray(IntPtr[])
    Microsoft.FSharp.Core.Units: Microsoft.FSharp.Collections.FSharpList`1[System.Byte] AddList(Microsoft.FSharp.Collections.FSharpList`1[System.Byte])
    Microsoft.FSharp.Core.Units: Microsoft.FSharp.Collections.FSharpList`1[System.Byte] CastList(Microsoft.FSharp.Collections.FSharpList`1[System.Byte])
    Microsoft.FSharp.Core.Units: Microsoft.FSharp.Collections.FSharpList`1[System.Byte] RemoveList(Microsoft.FSharp.Collections.FSharpList`1[System.Byte])
    Microsoft.FSharp.Core.Units: Microsoft.FSharp.Collections.FSharpList`1[System.Decimal] AddList(Microsoft.FSharp.Collections.FSharpList`1[System.Decimal])
    Microsoft.FSharp.Core.Units: Microsoft.FSharp.Collections.FSharpList`1[System.Decimal] CastList(Microsoft.FSharp.Collections.FSharpList`1[System.Decimal])
    Microsoft.FSharp.Core.Units: Microsoft.FSharp.Collections.FSharpList`1[System.Decimal] RemoveList(Microsoft.FSharp.Collections.FSharpList`1[System.Decimal])
    Microsoft.FSharp.Core.Units: Microsoft.FSharp.Collections.FSharpList`1[System.Double] AddList(Microsoft.FSharp.Collections.FSharpList`1[System.Double])
    Microsoft.FSharp.Core.Units: Microsoft.FSharp.Collections.FSharpList`1[System.Double] CastList(Microsoft.FSharp.Collections.FSharpList`1[System.Double])
    Microsoft.FSharp.Core.Units: Microsoft.FSharp.Collections.FSharpList`1[System.Double] RemoveList(Microsoft.FSharp.Collections.FSharpList`1[System.Double])
    Microsoft.FSharp.Core.Units: Microsoft.FSharp.Collections.FSharpList`1[System.Int16] AddList(
Raw output
   at FSharp.Test.SurfaceArea.verify(Assembly assembly, String baselinePath, String outFileName) in D:\a\_work\1\s\tests\FSharp.Test.Utilities\SurfaceArea.fs:line 85
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
   at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)

Check failure on line 1 in Conformance.BasicGrammarElements.CustomAttributes_AttributeUsage.AssemblyVersion03_fs

See this annotation in the file changed.

@azure-pipelines azure-pipelines / fsharp-ci

Conformance.BasicGrammarElements.CustomAttributes_AttributeUsage.AssemblyVersion03_fs

System.Exception : Operation failed (expected to succeed).
 All errors:
[]

----output-----
Version:  1.2.8987.209 defaultBuild: 8988 defaultRevision: 209

----error-------
System.Exception: Failed: 1
   at AssemblyVersion03.staticInitialization@()
   at <StartupCode$AssemblyVersion03>.$AssemblyVersion03.main@()
----------
Raw output
   at FSharp.Test.Compiler.Assertions.shouldSucceed(CompilationResult result) in D:\a\_work\1\s\tests\FSharp.Test.Utilities\Compiler.fs:line 1530
   at Conformance.BasicGrammarElements.CustomAttributes_AttributeUsage.AssemblyVersion03_fs(CompilationUnit compilation) in D:\a\_work\1\s\tests\FSharp.Compiler.ComponentTests\Conformance\BasicGrammarElements\CustomAttributes\AttributeUsage\AttributeUsage.fs:line 43