codecov / feedback

A place to discuss feedback about the pull request and web product experience.
37 stars 7 forks source link

Deactivated codecov repo is not activated albeit new coverage data was successfully uploaded to codecov #566

Closed ottlinger closed 2 weeks ago

ottlinger commented 2 weeks ago

Problem

My public GitHubProject project is able to upload Codecov data, but is still shown as deactivated.

I migrated to v4 of the GitHubAction from codecov and the project is a gradle & Java project, that generates its coverage data via jacoco.

Upload is successful

Run codecov/codecov-action@v4
eventName: push
==> linux OS detected
https://cli.codecov.io/latest/linux/codecov.SHA256SUM
gpg: directory '/home/runner/.gnupg' created
gpg: keybox '/home/runner/.gnupg/pubring.kbx' created
gpg: /home/runner/.gnupg/trustdb.gpg: trustdb created
gpg: key 806BB28AED779869: public key "Codecov Uploader (Codecov Uploader Verification Key) <security@codecov.io>" imported
gpg: Total number processed: 1
gpg:               imported: 1
gpg: Signature made Fri Oct 18 16:02:53 2024 UTC
gpg:                using RSA key 27034E7FDB850E0BBC2C62FF806BB28AED779869
gpg: Good signature from "Codecov Uploader (Codecov Uploader Verification Key) <security@codecov.io>" [unknown]
gpg: WARNING: This key is not certified with a trusted signature!
gpg:          There is no indication that the signature belongs to the owner.
Primary key fingerprint: 2703 4E7F DB85 0E0B BC2C  62FF 806B B28A ED77 9869
==> Uploader SHASUM verified (452ad3c57dc4ff698e9ca36786a2d09be5db254c32c4a4fb6d08c18146e4d8c1  codecov)
==> Running version latest
==> Running version v0.8.0
==> Running git config --global --add safe.directory /home/runner/work/fotocollector/fotocollector
/usr/bin/git config --global --add safe.directory /home/runner/work/fotocollector/fotocollector
==> Running command '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov create-commit'
/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov create-commit --git-service github
info - 2024-11-01 13:28:34,202 -- ci service found: github-actions
warning - 2024-11-01 13:28:34,210 -- No config file could be found. Ignoring config.
info - 2024-11-01 13:28:34,773 -- Process Commit creating complete
==> Running command '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov create-report'
/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov create-report --git-service github
info - 2024-11-01 13:28:35,482 -- ci service found: github-actions
warning - 2024-11-01 13:28:35,489 -- No config file could be found. Ignoring config.
info - 2024-11-01 13:28:35,969 -- Process Report creating complete
info - 2024-11-01 13:28:35,969 -- Finished creating report successfully --- {"response": "{\"status\":\"queued\"}\n"}
==> Running command '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov do-upload'
/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov do-upload --git-service github
info - 2024-11-01 13:28:36,683 -- ci service found: github-actions
warning - 2024-11-01 13:28:36,691 -- No config file could be found. Ignoring config.
warning - 2024-11-01 13:28:36,692 -- xcrun is not installed or can't be found.
warning - 2024-11-01 13:28:36,698 -- No gcov data found.
warning - 2024-11-01 13:28:36,698 -- coverage.py is not installed or can't be found.
info - 2024-11-01 13:28:36,710 -- Found 1 coverage files to report
info - 2024-11-01 13:28:36,710 -- > /home/runner/work/fotocollector/fotocollector/build/reports/jacoco/test/jacocoTestReport.xml
info - 2024-11-01 13:28:36,917 -- Your upload is now processing. When finished, results will be available at: https://app.codecov.io/github/ottlinger/fotocollector/commit/7763a[12](https://github.com/ottlinger/fotocollector/actions/runs/11630124518/job/32388406785#step:6:13)3bfb0c2db18a7461d38bdf25631da9d51
info - 2024-11-01 [13](https://github.com/ottlinger/fotocollector/actions/runs/11630124518/job/32388406785#step:6:14):28:37,095 -- Process Upload complete

but I do not see any results in Codecov.

Steps already taken

Expected behaviour

I would love to see my coverage results via Codecov.

Thanks

drazisil-codecov commented 2 weeks ago

Hi @ottlinger

Is this your first time uploading for this repo, have you changed the privacy settings of the repo recently , and are you using the repo token or the org token?

ottlinger commented 2 weeks ago

@drazisil-codecov no changes in the privacy settings of the repo (as it is a public repo). The token should be a repository-based token as it is taken from https://app.codecov.io/gh/ottlinger/fotocollector/config/general and integrated on the Github-side as a repository secret. HTH

drazisil-codecov commented 2 weeks ago

Hi @ottlinger

Thanks! That tells me what it isn't, at least. I'll keep digging. In the meantime, if you go to the repo settings on Codecov (same place you got the token) there should a blue "activate" button near the bottom. If you click that, everything should be normal. Please let me know if it isn't. You may need to rerun the upload of coverage again though.

ottlinger commented 2 weeks ago

@drazisil-codecov I was unable to find the Activate button and trusted Codecov's message that in order to active the project one just needs to push new coverage data - maybe this text can be changed to include the option to manually activate and where to find this button :) Thanks a lot! Now I do see the project page again. Great.

drazisil-codecov commented 2 weeks ago

Hi @ottlinger Glad that worked. Apologies regarding the confusing text, we will get that fixed https://github.com/codecov/engineering-team/issues/2688#issuecomment-2447511897

ottlinger commented 2 weeks ago

Thanks, looking forward to the update and cross my fingers that it prevents more users from running into the problem I've experienced. Thanks for your help