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

build: Update codecov and use token #1257

Merged
merged 1 commit into from
Jun 17, 2024

Conversation

arbrandes
Copy link
Contributor

Update codecov to the latest version and start using the org-wide token for uploads.

See openedx/wg-frontend#179

Update codecov to the latest version and start using the org-wide token for uploads.

See openedx/wg-frontend#179
Copy link

codecov bot commented Jun 13, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 87.69%. Comparing base (90ae870) to head (8a8270e).
Report is 11 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1257      +/-   ##
==========================================
- Coverage   87.71%   87.69%   -0.03%     
==========================================
  Files         124      124              
  Lines        2288     2299      +11     
  Branches      636      646      +10     
==========================================
+ Hits         2007     2016       +9     
- Misses        272      274       +2     
  Partials        9        9              

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

uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true
Copy link
Contributor

Choose a reason for hiding this comment

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

fail_ci_if_error is set to false in frontend-app-account (and unchanged by openedx/frontend-app-account#1063)

Just curious as to the reasoning behind explicitly setting it to true here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The main motivation here is to follow the pattern given by https://openedx.atlassian.net/wiki/spaces/COMM/pages/3438280709/Adding+Codecov. As to why the pattern is that way, I didn't write that page but I agree it makes sense to fail CI if coverage is not up to par, by default, so that at least the question is raised for every PR. Exceptions can always be made when necessary.

I did not change the ones that were set to false explicitly, assuming there was a reason they were set like that. We can always tackle that question separately. (I would definitely like to understand when not to fail CI.)

@arbrandes arbrandes merged commit d156de2 into openedx:master Jun 17, 2024
6 of 7 checks passed
@arbrandes arbrandes deleted the update-codecov branch June 27, 2024 14:13
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.

2 participants