Please search for similar issues before creating a ticket.
All fields below are required.
Description
Trying to upload to codecov using codemagic CI. I believe I need do specify codemagic as the service within codecov.yaml, but I can’t seem to figure it out.
Commit SHAs
N/A
Repository
N/A
CI/CD or Build URL
Codemagic
Uploader
Codecov Uploader
Codecov uses a separate upload tool to make it easy to upload coverage reports to Codecov for processing. The Codecov Uploader is a statically compiled binary distribution with releases for Linux, Alpine Linux, macOS, and Windows. Using the Uploader...
Codecov Output
[2021-08-06T19:11:29.690Z] [‘info’]
_____ _
/ | | |
| | ___ __| | ___ ___ _____ __
| | / _ \ / ` |/ _ / / _ \ \ / /
| | | ( ) | ( | | __/ ( | ( ) \ V /
______/ _ , |_|_ ___/ _/
Codecov report uploader 0.1.0
[2021-08-06T19:11:29.702Z] [‘info’] => Project root located at: /Users/builder/clone
[2021-08-06T19:11:29.706Z] [‘info’] → Token set by arguments
[2021-08-06T19:11:29.726Z] [‘info’] Searching for coverage files…
[2021-08-06T19:11:29.765Z] [‘info’] => Found 4 possible coverage files:
[2021-08-06T19:11:29.765Z] [‘info’] codecov.SHA256SUM
codecov.SHA256SUM.sig
codecov.yaml
coverage/lcov.info
[2021-08-06T19:11:29.765Z] [‘info’] Processing codecov.SHA256SUM…
[2021-08-06T19:11:29.766Z] [‘info’] Processing codecov.SHA256SUM.sig…
[2021-08-06T19:11:29.766Z] [‘info’] Processing codecov.yaml…
[2021-08-06T19:11:29.766Z] [‘info’] Processing coverage/lcov.info…
[2021-08-06T19:11:29.768Z] [‘error’] Unable to detect service, please specify manually.
[2021-08-06T19:11:29.768Z] [‘error’] Error!: Error: Unable to detect service, please specify manually.
Expected Results
Upload to codecov
Actual Results
Failed to upload due to service not detected
Additional Information
tom
August 10, 2021, 4:21pm
2
@msmartin43 were you able to get this working previously? If so, would you be able to share a verbose output?
I have never been able to get the codecov upload to work. I added the verbose flag to what I currently have and ran it again. Unfortunately, does not appear to have given much more information that it previously had.
Thanks,
Mike
codecov: OK
[2021-08-10T16:51:48.265Z] [‘info’]
_____ _
/ | | |
| | ___ __| | ___ ___ _____ __
| | / _ \ / ` |/ _ / / _ \ \ / /
| | | ( ) | ( | | __/ ( | ( ) \ V /
______/ _ , |_|_ ___/ _/
Codecov report uploader 0.1.0
[2021-08-10T16:51:48.281Z] [‘info’] => Project root located at: /Users/builder/clone
[2021-08-10T16:51:48.286Z] [‘info’] → Token set by arguments
[2021-08-10T16:51:48.287Z] [‘verbose’] Start of network processing…
[2021-08-10T16:51:48.287Z] [‘verbose’] Searching for files in /Users/builder/clone
[2021-08-10T16:51:48.318Z] [‘info’] Searching for coverage files…
[2021-08-10T16:51:48.346Z] [‘info’] => Found 4 possible coverage files:
codecov.SHA256SUM
codecov.SHA256SUM.sig
codecov.yaml
coverage/lcov.info
[2021-08-10T16:51:48.346Z] [‘verbose’] End of network processing
[2021-08-10T16:51:48.347Z] [‘info’] Processing /Users/builder/clone/codecov.SHA256SUM…
[2021-08-10T16:51:48.349Z] [‘info’] Processing /Users/builder/clone/codecov.SHA256SUM.sig…
[2021-08-10T16:51:48.349Z] [‘info’] Processing /Users/builder/clone/codecov.yaml…
[2021-08-10T16:51:48.350Z] [‘info’] Processing /Users/builder/clone/coverage/lcov.info…
[2021-08-10T16:51:48.352Z] [‘error’] Unable to detect service, please specify manually.
[2021-08-10T16:51:48.353Z] [‘error’] Error!: Error: Unable to detect service, please specify manually.
[2021-08-10T16:51:48.353Z] [‘verbose’] End of uploader: 92 milliseconds
tom
August 11, 2021, 2:43am
4
@msmartin43 , got it. The uploader does not currently support Codemagic, but I’ll work on getting it up in the next week.
tom
August 18, 2021, 9:25pm
5
@msmartin43 we made some changes to the uploader, not explicitly for Codemagic
, but I wanted to see if it fixes your issue.
@tom thank you the uploader seems to be working for me now.
1 Like
@tom unfortunately after some more testing there still seems to be something wrong. The uploader seems to be woking ok. I see the upload on codecov, but the test coverage always says 0%. I verified that there is indeed coverage using lcov.
tom
August 23, 2021, 9:08pm
8
@msmartin43 can you provide a link to your CI build with a passing uploader but showing 0% coverage?