Skip to content

Validate NuGet binary closures during packaging - #5676

Draft
Brendan Kowitz (brendankowitz) wants to merge 26 commits into
mainfrom
brendankowitz-add-binary-closure-validation
Draft

Validate NuGet binary closures during packaging#5676
Brendan Kowitz (brendankowitz) wants to merge 26 commits into
mainfrom
brendankowitz-add-binary-closure-validation

Preserve binary closure package roots

12a33ce
Select commit
Loading
Failed to load commit list.
Azure Pipelines / PR Build & Deploy failed Jul 15, 2026 in 37m 53s

Build #301pr567627 had test failures

Details

Tests

  • Failed: 1 (0.00%)
  • Passed: 28,344 (99.56%)
  • Other: 124 (0.44%)
  • Total: 28,469

Annotations

Check failure on line 516 in Build log

See this annotation in the file changed.

@azure-pipelines azure-pipelines / PR Build & Deploy

Build log #L516

PowerShell exited with code '1'.

Check failure on line 23 in Build log

See this annotation in the file changed.

@azure-pipelines azure-pipelines / PR Build & Deploy

Build log #L23

PowerShell exited with code '1'.

Check failure on line 1 in Microsoft.Health.Fhir.Core.UnitTests.Features.Conformance.Models.ThreadSafeHashSetTests.GivenConcurrentMixedOperations_WhenExecuted_ThenSetShouldRemainThreadSafe

See this annotation in the file changed.

@azure-pipelines azure-pipelines / PR Build & Deploy

Microsoft.Health.Fhir.Core.UnitTests.Features.Conformance.Models.ThreadSafeHashSetTests.GivenConcurrentMixedOperations_WhenExecuted_ThenSetShouldRemainThreadSafe

System.AggregateException : One or more errors occurred. (Destination array was not long enough. Check the destination index, length, and the array's lower bounds. (Parameter 'destinationArray')) (Destination array was not long enough. Check the destination index, length, and the array's lower bounds. (Parameter 'destinationArray'))
---- System.ArgumentException : Destination array was not long enough. Check the destination index, length, and the array's lower bounds. (Parameter 'destinationArray')
---- System.ArgumentException : Destination array was not long enough. Check the destination index, length, and the array's lower bounds. (Parameter 'destinationArray')
Raw output
   at System.Threading.Tasks.Task.WaitAllCore(Task[] tasks, Int32 millisecondsTimeout, CancellationToken cancellationToken)
   at System.Threading.Tasks.Task.WaitAll(Task[] tasks, CancellationToken cancellationToken)
   at Microsoft.Health.Fhir.Core.UnitTests.Features.Conformance.Models.ThreadSafeHashSetTests.GivenConcurrentMixedOperations_WhenExecuted_ThenSetShouldRemainThreadSafe() in /_/src/Microsoft.Health.Fhir.Core.UnitTests/Features/Conformance/Models/ThreadSafeHashSetTests.cs:line 401
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
   at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)
----- Inner Stack Trace #1 (System.ArgumentException) -----
   at System.Array.CopyImpl(Array sourceArray, Int32 sourceIndex, Array destinationArray, Int32 destinationIndex, Int32 length, Boolean reliable)
   at System.SZArrayHelper.CopyTo[T](T[] array, Int32 index)
   at Microsoft.Health.Fhir.Core.Features.Conformance.Models.ThreadSafeHashSet`1.CopyTo(T[] array, Int32 arrayIndex) in /_/src/Microsoft.Health.Fhir.Core/Features/Conformance/Models/ThreadSafeHashSet.cs:line 71
   at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
   at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
   at Microsoft.Health.Fhir.Core.UnitTests.Features.Conformance.Models.ThreadSafeHashSetTests.<>c__DisplayClass15_0.<GivenConcurrentMixedOperations_WhenExecuted_ThenSetShouldRemainThreadSafe>b__7() in /_/src/Microsoft.Health.Fhir.Core.UnitTests/Features/Conformance/Models/ThreadSafeHashSetTests.cs:line 388
   at System.Threading.Tasks.Task`1.InnerInvoke()
   at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---
   at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
----- Inner Stack Trace #2 (System.ArgumentException) -----
   at System.Array.CopyImpl(Array sourceArray, Int32 sourceIndex, Array destinationArray, Int32 destinationIndex, Int32 length, Boolean reliable)
   at System.SZArrayHelper.CopyTo[T](T[] array, Int32 index)
   at Microsoft.Health.Fhir.Core.Features.Conformance.Models.ThreadSafeHashSet`1.CopyTo(T[] array, Int32 arrayIndex) in /_/src/Microsoft.Health.Fhir.Core/Features/Conformance/Models/ThreadSafeHashSet.cs:line 71
   at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
   at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
   at Microsoft.Health.Fhir.Core.UnitTests.Features.Conformance.Models.ThreadSafeHashSetTests.<>c__DisplayClass15_0.<GivenConcurrentMixedOperations_WhenExecuted_ThenSetShouldRemainThreadSafe>b__7() in /_/src/Microsoft.Health.Fhir.Core.UnitTests/Features/Conformance/Models/ThreadSafeHashSetTests.cs:line 388
   at System.Threading.Tasks.Task`1.InnerInvoke()
   at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---
   at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)