-
Notifications
You must be signed in to change notification settings - Fork 48
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
test/make: drop golang version check #183
Conversation
A check for the version of Golang was introduced with [1] because our test coverage requires Go version 1.20 or newer. Since we increased the minimum version to 1.20 [2], this check is no longer necessary. [1] checkpoint-restore@740974d [2] checkpoint-restore@9453d23 Signed-off-by: Radostin Stoyanov <[email protected]>
Currently we use 1.20 to run the coverage check in the GitHub Actions definition. Maybe we should also move that to 1.22. What do you think? |
|
Hmm, maybe the free plan does not exist anymore or is limited. Not sure. |
It might be good to make this change so that we're aware of coverage failures going forward |
fd41758
to
0b2394d
Compare
74d03f0
to
93a4db7
Compare
Seems to work again. No comment from codecov in the PR but maybe because the coverage did not change. |
9b8a1cd
to
346f42f
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #183 +/- ##
==========================================
+ Coverage 49.38% 51.20% +1.82%
==========================================
Files 22 22
Lines 2359 1949 -410
==========================================
- Hits 1165 998 -167
+ Misses 1058 815 -243
Partials 136 136 ☔ View full report in Codecov by Sentry. |
f4bda7b
to
ea88d5a
Compare
Uploading code coverage currently fails with the following error: Rate limit reached. Please upload with the Codecov repository upload token to resolve issue. This patch replaces the codecov Makefile target, that was used to upload the coverage files, with a GitHub CI workflow [1]. This change allows us to specify a Codecov token [2] to authorize report uploads. In addition, this patch updates the version of Go used for coverage to 1.22 and configures the CI build to fail if Codecov encounters an error during upload. [1] https://github.com/codecov/codecov-action [2] https://docs.codecov.com/docs/github-2-getting-a-codecov-account-and-uploading-coverage Signed-off-by: Radostin Stoyanov <[email protected]>
A check for the version of Golang was introduced with 740974d because our test coverage requires Go version 1.20 or newer. Since we increased the minimum version to 1.20 (9453d23), this check is no longer necessary.
This pull request also fixes a problem in the CI with uploading the code coverage report to Codecov.