Coder Social home page Coder Social logo

codecov-exe's People

Contributors

0xced avatar actions-user avatar admiringworm avatar atifaziz avatar dependabot-preview[bot] avatar dependabot[bot] avatar derhally avatar eliatcodecov avatar fossabot avatar glennawatson avatar hanabi1224 avatar hootener avatar justdmitry avatar larzw avatar mikebro avatar nxtn avatar projectgoav avatar sharwell avatar thomasrockhu avatar thomasrockhu-codecov avatar viktorhofer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

codecov-exe's Issues

--file cannot handle paths with spaces

Using 1.5.0

$testResultsDir = 'artifacts\Test results'

codecov --name $tfm --file "$testResultsDir\coverage.$tfm.xml" --token $env:CODECOV_TOKEN
WRN The file D:\a\1\s\artifacts\Test does not exist.
WRN The file results\coverage.net472.xml does not exist.
FTL No Report detected.

It should respect quotes by using the string[] args that dotnet passes to Program.Main.

With this hypothetical call:

codecov --file "artifacts\Test results\a.xml" "artifacts\Test results\b.xml"

Program.Main will receive this as args:

new[]
{
    "--file",
    "artifacts\Test results\a.xml",
    "artifacts\Test results\b.xml"
}

Given such arguments, the files collection should contain artifacts\Test results\a.xml and artifacts\Test results\b.xml, not artifacts\Test, results\a.xml, artifacts\Test, results\b.xml.

[Fatal] Illegal characters in path.

I get the following error when building on AppVeyor:

codecov --file results.xml
              _____          _
             / ____|        | |
            | |     ___   __| | ___  ___ _____   __
            | |    / _ \ / _  |/ _ \/ __/ _ \ \ / /
            | |___| (_) | (_| |  __/ (_| (_) \ V /
             \_____\___/ \____|\___|\___\___/ \_/
                                         exe-1.0.1
            
2017-08-18 12:40:35 [Information] AppVeyor detected.
2017-08-18 12:40:35 [Information] Git detected.
2017-08-18 12:40:35 [Information] Project root: C:\projects\toofz-necrodancer-leaderboards
2017-08-18 12:40:35 [Fatal] Illegal characters in path.
   at System.IO.PathHelper.Normalize(String path, Boolean checkInvalidCharacters, Boolean expandShortPaths)
   at System.IO.Path.GetFullPath(String path)
   at Codecov.Utilities.FileSystem.NormalizedPath(String path) in C:\Users\Administrator\github\codecov-exe\Source\Codecov\Utilities\FileSystem.cs:line 15
   at System.Linq.Enumerable.<>c__DisplayClass151_0`3.<CombineSelectors>b__0(TSource x)
   at System.Linq.Enumerable.SelectArrayIterator`2.MoveNext()
   at System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable`1 source, Func`2 predicate)
   at Codecov.Yaml.Yaml.LoadFileName() in C:\Users\Administrator\github\codecov-exe\Source\Codecov\Yaml\Yaml.cs:line 23
   at System.Lazy`1.CreateValue()
   at System.Lazy`1.LazyInitValue()
   at Codecov.Program.UploadFacade.Uploader() in C:\Users\Administrator\github\codecov-exe\Source\Codecov\Program\UploadFacade.cs:line 93
   at Codecov.Program.Run.Runner(IEnumerable`1 args) in C:\Users\Administrator\github\codecov-exe\Source\Codecov\Program\Run.cs:line 20

Full build log: https://ci.appveyor.com/project/leonard-thieu/toofz-necrodancer-leaderboards/build/3.0.8.46

I'm not sure I understand why this is happening. I have another project set up fairly similarly without an issues.

Any known issues with codecov.exe with new GitHub security requirements?

I am in the process of updating GitReleaseManager to support the new GitHub Security requirements, and I noticed in the build output that I am getting this:

https://ci.appveyor.com/project/GitTools/gitreleasemanager/build/0.3.0-PullRequest.106+95.build.188#L781

I thought that it was related to the token I was using, but I have updated that, and I am not seeing any difference.

Could it be that the requests that codecov.exe is making are subject to the same security requirements that GtiReleaseManager is now subject to?

Thanks in advance! @larzw

codecov.exe fails with 403

Hi,

When I try to upload my report I get the following error:

2018-11-20 14:18:50 VRB One or more errors occurred. (The remote server returned an error: (403) Forbidden.)
   at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
   at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)
   at Codecov.Upload.HttpWebRequest.Put(Uri url) in C:\projects\codecov-exe\Source\Codecov\Upload\HttpWebRequest.cs:line 57
   at Codecov.Upload.Upload.Uploader() in C:\projects\codecov-exe\Source\Codecov\Upload\Upload.cs:line 36
2018-11-20 14:18:50 VRB Uploader failed.
2018-11-20 14:18:50 VRB Trying to upload using WebClient in PowerShell.
2018-11-20 14:18:51 VRB Exception lors de l'appel de ´┐¢UploadString´┐¢ avec ´┐¢3´┐¢ argument(s): ´┐¢La demande a ´┐¢t´┐¢ abandonn´┐¢e: Impossible de cr´┐¢er un
canal s´┐¢curis´┐¢ SSL/TLS.´┐¢
Au caract´┐¢re Ligne:5 : 17
+ ...             $client.UploadString('https://codecov.io/upload/v4?branch ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : WebException
   at Codecov.Terminal.Terminal.Run(String command, String commandArguments) in C:\projects\codecov-exe\Source\Codecov\Terminal\Terminal.cs:line 71
2018-11-20 14:18:51 VRB Failed to ping codecov.
2018-11-20 14:18:51 VRB Uploader failed.
2018-11-20 14:18:51 FTL Failed to upload the report.
   at Codecov.Upload.Uploads.Uploader() in C:\projects\codecov-exe\Source\Codecov\Upload\Uploads.cs:line 34
   at Codecov.Program.UploadFacade.Uploader() in C:\projects\codecov-exe\Source\Codecov\Program\UploadFacade.cs:line 119
   at Codecov.Program.Run.Runner(IEnumerable`1 args) in C:\projects\codecov-exe\Source\Codecov\Program\Run.cs:line 20

Here is the command I am using:

codecov.exe --verbose --root "D:\dev\Wexflow\src" -f "Wexflow_coverage.xml" --token myToken -n Wexflow

Can you please help me to fix this?

Kind regards,

Bad request (400) with non-standard branch name

If the branch name starts with # symbol, e.g. #8-move-docs, codecov.exe returns 400. (In git bash such branch names must be quoted: git checkout "#8-move-docs".)

codecov -f "coverage.xml"
              _____          _
             / ____|        | |
            | |     ___   __| | ___  ___ _____   __
            | |    / _ \ / _  |/ _ \/ __/ _ \ \ / /
            | |___| (_) | (_| |  __/ (_| (_) \ V /
             \_____\___/ \____|\___|\___\___/ \_/
                                         exe-1.0.1
            
2018-01-18 06:04:44 [Information] AppVeyor detected.
2018-01-18 06:04:44 [Information] Git detected.
2018-01-18 06:04:44 [Information] Project root: C:\projects\navigizer
2018-01-18 06:04:44 [Information] Reading reports.
2018-01-18 06:04:44 [Information] coverage.xml
2018-01-18 06:04:44 [Information] Uploading Reports.
2018-01-18 06:04:44 [Information] url: https://codecov.io
2018-01-18 06:04:44 [Information] query: https://codecov.io/upload/v4?branch=#8-move-docs&commit=aaf0e2945edfcb6c05aea89a97f3941a32ee087e&build=vyf1jnfv5cm0qpaf&tag=&pr=&name=&flags=&slug=kalaider%2FNavigizer&token=&package=exe-1.0.1&build_url=&yaml=.codecov.yml&job=kalaider%2Fnavigizer%2F21&service=appveyor
2018-01-18 06:04:44 [Information] Pinging Codecov
2018-01-18 06:04:45 [Fatal] One or more errors occurred. (The remote server returned an error: (400) Bad Request.)
   at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
   at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)
   at Codecov.Upload.Upload.Uploader() in C:\Users\Administrator\github\codecov-exe\Source\Codecov\Upload\Upload.cs:line 34
   at Codecov.Program.UploadFacade.Uploader() in C:\Users\Administrator\github\codecov-exe\Source\Codecov\Program\UploadFacade.cs:line 119
   at Codecov.Program.Run.Runner(IEnumerable`1 args) in C:\Users\Administrator\github\codecov-exe\Source\Codecov\Program\Run.cs:line 20

Version 1.0.2 is freezing on appveyor

@Baune8D reported this issue... Is your repository public so I can see the build? Personally, I"m using version 1.0.2 and did not have any issues...see. Do you have spaces in your project root path by any chance? Any other information so I can re-create the issue would be great.

Thanks!

Codecov.exe returns 400 (bad request)

I am trying to upload cobertura xmls from AppVeyor server, using codecov.exe like this: codecov -f cobertura1.xml cobertura2.xml cobertura3.xml cobertura4.xml cobertura5.xml. No token because according my understanding of the documentation, codecov.exe shouldn't require token for public AppVeyor builds.

I installed from chocolatey, version 1.0.1

Relevant part of the logs:

[00:02:55] 
[00:02:56] 
[00:02:56]               _____          _
[00:02:56]              / ____|        | |
[00:02:56]             | |     ___   __| | ___  ___ _____   __
[00:02:56]             | |    / _ \ / _  |/ _ \/ __/ _ \ \ / /
[00:02:56]             | |___| (_) | (_| |  __/ (_| (_) \ V /
[00:02:56]              \_____\___/ \____|\___|\___\___/ \_/
[00:02:56]                                          exe-1.0.1
[00:02:56]             
[00:02:56] 2017-11-28 08:12:17 [Information] AppVeyor detected.
[00:02:56] 2017-11-28 08:12:17 [Warning] No VCS detected.
[00:02:56] 2017-11-28 08:12:17 [Information] Project root: C:\projects\catch2\Build
[00:02:56] 2017-11-28 08:12:17 [Information] Yaml not found, that's ok! Learn more at http://docs.codecov.io/docs/codecov-yaml
[00:02:56] 2017-11-28 08:12:17 [Information] Reading reports.
[00:02:56] 2017-11-28 08:12:17 [Information] cobertura1.xml
[00:02:56] cobertura2.xml
[00:02:56] cobertura3.xml
[00:02:56] cobertura4.xml
[00:02:56] cobertura5.xml
[00:02:56] 2017-11-28 08:12:17 [Information] Uploading Reports.
[00:02:56] 2017-11-28 08:12:18 [Information] url: https://codecov.io
[00:02:56] 2017-11-28 08:12:18 [Information] query: https://codecov.io/upload/v4?branch=dev-appveyor-coverage&commit=84fd45c2c54f0d032857baa1ed404ce05ac14c03&build=0bsavgpucd4lvgja&tag=&pr=&name=&flags=&slug=catchorg%2FCatch2&token=&package=exe-1.0.1&build_url=&yaml=&job=CatchOrg%2Fcatch2%2Fdev-appveyor-coverage - 84fd45c2c54f0d032857baa1ed404ce05ac14c03&service=appveyor
[00:02:56] 2017-11-28 08:12:18 [Information] Pinging Codecov
[00:02:57] 2017-11-28 08:12:19 [Fatal] One or more errors occurred. (The remote server returned an error: (400) Bad Request.)
[00:02:57]    at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
[00:02:57]    at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)
[00:02:57]    at Codecov.Upload.Upload.Uploader() in C:\Users\Administrator\github\codecov-exe\Source\Codecov\Upload\Upload.cs:line 34
[00:02:57]    at Codecov.Program.UploadFacade.Uploader() in C:\Users\Administrator\github\codecov-exe\Source\Codecov\Program\UploadFacade.cs:line 119
[00:02:57]    at Codecov.Program.Run.Runner(IEnumerable`1 args) in C:\Users\Administrator\github\codecov-exe\Source\Codecov\Program\Run.cs:line 20
[00:02:58] Build success

Link to the build

(400) bad request from EC2

I have a server in EC2 and this is what I get

`

          _____          _
         / ____|        | |
        | |     ___   __| | ___  ___ _____   __
        | |    / _ \ / _  |/ _ \/ __/ _ \ \ / /
        | |___| (_) | (_| |  __/ (_| (_) \ V /
         \_____\___/ \____|\___|\___\___/ \_/
                                     exe-1.5.0

2019-06-27 16:30:07 WRN No CI detected.
2019-06-27 16:30:07 INF Git detected.
2019-06-27 16:30:08 INF Project root: C:\projects\media-server
2019-06-27 16:30:08 INF Reading reports.
2019-06-27 16:30:08 INF coverage.xml
2019-06-27 16:30:08 INF Uploading Reports.
2019-06-27 16:30:08 INF url: https://codecov.io
2019-06-27 16:30:08 VRB api endpoint: https://codecov.io/upload/v4?branch=&commit=13123123213&build=&tag=&pr=&name=&flags=&slug=%2Frh&token=2313123213&package=exe-1.5.0&build_url=&yaml=codecov.yml&job=&service=
2019-06-27 16:30:08 INF query: https://codecov.io/upload/v4?branch=&commit=12121212&build=&tag=&pr=&name=&flags=&slug=%2Frh&package=exe-1.5.0&build_url=&yaml=codecov.yml&job=&service=
2019-06-27 16:30:08 INF Pinging Codecov
2019-06-27 16:30:08 VRB Trying to upload using HttpWebRequest.
2019-06-27 16:30:09 VRB One or more errors occurred. (The remote server returned an error: (400) Bad Request.)
at System.Threading.Tasks.Task1.GetResultCore(Boolean waitCompletionNotification) at Codecov.Upload.HttpWebRequest.Post() in C:\projects\codecov-exe\Source\Codecov\Upload\HttpWebRequest.cs:line 32 at Codecov.Upload.Upload.Uploader() in C:\projects\codecov-exe\Source\Codecov\Upload\Upload.cs:line 28 2019-06-27 16:30:09 VRB Uploader failed. 2019-06-27 16:30:09 VRB Trying to upload using WebClient. 2019-06-27 16:30:09 VRB The remote server returned an error: (400) Bad Request. at System.Net.HttpWebRequest.GetResponse() at System.Net.WebClient.GetWebResponse(WebRequest request) at System.Net.WebClient.DownloadBits(WebRequest request, Stream writeStream) at System.Net.WebClient.UploadBits(WebRequest request, Stream readStream, Byte[] buffer, Int32 chunkSize, Byte[] header, Byte[] footer) at System.Net.WebClient.UploadDataInternal(Uri address, String method, Byte[] data, WebRequest& request) at System.Net.WebClient.UploadString(Uri address, String method, String data) at Codecov.Upload.WebClient.Post() in C:\projects\codecov-exe\Source\Codecov\Upload\WebClient.cs:line 26 at Codecov.Upload.Upload.Uploader() in C:\projects\codecov-exe\Source\Codecov\Upload\Upload.cs:line 28 2019-06-27 16:30:09 VRB Uploader failed. 2019-06-27 16:30:09 FTL Failed to upload the report. at Codecov.Upload.Uploads.Uploader() in C:\projects\codecov-exe\Source\Codecov\Upload\Uploads.cs:line 35 at Codecov.Program.UploadFacade.Uploader() in C:\projects\codecov-exe\Source\Codecov\Program\UploadFacade.cs:line 121 at Codecov.Program.Run.Uploader() in C:\projects\codecov-exe\Source\Codecov\Program\Run.cs:line 51 at Codecov.Program.Run.Runner(IEnumerable1 args) in C:\projects\codecov-exe\Source\Codecov\Program\Run.cs:line 19

`

codecov yaml not located

When running on Linux, the CodeCover.Tool cannot locate the codecov.yaml file.

This is because the Yaml class is assuming paths use the \ path separator.

Failure to upload report

👋 I'm integrating codecov with for GitHub's Octokit.NET in this pull request octokit.net#1866

I'm having some trouble. Hopefully someone can point me in the right direction..

https://ci.appveyor.com/project/github-windows/octokit-net/build/0.33.0-PullRequest.1866+19.build.2876

2018-09-10 08:40:23 INF AppVeyor detected.
2018-09-10 08:40:23 INF Git detected.
2018-09-10 08:40:24 INF Project root: C:\projects\octokit-net
2018-09-10 08:40:24 INF Reading reports.
2018-09-10 08:40:24 INF coverage-results/Octokit.Tests-net452.xml
2018-09-10 08:40:24 INF Uploading Reports.
2018-09-10 08:40:26 INF url: https://codecov.io
2018-09-10 08:40:27 INF query: https://codecov.io/upload/v4?branch=master&commit=2257fc9d1b3d27dd778110a25cf7488bac314204&build=76nmgd4bylva7iqj&tag=&pr=1866&name=&flags=&slug=octokit%2Foctokit.net&token=&package=exe-1.0.5&build_url=&yaml=codecov.yml&job=github-windows%2Foctokit-net%2F0.17.2876&service=appveyor
2018-09-10 08:40:27 INF Pinging Codecov
2018-09-10 08:40:31 FTL Failed to upload the report.
   at Codecov.Upload.Uploads.Uploader() in D:\Docs\git\contributing\codecov-exe\Source\Codecov\Upload\Uploads.cs:line 34
   at Codecov.Program.UploadFacade.Uploader() in D:\Docs\git\contributing\codecov-exe\Source\Codecov\Program\UploadFacade.cs:line 119
   at Codecov.Program.Run.Runner(IEnumerable`1 args) in D:\Docs\git\contributing\codecov-exe\Source\Codecov\Program\Run.cs:line 20

Invalid build url generated for appveyor when account name is not same as repository account

I am running into an issue where codecov links to a CI build url with incorrect slug:

For example:
https://codecov.io/gh/skwasjer/Rebus.Correlate/commit/ab9ca67ee25f9c927ba8b474c2091fda10ac6178/builds

On this page the uploaded codecov report 5crrqoxx7dlc2awa points to the AppVeyor build URI https://ci.appveyor.com/project/skwasjer/Rebus.Correlate/build/job/5crrqoxx7dlc2awa

However the Rebus.Correlate portion in this URI should be the AppVeyor slug rebus-correlate, then it works.

In https://github.com/codecov/codecov-exe/blob/master/Source/Codecov/Services/ContinuousIntegrationServers/Appveyor.cs#L14

private readonly Lazy<string> _slug = new Lazy<string>(() => EnviornmentVariable.GetEnviornmentVariable("APPVEYOR_REPO_NAME"));

should this not be APPVEYOR_PROJECT_SLUG?

codecov.exe fails with 403 when uploading multiple .gcov files

coverage data is prepared using gcov and uploaded;

  - gcov debug\*.gcno
  - ps: |
      $gcovfiles = (Get-ChildItem -Path "*.gcov").Name
      codecov -v -f $gcovfiles -t $env:CODECOV_TOKEN

In the output, the upload seems to start prematurely after it lists 410 .gcov files;

redacted.cpp.gcov
redacted.h.gcov
redacted.cpp.gcov
redacted.h.gcov
2018-01-26 13:28:10 [Information] Uploading Reports.
2018-01-26 13:28:10 [Information] url: https://codecov.io
2018-01-26 13:28:10 [Verbose] api endpoint: https://codecov.io/upload/v4?branch=master&commit=0d66dc2becbc9939389d60cdeaff76512e9bd3e2&build=3q86csgq97snqrqu&tag=&pr=1259&name=&flags=&slug=redacted%2Fredacted&token=redacted&package=exe-1.0.1&build_url=&yaml=.codecov.yml&job=redacted%2Fredacted%2F1.0.4331&service=appveyor
2018-01-26 13:28:10 [Information] query: https://codecov.io/upload/v4?branch=master&commit=0d66dc2becbc9939389d60cdeaff76512e9bd3e2&build=3q86csgq97snqrqu&tag=&pr=1259&name=&flags=&slug=redacted%2Fredacted&package=exe-1.0.1&build_url=&yaml=.codecov.yml&job=redacted%2Fredacted%2F1.0.4331&service=appveyor
2018-01-26 13:28:10 [Information] Pinging Codecov
redacted.h.gcov
redacted.cpp.gcov
redacted.cpp.gcov
redacted.cpp.gcov
redacted.h.gcov
redacted.cpp.gcov
redacted.cpp.gcov
...

finally, While checking upload status, codecov.exe fails;

...
2018-01-26 13:28:29 [Fatal] One or more errors occurred. (The remote server returned an error: (403) Forbidden.)
   at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
   at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)
   at Codecov.Upload.Upload.Uploader() in C:\Users\Administrator\github\codecov-exe\Source\Codecov\Upload\Upload.cs:line 60
   at Codecov.Program.UploadFacade.Uploader() in C:\Users\Administrator\github\codecov-exe\Source\Codecov\Program\UploadFacade.cs:line 119
   at Codecov.Program.Run.Runner(IEnumerable`1 args) in C:\Users\Administrator\github\codecov-exe\Source\Codecov\Program\Run.cs:line 20```

Error when uploading report

Am trying to get this setup...

I was able to generate the coverage report xml file but I'm running into issues trying to upload it with codecov.exe.

I got different errors, and I am just seeing blank coverage data when I log into codedov.io. It is a large project and the xml file is 137,000KB. Any ideas? Better error messages would also be appreciated.

Here's what I tried and the results I got:

c:\Code\codecov-test>packages\Codecov.1.0.1\tools\codecov.exe -f ".\api_unit_tests.xml" -t

          _____          _
         / ____|        | |
        | |     ___   __| | ___  ___ _____   __
        | |    / _ \ / _  |/ _ \/ __/ _ \ \ / /
        | |___| (_) | (_| |  __/ (_| (_) \ V /
         \_____\___/ \____|\___|\___\___/ \_/
                                     exe-1.0.1

2017-07-29 10:28:09 [Warning] No CI detected.
2017-07-29 10:28:09 [Information] Git detected.
2017-07-29 10:28:10 [Information] Project root: c:\Code\codecov-test
2017-07-29 10:28:10 [Information] Yaml not found, that's ok! Learn more at http://docs.codecov.io/docs/codecov-yaml
2017-07-29 10:28:10 [Information] Reading reports.
2017-07-29 10:28:10 [Information] ._api_unit_tests.xml
2017-07-29 10:28:10 [Information] Uploading Reports.
2017-07-29 10:28:11 [Information] url: https://codecov.io
2017-07-29 10:28:12 [Information] query: https://codecov.io/upload/v4?branch=master&commit=9617e1f6f0c812caf081a9db88dd786092be31f8&build=&tag=&pr=&name=&flags=&slug=KentonPickard%2Ffd-enterprise-codecov&package=exe-1.0.1&build_url=&yaml=&job=&service=
2017-07-29 10:28:12 [Information] Pinging Codecov
2017-07-29 10:30:01 [Fatal] One or more errors occurred. (A task was canceled.)
at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
at System.Threading.Tasks.Task1.GetResultCore(Boolean waitCompletionNotification) at Codecov.Upload.Upload.Uploader() in C:\Users\Administrator\github\codecov-exe\Source\Codecov\Upload\Upload.cs:line 60 at Codecov.Program.UploadFacade.Uploader() in C:\Users\Administrator\github\codecov-exe\Source\Codecov\Program\UploadFacade.cs:line 119 at Codecov.Program.Run.Runner(IEnumerable1 args) in C:\Users\Administrator\github\codecov-exe\Source\Codecov\Program\Run.cs:line 20

On a 2nd Attempt:

c:\Code\fd-enterprise-codecov>packages\Codecov.1.0.1\tools\codecov.exe -f ".\api_unit_tests.xml" -t

          _____          _
         / ____|        | |
        | |     ___   __| | ___  ___ _____   __
        | |    / _ \ / _  |/ _ \/ __/ _ \ \ / /
        | |___| (_) | (_| |  __/ (_| (_) \ V /
         \_____\___/ \____|\___|\___\___/ \_/
                                     exe-1.0.1

2017-07-29 10:31:21 [Warning] No CI detected.
2017-07-29 10:31:22 [Information] Git detected.
2017-07-29 10:31:22 [Information] Project root: c:\Code\fd-enterprise-codecov
2017-07-29 10:31:22 [Information] Yaml not found, that's ok! Learn more at http://docs.codecov.io/docs/codecov-yaml
2017-07-29 10:31:22 [Information] Reading reports.
2017-07-29 10:31:22 [Information] .\api_unit_tests.xml
2017-07-29 10:31:22 [Information] Uploading Reports.
2017-07-29 10:31:23 [Information] url: https://codecov.io
2017-07-29 10:31:24 [Information] query: https://codecov.io/upload/v4?branch=master&commit=9617e1f6f0c812caf081a9db88dd786092be31f8&build=&tag=&pr=&name=&flags=&slug=KentonPickard%2Ffd-enterprise-codecov&package=exe-1.0.1&build_url=&yaml=&job=&service=
2017-07-29 10:31:24 [Information] Pinging Codecov
2017-07-29 10:31:50 [Fatal] One or more errors occurred. (The remote server returned an error: (403) Forbidden.)
at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
at System.Threading.Tasks.Task1.GetResultCore(Boolean waitCompletionNotification) at Codecov.Upload.Upload.Uploader() in C:\Users\Administrator\github\codecov-exe\Source\Codecov\Upload\Upload.cs:line 60 at Codecov.Program.UploadFacade.Uploader() in C:\Users\Administrator\github\codecov-exe\Source\Codecov\Program\UploadFacade.cs:line 119 at Codecov.Program.Run.Runner(IEnumerable1 args) in C:\Users\Administrator\github\codecov-exe\Source\Codecov\Program\Run.cs:line 20

Running on Unix returns a permission denied error

Due to a bug in the warp utility that is being used by the codecov-exe program, the unix variants of the program haven't been ran chmod on when creating the files through Windows.

This then results in a permission denied error, unless the user runs chmod manually on the respective unix binary.

This is not supposed to be needed, changing to publishing through Linux on appveyor should resolve this issue.

codecov.exe returns success on invalid arguments

👋
Hi there, thanks for the codecov tool!

Actual

I invoked the codecov.exe tool incorrectly on Windows:

codecov -f coverage.txt -F windows

I was using -F from the bash uploader, rather than --flag, which print the usage information, but the exit code is 0 (success)

This caused my CircleCI step to pass:

image

Even though the output showed the error:

codecov 1.3.0
Copyright (c) 2017-Present Larz White, Kim J. Nordmo
ERROR(S):
Option 'F' is unknown.
<snip the full usage info>

Full example:

 codecov -f coverage.txt -F windows ; echo $LASTEXITCODE
codecov 1.1.0
Copyright (c) 2017-Present Larz White, Kim J. Nordmo
ERROR(S):
Option 'F' is unknown.

  --branch             Specify the branch name.

  -b, --build          Specify the build number.

  -c, --sha            Specify the commit sha.

  --disable-network    Toggle functionalities. (1) --disable-network. Disable uploading the file network.

  -d, --dump           Don't upload and dump to stdin.

  -e, --env            Specify enviornment variables to be included with this build. (1) CODECOV_ENV=VAR1,VAR2. (2) -e VAR1
                       VAR2.

  -f, --file           Target file(s) to upload. (1) -f 'path/to/file'. Only upload this file. (2) -f 'path/to/file1
                       path/to/file2'. Only upload these files.

  --flag               Flag the upload to group coverage metrics. (1) --flag unittests. This upload is only unittests. (2)
                       --flag integration. This upload is only integration tests. (3) --flag ut,chrome. This upload is chrome
                       - UI tests.

  -n, --name           Custom defined name of the upload. Visible in Codecov UI.

  --no-color           Remove color from the output.

  --pr                 Specify the pull request number.

  --root               Used when not in git/hg project to identify project root directory.

  --required           Exit with 1 if not successful. Default will Exit with 0.

  -r, --slug           owner/repo slug used instead of the private repo token in Enterprise. (option) Set environment
                       variable CODECOV_SLUG=:owner/:repo.

  --tag                Specify the git tag.

  -t, --token          Set the private repository token. (option) set the enviornment variable CODECOV_TOKEN=:uuid. (1) -t
                       uuid.

  -u, --url            Set the target url for Enterprise customers. (option) Set environment variable
                       CODECOV_URL=https://my-hosted-codecov.com.

  -v, --verbose        Verbose mode.

  --help               Display this help screen.

  --version            Display version information.

0

Expected

I expect the tool to return a non-zero status code, to indicate failure.

Report uploads fails on certain branches and/or job IDs

We are uploading coverage reports in our AppVeyor build (via Cake.Codecov) which works fine for the develop branch, but fails when it's building feature branches.

Working AppVeyor build on develop branch: https://ci.appveyor.com/project/Corale/colore/build/6.0.0-unstable.231.build.137

Broken AppVeyor build on feature/upgrade-dotnet-sdk branch: https://ci.appveyor.com/project/Corale/colore/build/6.0.0-upgrade-dotnet-sdk.1+230.build.136

The only difference between the two is the branch and version being generated, the two CodeCov URLs are:

Working: https://codecov.io/upload/v4?branch=develop&commit=c452ba71592bf81a23091bc070aae905da01fcd3&build=27iw4u2biyyj72k7&tag=&pr=&name=&flags=&slug=chroma-sdk%2FColore&token=&package=exe-1.0.3&build_url=&yaml=.codecov.yml&job=Corale%2Fcolore%2F6.0.0-unstable.231.build.137&service=appveyor

Broken: https://codecov.io/upload/v4?branch=feature%2Fupgrade-dotnet-sdk&commit=33a280c35f7c9256b15495f517438acf617bcbc5&build=ses9x3442e84l6td&tag=&pr=&name=&flags=&slug=chroma-sdk%2FColore&token=&package=exe-1.0.3&build_url=&yaml=.codecov.yml&job=Corale%2Fcolore%2F6.0.0-upgrade-dotnet-sdk.1%2B230.build.136&service=appveyor

As you can see, the branch name is escaped properly, so this is not related to #32.

The only thing I can think of is that the Codecov service doesn't like the escaped '+' sign in the job ID (%2B)? Slashes (%2F) appear to be fine as they are present in the working build as well.

azure pipeline is broken

In the change introduced by @onovotny, for the POST url you are sending

&service=azurepipelines

This value is not supported by the codecov api and causes a 400 status code error.

As mentioned in https://docs.codecov.io/reference#upload it's not part of the listed supported pipelines.

[
  "travis",
  "buildbot",
  "circleci",
  "buddybuild",
  "solano",
  "teamcity",
  "appveyor",
  "wercker",
  "magnum",
  "shippable",
  "codeship",
  "drone.io",
  "jenkins",
  "semaphore",
  "gitlab",
  "bamboo",
  "snap",
  "buildkite",
  "bitrise",
  "greenhouse",
  "custom"
]

We should probably change to custom until there is support for the azure pipelines?

Jenkins CI Detection

I'm using Codecov exe v1.0.3 with Jenkins and Github, and it doesn't seem like it picks up Jenkins as a CI Provider.

Is this accurate/expected?

Failed to upload the report

2018-08-12 00:09:00 WRN No CI detected.
2018-08-12 00:09:01 WRN No VCS detected.
2018-08-12 00:09:01 INF Project root: D:\GitHub\RaboOmniKassaApi.Net\trunk\src
2018-08-12 00:09:01 INF Yaml not found, that's ok! Learn more at http://docs.codecov.io/docs/codecov-yaml
2018-08-12 00:09:01 INF Reading reports.
2018-08-12 00:09:01 INF coverage.xml
2018-08-12 00:09:01 INF Uploading Reports.
2018-08-12 00:09:03 INF url: https://codecov.io
2018-08-12 00:09:04 INF query: https://codecov.io/upload/v4?branch=&commit=&build=&tag=&pr=&name=&flags=&slug=&package=exe-1.0.5&build_url=&yaml=&job=&service=
2018-08-12 00:09:04 INF Pinging Codecov
2018-08-12 00:09:08 FTL Failed to upload the report.
at Codecov.Upload.Uploads.Uploader() in D:\Docs\git\contributing\codecov-exe\Source\Codecov\Upload\Uploads.cs:line 34
at Codecov.Program.UploadFacade.Uploader() in D:\Docs\git\contributing\codecov-exe\Source\Codecov\Program\UploadFacade.cs:line 119
at Codecov.Program.Run.Runner(IEnumerable`1 args) in D:\Docs\git\contributing\codecov-exe\Source\Codecov\Program\Run.cs:line 20

Unit tests is windows specific

To be able to start supporting other platforms than windows, we need to update the unit tests to not be expecting Windows only paths (and other things being OS specific)

AppVeyor CI Service check should do case-insensitive comparison

While currently the dotnet tool version of codecov can run on unix platforms, because the appveyor checks currently implemented is doing a case-sensitive check on the necessary environment variables it does not correctly detect the linux images provided on appveyor.

404 Not Found when external PR built on AppVeyor due to incorrect documentation

AppVeyor build here: https://ci.appveyor.com/project/chroma-sdk/colore/builds/25970637

Example of working (internal) build with the same config here: https://ci.appveyor.com/project/chroma-sdk/colore/builds/25970154

When building PRs that aren't made within the same repo, the Codecov step on AppVeyor fails with a 404 Not Found error.

The PR in question: chroma-sdk/Colore#267

Relevant error output:

========================================
Codecov
========================================
Running Codecov tool with version 6.1.0-PullRequest0267.524.build.171-ubsecsfk on OpenCover result
              _____          _
             / ____|        | |
            | |     ___   __| | ___  ___ _____   __
            | |    / _ \ / _  |/ _ \/ __/ _ \ \ / /
            | |___| (_) | (_| |  __/ (_| (_) \ V /
             \_____\___/ \____|\___|\___\___/ \_/
                                         exe-1.5.0
            
2019-07-14 19:51:44 INF AppVeyor detected.
2019-07-14 19:51:44 INF Git detected.
2019-07-14 19:51:44 INF Project root: C:\projects\colore
2019-07-14 19:51:45 INF Reading reports.
2019-07-14 19:51:45 INF ./artifacts/opencover-results.xml
2019-07-14 19:51:45 INF Uploading Reports.
2019-07-14 19:51:45 INF url: https://codecov.io
2019-07-14 19:51:45 VRB api endpoint: https://codecov.io/upload/v4?branch=pull/267/merge&commit=e7d854d241eca7d5c2fc23ec2f2d494b0147bf37&build=0y1pu3hapat6x69e&tag=&pr=267&name=&flags=&slug=chroma-sdk%2FColore&token=&package=exe-1.5.0&build_url=&yaml=.codecov.yml&job=chroma-sdk%2Fcolore%2F6.1.0-PullRequest0267.524.build.171-ubsecsfk&service=appveyor
2019-07-14 19:51:45 INF query: https://codecov.io/upload/v4?branch=pull/267/merge&commit=e7d854d241eca7d5c2fc23ec2f2d494b0147bf37&build=0y1pu3hapat6x69e&tag=&pr=267&name=&flags=&slug=chroma-sdk%2FColore&token=&package=exe-1.5.0&build_url=&yaml=.codecov.yml&job=chroma-sdk%2Fcolore%2F6.1.0-PullRequest0267.524.build.171-ubsecsfk&service=appveyor
2019-07-14 19:51:45 INF Pinging Codecov
2019-07-14 19:51:45 VRB Trying to upload using HttpWebRequest.
2019-07-14 19:51:46 VRB One or more errors occurred. (The remote server returned an error: (404) Not Found.)
   at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)
   at Codecov.Upload.HttpWebRequest.Post() in C:\projects\codecov-exe\Source\Codecov\Upload\HttpWebRequest.cs:line 32
   at Codecov.Upload.Upload.Uploader() in C:\projects\codecov-exe\Source\Codecov\Upload\Upload.cs:line 28
2019-07-14 19:51:46 VRB Uploader failed.
2019-07-14 19:51:46 VRB Trying to upload using WebClient.
2019-07-14 19:51:46 VRB The remote server returned an error: (404) Not Found.
   at System.Net.HttpWebRequest.GetResponse()
   at System.Net.WebClient.GetWebResponse(WebRequest request)
   at System.Net.WebClient.DownloadBits(WebRequest request, Stream writeStream)
   at System.Net.WebClient.UploadBits(WebRequest request, Stream readStream, Byte[] buffer, Int32 chunkSize, Byte[] header, Byte[] footer)
   at System.Net.WebClient.UploadDataInternal(Uri address, String method, Byte[] data, WebRequest& request)
   at System.Net.WebClient.UploadString(Uri address, String method, String data)
   at Codecov.Upload.WebClient.Post() in C:\projects\codecov-exe\Source\Codecov\Upload\WebClient.cs:line 26
   at Codecov.Upload.Upload.Uploader() in C:\projects\codecov-exe\Source\Codecov\Upload\Upload.cs:line 28
2019-07-14 19:51:46 VRB Uploader failed.
2019-07-14 19:51:46 FTL Failed to upload the report.
   at Codecov.Upload.Uploads.Uploader() in C:\projects\codecov-exe\Source\Codecov\Upload\Uploads.cs:line 35
   at Codecov.Program.UploadFacade.Uploader() in C:\projects\codecov-exe\Source\Codecov\Program\UploadFacade.cs:line 121
   at Codecov.Program.Run.Uploader() in C:\projects\codecov-exe\Source\Codecov\Program\Run.cs:line 51
   at Codecov.Program.Run.Runner(IEnumerable`1 args) in C:\projects\codecov-exe\Source\Codecov\Program\Run.cs:line 19

Slug generation is incorrect when using username and password in url.

Hi,

When I try to upload my report I get the following error:

2019-07-22 08:20:59 INF Pinging Codecov
2019-07-22 08:21:02 WRN Unable to ping Codecov. Server returned: (BadRequest) Bad Request
2019-07-22 08:21:02 VRB Failed to ping codecov.
2019-07-22 08:21:02 VRB Uploader failed.
2019-07-22 08:21:02 INF Uploading to Codecov
2019-07-22 08:21:11 WRN Failed to upload the report with CodecovFallbackUploader.
2019-07-22 08:21:11 VRB Uploader failed.
2019-07-22 08:21:12 FTL Failed to upload the report.
   at Codecov.Upload.Uploads.Uploader() in /home/appveyor/projects/codecov-exe/Source/Codecov/Upload/Uploads.cs:line 34
   at Codecov.Program.UploadFacade.Uploader() in /home/appveyor/projects/codecov-exe/Source/Codecov/Program/UploadFacade.cs:line 120
   at Codecov.Program.Run.Uploader() in /home/appveyor/projects/codecov-exe/Source/Codecov/Program/Run.cs:line 67
   at Codecov.Program.Run.Runner(IEnumerable`1 args) in /home/appveyor/projects/codecov-exe/Source/Codecov/Program/Run.cs:line 20

Can you please helpe me so I can upload my reports to codecov.io?

Kind regrads,
Akram.

TeamCity build - Failed to upload the report

The command I am using is codecov -f "C:\TeamCity\buildAgent\work\de2c4e6ef697cb99\test_coverage.xml" -t %CodeCovToken%

[11:14:46]	2019-07-05 16:14:46 INF TeamCity detected.
[11:14:46]	2019-07-05 16:14:46 INF Git detected.
[11:14:46]	2019-07-05 16:14:46 INF Project root: C:\TeamCity\buildAgent\work\de2c4e6ef697cb99
[11:14:47]	2019-07-05 16:14:47 INF Yaml not found, that's ok! Learn more at http://docs.codecov.io/docs/codecov-yaml
[11:14:47]	2019-07-05 16:14:47 INF Reading reports.
[11:14:48]	2019-07-05 16:14:48 INF C:\TeamCity\buildAgent\work\de2c4e6ef697cb99\test_coverage.xml
[11:14:48]	2019-07-05 16:14:48 INF Uploading Reports.
[11:14:48]	2019-07-05 16:14:48 INF url: https://codecov.io
[11:14:49]	2019-07-05 16:14:49 INF query: https://codecov.io/upload/v4?branch=refs/pull/577/merge&commit=f9e4ee732960f6c3786c1a2645de6f09596748b8&build=7173&tag=&pr=&name=&flags=&slug=my%2Frepo&package=exe-1.5.0&build_url=https%3A%2F%2Fmyserver.com%2FviewLog.html%3FbuildId%3D7173&yaml=&job=&service=teamcity
[11:14:49]	2019-07-05 16:14:49 INF Pinging Codecov
[11:15:05]	2019-07-05 16:15:05 FTL Failed to upload the report.
[11:15:05]	   at Codecov.Upload.Uploads.Uploader() in C:\projects\codecov-exe\Source\Codecov\Upload\Uploads.cs:line 35
[11:15:05]	   at Codecov.Program.UploadFacade.Uploader() in C:\projects\codecov-exe\Source\Codecov\Program\UploadFacade.cs:line 121
[11:15:05]	   at Codecov.Program.Run.Uploader() in C:\projects\codecov-exe\Source\Codecov\Program\Run.cs:line 51
[11:15:05]	   at Codecov.Program.Run.Runner(IEnumerable`1 args) in C:\projects\codecov-exe\Source\Codecov\Program\Run.cs:line 19
[11:15:06]	Process exited with code 0

Package content?

The NuGet package has around 20MB and to me it seems it contains a lot of unnecessary files. Or is there any reason why you're shipping mscorlib.dll and stuff like that?!

Prevent download progress output?

Is it possible to prevent displaying the download progress? A majority of my build log looks like this.

Progress: Downloading codecov 1.5.0... 73%
Progress: Downloading codecov 1.5.0... 73%
...

Add support for Travis CI

Now that we finally have support for linux and os x (through Codecov.Tool and pre-compiled archives), we can start thinking about supporting non-windows ci builds.

Uploader failed

When I try to upload the report with the version 1.7.0 using the command:

codecov.exe --required --verbose --root "D:\dev\Wexflow\src" -f "Wexflow_coverage.xml" --token myToken -n Wexflow

I get the following error;

              _____          _
             / ____|        | |
            | |     ___   __| | ___  ___ _____   __
            | |    / _ \ / _  |/ _ \/ __/ _ \ \ / /
            | |___| (_) | (_| |  __/ (_| (_) \ V /
             \_____\___/ \____|\___|\___\___/ \_/
                                         exe-1.7.0

2019-07-28 10:43:33 WRN No CI detected.
2019-07-28 10:43:34 INF Git detected.
2019-07-28 10:43:34 INF Project root: D:\dev\Wexflow\src
2019-07-28 10:43:35 INF Yaml not found, that's ok! Learn more at http://docs.codecov.io/docs/codecov-yaml
2019-07-28 10:43:35 INF Reading reports.
2019-07-28 10:43:35 INF Wexflow_coverage.xml
2019-07-28 10:43:35 INF Uploading Reports.
2019-07-28 10:43:37 INF url: https://codecov.io
2019-07-28 10:43:38 VRB api endpoint: https://codecov.io/upload/v4?branch=master&commit=e917efe4a437ecd7365be32c3c20884272cf12ad&build=&tag=&pr=&name=Wexflow&flags=&slug=aelassas%2FWexflow&token=myToken&package=exe-1.7.0&build_url=&yaml=&job=&service=
2019-07-28 10:43:39 INF query: https://codecov.io/upload/v4?branch=master&commit=e917efe4a437ecd7365be32c3c20884272cf12ad&build=&tag=&pr=&name=Wexflow&flags=&slug=aelassas%2FWexflow&package=exe-1.7.0&build_url=&yaml=&job=&service=
2019-07-28 10:43:40 VRB Trying to upload using HttpClient
2019-07-28 10:43:40 INF Pinging Codecov
2019-07-28 10:43:42 INF Uploading
2019-07-28 10:44:03 VRB One or more errors occurred. (Error while copying content to a stream.)
   at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)
   at Codecov.Upload.CodecovUploader.CreateResponse(HttpRequestMessage request) in /home/appveyor/projects/codecov-exe/Source/Codecov/Upload/CodecovUploader.cs:line 56
   at Codecov.Upload.CodecovUploader.Put(Uri url) in /home/appveyor/projects/codecov-exe/Source/Codecov/Upload/CodecovUploader.cs:line 94
   at Codecov.Upload.Upload.Uploader() in /home/appveyor/projects/codecov-exe/Source/Codecov/Upload/Upload.cs:line 36
2019-07-28 10:44:03 VRB Uploader failed.
2019-07-28 10:44:03 INF Uploading to Codecov
2019-07-28 10:45:43 VRB One or more errors occurred. (A task was canceled.)
   at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)
   at Codecov.Upload.CodecovUploader.CreateResponse(HttpRequestMessage request) in /home/appveyor/projects/codecov-exe/Source/Codecov/Upload/CodecovUploader.cs:line 56
   at Codecov.Upload.CodecovFallbackUploader.Put(Uri url) in /home/appveyor/projects/codecov-exe/Source/Codecov/Upload/CodecovFallbackUploader.cs:line 37
   at Codecov.Upload.Upload.Uploader() in /home/appveyor/projects/codecov-exe/Source/Codecov/Upload/Upload.cs:line 36
2019-07-28 10:45:43 VRB Uploader failed.
2019-07-28 10:45:43 FTL Failed to upload the report.
   at Codecov.Upload.Uploads.Uploader() in /home/appveyor/projects/codecov-exe/Source/Codecov/Upload/Uploads.cs:line 34
   at Codecov.Program.UploadFacade.Uploader() in /home/appveyor/projects/codecov-exe/Source/Codecov/Program/UploadFacade.cs:line 120
   at Codecov.Program.Run.Uploader() in /home/appveyor/projects/codecov-exe/Source/Codecov/Program/Run.cs:line 67
   at Codecov.Program.Run.Runner(IEnumerable`1 args) in /home/appveyor/projects/codecov-exe/Source/Codecov/Program/Run.cs:line 20

But when I try to upload using --slug:

codecov.exe --required --slug aelassas/Wexflow --verbose --root "D:\dev\Wexflow\src" -f "Wexflow_coverage.xml" --token myToken -n Wexflow

It succeeds after an error:

              _____          _
             / ____|        | |
            | |     ___   __| | ___  ___ _____   __
            | |    / _ \ / _  |/ _ \/ __/ _ \ \ / /
            | |___| (_) | (_| |  __/ (_| (_) \ V /
             \_____\___/ \____|\___|\___\___/ \_/
                                         exe-1.7.0

2019-07-28 10:45:57 WRN No CI detected.
2019-07-28 10:45:57 INF Git detected.
2019-07-28 10:45:57 INF Project root: D:\dev\Wexflow\src
2019-07-28 10:45:57 INF Yaml not found, that's ok! Learn more at http://docs.codecov.io/docs/codecov-yaml
2019-07-28 10:45:57 INF Reading reports.
2019-07-28 10:45:57 INF Wexflow_coverage.xml
2019-07-28 10:45:57 INF Uploading Reports.
2019-07-28 10:45:58 INF url: https://codecov.io
2019-07-28 10:45:59 VRB api endpoint: https://codecov.io/upload/v4?branch=master&commit=e917efe4a437ecd7365be32c3c20884272cf12ad&build=&tag=&pr=&name=Wexflow&flags=&slug=aelassas%2FWexflow&token=myToken&package=exe-1.7.0&build_url=&yaml=&job=&service=
2019-07-28 10:45:59 INF query: https://codecov.io/upload/v4?branch=master&commit=e917efe4a437ecd7365be32c3c20884272cf12ad&build=&tag=&pr=&name=Wexflow&flags=&slug=aelassas%2FWexflow&package=exe-1.7.0&build_url=&yaml=&job=&service=
2019-07-28 10:46:00 VRB Trying to upload using HttpClient
2019-07-28 10:46:00 INF Pinging Codecov
2019-07-28 10:46:01 INF Uploading
2019-07-28 10:46:30 VRB One or more errors occurred. (Error while copying content to a stream.)
   at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)
   at Codecov.Upload.CodecovUploader.CreateResponse(HttpRequestMessage request) in /home/appveyor/projects/codecov-exe/Source/Codecov/Upload/CodecovUploader.cs:line 56
   at Codecov.Upload.CodecovUploader.Put(Uri url) in /home/appveyor/projects/codecov-exe/Source/Codecov/Upload/CodecovUploader.cs:line 94
   at Codecov.Upload.Upload.Uploader() in /home/appveyor/projects/codecov-exe/Source/Codecov/Upload/Upload.cs:line 36
2019-07-28 10:46:30 VRB Uploader failed.
2019-07-28 10:46:30 INF Uploading to Codecov
2019-07-28 10:47:24 INF View reports at: https://codecov.io/github/aelassas/Wexflow/commit/e917efe4a437ecd7365be32c3c20884272cf12ad
2019-07-28 10:47:24 VRB response: https://codecov.io/upload/v2?branch=master&commit=e917efe4a437ecd7365be32c3c20884272cf12ad&build=&tag=&pr=&name=Wexflow&flags=&slug=aelassas%2FWexflow&token=70fc9dbc-b291-4fd9-8991-0b2316cff8d7&package=exe-1.7.0&build_url=&yaml=&job=&service=

I'm using codecov.exe version 1.7.0 on windows 10 x64 from cmd.

Resolve VCS info through command parameters?

Hi Hi!

Not sure if we're a unique case or not, but here's where we stand: we have a multi step build process where we run a full analysis separate from the unit test suite. This is the point where the codecov upload needs to happen, but we're not connected to Git at this point, it's all from packaged nuget files.

I have the following PS command in my psake scripts:

		Write-Host "Uploading to codecov"

		(New-Object System.Net.WebClient).DownloadFile("https://github.com/codecov/codecov-exe/releases/download/0.2.0-beta/codecov.exe", "$codecovLocation")
		$command = "cmd.exe /C BuildOutput\codecov.exe -f `"BuildOutput\coverage.xml`" -t `"<repo-token>`" -b `"$branch`" -b $env:BUILD_NUMBER"
		Invoke-Expression -Command:$command  |Out-File "$coverageLocation\pushcoverage.log" -Append
	

In teamcity we get the following error:


[21:51:56][Step 1/4] fatal: Not a git repository (or any of the parent directories): .git
[21:51:56][Step 1/4] fatal: Cannot change to 'rev-parse': No such file or directory
[21:51:56][Step 1/4] fatal: Not a git repository (or any of the parent directories): .git
[21:51:56][Step 1/4] fatal: Cannot change to 'rev-parse': No such file or directory
[21:51:56][Step 1/4] fatal: Not a git repository (or any of the parent directories): .git
[21:51:56][Step 1/4] fatal: Cannot change to 'config': No such file or directory
[21:51:56][Step 1/4] fatal: Not a git repository (or any of the parent directories): .git
[21:51:56][Step 1/4] fatal: Not a git repository (or any of the parent directories): .git
[21:51:57][Step 1/4] fatal: Cannot change to 'ls-tree': No such file or directory

Locally the upload works great - any ideas on how to work around this? Also, it looks like when we try to execute codecov.exe directly from powershell, it hangs on the build servers, hence the wrap around the execution with a call to command

Thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.