From 8d3a8f7a781867d3a6b3d54a4f5298b411187dc1 Mon Sep 17 00:00:00 2001 From: Matthieu Mourisson Date: Sat, 4 Apr 2026 19:28:44 +0000 Subject: [PATCH 01/11] try to fix CI tests --- .github/workflows/ci.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 51930a5..b468128 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,6 +8,7 @@ on: branches: [ "main" ] pull_request: branches: [ "main" ] + workflow_dispatch: permissions: contents: read @@ -19,7 +20,7 @@ defaults: jobs: build: - runs-on: ubuntu-latest + runs-on: windows-latest steps: - uses: actions/checkout@v6 @@ -32,9 +33,9 @@ jobs: - name: Build run: dotnet build --no-restore - name: Test - run: dotnet test --no-build --verbosity normal --framework net10.0 --logger "trx;LogFileName=TestResults.trx" + run: dotnet test UUIDNext.Test/UUIDNext.Test.csproj --no-build --verbosity normal --logger "trx;LogFileName=TestResults.trx" - name: Upload test results uses: actions/upload-artifact@v7 with: name: TestResults - path: ./src/Test/TestResults/TestResults.trx \ No newline at end of file + path: TestResults.trx \ No newline at end of file From 8583d448519e252e48e3fb7193da931824ced7cd Mon Sep 17 00:00:00 2001 From: Matthieu Mourisson Date: Sat, 4 Apr 2026 19:47:55 +0000 Subject: [PATCH 02/11] Another copilot attempt --- Src/UUIDNext.Test/UUIDNext.Test.csproj | 1 + 1 file changed, 1 insertion(+) diff --git a/Src/UUIDNext.Test/UUIDNext.Test.csproj b/Src/UUIDNext.Test/UUIDNext.Test.csproj index a354dd4..df4fe23 100644 --- a/Src/UUIDNext.Test/UUIDNext.Test.csproj +++ b/Src/UUIDNext.Test/UUIDNext.Test.csproj @@ -18,6 +18,7 @@ + runtime; build; native; contentfiles; analyzers; buildtransitive all From 3f70739b9ff414f88905c06c4a342d8262acb9d8 Mon Sep 17 00:00:00 2001 From: Matthieu Mourisson Date: Sat, 4 Apr 2026 19:53:53 +0000 Subject: [PATCH 03/11] fix CI test warning --- .github/workflows/ci.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b468128..dec8f54 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -32,10 +32,14 @@ jobs: run: dotnet restore - name: Build run: dotnet build --no-restore - - name: Test - run: dotnet test UUIDNext.Test/UUIDNext.Test.csproj --no-build --verbosity normal --logger "trx;LogFileName=TestResults.trx" + - name: Test net472 + run: dotnet test UUIDNext.Test/UUIDNext.Test.csproj --framework net472 --no-build --verbosity normal --logger "trx;LogFileName=TestResults_net472.trx" + - name: Test net10.0 + run: dotnet test UUIDNext.Test/UUIDNext.Test.csproj --framework net10.0 --no-build --verbosity normal --logger "trx;LogFileName=TestResults_net10.0.trx" - name: Upload test results uses: actions/upload-artifact@v7 with: name: TestResults - path: TestResults.trx \ No newline at end of file + path: | + UUIDNext.Test/TestResults/TestResults_net472.trx + UUIDNext.Test/TestResults/TestResults_net10.0.trx \ No newline at end of file From 651878b21a41a4141e58c403d2ca675e8fc8b705 Mon Sep 17 00:00:00 2001 From: Matthieu Mourisson Date: Sat, 4 Apr 2026 20:02:49 +0000 Subject: [PATCH 04/11] Attempt to fix test upload by copilot --- .github/workflows/ci.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index dec8f54..7f08a54 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,13 +33,13 @@ jobs: - name: Build run: dotnet build --no-restore - name: Test net472 - run: dotnet test UUIDNext.Test/UUIDNext.Test.csproj --framework net472 --no-build --verbosity normal --logger "trx;LogFileName=TestResults_net472.trx" + run: dotnet test UUIDNext.Test/UUIDNext.Test.csproj --framework net472 --no-build --verbosity normal --logger "trx;LogFileName=../TestResults_net472.trx" - name: Test net10.0 - run: dotnet test UUIDNext.Test/UUIDNext.Test.csproj --framework net10.0 --no-build --verbosity normal --logger "trx;LogFileName=TestResults_net10.0.trx" + run: dotnet test UUIDNext.Test/UUIDNext.Test.csproj --framework net10.0 --no-build --verbosity normal --logger "trx;LogFileName=../TestResults_net10.0.trx" - name: Upload test results uses: actions/upload-artifact@v7 with: name: TestResults path: | - UUIDNext.Test/TestResults/TestResults_net472.trx - UUIDNext.Test/TestResults/TestResults_net10.0.trx \ No newline at end of file + TestResults_net472.trx + TestResults_net10.0.trx \ No newline at end of file From 10b94ac61e1bfaddd23a23adc3b1b52fda9842e5 Mon Sep 17 00:00:00 2001 From: Matthieu Mourisson Date: Sat, 4 Apr 2026 20:09:05 +0000 Subject: [PATCH 05/11] Second Attempt to fix test upload by copilot --- .github/workflows/ci.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7f08a54..fffe8bd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,13 +33,11 @@ jobs: - name: Build run: dotnet build --no-restore - name: Test net472 - run: dotnet test UUIDNext.Test/UUIDNext.Test.csproj --framework net472 --no-build --verbosity normal --logger "trx;LogFileName=../TestResults_net472.trx" + run: dotnet test UUIDNext.Test/UUIDNext.Test.csproj --framework net472 --no-build --verbosity normal --logger "trx;LogFileName=../../TestResults_net472.trx" - name: Test net10.0 - run: dotnet test UUIDNext.Test/UUIDNext.Test.csproj --framework net10.0 --no-build --verbosity normal --logger "trx;LogFileName=../TestResults_net10.0.trx" + run: dotnet test UUIDNext.Test/UUIDNext.Test.csproj --framework net10.0 --no-build --verbosity normal --logger "trx;LogFileName=../../TestResults_net10.0.trx" - name: Upload test results uses: actions/upload-artifact@v7 with: name: TestResults - path: | - TestResults_net472.trx - TestResults_net10.0.trx \ No newline at end of file + path: TestResults_*.trx \ No newline at end of file From ae674e0db6f0487664b6a8026027e5734232769f Mon Sep 17 00:00:00 2001 From: Matthieu Mourisson Date: Sat, 4 Apr 2026 20:14:12 +0000 Subject: [PATCH 06/11] Third Attempt to fix test upload by copilot --- .github/workflows/ci.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fffe8bd..9c1826e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,11 +33,11 @@ jobs: - name: Build run: dotnet build --no-restore - name: Test net472 - run: dotnet test UUIDNext.Test/UUIDNext.Test.csproj --framework net472 --no-build --verbosity normal --logger "trx;LogFileName=../../TestResults_net472.trx" + run: dotnet test UUIDNext.Test/UUIDNext.Test.csproj --framework net472 --no-build --verbosity normal --logger trx --results-directory TestResults_net472 - name: Test net10.0 - run: dotnet test UUIDNext.Test/UUIDNext.Test.csproj --framework net10.0 --no-build --verbosity normal --logger "trx;LogFileName=../../TestResults_net10.0.trx" + run: dotnet test UUIDNext.Test/UUIDNext.Test.csproj --framework net10.0 --no-build --verbosity normal --logger trx --results-directory TestResults_net10.0 - name: Upload test results uses: actions/upload-artifact@v7 with: name: TestResults - path: TestResults_*.trx \ No newline at end of file + path: Src/TestResults_*/*.trx \ No newline at end of file From 63018809ac657ba1f0cfb6f175a6fc343a848fc9 Mon Sep 17 00:00:00 2001 From: Matthieu Mourisson Date: Sat, 4 Apr 2026 20:37:54 +0000 Subject: [PATCH 07/11] Add test report --- .github/workflows/ci.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9c1826e..3f3ac30 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -40,4 +40,12 @@ jobs: uses: actions/upload-artifact@v7 with: name: TestResults - path: Src/TestResults_*/*.trx \ No newline at end of file + path: Src/TestResults_*/*.trx + - name: Publish test report + uses: dorny/test-reporter@v1 + if: always() + with: + name: Test Results + path: Src/TestResults_*/*.trx + reporter: dotnet-trx + fail-on-error: true \ No newline at end of file From 119ff365a8f930070e51767a3f6d0598ddea7c2b Mon Sep 17 00:00:00 2001 From: Matthieu Mourisson Date: Sat, 4 Apr 2026 20:42:31 +0000 Subject: [PATCH 08/11] Attempt to fix the publish test report by copilot --- .github/workflows/ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3f3ac30..9afe408 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,6 +12,7 @@ on: permissions: contents: read + pull-requests: write defaults: run: From bb3852d88e0c39246b9d93ebd669b7411337f5f7 Mon Sep 17 00:00:00 2001 From: Matthieu Mourisson Date: Sat, 4 Apr 2026 20:47:05 +0000 Subject: [PATCH 09/11] Revert 2 last commits --- .github/workflows/ci.yml | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9afe408..9c1826e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,7 +12,6 @@ on: permissions: contents: read - pull-requests: write defaults: run: @@ -41,12 +40,4 @@ jobs: uses: actions/upload-artifact@v7 with: name: TestResults - path: Src/TestResults_*/*.trx - - name: Publish test report - uses: dorny/test-reporter@v1 - if: always() - with: - name: Test Results - path: Src/TestResults_*/*.trx - reporter: dotnet-trx - fail-on-error: true \ No newline at end of file + path: Src/TestResults_*/*.trx \ No newline at end of file From ceb31e32bf0e86ee82e2c7e1a9cb684502bd3bc6 Mon Sep 17 00:00:00 2001 From: Matthieu Mourisson Date: Sat, 4 Apr 2026 20:49:08 +0000 Subject: [PATCH 10/11] Force test failure --- Src/UUIDNext.Test/Tools/BetterCacheTest.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Src/UUIDNext.Test/Tools/BetterCacheTest.cs b/Src/UUIDNext.Test/Tools/BetterCacheTest.cs index 78ad2be..fe534ee 100644 --- a/Src/UUIDNext.Test/Tools/BetterCacheTest.cs +++ b/Src/UUIDNext.Test/Tools/BetterCacheTest.cs @@ -15,7 +15,7 @@ public void EnsureBasicCacheWorks() for (int i = 0; i < 10; i++) { var first = cache.GetOrAdd("first", _ => ++factoryCount); - Check.That(first).Is(1); + Check.That(first).Is(10); var second = cache.GetOrAdd("second", _ => ++factoryCount); Check.That(second).Is(2); } From c012591f231b701e962ab638b39420080e4f52ac Mon Sep 17 00:00:00 2001 From: Matthieu Mourisson Date: Sat, 4 Apr 2026 20:51:43 +0000 Subject: [PATCH 11/11] test fix --- Src/UUIDNext.Test/Tools/BetterCacheTest.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Src/UUIDNext.Test/Tools/BetterCacheTest.cs b/Src/UUIDNext.Test/Tools/BetterCacheTest.cs index fe534ee..78ad2be 100644 --- a/Src/UUIDNext.Test/Tools/BetterCacheTest.cs +++ b/Src/UUIDNext.Test/Tools/BetterCacheTest.cs @@ -15,7 +15,7 @@ public void EnsureBasicCacheWorks() for (int i = 0; i < 10; i++) { var first = cache.GetOrAdd("first", _ => ++factoryCount); - Check.That(first).Is(10); + Check.That(first).Is(1); var second = cache.GetOrAdd("second", _ => ++factoryCount); Check.That(second).Is(2); }