Description
I am building a .Net project, which is an addin for the Cake build project. I have recently switched to enabling SourceLink on this project, as well as configuring deterministic builds using coverlet to do the unit test coverage. All of that works, however, when attempting to upload to codecov.io, I get an error.
The side effect of the process is that the generated XML file contains URL’s to the files that have been analyzed, rather than file paths. As an example:
<?xml version="1.0" encoding="utf-8"?>
<CoverageSession>
<Summary numSequencePoints="13" visitedSequencePoints="13" numBranchPoints="0" visitedBranchPoints="0" sequenceCoverage="100" branchCoverage="100" maxCyclomaticComplexity="8" minCyclomaticComplexity="8" visitedClasses="1" numClasses="1" visitedMethods="8" numMethods="8" />
<Modules>
<Module hash="C7AE77A3-94FA-42D2-9E53-D6D07C11B4E2">
<ModulePath>Cake.Json.dll</ModulePath>
<ModuleTime>2020-07-05T02:23:09</ModuleTime>
<ModuleName>Cake.Json</ModuleName>
<Files>
<File uid="1" fullPath="https://raw.githubusercontent.com/gep13/Cake.Json/d34269b6eb63c3acb6c7f46e1ee2a6d517812699/src/Cake.Json/JsonAliases.cs" />
</Files>
Would this cause the problem with uploading to codecov.io?
Please let me know if I can provide any further information to help with figuring this out.
Thanks
Repository
CI/CD
Builds are running on AppVeyor.
Uploader
I am using the codecov tool from nuget.org, which is installed and executed as part of my Cake Build.
Commit SHAs
Codecov YAML
Not currently using a yml file.
Codecov Output
_____ _
/ ____| | |
| | ___ __| | ___ ___ _____ __
| | / _ \ / _ |/ _ \/ __/ _ \ \ / /
| |___| (_) | (_| | __/ (_| (_) \ V /
\_____\___/ \____|\___|\___\___/ \_/
exe-1.9.0
2020-07-05 14:44:22 INF AppVeyor detected.
2020-07-05 14:44:23 INF Git detected.
2020-07-05 14:44:23 INF Project root: C:\projects\cake-json
2020-07-05 14:44:23 INF Yaml not found, that's ok! Learn more at http://docs.codecov.io/docs/codecov-yaml
2020-07-05 14:44:23 INF Reading reports.
2020-07-05 14:44:23 INF C:/projects/cake-json/BuildArtifacts/TestCoverage/coverlet/Cake-Json-Tests.opencover.xml
2020-07-05 14:44:23 INF Uploading Reports.
2020-07-05 14:44:23 INF url: https://codecov.io
2020-07-05 14:44:23 INF query: https://codecov.io/upload/v4?branch=develop&commit=86cf30ad4bb21d22ad9825498d2ceab67e446b31&build=skicd2uhcvrg6olh&tag=&pr=&name=&flags=&slug=cake-contrib%2FCake.Json&token=&package=exe-1.9.0&build_url=https://ci.appveyor.com/project/cakecontrib/cake-json/build/job/skicd2uhcvrg6olh&yaml=&job=cakecontrib%2Fcake-json%2F5.2.0-alpha.25.build.50&service=appveyor
2020-07-05 14:44:23 INF Pinging Codecov
2020-07-05 14:44:25 INF Uploading
2020-07-05 14:44:25 WRN Unable to upload coverage report to Codecov. Server returned: (400) Bad Request
2020-07-05 14:44:25 WRN Unknown reason. Possible reason being invalid parameters.
2020-07-05 14:44:25 WRN Failed to upload the report with CodecovUploader.
2020-07-05 14:44:25 INF Uploading to Codecov
2020-07-05 14:44:26 INF View reports at: https://codecov.io/github/cake-contrib/Cake.Json/commit/86cf30ad4bb21d22ad9825498d2ceab67e446b31
Additional Information
Any additional information, configuration or data that might be necessary to reproduce the issue.