You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iggy.apache.org by lz...@apache.org on 2026/08/24 19:53:51 UTC
(iggy) branch dotnet-coverage-baseline created (now 109317d2a)
This is an automated email from the ASF dual-hosted git repository.
lukaszzborek pushed a change to branch dotnet-coverage-baseline
in repository https://gitbox.apache.org/repos/asf/iggy.git
at 109317d2a ci(csharp): separate baseline coverage reports per framework
This branch includes the following new commits:
new 109317d2a ci(csharp): separate baseline coverage reports per framework
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
(iggy) 01/01: ci(csharp): separate baseline coverage reports per framework
Posted by lz...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
lukaszzborek pushed a commit to branch dotnet-coverage-baseline
in repository https://gitbox.apache.org/repos/asf/iggy.git
commit 109317d2ac519d3da5fd28fbbd20616d7f85285d
Author: Ćukasz Zborek <lu...@gmail.com>
AuthorDate: Mon Aug 24 21:07:45 2026 +0200
ci(csharp): separate baseline coverage reports per framework
---
.github/workflows/coverage-baseline.yml | 28 +++++++++++++++++-----------
1 file changed, 17 insertions(+), 11 deletions(-)
diff --git a/.github/workflows/coverage-baseline.yml b/.github/workflows/coverage-baseline.yml
index a980c1564..adb31eab5 100644
--- a/.github/workflows/coverage-baseline.yml
+++ b/.github/workflows/coverage-baseline.yml
@@ -195,18 +195,24 @@ jobs:
fail_ci_if_error: false
csharp-coverage:
- name: C# coverage baseline
+ name: C# coverage baseline (${{ matrix.framework }})
needs: detect
if: needs.detect.outputs.csharp == 'true'
runs-on: ubuntu-latest
timeout-minutes: 30
+ strategy:
+ fail-fast: false
+ matrix:
+ framework: [net8.0, net10.0]
steps:
- uses: actions/checkout@v7.0.1
- name: Setup .NET
uses: actions/setup-dotnet@v6.0.0
with:
- dotnet-version: "10.0.x"
+ dotnet-version: |
+ 8.0.x
+ 10.0.x
- name: Setup Rust with cache
uses: ./.github/actions/utils/setup-rust-with-cache
@@ -230,13 +236,15 @@ jobs:
working-directory: foreign/csharp
run: |
dotnet restore Iggy_SDK.sln
- dotnet build Iggy_SDK.sln --no-restore
+ dotnet build Iggy_SDK_Tests --no-restore --framework ${{ matrix.framework }}
+ dotnet build Iggy_SDK.Tests.Integration --no-restore --framework ${{ matrix.framework }}
- name: Run unit tests with coverage
working-directory: foreign/csharp
run: |
dotnet test \
--project Iggy_SDK_Tests \
+ --framework ${{ matrix.framework }} \
--no-build \
--verbosity normal \
--coverage \
@@ -248,27 +256,25 @@ jobs:
working-directory: foreign/csharp
env:
IGGY_SERVER_DOCKER_IMAGE: ${{ steps.docker_build.outputs.docker_image }}
+ IGGY_TEST_LOGS_DIR: ./reports/container-logs
+ IGGY_TEST_CLUSTER_NODES: "3"
run: |
dotnet test \
--project Iggy_SDK.Tests.Integration \
+ --framework ${{ matrix.framework }} \
--no-build \
--verbosity normal \
--coverage \
--coverage-output-format cobertura \
--coverage-output coverage.cobertura.xml \
- --results-directory ./reports/integration
-
- - name: Merge coverage reports
- working-directory: foreign/csharp
- run: |
- dotnet tool install --global dotnet-coverage
- dotnet-coverage merge ./reports/**/*.cobertura.xml -f cobertura -o ./reports/coverage.cobertura.xml
+ --results-directory ./reports/integration \
+ -- --retry-failed-tests 3
- name: Upload to Codecov
uses: codecov/codecov-action@v7.0.0
with:
token: ${{ secrets.CODECOV_TOKEN }}
- files: foreign/csharp/reports/coverage.cobertura.xml
+ files: foreign/csharp/reports/unit/coverage.cobertura.xml,foreign/csharp/reports/integration/coverage.cobertura.xml
disable_search: true
flags: csharp
fail_ci_if_error: false