codecov / codecov-exe Goto Github PK
View Code? Open in Web Editor NEW.exe report uploader for Codecov https://codecov.io
License: MIT License
.exe report uploader for Codecov https://codecov.io
License: MIT License
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
.
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.
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:
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
Can you make a dotnet global tool from codecov ?
So that it can be easily used in e.g. Azure Pipelines?
Like
dotnet tool install --global dotnet-codecov
or
dotnet tool install --global codecov
See also this list from all supported tools until now:
https://github.com/natemcmaster/dotnet-tools
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,
For enterprise customers there are cases when v4 endpoint is not available. Please add the v2 endpoint as a backup for 405 errors to v4.
Directions are here: https://github.com/codecov/codecov-bash/blob/master/codecov#L1524-L1538
Thanks!
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
When the user specifies a specific file or files and they don't exist, codecov should warn the user when this happens.
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
Just came across warp, and it looks like it does what I have wanted to do for quite some time now.
Reminder for myself to look into making use of this utility to provide native binaries for supported platforms.
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(IEnumerable
1 args) in C:\projects\codecov-exe\Source\Codecov\Program\Run.cs:line 19
`
It will be very helpful to add glob pattern support to -f parameter
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.
👋 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..
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
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.
private readonly Lazy<string> _slug = new Lazy<string>(() => EnviornmentVariable.GetEnviornmentVariable("APPVEYOR_REPO_NAME"));
should this not be APPVEYOR_PROJECT_SLUG
?
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```
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(IEnumerable
1 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(IEnumerable
1 args) in C:\Users\Administrator\github\codecov-exe\Source\Codecov\Program\Run.cs:line 20
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.
👋
Hi there, thanks for the codecov tool!
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:
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
I expect the tool to return a non-zero status code, to indicate failure.
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.
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?
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?
Currently there are some difference between codecov-exe and codecov-bash when it comes to the arguments accepted for the commandline.
The accepted arguments should be updated to be similiar for where we can.
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
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)
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.
When calling codecov-exe and the -required
argument have been used, the program returns an error code of 1 even if the upload actually succeeded.
This looks like it occurs because of the following line in the Run.cs
file:
codecov-exe/Source/Codecov/Program/Run.cs
Line 20 in 31f9a9b
I'm willing to open a PR if interested
/cc @stevepeak @larzw
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
The intention of including the osx and linux binaries is to have them resolved with cake, not being consumed directly.
As such, this change will not be considered a breaking change, but rather a bug.
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.
If the repoRoot contains spaces in the file path, then running a git command fails.
The tool does not currently automatically detect the build server variables from Azure Pipelines.
The variables are all documented here:
https://docs.microsoft.com/en-us/azure/devops/pipelines/build/variables?view=azure-devops&tabs=yaml
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
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?!
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%
...
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.
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.
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!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.