Closed TaffarelJr closed 3 years ago
.codecov.yml
file looks like this:
codecov:
require_ci_to_pass: yes
coverage:
precision: 2
round: down
range: "90...100"
status:
project:
default:
target: auto
threshold: 5%
flags:
- unit
parsers:
gcov:
branch_detection:
conditional: yes
loop: yes
method: no
macro: no
comment:
layout: "reach,diff,flags,files,footer"
behavior: default
require_changes: no
@TaffarelJr, yeah, that shouldn't be happening. What if you do not include verbose: false
? I'll look into patching this issue, though.
I set verbose: true
and ran again, and compared results in a code compare tool, and they're identical - except for some lines that are in a slightly different order, perhaps due to async. For example, line 10 here (+ getopts ...
) is on line 20 in the excerpt I pasted above:
Run codecov/codecov-action@v1
with:
name: codecov-umbrella
file: ./test/OnionSeed.UnitTests/TestResults/coverage.netcoreapp3.1.cobertura.xml
flags: unit,netcoreapp3.1
fail_ci_if_error: false
verbose: true
"C:\Program Files\Git\bin\bash.exe" codecov.sh -Q github-action -f ./test/OnionSeed.UnitTests/TestResults/coverage.netcoreapp3.1.cobertura.xml -n codecov-umbrella -F unit,netcoreapp3.1 -v
+ curl_s=
+ getopts a:A:b:B:cC:dD:e:f:F:g:G:hJ:k:Kn:p:P:Q:q:r:R:s:S:t:T:u:U:vx:X:ZN:- o
_____ _
/ ____| | |
| | ___ __| | ___ ___ _____ __
| | / _ \ / _` |/ _ \/ __/ _ \ \ / /
| |___| (_) | (_| | __/ (_| (_) \ V /
\_____\___/ \__,_|\___|\___\___/ \_/
Bash-20201217-3d3df35
+ say '
_____ _
/ ____| | |
| | ___ __| | ___ ___ _____ __
| | / _ \ / _` |/ _ \/ __/ _ \ \ / /
| |___| (_) | (_| | __/ (_| (_) \ V /
\_____\___/ \__,_|\___|\___\___/ \_/
Bash-20201217-3d3df35
'
+ echo -e '
_____ _
/ ____| | |
| | ___ __| | ___ ___ _____ __
| | / _ \ / _` |/ _ \/ __/ _ \ \ / /
| |___| (_) | (_| | __/ (_| (_) \ V /
\_____\___/ \__,_|\___|\___\___/ \_/
Bash-20201217-3d3df35
'
++ command -v git
+ '[' -x /mingw64/bin/git ']'
++ git --version
+ say ' git version 2.29.2.windows.3 found'
git version 2.29.2.windows.3 found
+ echo -e ' git version 2.29.2.windows.3 found'
++ command -v curl
+ '[' -x /mingw64/bin/curl ']'
++ curl --version
+ say ' curl 7.73.0 (x86_64-w64-mingw32) libcurl/7.73.0 OpenSSL/1.1.1h (Schannel) zlib/1.2.11 brotli/1.0.9 zstd/1.4.5 libidn2/2.3.0 libssh2/1.9.0 nghttp2/1.41.0
Release-Date: 2020-10-14
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps mqtt pop3 pop3s rtsp scp sftp smb smbs smtp smtps telnet tftp
Features: AsynchDNS brotli HTTP2 HTTPS-proxy IDN IPv6 Kerberos Largefile libz Metalink MultiSSL NTLM SPNEGO SSL SSPI TLS-SRP zstd found'
curl 7.73.0 (x86_64-w64-mingw32) libcurl/7.73.0 OpenSSL/1.1.1h (Schannel) zlib/1.2.11 brotli/1.0.9 zstd/1.4.5 libidn2/2.3.0 libssh2/1.9.0 nghttp2/1.41.0
Release-Date: 2020-10-14
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps mqtt pop3 pop3s rtsp scp sftp smb smbs smtp smtps telnet tftp
Features: AsynchDNS brotli HTTP2 HTTPS-proxy IDN IPv6 Kerberos Largefile libz Metalink MultiSSL NTLM SPNEGO SSL SSPI TLS-SRP zstd found
+ echo -e ' curl 7.73.0 (x86_64-w64-mingw32) libcurl/7.73.0 OpenSSL/1.1.1h (Schannel) zlib/1.2.11 brotli/1.0.9 zstd/1.4.5 libidn2/2.3.0 libssh2/1.9.0 nghttp2/1.41.0
Release-Date: 2020-10-14
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps mqtt pop3 pop3s rtsp scp sftp smb smbs smtp smtps telnet tftp
Features: AsynchDNS brotli HTTP2 HTTPS-proxy IDN IPv6 Kerberos Largefile libz Metalink MultiSSL NTLM SPNEGO SSL SSPI TLS-SRP zstd found'
+ search_in=D:/a/onion-seed/onion-seed
+ '[' '' '!=' '' ']'
+ '[' true = true ']'
+ '[' '' = true ']'
+ '[' '' = true ']'
+ '[' true = true ']'
+ '[' '' = codeship ']'
+ '[' -n '' ']'
+ '[' '' '!=' '' ']'
+ '[' true = true ']'
+ '[' '' = true ']'
+ '[' '' '!=' '' ']'
+ '[' '' '!=' '' ']'
+ '[' true = true ']'
+ '[' '' = true ']'
+ '[' true = true ']'
+ '[' '' = true ']'
+ '[' true = true ']'
+ '[' '' = true ']'
+ '[' true = drone ']'
+ '[' '' = true ']'
+ '[' true = true ']'
+ '[' '' '!=' '' ']'
+ [[ true = \t\r\u\e ]]
+ [[ '' = \t\r\u\e ]]
+ [[ '' = \T\r\u\e ]]
+ '[' true = true ']'
+ '[' '' '!=' '' ']'
+ '[' true = true ']'
+ '[' '' = true ']'
+ '[' '' = true ']'
+ '[' '' = true ']'
+ '[' '' = true ']'
==> GitHub Actions detected.
+ '[' '' '!=' '' ']'
+ '[' true '!=' '' ']'
+ say '\033[0;90m==>\033[0m GitHub Actions detected.'
+ echo -e '\033[0;90m==>\033[0m GitHub Actions detected.'
+ service=github-actions
+ branch=build
+ '[' '' '!=' '' ']'
+ commit=8f4e6c89b35845470157189ef698fdb5cf4c7cd7
+ slug=TaffarelJr/onion-seed
+ build=430828731
++ urlencode http://github.com/TaffarelJr/onion-seed/actions/runs/430828731
++ echo http://github.com/TaffarelJr/onion-seed/actions/runs/430828731
++ curl -Gso /dev/null -w '%{url_effective}' --data-urlencode @- ''
++ cut -c 3-
++ sed -e s/%0A//
+ build_url=http%3A%2F%2Fgithub.com%2FTaffarelJr%2Fonion-seed%2Factions%2Fruns%2F430828731
+ mc=
+ '[' -n '' ']'
+ [[ '' =~ ^[a-z0-9]{40}[[:space:]][a-z0-9]{40}$ ]]
+ say ' \033[0;90mproject root:\033[0m D:/a/onion-seed/onion-seed'
project root: D:/a/onion-seed/onion-seed
+ echo -e ' \033[0;90mproject root:\033[0m D:/a/onion-seed/onion-seed'
+ '[' '' '!=' '' ']'
+ '[' build = '' ']'
+ '[' '' = '' ']'
+ '[' '' '!=' '' ']'
+ '[' 8f4e6c89b35845470157189ef698fdb5cf4c7cd7 = '' ']'
+ '[' '' '!=' '' ']'
+ '[' '' '!=' '' ']'
+ '[' '' '!=' '' ']'
+ '[' TaffarelJr/onion-seed = '' ']'
++ cd D:/a/onion-seed/onion-seed
++ git ls-files '*codecov.yml' '*codecov.yaml'
++ find . -maxdepth 1 -type f -name '*codecov.y*ml'
+ yaml='.codecov.yml
./.codecov.yml'
++ echo '.codecov.yml
./.codecov.yml'
++ head -1
+ yaml=.codecov.yml
+ '[' .codecov.yml '!=' '' ']'
+ say ' \033[0;90mYaml found at:\033[0m .codecov.yml'
+ echo -e ' \033[0;90mYaml found at:\033[0m .codecov.yml'
Yaml found at: .codecov.yml
+ [[ .codecov.yml != /* ]]
+ yaml=D:/a/onion-seed/onion-seed/.codecov.yml
++ parse_yaml D:/a/onion-seed/onion-seed/.codecov.yml
++ local prefix=
...
(and so on)
Because I'm great with reading comprehension, :) I tried again, this time with the verbose
setting left out completely - and it looks like that did the trick:
Run codecov/codecov-action@v1
with:
name: codecov-umbrella
file: ./test/OnionSeed.UnitTests/TestResults/coverage.netcoreapp3.1.cobertura.xml
flags: unit,netcoreapp3.1
fail_ci_if_error: false
"C:\Program Files\Git\bin\bash.exe" codecov.sh -Q github-action -f ./test/OnionSeed.UnitTests/TestResults/coverage.netcoreapp3.1.cobertura.xml -n codecov-umbrella -F unit,netcoreapp3.1
_____ _
/ ____| | |
| | ___ __| | ___ ___ _____ __
| | / _ \ / _` |/ _ \/ __/ _ \ \ / /
| |___| (_) | (_| | __/ (_| (_) \ V /
\_____\___/ \__,_|\___|\___\___/ \_/
Bash-20201217-3d3df35
git version 2.29.2.windows.3 found
curl 7.73.0 (x86_64-w64-mingw32) libcurl/7.73.0 OpenSSL/1.1.1h (Schannel) zlib/1.2.11 brotli/1.0.9 zstd/1.4.5 libidn2/2.3.0 libssh2/1.9.0 nghttp2/1.41.0
Release-Date: 2020-10-14
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps mqtt pop3 pop3s rtsp scp sftp smb smbs smtp smtps telnet tftp
Features: AsynchDNS brotli HTTP2 HTTPS-proxy IDN IPv6 Kerberos Largefile libz Metalink MultiSSL NTLM SPNEGO SSL SSPI TLS-SRP zstd found
==> GitHub Actions detected.
project root: D:/a/onion-seed/onion-seed
Yaml found at: .codecov.yml
-> Found 1 reports
==> Detecting git/mercurial file structure
==> Reading reports
+ ./test/OnionSeed.UnitTests/TestResults/coverage.netcoreapp3.1.cobertura.xml bytes=17437
==> Appending adjustments
https://docs.codecov.io/docs/fixing-reports
-> No adjustments found
==> Gzipping contents
4.0K /tmp/codecov.y91PCm.gz
==> Uploading reports
...
(and so on)
Thanks for confirming @TaffarelJr, it must be a falsey thing. I'll make a change on our end in case this comes up again.
I'm new to GitHub Actions and Codecov, so forgive me if I'm just missing something stupid here. But I'm using what I think is a fairly simple setup - mostly default configuration. It seems to be functioning correctly: uploading reports, and adding comments to my PRs.
However, in the workflow I notice there's a ton of logging going on. It looks like it's echoing every command to the output multiple times, which is a ton of stuff I'd rather not have to sift through. I've set
verbose: false
, so I'm not sure what else could be causing it.Here's a snippet of the beginning of the output, starting with the workflow step definition - maybe you can help me figure out what's going on here?