feat(coverage): add codecov CLI coverage templates#485
Open
p-targowicz wants to merge 2 commits into
Open
Conversation
New templates using the updated Codecov CLI (upload-process) replacing the legacy uploader. Key improvements over the existing templates: - Uses cli.codecov.io instead of the deprecated uploader.codecov.io - Passes --sha explicitly to ensure correct commit association - Verifies the binary checksum before execution - Uses rules: syntax instead of deprecated except: Signed-off-by: Patryk Targowicz <patryk.targowicz@northern.tech> Ticket: QA-1574 Signed-off-by: Patryk Targowicz <patryk.targowicz@northern.tech>
Contributor
danielskinstad
left a comment
There was a problem hiding this comment.
A general note without looking at the actual files: I think these should be CI/CD components.
https://about.gitlab.com/blog/refactoring-a-ci-cd-template-to-a-ci-cd-component/
Replaces the three new -codecov template files with proper GitLab CI/CD components under templates/. Components expose configurable inputs for Go version, MongoDB version, stages, and runner tags. - templates/golang-unittests-codecov.yml - templates/golang-unittests-v2-codecov.yml - templates/docker-acceptance-codecov.yml All publish jobs use the updated Codecov CLI (upload-process) with explicit --sha, SHA256 binary verification, and --git-service github. Signed-off-by: Patryk Targowicz <patryk.targowicz@northern.tech> Ticket: QA-1574 Signed-off-by: Patryk Targowicz <patryk.targowicz@northern.tech>
fc731fa to
2b1d281
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds three new GitLab CI templates using the updated Codecov CLI uploader:
.gitlab-ci-check-golang-unittests-codecov.yml— unit tests with MongoDB (replaces the old unittests template for repos like mender-gateway, mender-connect).gitlab-ci-check-golang-unittests-v2-codecov.yml— unit tests without MongoDB (replaces the v2 template for repos like mender-cli).gitlab-ci-check-docker-acceptance-codecov.yml— Docker-based acceptance tests (replaces the docker-acceptance template for repos like mender-gateway)Key improvements over the existing templates:
cli.codecov.ioinstead of the deprecateduploader.codecov.ioupload-processsubcommand with--sha ${CI_COMMIT_SHA}for correct commit associationrules:syntax instead of deprecatedexcept:Ticket: QA-1574