Skip to content

feat: add support for .NET9 #2301

feat: add support for .NET9

feat: add support for .NET9 #2301

Triggered via pull request January 29, 2025 19:34
Status Failure
Total duration 35m 7s
Artifacts 4

ci.yml

on: pull_request
Matrix: Unit tests
Mutation tests (Linux)
17m 16s
Mutation tests (Linux)
Mutation tests (Windows)
19m 34s
Mutation tests (Windows)
Static code analysis
15m 34s
Static code analysis
Publish Tests Results
28s
Publish Tests Results
Fit to window
Zoom out
Zoom in

Annotations

6 errors and 23 warnings
Unit tests (ubuntu-latest)
[xUnit.net 00:00:35.22] Testably.Abstractions.Tests.TimeSystem.TimerTests+MockTimeSystemTests.Change_WithInt_ShouldResetTimer [FAIL]
Unit tests (ubuntu-latest)
All 2 tries failed: System.AggregateException: One or more errors occurred. (Process 'dotnet' exited with code 1. > /usr/share/dotnet/dotnet test /home/runner/work/Testably.Abstractions/Testably.Abstractions/Tests/Testably.Abstractions.Tests/Testably.Abstractions.Tests.csproj --configuration Release --no-build --collect "XPlat Code Coverage" --results-directory /home/runner/work/Testably.Abstractions/Testably.Abstractions/TestResults --framework net6.0 --logger trx;LogFileName=Testably.Abstractions.Tests_net6.0.trx @ /home/runner/work/Testably.Abstractions/Testably.Abstractions Error output: [xUnit.net 00:00:35.22] Testably.Abstractions.Tests.TimeSystem.TimerTests+MockTimeSystemTests.Change_WithInt_ShouldResetTimer [FAIL] ) ---> Nuke.Common.Tooling.ProcessException: Process 'dotnet' exited with code 1. > /usr/share/dotnet/dotnet test /home/runner/work/Testably.Abstractions/Testably.Abstractions/Tests/Testably.Abstractions.Tests/Testably.Abstractions.Tests.csproj --configuration Release --no-build --collect "XPlat Code Coverage" --results-directory /home/runner/work/Testably.Abstractions/Testably.Abstractions/TestResults --framework net6.0 --logger trx;LogFileName=Testably.Abstractions.Tests_net6.0.trx @ /home/runner/work/Testably.Abstractions/Testably.Abstractions Error output: [xUnit.net 00:00:35.22] Testably.Abstractions.Tests.TimeSystem.TimerTests+MockTimeSystemTests.Change_WithInt_ShouldResetTimer [FAIL] at Nuke.Common.Tooling.ProcessExtensions.AssertZeroExitCode(IProcess process) in /_/source/Nuke.Tooling/ProcessExtensions.cs:line 38 at Nuke.Common.Tooling.ToolTasks.<>c.<GetExitHandler>b__4_0(ToolOptions _, IProcess p) in /_/source/Nuke.Tooling/ToolTasks.ExitHandler.cs:line 27 at Nuke.Common.Tooling.ToolTasks.<>c__DisplayClass8_0.<GetExitHandlerInternal>b__3(ToolOptions o, IProcess p) in /_/source/Nuke.Tooling/ToolTasks.ExitHandler.cs:line 22 at Nuke.Common.Tooling.ToolTasks.Run[T](T options) in /_/source/Nuke.Tooling/ToolTasks.Run.cs:line 36 at Nuke.Common.Tools.DotNet.DotNetTasks.DotNetTest(DotNetTestSettings options) in /_/source/Nuke.Common/Tools/DotNet/DotNet.Generated.cs:line 32 at Nuke.Common.Tooling.ConfigureExtensions.<>c__DisplayClass1_0`1.<Invoke>b__0(TOptions x) in /_/source/Nuke.Tooling/Configure.cs:line 38 at Nuke.Common.Tooling.ConfigureExtensions.<>c__DisplayClass3_0`2.<Invoke>b__0(TOptions x) in /_/source/Nuke.Tooling/Configure.cs:line 78 --- End of inner exception stack trace --- at Nuke.Common.Tooling.ConfigureExtensions.Invoke[TOptions,TResult](CombinatorialConfigure`1 configurator, Func`2 executor, Func`2 outputSelector, Int32 degreeOfParallelism, Boolean completeOnFailure) in /_/source/Nuke.Tooling/Configure.cs:line 91 at Nuke.Common.Tooling.ConfigureExtensions.Invoke[TOptions](CombinatorialConfigure`1 configurator, Func`2 executor, Int32 degreeOfParallelism, Boolean completeOnFailure) at Nuke.Common.Tools.DotNet.DotNetTasks.DotNetTest(CombinatorialConfigure`1 configurator, Int32 degreeOfParallelism, Boolean completeOnFailure) in /_/source/Nuke.Common/Tools/DotNet/DotNet.Generated.cs:line 36 at Build.Build.<get_DotNetUnitTests>b__55_1() in /home/runner/work/Testably.Abstractions/Testably.Abstractions/Pipeline/Build.UnitTest.cs:line 31
Unit tests (ubuntu-latest)
Target "DotNetUnitTests" has thrown an exception
Unit tests (ubuntu-latest)
Process completed with exit code 255.
Unit tests (macos-latest)
[xUnit.net 00:00:17.93] Testably.Abstractions.Tests.TimeSystem.TimerTests+MockTimeSystemTests.Change_WithTimeSpan_ShouldResetTimer [FAIL]
Unit tests (macos-latest)
Error during unit tests: System.AggregateException: One or more errors occurred. (Process 'dotnet' exited with code 1. > /Users/runner/.dotnet/dotnet test /Users/runner/work/Testably.Abstractions/Testably.Abstractions/Tests/Testably.Abstractions.Tests/Testably.Abstractions.Tests.csproj --configuration Release --no-build --collect "XPlat Code Coverage" --results-directory /Users/runner/work/Testably.Abstractions/Testably.Abstractions/TestResults --framework net8.0 --logger trx;LogFileName=Testably.Abstractions.Tests_net8.0.trx @ /Users/runner/work/Testably.Abstractions/Testably.Abstractions Error output: [xUnit.net 00:00:17.93] Testably.Abstractions.Tests.TimeSystem.TimerTests+MockTimeSystemTests.Change_WithTimeSpan_ShouldResetTimer [FAIL] ) ---> Nuke.Common.Tooling.ProcessException: Process 'dotnet' exited with code 1. > /Users/runner/.dotnet/dotnet test /Users/runner/work/Testably.Abstractions/Testably.Abstractions/Tests/Testably.Abstractions.Tests/Testably.Abstractions.Tests.csproj --configuration Release --no-build --collect "XPlat Code Coverage" --results-directory /Users/runner/work/Testably.Abstractions/Testably.Abstractions/TestResults --framework net8.0 --logger trx;LogFileName=Testably.Abstractions.Tests_net8.0.trx @ /Users/runner/work/Testably.Abstractions/Testably.Abstractions Error output: [xUnit.net 00:00:17.93] Testably.Abstractions.Tests.TimeSystem.TimerTests+MockTimeSystemTests.Change_WithTimeSpan_ShouldResetTimer [FAIL] at Nuke.Common.Tooling.ProcessExtensions.AssertZeroExitCode(IProcess process) in /_/source/Nuke.Tooling/ProcessExtensions.cs:line 38 at Nuke.Common.Tooling.ToolTasks.<>c.<GetExitHandler>b__4_0(ToolOptions _, IProcess p) in /_/source/Nuke.Tooling/ToolTasks.ExitHandler.cs:line 27 at Nuke.Common.Tooling.ToolTasks.<>c__DisplayClass8_0.<GetExitHandlerInternal>b__3(ToolOptions o, IProcess p) in /_/source/Nuke.Tooling/ToolTasks.ExitHandler.cs:line 22 at Nuke.Common.Tooling.ToolTasks.Run[T](T options) in /_/source/Nuke.Tooling/ToolTasks.Run.cs:line 36 at Nuke.Common.Tools.DotNet.DotNetTasks.DotNetTest(DotNetTestSettings options) in /_/source/Nuke.Common/Tools/DotNet/DotNet.Generated.cs:line 32 at Nuke.Common.Tooling.ConfigureExtensions.<>c__DisplayClass1_0`1.<Invoke>b__0(TOptions x) in /_/source/Nuke.Tooling/Configure.cs:line 38 at Nuke.Common.Tooling.ConfigureExtensions.<>c__DisplayClass3_0`2.<Invoke>b__0(TOptions x) in /_/source/Nuke.Tooling/Configure.cs:line 78 --- End of inner exception stack trace --- at Nuke.Common.Tooling.ConfigureExtensions.Invoke[TOptions,TResult](CombinatorialConfigure`1 configurator, Func`2 executor, Func`2 outputSelector, Int32 degreeOfParallelism, Boolean completeOnFailure) in /_/source/Nuke.Tooling/Configure.cs:line 91 at Nuke.Common.Tooling.ConfigureExtensions.Invoke[TOptions](CombinatorialConfigure`1 configurator, Func`2 executor, Int32 degreeOfParallelism, Boolean completeOnFailure) at Nuke.Common.Tools.DotNet.DotNetTasks.DotNetTest(CombinatorialConfigure`1 configurator, Int32 degreeOfParallelism, Boolean completeOnFailure) in /_/source/Nuke.Common/Tools/DotNet/DotNet.Generated.cs:line 36 at Build.Build.<get_DotNetUnitTests>b__55_1() in /Users/runner/work/Testably.Abstractions/Testably.Abstractions/Pipeline/Build.UnitTest.cs:line 31
API tests
/home/runner/work/Testably.Abstractions/Testably.Abstractions/Tests/Testably.Abstractions.Parity.Tests/Net9ParityTests.cs(15,5): warning MA0026: TODO Add support for Guid.CreateVersion7() (https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0026.md) [/home/runner/work/Testably.Abstractions/Testably.Abstractions/Tests/Testably.Abstractions.Parity.Tests/Testably.Abstractions.Parity.Tests.csproj::TargetFramework=net9.0]
API tests
/home/runner/work/Testably.Abstractions/Testably.Abstractions/Tests/Testably.Abstractions.Parity.Tests/Net9ParityTests.cs(15,5): warning MA0026: TODO Add support for Guid.CreateVersion7() (https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0026.md) [/home/runner/work/Testably.Abstractions/Testably.Abstractions/Tests/Testably.Abstractions.Parity.Tests/Testably.Abstractions.Parity.Tests.csproj::TargetFramework=net9.0]
Unit tests (ubuntu-latest)
/home/runner/work/Testably.Abstractions/Testably.Abstractions/Tests/Testably.Abstractions.Parity.Tests/Net9ParityTests.cs(15,5): warning MA0026: TODO Add support for Guid.CreateVersion7() (https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0026.md) [/home/runner/work/Testably.Abstractions/Testably.Abstractions/Tests/Testably.Abstractions.Parity.Tests/Testably.Abstractions.Parity.Tests.csproj::TargetFramework=net9.0]
Unit tests (ubuntu-latest)
/home/runner/work/Testably.Abstractions/Testably.Abstractions/Tests/Testably.Abstractions.Parity.Tests/Net9ParityTests.cs(15,5): warning MA0026: TODO Add support for Guid.CreateVersion7() (https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0026.md) [/home/runner/work/Testably.Abstractions/Testably.Abstractions/Tests/Testably.Abstractions.Parity.Tests/Testably.Abstractions.Parity.Tests.csproj::TargetFramework=net9.0]
Static code analysis
/home/runner/work/Testably.Abstractions/Testably.Abstractions/Source/Testably.Abstractions/FileSystem/PathWrapper.cs(176,6): warning S5443: Make sure publicly writable directories are used safely here. (https://rules.sonarsource.com/csharp/RSPEC-5443) [/home/runner/work/Testably.Abstractions/Testably.Abstractions/Source/Testably.Abstractions/Testably.Abstractions.csproj::TargetFramework=net6.0]
Static code analysis
/home/runner/work/Testably.Abstractions/Testably.Abstractions/Source/Testably.Abstractions/FileSystem/PathWrapper.cs(172,6): warning S5445: 'Path.GetTempFileName()' is insecure. Use 'Path.GetRandomFileName()' instead. (https://rules.sonarsource.com/csharp/RSPEC-5445) [/home/runner/work/Testably.Abstractions/Testably.Abstractions/Source/Testably.Abstractions/Testably.Abstractions.csproj::TargetFramework=net6.0]
Static code analysis
/home/runner/work/Testably.Abstractions/Testably.Abstractions/Source/Testably.Abstractions.Testing/Helpers/Execute.NativePath.cs(208,7): warning S5443: Make sure publicly writable directories are used safely here. (https://rules.sonarsource.com/csharp/RSPEC-5443) [/home/runner/work/Testably.Abstractions/Testably.Abstractions/Source/Testably.Abstractions.Testing/Testably.Abstractions.Testing.csproj::TargetFramework=net6.0]
Static code analysis
/home/runner/work/Testably.Abstractions/Testably.Abstractions/Source/Testably.Abstractions.Testing/Helpers/Execute.SimulatedPath.cs(728,20): warning S3776: Refactor this method to reduce its Cognitive Complexity from 41 to the 15 allowed. (https://rules.sonarsource.com/csharp/RSPEC-3776) [/home/runner/work/Testably.Abstractions/Testably.Abstractions/Source/Testably.Abstractions.Testing/Testably.Abstractions.Testing.csproj::TargetFramework=net6.0]
Static code analysis
/home/runner/work/Testably.Abstractions/Testably.Abstractions/Source/Testably.Abstractions/FileSystem/PathWrapper.cs(172,6): warning S5445: 'Path.GetTempFileName()' is insecure. Use 'Path.GetRandomFileName()' instead. (https://rules.sonarsource.com/csharp/RSPEC-5445) [/home/runner/work/Testably.Abstractions/Testably.Abstractions/Source/Testably.Abstractions/Testably.Abstractions.csproj::TargetFramework=netstandard2.0]
Static code analysis
/home/runner/work/Testably.Abstractions/Testably.Abstractions/Source/Testably.Abstractions/FileSystem/PathWrapper.cs(176,6): warning S5443: Make sure publicly writable directories are used safely here. (https://rules.sonarsource.com/csharp/RSPEC-5443) [/home/runner/work/Testably.Abstractions/Testably.Abstractions/Source/Testably.Abstractions/Testably.Abstractions.csproj::TargetFramework=netstandard2.0]
Static code analysis
/home/runner/work/Testably.Abstractions/Testably.Abstractions/Source/Testably.Abstractions.Testing/Helpers/Execute.NativePath.cs(208,7): warning S5443: Make sure publicly writable directories are used safely here. (https://rules.sonarsource.com/csharp/RSPEC-5443) [/home/runner/work/Testably.Abstractions/Testably.Abstractions/Source/Testably.Abstractions.Testing/Testably.Abstractions.Testing.csproj::TargetFramework=net9.0]
Static code analysis
/home/runner/work/Testably.Abstractions/Testably.Abstractions/Source/Testably.Abstractions.Testing/Helpers/Execute.SimulatedPath.cs(728,20): warning S3776: Refactor this method to reduce its Cognitive Complexity from 41 to the 15 allowed. (https://rules.sonarsource.com/csharp/RSPEC-3776) [/home/runner/work/Testably.Abstractions/Testably.Abstractions/Source/Testably.Abstractions.Testing/Testably.Abstractions.Testing.csproj::TargetFramework=net9.0]
Static code analysis
/home/runner/work/Testably.Abstractions/Testably.Abstractions/Source/Testably.Abstractions/FileSystem/PathWrapper.cs(172,6): warning S5445: 'Path.GetTempFileName()' is insecure. Use 'Path.GetRandomFileName()' instead. (https://rules.sonarsource.com/csharp/RSPEC-5445) [/home/runner/work/Testably.Abstractions/Testably.Abstractions/Source/Testably.Abstractions/Testably.Abstractions.csproj::TargetFramework=net9.0]
Static code analysis
/home/runner/work/Testably.Abstractions/Testably.Abstractions/Source/Testably.Abstractions/FileSystem/PathWrapper.cs(176,6): warning S5443: Make sure publicly writable directories are used safely here. (https://rules.sonarsource.com/csharp/RSPEC-5443) [/home/runner/work/Testably.Abstractions/Testably.Abstractions/Source/Testably.Abstractions/Testably.Abstractions.csproj::TargetFramework=net9.0]
Unit tests (macos-latest)
/Users/runner/work/Testably.Abstractions/Testably.Abstractions/Tests/Testably.Abstractions.Parity.Tests/Net9ParityTests.cs(15,5): warning MA0026: TODO Add support for Guid.CreateVersion7() (https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0026.md) [/Users/runner/work/Testably.Abstractions/Testably.Abstractions/Tests/Testably.Abstractions.Parity.Tests/Testably.Abstractions.Parity.Tests.csproj::TargetFramework=net9.0]
Unit tests (macos-latest)
/Users/runner/work/Testably.Abstractions/Testably.Abstractions/Tests/Testably.Abstractions.Parity.Tests/Net9ParityTests.cs(15,5): warning MA0026: TODO Add support for Guid.CreateVersion7() (https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0026.md) [/Users/runner/work/Testably.Abstractions/Testably.Abstractions/Tests/Testably.Abstractions.Parity.Tests/Testably.Abstractions.Parity.Tests.csproj::TargetFramework=net9.0]
Mutation tests (Linux)
/home/runner/work/Testably.Abstractions/Testably.Abstractions/Tests/Testably.Abstractions.Parity.Tests/Net9ParityTests.cs(15,5): warning MA0026: TODO Add support for Guid.CreateVersion7() (https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0026.md) [/home/runner/work/Testably.Abstractions/Testably.Abstractions/Tests/Testably.Abstractions.Parity.Tests/Testably.Abstractions.Parity.Tests.csproj::TargetFramework=net9.0]
Mutation tests (Linux)
/home/runner/work/Testably.Abstractions/Testably.Abstractions/Tests/Testably.Abstractions.Parity.Tests/Net9ParityTests.cs(15,5): warning MA0026: TODO Add support for Guid.CreateVersion7() (https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0026.md) [/home/runner/work/Testably.Abstractions/Testably.Abstractions/Tests/Testably.Abstractions.Parity.Tests/Testably.Abstractions.Parity.Tests.csproj::TargetFramework=net9.0]
Mutation tests (Windows)
D:\a\Testably.Abstractions\Testably.Abstractions\Tests\Testably.Abstractions.Parity.Tests\Net9ParityTests.cs(15,5): warning MA0026: TODO Add support for Guid.CreateVersion7() (https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0026.md) [D:\a\Testably.Abstractions\Testably.Abstractions\Tests\Testably.Abstractions.Parity.Tests\Testably.Abstractions.Parity.Tests.csproj::TargetFramework=net9.0]
Mutation tests (Windows)
D:\a\Testably.Abstractions\Testably.Abstractions\Tests\Testably.Abstractions.Parity.Tests\Net9ParityTests.cs(15,5): warning MA0026: TODO Add support for Guid.CreateVersion7() (https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0026.md) [D:\a\Testably.Abstractions\Testably.Abstractions\Tests\Testably.Abstractions.Parity.Tests\Testably.Abstractions.Parity.Tests.csproj::TargetFramework=net9.0]
Unit tests (windows-latest)
D:\a\Testably.Abstractions\Testably.Abstractions\Tests\Testably.Abstractions.Parity.Tests\Net9ParityTests.cs(15,5): warning MA0026: TODO Add support for Guid.CreateVersion7() (https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0026.md) [D:\a\Testably.Abstractions\Testably.Abstractions\Tests\Testably.Abstractions.Parity.Tests\Testably.Abstractions.Parity.Tests.csproj::TargetFramework=net9.0]
Unit tests (windows-latest)
D:\a\Testably.Abstractions\Testably.Abstractions\Tests\Testably.Abstractions.Parity.Tests\Net9ParityTests.cs(15,5): warning MA0026: TODO Add support for Guid.CreateVersion7() (https://github.com/meziantou/Meziantou.Analyzer/blob/main/docs/Rules/MA0026.md) [D:\a\Testably.Abstractions\Testably.Abstractions\Tests\Testably.Abstractions.Parity.Tests\Testably.Abstractions.Parity.Tests.csproj::TargetFramework=net9.0]

Artifacts

Produced during runtime
Name Size
API-tests
4.27 KB
Linux-artifacts
8.4 MB
Windows-artifacts
9.4 MB
macOS-artifacts
8.38 MB