Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jacoco - Codecov.io integration #14600

Closed
wants to merge 2 commits into from

Conversation

nicoloboschi
Copy link
Contributor

Motivation

Jacoco is configured but it does not give an holistic view about Pulsar codebase code coverage.
codecov.io is a free tool that aggregate multiple jacoco file reports.

Goals:

  • Give an idea of the Pulsar codebase less covered by tests
  • Ensure new PR will not lower the code coverage percentage (or at least make it visible to reviewers)

Modifications

  • All the unit tests CI jobs now run with the additional profile coverage which enables the Jacoco plugin
  • New Github Actions which upload the Jacoco reports to codecov.io service

I have a concern about that it is possible that Jacoco adds a certain overhead to the tests execution (increased memory usage?) but, if the all the CI is passing, I'm confident this is not a problem for the Pulsar codebase

Note:

  1. We need to enable the CodeCov app to the Pulsar project
  2. Integration tests coverage are not included in this PR. We can work on it later on.
  • no-need-doc

@github-actions github-actions bot added the doc-not-needed Your PR changes do not impact docs label Mar 8, 2022
@codecov-commenter
Copy link

codecov-commenter commented Mar 8, 2022

Codecov Report

❗ No coverage uploaded for pull request base (master@d3f6fe3). Click here to learn what that means.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master   #14600   +/-   ##
=========================================
  Coverage          ?   52.09%           
  Complexity        ?    17501           
=========================================
  Files             ?     1405           
  Lines             ?   118135           
  Branches          ?    13651           
=========================================
  Hits              ?    61547           
  Misses            ?    50962           
  Partials          ?     5626           
Flag Coverage Δ
unittests 52.09% <0.00%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.


Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d3f6fe3...0fa212d. Read the comment docs.

@nicoloboschi
Copy link
Contributor Author

/pulsarbot rerun-failure-checks

build/run_unit_group.sh Outdated Show resolved Hide resolved
@lhotari
Copy link
Member

lhotari commented Mar 8, 2022

Very cool to see the coverage reports.

@nicoloboschi
Copy link
Contributor Author

/pulsarbot rerun-failure-checks

@nicoloboschi
Copy link
Contributor Author

/pulsarbot rerun-failure-checks

@nicoloboschi nicoloboschi marked this pull request as ready for review March 16, 2022 15:46
Copy link
Contributor

@eolivelli eolivelli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great stuff

@nicoloboschi
Copy link
Contributor Author

@codelipenghui @merlimat PTAL

@nicoloboschi
Copy link
Contributor Author

/pulsarbot rerun-failure-checks

@nicoloboschi
Copy link
Contributor Author

@lhotari @merlimat @codelipenghui time to merge it? 🤞

@github-actions
Copy link

The pr had no activity for 30 days, mark with Stale label.

@nicoloboschi
Copy link
Contributor Author

/pulsarbot rerun-failure-checks

@nicoloboschi
Copy link
Contributor Author

/pulsarbot rerun-failure-checks

@github-actions
Copy link

github-actions bot commented Jul 8, 2022

The pr had no activity for 30 days, mark with Stale label.

@github-actions github-actions bot added the Stale label Jul 8, 2022
@yaalsn
Copy link
Contributor

yaalsn commented Jul 27, 2022

@lhotari I can't find any workflow of New Github Actions which upload the Jacoco reports to codecov.io service in this pr, could you point it to me?

@github-actions github-actions bot removed the Stale label Jul 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
doc-not-needed Your PR changes do not impact docs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants