Skip to content

ci: add Codecov coverage for Python SDK#2790

Merged
hubcio merged 2 commits intoapache:masterfrom
atharvalade:add-python-codecov-coverage
Feb 24, 2026
Merged

ci: add Codecov coverage for Python SDK#2790
hubcio merged 2 commits intoapache:masterfrom
atharvalade:add-python-codecov-coverage

Conversation

@atharvalade
Copy link
Contributor

Which issue does this PR close?

Closes #2775

Rationale

Rust and Java already upload coverage to Codecov, Python SDK was missing.

What changed?

Added pytest-cov to Python dev deps and --cov flags to pytest calls in the pre-merge action. Added Codecov upload steps in _test.yml (pre-merge) and a python-coverage baseline job in post-merge.yml, following the same pattern as Java. Registered the python flag in codecov.yml and removed foreign/python/** 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 five files
  4. Yes

@atharvalade atharvalade force-pushed the add-python-codecov-coverage branch from 93eb1e0 to cc62c32 Compare February 20, 2026 20:50
@codecov
Copy link

codecov bot commented Feb 20, 2026

Codecov Report

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

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #2790      +/-   ##
============================================
- Coverage     68.44%   68.42%   -0.03%     
  Complexity      656      656              
============================================
  Files           852      852              
  Lines         68196    68196              
  Branches      59657    59667      +10     
============================================
- Hits          46678    46660      -18     
- Misses        19187    19195       +8     
- Partials       2331     2341      +10     
Flag Coverage Δ
csharp 67.06% <ø> (-0.19%) ⬇️
java 52.19% <ø> (ø)
rust 69.60% <ø> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.
see 11 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-python in pre-merge.yml, so the upload will silently fail. Need to add secrets: CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} to the test-python job.

@atharvalade atharvalade force-pushed the add-python-codecov-coverage branch from cc62c32 to 33a8c1f Compare February 24, 2026 08:51
@atharvalade
Copy link
Contributor Author

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

added

@hubcio hubcio changed the title ci: add Codecov coverage for Python SDK (#2775) ci: add Codecov coverage for Python SDK Feb 24, 2026
@hubcio hubcio merged commit 28e7c04 into apache:master Feb 24, 2026
70 checks passed
kriti-sc pushed a commit to kriti-sc/iggy that referenced this pull request Mar 6, 2026
Co-authored-by: Hubert Gruszecki <h.gruszecki@gmail.com>
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 Python SDK

4 participants