codecov-action
codecov-action copied to clipboard
[BUG] recently-moved repo coverage upload failed: {"message":"Repository not found"}
codecov action fails to upload a report from CI with the error message
Upload failed: {"message":"Repository not found"}
This is on the https://github.com/ChiSym/genjax repository.
We recently moved this repo from a different org, but my token is up to date and other repositories in the org are correctly uploading.
_____ _
/ ____| | |
| | ___ __| | ___ ___ _____ __
| | / _ \ / _` |/ _ \/ __/ _ \ \ / /
| |___| (_) | (_| | __/ (_| (_) \ V /
\_____\___/ \__,_|\___|\___\___/ \_/
Wrapper-0.2.0
==> Detected linux
-> Downloading https://cli.codecov.io/latest/linux/codecov
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 27.5M 100 27.5M 0 0 125M 0 --:--:-- --:--:-- --:--:-- 125M
==> Finishing downloading linux:latest
Version: v10.2.1
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) <[email protected]>" imported
==> Verifying GPG signature integrity
gpg: Total number processed: 1
gpg: imported: 1
-> Downloading https://cli.codecov.io/latest/linux/codecov.SHA256SUM
-> Downloading https://cli.codecov.io/latest/linux/codecov.SHA256SUM.sig
gpg: Signature made Wed Mar 12 16:00:55 2025 UTC
gpg: using RSA key 27034E7FDB850E0BBC2C62FF806BB28AED779869
gpg: Good signature from "Codecov Uploader (Codecov Uploader Verification Key) <[email protected]>" [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
codecov: OK
==> CLI integrity verified
-> Token of length 36 detected
==> Running upload-coverage
./codecov upload-coverage -t <redacted> --git-service github --sha 79429cdcaab76d7a104799478c36c4a671cc3dd5 --slug ChiSym/genjax --disable-search --file ./coverage.json --gcov-executable gcov
info - 2025-03-14 11:49:42,137 -- ci service found: github-actions
warning - 2025-03-14 11:49:42,163 -- xcrun is not installed or can't be found.
warning - 2025-03-14 11:49:42,398 -- No gcov data found.
warning - 2025-03-14 11:49:42,399 -- coverage.py is not installed or can't be found.
info - 2025-03-14 11:49:42,636 -- Found 1 coverage files to report
info - 2025-03-14 11:49:42,636 -- > /home/runner/work/genjax/genjax/coverage.json
info - 2025-03-14 11:49:42,953 -- Process Upload complete
error - 2025-03-14 11:49:42,953 -- Upload failed: {"message":"Repository not found"}
@sritchie what was the original repo URL?
The repo was originally at probcomp/genjax. we renamed to chi-collective/genjax, and then ChiSym/genjax, so it's had a couple of hops!
@sritchie are you able to try uploading again?
@thomasrockhu-codecov Same error for https://github.com/antonbabenko/pre-commit-terraform but for https://github.com/codecov/test-results-action starting from Mar 18th We do not move repo nor commit any changes at all during this period
I tried to revert codecov-cli a few versions back but without any luck https://github.com/antonbabenko/pre-commit-terraform/pull/843
We pin all deps whenever it is possible to hash sums for reproducibility and security, but looks like you have some extra deps under the hood which we need to pin too, but I am not figured out what exactly.
@thomasrockhu-codecov not sure if this is related, but here's a seemingly similar case: https://github.com/antonbabenko/pre-commit-terraform/actions/runs/13915867469/job/38938773517. Except there was no repo move. And the coverage upload succeeds while its test results counterpart crashes. Both are supported to source the token from the in-repo config.
I had the same issue, recently transfer the repo ownership to my org
Edit: https://github.com/Nya-Foundation/NekoConf/actions/runs/14320134093/job/40135162917
Is there any workaround to this? I can't seem to get codecov working anymore with a renamed github repo (https://github.com/lschneiderbauer/ricci/).
Same issue here: https://github.com/devantler-tech/github-actions/actions/runs/16355921734/job/46214155518?pr=20
any update on this? We're also experiencing this issue; we didn't move or change ownership of the repo; and we did not rename it either.
A workaround I found is to delete the repo on https://app.codecov.io/, and then running your failing workflow again. This will recreate the entity on Codecovs side, and for me that avoided the mismatch.