Skip to content

ci: replay pull request coverage instead of retesting on master - #5153

Open
hubcio wants to merge 1 commit into
masterfrom
ci/coverage-baseline-reuse
Open

hubcio wants to merge 1 commit into
masterfrom
ci/coverage-baseline-reuse

Conversation

@hubcio

@hubcio hubcio commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

Every merge reran the tests on master only to give Codecov a
baseline, but a squash merge commits the tree that the last
Pre-merge run tested. Pre-merge now saves each coverage upload
with its tested tree, and master replays a flag when all its
uploads tested the merged tree. Rust replays only a run of the
whole workspace. Otherwise the tests run as before, and they
upload Node e2e coverage under node-e2e, as pull requests do.

Codecov dropped the gateways/ sources that every Rust upload
carries, because the rust flag covered only core/. The flag now
covers gateways/, shown as a Kafka Gateway component, and Codecov
ignores the fixture generator in gateways/kafka/tools. Pull
requests build the Kafka wire fixtures only when they change
gateways/, so after a Rust replay, a slim master job runs the
gateway tests with the fixtures.

A replay skips the C# job, the only CI build of the Dockerfile
license-gen stage. The pre-merge license job now builds that
stage, and a Dockerfile change also starts the job.

Every merge reran the tests on master only to give Codecov a
baseline, but a squash merge commits the tree that the last
Pre-merge run tested. Pre-merge now saves each coverage upload
with its tested tree, and master replays a flag when all its
uploads tested the merged tree. Rust replays only a run of the
whole workspace. Otherwise the tests run as before, and they
upload Node e2e coverage under node-e2e, as pull requests do.

Codecov dropped the gateways/ sources that every Rust upload
carries, because the rust flag covered only core/. The flag now
covers gateways/, shown as a Kafka Gateway component, and Codecov
ignores the fixture generator in gateways/kafka/tools. Pull
requests build the Kafka wire fixtures only when they change
gateways/, so after a Rust replay, a slim master job runs the
gateway tests with the fixtures.

A replay skips the C# job, the only CI build of the Dockerfile
license-gen stage. The pre-merge license job now builds that
stage, and a Dockerfile change also starts the job.
@codecov

codecov Bot commented Dec 1, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.26%. Comparing base (dd5721b) to head (4dac709).

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #5153      +/-   ##
============================================
+ Coverage     92.16%   92.26%   +0.09%     
+ Complexity     4367     4366       -1     
============================================
  Files          1602     1672      +70     
  Lines        439908   478413   +38505     
  Branches     368138   406642   +38504     
============================================
+ Hits         405449   441415   +35966     
- Misses        28827    30928    +2101     
- Partials       5632     6070     +438     
Components Coverage Δ
Rust Core 93.41% <ø> (-0.02%) ⬇️
Kafka Gateway 93.52% <ø> (∅)
Java SDK 81.02% <ø> (-0.02%) ⬇️
C# SDK 86.31% <ø> (-0.10%) ⬇️
Python SDK 85.41% <ø> (+0.01%) ⬆️
PHP SDK 90.42% <ø> (ø)
Node SDK 97.30% <ø> (ø)
Go SDK 73.85% <ø> (+0.13%) ⬆️
C++ SDK 85.44% <ø> (ø)
see 110 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.

@github-actions github-actions Bot added the S-waiting-on-review PR is waiting on a reviewer label Dec 1, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-review PR is waiting on a reviewer

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant