Unable to upload coverage report

unable to upload coverage report on Appveyor:

$env:PATH = 'C:\msys64\usr\bin;' + $env:PATH
Invoke-WebRequest -Uri 'https://codecov.io/bash' -OutFile codecov.sh
bash codecov.sh -f "coverage.xml" -t 4526d3eb-e1b0-4046-99cd-5f70a2ce8762
  _____          _
 / ____|        | |
| |     ___   __| | ___  ___ _____   __
| |    / _ \ / _` |/ _ \/ __/ _ \ \ / /
| |___| (_) | (_| |  __/ (_| (_) \ V /
 \_____\___/ \__,_|\___|\___\___/ \_/
                              Bash-20200728-9fb7d93
==> Appveyor CI detected.
    project root: .
    Yaml not found, that's ok! Learn more at http://docs.codecov.io/docs/codecov-yaml
    -> Found 1 reports
==> Detecting git/mercurial file structure
==> Reading reports
    + coverage.xml bytes=516
==> Appending adjustments
    https://docs.codecov.io/docs/fixing-reports
    -> No adjustments found
==> Gzipping contents
==> Uploading reports
    url: https://codecov.io
    query: branch=master&commit=b2f74bcc83d1dd7b9e634f0884b953875afb167e&build=wjyd5rm4f90nq8ky&build_url=https%3A%2F%2Fci.appveyor.com%2Fproject%2Fheldersepu%2FSwagger-Net%2Fbuilds%2F34821946%2Fjob%2Fwjyd5rm4f90nq8ky&name=&tag=&slug=heldersepu%2FSwagger-Net&service=appveyor&flags=&pr=&job=heldersepu%2Fswashbuckle%2F1.0.514&cmd_args=f,t
->  Pinging Codecov
https://codecov.io/upload/v4?package=bash-20200728-9fb7d93&token=secret&branch=master&commit=b2f74bcc83d1dd7b9e634f0884b953875afb167e&build=wjyd5rm4f90nq8ky&build_url=https%3A%2F%2Fci.appveyor.com%2Fproject%2Fheldersepu%2FSwagger-Net%2Fbuilds%2F34821946%2Fjob%2Fwjyd5rm4f90nq8ky&name=&tag=&slug=heldersepu%2FSwagger-Net&service=appveyor&flags=&pr=&job=heldersepu%2Fswashbuckle%2F1.0.514&cmd_args=f,t
->  Uploading to
https://storage.googleapis.com/codecov/v4/raw/2020-08-24/277C7475171412A5DBB39788291EB21E/b2f74bcc83d1dd7b9e634f0884b953875afb167e/efe4de71-0a3d-4f5b-957b-1d11c7797809.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=GOOG1EQX6OZVJGHKK3633AAFGLBUCOOATRACRQRQF6HMSMLYUP6EAD6XSWAAY%2F20200824%2FUS%2Fs3%2Faws4_request&X-Amz-Date=20200824T145444Z&X-Amz-Expires=10&X-Amz-SignedHeaders=host&X-Amz-Signature=84e107d1a24e8ded2d2b5d02deaa15b8fc15aa0b76960ce3c89ac47078f7804a
bash :   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
At line:3 char:1
+ bash codecov.sh -f "coverage.xml" -t 4526d3eb-e1b0-4046-99cd-5f70a2ce ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (  % Total    % ...  Time  Current:String) [], RemoteException
    + FullyQualifiedErrorId : NativeCommandError
 
 

https://ci.appveyor.com/project/heldersepu/swashbuckle/builds/34821946

Hi @heldersepu, apologies but this is a known issue we are working on. Could you try changing the command to

bash codecov.sh -f "coverage.xml" -t 4526d3eb-e1b0-4046-99cd-5f70a2ce8762 -U "-s" -A "-s" 

and let me know if that helps.

Yes that did it:
https://ci.appveyor.com/project/heldersepu/swashbuckle/builds/34824361

1 Like

Now strange enough the error is on codecov:
There was an error processing coverage reports.

@heldersepu, this is the coverage.xml file that I am seeing

# path=coverage.xml
<?xml version="1.0" encoding="utf-8"?>
<CoverageSession xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" Version="4.7.922.0">
  <Summary numSequencePoints="0" visitedSequencePoints="0" numBranchPoints="0" visitedBranchPoints="0" sequenceCoverage="0" branchCoverage="0" maxCyclomaticComplexity="0" minCyclomaticComplexity="0" maxCrapScore="0" minCrapScore="0" visitedClasses="0" numClasses="0" visitedMethods="0" numMethods="0" />
  <Modules />

Since there is no real report to process, we return that error.

I see that is the same on my side… time to start digging see what is going on

1 Like