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

Added Codecov to CI Pipeline #820

Merged
merged 4 commits into from
Sep 1, 2023
Merged

Added Codecov to CI Pipeline #820

merged 4 commits into from
Sep 1, 2023

Conversation

armughan11
Copy link
Collaborator

@armughan11 armughan11 commented Sep 1, 2023

Replaced Coveralls with Codecov for the CI pipeline

Fixes #499

Copy link
Collaborator

@msridhar msridhar left a comment

Choose a reason for hiding this comment

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

This is great! I have a few questions

.github/workflows/continuous-integration.yml Outdated Show resolved Hide resolved
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./code-coverage-report/build/reports/jacoco/codeCoverageReport/codeCoverageReport.xml
if: steps.jacoco_report.conclusion == 'success'
Copy link
Collaborator

Choose a reason for hiding this comment

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

Does steps.jacoco_report.conclusion != 'success' if that step does not run? Just checking, as that step only runs on a certain OS, Java version, etc. (see line 69)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes, this gets skipped if the previous step doesn't run. Initially I had the same conditions as the previous step, but that felt redundant for this step.
However, I just realized that the previous step has continue on error as true, so I have changed this to use outcome instead of conclusion so that it runs iff the code coverage report succeeds. For conclusion == success, it will run even if the step fails with an error which can cause issues uploading and break the workflow.

.github/workflows/continuous-integration.yml Outdated Show resolved Hide resolved
Removed token dependency, build cache clean and replaced outcome with conclusion
@codecov
Copy link

codecov bot commented Sep 1, 2023

Codecov Report

❗ No coverage uploaded for pull request base (master@0431a90). Click here to learn what that means.
Patch has no changes to coverable lines.

❗ Current head 180621b differs from pull request most recent head 8582a1e. Consider uploading reports for the commit 8582a1e to get more accurate results

Additional details and impacted files
@@           Coverage Diff           @@
##             master   #820   +/-   ##
=======================================
  Coverage          ?      0           
=======================================
  Files             ?      0           
  Lines             ?      0           
  Branches          ?      0           
=======================================
  Hits              ?      0           
  Misses            ?      0           
  Partials          ?      0           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Collaborator

@msridhar msridhar left a comment

Choose a reason for hiding this comment

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

One final very minor comment but otherwise this looks great!

.github/workflows/continuous-integration.yml Outdated Show resolved Hide resolved
Co-authored-by: Manu Sridharan <[email protected]>
@msridhar
Copy link
Collaborator

msridhar commented Sep 1, 2023

@armughan11 I think the next step is to land this PR, and then test things out by creating another PR (maybe one that reduces test coverage) from a fork. Do you agree? And if so, could you create that test PR after this one lands?

Copy link
Collaborator

@msridhar msridhar left a comment

Choose a reason for hiding this comment

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

👍

@armughan11
Copy link
Collaborator Author

@msridhar That sounds good! I can create that PR once this lands!

@msridhar msridhar merged commit 0a83f42 into uber:master Sep 1, 2023
7 checks passed
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.

Switch from Coveralls to Codecov?
2 participants