Skip to content

ci: add Codecov coverage for Go SDK#2793

Merged
mmodzelewski merged 2 commits into
apache:masterfrom
atharvalade:add-go-codecov-coverage
Feb 26, 2026
Merged

ci: add Codecov coverage for Go SDK#2793
mmodzelewski merged 2 commits into
apache:masterfrom
atharvalade:add-go-codecov-coverage

Conversation

@atharvalade
Copy link
Copy Markdown
Contributor

Which issue does this PR close?

Closes #2773

Rationale

Rust and Java already upload coverage to Codecov — Go SDK was generating coverage but never uploading it.

What changed?

Coverage was already produced (reports/go-coverage.out) by the pre-merge action but never sent to Codecov. Added a codecov/codecov-action@v5 upload step in _test.yml for sdk-go, a go-coverage baseline job in post-merge.yml following the Java pattern (start server, run tests with coverage, upload), and registered the go flag in codecov.yml while removing foreign/go/** from the ignore list.

Local Execution

  • CI-only workflow changes
  • Pre-commit hooks ran

AI Usage

  1. Opus 4.6
  2. Used to scaffold the workflow YAML following existing Java/Rust patterns
  3. Verified by diffing against existing Java coverage steps and reviewing all three files
  4. Yes

@atharvalade
Copy link
Copy Markdown
Contributor Author

can someone look into this Rust integration test (connectors::postgres::postgres_source::processed_column_source_marks_rows_after_producing), not related to the Go codecov changes.

@codecov
Copy link
Copy Markdown

codecov Bot commented Feb 20, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 68.05%. Comparing base (bcfa50c) to head (a651d70).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #2793      +/-   ##
============================================
- Coverage     71.51%   68.05%   -3.47%     
  Complexity      708      708              
============================================
  Files           970     1018      +48     
  Lines         78195    82550    +4355     
  Branches      60006    60014       +8     
============================================
+ Hits          55921    56179     +258     
- Misses        19941    24018    +4077     
- Partials       2333     2353      +20     
Flag Coverage Δ
csharp 67.04% <ø> (-0.23%) ⬇️
go 6.84% <ø> (?)
java 54.02% <ø> (ø)
node 92.18% <ø> (-0.23%) ⬇️
rust 69.61% <ø> (-0.04%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.
see 69 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@hubcio
Copy link
Copy Markdown
Contributor

hubcio commented Feb 23, 2026

The CODECOV_TOKEN secret is not passed to test-go in pre-merge.yml, so the upload will silently fail. Need to add secrets: CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} to the test-go job.

@atharvalade atharvalade force-pushed the add-go-codecov-coverage branch from ea1b5c5 to 991f60b Compare February 24, 2026 09:00
@atharvalade
Copy link
Copy Markdown
Contributor Author

The CODECOV_TOKEN secret is not passed to test-go in pre-merge.yml, so the upload will silently fail. Need to add secrets: CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} to the test-go job.

added

mmodzelewski
mmodzelewski previously approved these changes Feb 24, 2026
@atharvalade atharvalade force-pushed the add-go-codecov-coverage branch from db232ed to 66aa9a3 Compare February 26, 2026 15:56
@atharvalade
Copy link
Copy Markdown
Contributor Author

looks like there's a flaky test related to Elasticsearch

@hubcio hubcio changed the title ci: add Codecov coverage for Go SDK (#2773) ci: add Codecov coverage for Go SDK Feb 26, 2026
@mmodzelewski mmodzelewski merged commit d5d31e5 into apache:master Feb 26, 2026
71 checks passed
kriti-sc pushed a commit to kriti-sc/iggy that referenced this pull request Mar 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Codecov coverage for Go SDK

3 participants