This is an automated email from the ASF dual-hosted git repository.
maciej pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/iggy.git
The following commit(s) were added to refs/heads/master by this push:
new d5d31e500 ci(go): add Codecov coverage for Go SDK (#2793)
d5d31e500 is described below
commit d5d31e50019d83191057ce4c79136ca11a6a5c69
Author: Atharva Lade <[email protected]>
AuthorDate: Thu Feb 26 13:04:15 2026 -0600
ci(go): add Codecov coverage for Go SDK (#2793)
Closes #2773
---
.github/workflows/_test.yml | 12 ++++++++++++
.github/workflows/post-merge.yml | 41 ++++++++++++++++++++++++++++++++++++++++
.github/workflows/pre-merge.yml | 2 ++
codecov.yml | 4 +++-
4 files changed, 58 insertions(+), 1 deletion(-)
diff --git a/.github/workflows/_test.yml b/.github/workflows/_test.yml
index 1e3f4d49e..a9726361a 100644
--- a/.github/workflows/_test.yml
+++ b/.github/workflows/_test.yml
@@ -121,6 +121,18 @@ jobs:
with:
task: ${{ inputs.task }}
+ - name: Upload Go coverage to Codecov
+ if: inputs.component == 'sdk-go' && inputs.task == 'test'
+ uses: codecov/codecov-action@v5
+ with:
+ token: ${{ secrets.CODECOV_TOKEN }}
+ files: reports/go-coverage.out
+ disable_search: true
+ flags: go
+ fail_ci_if_error: false
+ verbose: true
+ override_pr: ${{ github.event.pull_request.number }}
+
# Java SDK
- name: Run Java SDK task
if: inputs.component == 'sdk-java'
diff --git a/.github/workflows/post-merge.yml b/.github/workflows/post-merge.yml
index afe98aa78..86db7b1ce 100644
--- a/.github/workflows/post-merge.yml
+++ b/.github/workflows/post-merge.yml
@@ -468,6 +468,47 @@ jobs:
flags: node
fail_ci_if_error: false
+ go-coverage:
+ name: Go coverage baseline
+ runs-on: ubuntu-latest
+ timeout-minutes: 30
+ steps:
+ - uses: actions/checkout@v4
+
+ - name: Setup Go with cache
+ uses: ./.github/actions/utils/setup-go-with-cache
+
+ - name: Setup Rust with cache
+ uses: ./.github/actions/utils/setup-rust-with-cache
+ with:
+ save-cache: "false"
+
+ - name: Start Iggy server
+ id: iggy
+ uses: ./.github/actions/utils/server-start
+
+ - name: Run tests with coverage
+ run: |
+ cd foreign/go
+ mkdir -p ../../reports
+ go test -v -race -coverprofile=../../reports/go-coverage.out ./...
+
+ - name: Stop Iggy server
+ if: always()
+ uses: ./.github/actions/utils/server-stop
+ with:
+ pid-file: ${{ steps.iggy.outputs.pid_file }}
+ log-file: ${{ steps.iggy.outputs.log_file }}
+
+ - name: Upload to Codecov
+ uses: codecov/codecov-action@v5
+ with:
+ token: ${{ secrets.CODECOV_TOKEN }}
+ files: reports/go-coverage.out
+ disable_search: true
+ flags: go
+ fail_ci_if_error: false
+
create-prerelease:
name: Create edge pre-release
runs-on: ubuntu-latest
diff --git a/.github/workflows/pre-merge.yml b/.github/workflows/pre-merge.yml
index 60b74ed9a..be2ceaf95 100644
--- a/.github/workflows/pre-merge.yml
+++ b/.github/workflows/pre-merge.yml
@@ -101,6 +101,8 @@ jobs:
with:
component: ${{ matrix.component }}
task: ${{ matrix.task }}
+ secrets:
+ CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
# Java SDK
test-java:
diff --git a/codecov.yml b/codecov.yml
index dde2b9512..ce081754e 100644
--- a/codecov.yml
+++ b/codecov.yml
@@ -62,6 +62,9 @@ flag_management:
- name: node
paths:
- foreign/node/
+ - name: go
+ paths:
+ - foreign/go/
comment:
layout: "header, diff, flags, files"
@@ -77,7 +80,6 @@ ignore:
- "core/harness_derive/**"
- "bdd/**"
- "examples/**"
- - "foreign/go/**"
- "web/**"
- "**/tests/**"
- "**/*Test.java"