Skip to content

Add tests for multi-spec parsing and InstallMultiple

81006c5
Select commit
Loading
Failed to load commit list.
Draft

Dotnetup: Support installing multiple runtimes at once #53469

Add tests for multi-spec parsing and InstallMultiple
81006c5
Select commit
Loading
Failed to load commit list.
Build Analysis / Build Analysis succeeded Mar 16, 2026 in 0s

.NET Result Analysis

Details

All checks completed

[dotnet-dnup-public-ci]

Build Rerun

✔️ Build passed after 1 retries.

(Attempt #1) [link to build]

dotnet-dnup-public-ci / 🏰 dotnetup tests / 💪 dotnetup tests: macOS (osx.13.arm64.open) / 🔎 Test (Unix)

[ 🚧 Report infrastructure issue] [ 📄 Report repository issue]
    ❌Bash exited with code '1'.

Non-Deterministic Test Failures Detected

Microsoft.DotNet.Tools.Dotnetup.Tests.InstallEndToEndTests.SdkInstall(channel: "lts") [Details] [8.94% failure rate]
[ 🚧 Report test infrastructure issue] [ 📄 Report test repository issue]

Failing Configuration

Exception Message
Expected exitCode to be 0 because dotnetup exited with code 1. Output:
Installing .NET SDK 10.0.201 to /private/var/folders/yj/mflq9j197hz47cqbjv17r7k00000gn/T/dotnetup-tests/1e2149c5fc76458d80fe72594bf86196/dotnet...
Another dotnetup process is running. Waiting for it to finish...
Downloading .NET SDK 10.0.201...
Error: Failed to fetch release manifest: Error while copying content to a stream.
, but found 1 (difference of 1).
CallStack
   at FluentAssertions.Execution.LateBoundTestFramework.Throw(String message)
   at FluentAssertions.Execution.DefaultAssertionStrategy.HandleFailure(String message)
   at FluentAssertions.Execution.AssertionChain.FailWith(Func`1 getFailureReason)
   at FluentAssertions.Numeric.NumericAssertionsBase`3.Be(T expected, String because, Object[] becauseArgs)
   at Microsoft.DotNet.Tools.Dotnetup.Tests.InstallEndToEndTests.SdkInstall(String channel) in /Users/runner/work/1/s/test/dotnetup.Tests/DnupE2Etest.cs:line 78
   at InvokeStub_InstallEndToEndTests.SdkInstall(Object, Span`1)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
Microsoft.DotNet.Tools.Dotnetup.Tests.LifecycleEndToEndTests.MultipleGlobalJson_UpdateRetainsOlderPinnedVersion [Details] [5.33% failure rate]
[ 🚧 Report test infrastructure issue] [ 📄 Report test repository issue]

Failing Configuration

Exception Message
Expected exitCode[1] to be 0 because SDK update failed. Output:
Error: Error while copying content to a stream.
, but found 1 (difference of 1).
CallStack
   at FluentAssertions.Execution.LateBoundTestFramework.Throw(String message)
   at FluentAssertions.Execution.DefaultAssertionStrategy.HandleFailure(String message)
   at FluentAssertions.Execution.AssertionChain.FailWith(Func`1 getFailureReason)
   at FluentAssertions.Numeric.NumericAssertionsBase`3.Be(T expected, String because, Object[] becauseArgs)
   at Microsoft.DotNet.Tools.Dotnetup.Tests.LifecycleEndToEndTests.MultipleGlobalJson_UpdateRetainsOlderPinnedVersion() in /Users/runner/work/1/s/test/dotnetup.Tests/DnupE2Etest.cs:line 997
   at System.RuntimeMethodHandle.InvokeMethod(ObjectHandleOnStack target, Void** arguments, ObjectHandleOnStack sig, BOOL isConstructor, ObjectHandleOnStack result)
   at System.RuntimeMethodHandle.InvokeMethod(ObjectHandleOnStack target, Void** arguments, ObjectHandleOnStack sig, BOOL isConstructor, ObjectHandleOnStack result)
   at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args)
   at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)
Microsoft.DotNet.Tools.Dotnetup.Tests.ReuseAndErrorTests.Install_ReusesExistingInstall(componentType: "runtime@9.0", channel: null) [Details] [3.32% failure rate]
[ 🚧 Report test infrastructure issue] [ 📄 Report test repository issue]

Failing Configuration

Exception Message
Expected exitCode to be 0 because First install failed. Output:
Installing dotnet (runtime) 9.0.14 to /private/var/folders/yj/mflq9j197hz47cqbjv17r7k00000gn/T/dotnetup-tests/6b0def1ddc444d84b436dd5edf7d989c/dotnet...
Another dotnetup process is running. Waiting for it to finish...
Downloading dotnet (runtime) 9.0.14...
Error: Failed to fetch release manifest: Error while copying content to a stream.
, but found 1 (difference of 1).
CallStack
   at FluentAssertions.Execution.LateBoundTestFramework.Throw(String message)
   at FluentAssertions.Execution.DefaultAssertionStrategy.HandleFailure(String message)
   at FluentAssertions.Execution.AssertionChain.FailWith(Func`1 getFailureReason)
   at FluentAssertions.Numeric.NumericAssertionsBase`3.Be(T expected, String because, Object[] becauseArgs)
   at Microsoft.DotNet.Tools.Dotnetup.Tests.ReuseAndErrorTests.Install_ReusesExistingInstall(String componentType, String channel) in /Users/runner/work/1/s/test/dotnetup.Tests/DnupE2Etest.cs:line 576
   at System.RuntimeMethodHandle.InvokeMethod(ObjectHandleOnStack target, Void** arguments, ObjectHandleOnStack sig, BOOL isConstructor, ObjectHandleOnStack result)
   at System.RuntimeMethodHandle.InvokeMethod(ObjectHandleOnStack target, Void** arguments, ObjectHandleOnStack sig, BOOL isConstructor, ObjectHandleOnStack result)
   at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args)
   at System.Reflection.MethodBaseInvoker.InvokeDirectByRefWithFewArgs(Object obj, Span`1 copyOfArgs, BindingFlags invokeAttr)

Was this helpful? Yes No