Skip to content

ci: add Codecov coverage for Go SDK (#2773)#2793

Open
atharvalade wants to merge 1 commit intoapache:masterfrom
atharvalade:add-go-codecov-coverage
Open

ci: add Codecov coverage for Go SDK (#2773)#2793
atharvalade wants to merge 1 commit intoapache:masterfrom
atharvalade:add-go-codecov-coverage

Conversation

@atharvalade
Copy link
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
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

codecov bot commented Feb 20, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 64.74%. Comparing base (cca86fe) to head (db232ed).

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #2793      +/-   ##
============================================
- Coverage     68.47%   64.74%   -3.73%     
  Complexity      656      656              
============================================
  Files           852      900      +48     
  Lines         68221    72576    +4355     
  Branches      59682    59692      +10     
============================================
+ Hits          46714    46989     +275     
- Misses        19177    23240    +4063     
- Partials       2330     2347      +17     
Flag Coverage Δ
csharp 67.06% <ø> (-0.19%) ⬇️
go 6.84% <ø> (?)
java 52.19% <ø> (ø)
rust 69.62% <ø> (-0.03%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.
see 62 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
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
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
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