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

test/make: drop golang version check #183

Merged
merged 2 commits into from
Jul 16, 2024

Conversation

rst0git
Copy link
Member

@rst0git rst0git commented Jul 16, 2024

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.

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 <rstoyanov@fedoraproject.org>
@adrianreber
Copy link
Member

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?

@rst0git
Copy link
Member Author

rst0git commented Jul 16, 2024

[2024-07-16T07:58:12.965Z] ['error'] There was an error running the uploader: Error uploading to [https://codecov.io:](https://codecov.io/) Error: There was an error fetching the storage URL during POST: 429 - {'detail': ErrorDetail(string='Rate limit reached. Please upload with the Codecov repository upload token to resolve issue. Expected time to availability: 2440s.', code='throttled')}
[2024-07-16T07:58:12.965Z] ['info'] Codecov will exit with status code 0. If you are expecting a non-zero exit code, please pass in the `-Z` flag

@adrianreber
Copy link
Member

Hmm, maybe the free plan does not exist anymore or is limited. Not sure.

@snprajwal
Copy link
Member

snprajwal commented Jul 16, 2024

If you are expecting a non-zero exit code, please pass in the `-Z` flag ref: this line in the job

It might be good to make this change so that we're aware of coverage failures going forward

@rst0git rst0git force-pushed the test-clean-up branch 2 times, most recently from fd41758 to 0b2394d Compare July 16, 2024 11:15
@adrianreber adrianreber reopened this Jul 16, 2024
@rst0git rst0git force-pushed the test-clean-up branch 5 times, most recently from 74d03f0 to 93a4db7 Compare July 16, 2024 16:37
@adrianreber
Copy link
Member

Seems to work again. No comment from codecov in the PR but maybe because the coverage did not change.

@rst0git rst0git force-pushed the test-clean-up branch 2 times, most recently from 9b8a1cd to 346f42f Compare July 16, 2024 16:47
Copy link

codecov bot commented Jul 16, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 51.20%. Comparing base (c9612a1) to head (b9a8ebb).
Report is 12 commits behind head on master.

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.
📢 Have feedback on the report? Share it here.

@rst0git rst0git force-pushed the test-clean-up branch 5 times, most recently from f4bda7b to ea88d5a Compare July 16, 2024 18:06
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 <rstoyanov@fedoraproject.org>
@rst0git rst0git merged commit e2c048f into checkpoint-restore:master Jul 16, 2024
15 checks passed
@rst0git rst0git deleted the test-clean-up branch July 16, 2024 18:12
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.

None yet

3 participants