Description
For our repo, we have codecov setup with coverage looking at setup.cfg. If you go to codecov (here: Code coverage done right.), you’ll see that the files are not in a folder structure. Finally, if you try to click on a file, you’ll get a 404.
However, the correct coverage results are there (i.e. the percentages), just the layout and being able to see the files aren’t.
Commit SHAs
SHA: 178f1a0f6c6da4ca8cb923beae358b36ed0c9937
Link: https://codecov.io/gh/aio-libs/aioredis-py/commit/178f1a0f6c6da4ca8cb923beae358b36ed0c9937
Repository
CI/CD or Build URL
GitHub actions: Fix codecov paths (#956) · aio-libs/aioredis-py@178f1a0 · GitHub
Uploader
Python + GitHub actions. Permalink to specific CI portion of upload: aioredis-py/ci.yml at 178f1a0f6c6da4ca8cb923beae358b36ed0c9937 · aio-libs/aioredis-py · GitHub
Codecov Output
/usr/bin/bash codecov.sh -n -F unit -Q github-action -e OS -f ./coverage.xml
14
15
_____ _
16
/ ____| | |
17
| | ___ __| | ___ ___ _____ __
18
| | / _ \ / _` |/ _ \/ __/ _ \ \ / /
19
| |___| (_) | (_| | __/ (_| (_) \ V /
20
\_____\___/ \__,_|\___|\___\___/ \_/
21
Bash-1.0.2
22
23
24
==> git version 2.31.1 found
25
==> curl 7.68.0 (x86_64-pc-linux-gnu) libcurl/7.68.0 OpenSSL/1.1.1f zlib/1.2.11 brotli/1.0.7 libidn2/2.2.0 libpsl/0.21.0 (+libidn2/2.2.0) libssh/0.9.3/openssl/zlib nghttp2/1.40.0 librtmp/2.3
26
Release-Date: 2020-01-08
27
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtmp rtsp scp sftp smb smbs smtp smtps telnet tftp
28
Features: AsynchDNS brotli GSS-API HTTP2 HTTPS-proxy IDN IPv6 Kerberos Largefile libz NTLM NTLM_WB PSL SPNEGO SSL TLS-SRP UnixSockets
29
==> GitHub Actions detected.
30
Env vars used:
31
-> GITHUB_ACTIONS: true
32
-> GITHUB_HEAD_REF:
33
-> GITHUB_REF: refs/heads/master
34
-> GITHUB_REPOSITORY: aio-libs/aioredis-py
35
-> GITHUB_RUN_ID: 791064011
36
-> GITHUB_SHA: 178f1a0f6c6da4ca8cb923beae358b36ed0c9937
37
-> GITHUB_WORKFLOW: CI
38
project root: .
39
Yaml found at: codecov.yml
40
-> Found 1 reports
41
==> Detecting git/mercurial file structure
42
==> Appending build variables
43
+ OS
44
==> Reading reports
45
+ ./coverage.xml bytes=284535
46
==> Appending adjustments
47
https://docs.codecov.io/docs/fixing-reports
48
-> No adjustments found
49
==> Gzipping contents
50
24K /tmp/codecov.rwIMCJ.gz
51
==> Uploading reports
52
url: https://codecov.io
53
query: branch=master&commit=178f1a0f6c6da4ca8cb923beae358b36ed0c9937&build=791064011&build_url=http%3A%2F%2Fgithub.com%2Faio-libs%2Faioredis-py%2Factions%2Fruns%2F791064011&name=&tag=&slug=aio-libs%2Faioredis-py&service=github-actions&flags=unit&pr=&job=CI&cmd_args=n,F,Q,e,f
54
-> Pinging Codecov
55
https://codecov.io/upload/v4?package=github-action-1.0.2&token=secret&branch=master&commit=178f1a0f6c6da4ca8cb923beae358b36ed0c9937&build=791064011&build_url=http%3A%2F%2Fgithub.com%2Faio-libs%2Faioredis-py%2Factions%2Fruns%2F791064011&name=&tag=&slug=aio-libs%2Faioredis-py&service=github-actions&flags=unit&pr=&job=CI&cmd_args=n,F,Q,e,f
56
-> Uploading to
57
https://storage.googleapis.com/codecov/v4/raw/2021-04-28/A16FA74E2AE1950E287D220C67A6B2A1/178f1a0f6c6da4ca8cb923beae358b36ed0c9937/48f06bed-43fd-45b6-bccc-4b55c5d72e8b.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=GOOG1EQM3VGPYSAFECJRMNAFIPCV2R3P2BOORCJC7NM537NPJQSFLHUDNIDWA%2F20210428%2FUS%2Fs3%2Faws4_request&X-Amz-Date=20210428T013046Z&X-Amz-Expires=10&X-Amz-SignedHeaders=host&X-Amz-Signature=ad6d647d0ccfdf221484168f080146c12c9048692951769be7b3a7a0beca63f1
58
% Total % Received % Xferd Average Speed Time Time Time Current
59
Dload Upload Total Spent Left Speed
60
61
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
62
100 21188 0 0 100 21188 0 84079 --:--:-- --:--:-- --:--:-- 84079
63
-> Reports have been successfully queued for processing at https://codecov.io/github/aio-libs/aioredis-py/commit/178f1a0f6c6da4ca8cb923beae358b36ed0c9937
Expected Results
Be able to see the file on codecov and see the files in a folder structure instead of a flat layout.
Actual Results
Clicking on a file results in a 404. File layout is not in folder structure.
Additional Information
I tried out some different configs. Here’s our latest codecov.yml:
codecov:
disable_default_path_fixes: yes
And our setup.cfg:
[coverage:run]
branch = true
source = aioredis,tests
omit = site-packages