Conversation
850776a to
9db053b
Compare
Welcome to Codecov 🎉Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests. ℹ️ You can also turn on project coverage checks and project coverage reporting on Pull Request comment Thanks for integrating Codecov - We've got you covered ☂️ |
elevran
left a comment
There was a problem hiding this comment.
a few questions regrading usage of the action and coverage mode
.github/workflows/ci-pr-checks.yaml
Outdated
| make test | ||
|
|
||
| - name: Upload coverage to Codecov | ||
| uses: codecov/codecov-action@18283e04ce6e62d37312384ff67231eb8fd56d24 # v5.4.3 |
There was a problem hiding this comment.
any reason we can't use a tagged release instead of a SHA?
There was a problem hiding this comment.
No special reason. I copied it from the project envoyproxy/ai-gateway: https://github.com/envoyproxy/ai-gateway/blob/main/.github/workflows/build_and_test.yaml#L70-L82
Makefile
Outdated
| test-unit: download-tokenizer download-zmq | ||
| @printf "\033[33;1m==== Running Unit Tests ====\033[0m\n" | ||
| go test -ldflags="$(LDFLAGS)" -v ./... | ||
| go test -ldflags="$(LDFLAGS)" -v -covermode=atomic -coverprofile=go-test-coverage.out ./... |
There was a problem hiding this comment.
if we go with and pay the runtime penalty for covermode=atomic due to concurrent code execution, might be worthwhile to also enable -race detection in tests.
There was a problem hiding this comment.
the latest commit dropped covermode and does not enable -race.
Perhaps make them an optional coverage makefile parameter that can be set (but is empty by default)?
|
Hi, I was wondering about the rationale behind using an external service. What benefits would it bring? Since we already have the coverage file from go test, it seems possible to use tools like go tool cover—so I’m curious about which specific features we’re looking to leverage through CodeDev. |
|
@carlory are you still actively working on this? Let us know if you're still able/interested in pursuing this further. |
|
@elevran Sorry for the delay. I forgot to update this PR. I create a demo project in my account and try to add some changes to verify the codecov behavior because I'm not familiar with the codecov behavior. It seems that the repo/organization owner needs to configure this project in the codecov dashboard before this workflow can work. I'm unsure whether we want to use codecov in our project. If yes, I will update this PR after I check it on my demo project. |
@Jooho FYI:
|
|
@carlory happy to see you're still interested and will work on the PR. Regarding the use of an external service such (as codecov), let me think about this a bit. |
3cc5a40 to
a79f79b
Compare
|
@carlory please resolve conflict |
|
There seems to be an issue with the upload configuration (copied from failing job): |
|
@elevran fixed. When I was resolving a conflict, the same result file was uploaded twice. |
|
CICD job fails with: Perhaps need to include a baseline coverage from main into this PR or allow the case of missing coverage? |
|
#391 has been approved but needs rebase to merge |
Signed-off-by: carlory <baofa.fan@daocloud.io>
|
@elevran said:
Looking at the go-coverage-report GitHub Action, the documentation there says: Support for forks is limited since the necessary GITHUB_TOKEN permissions don't allow to post comments to the pull request of the base repository (see fgrosse/go-coverage-report#15). If forks are important for you, this action might not be the best solution. I think that applies to us. |
|
I see, thanks for checking. |
Hi @elevran should I close this PR and revert the merge commit? |
|
@carlory - yes please, thanks |

Fix #287