Before submitting a topic, please confirm the following
I have searched for similar issues before creating this topic.
I have verified that my repository is using the Codecov GitHub app, if using GitHub
I have validated my codecov.yaml
configuration file.
I have filled out the below sections to the best of my ability.
Description
Bokeh server is an application that runs other Python scripts. As part of our testing we generate deliberately mal-formed Python files to maintain behaviors under error situations. Codecov is noticing these files and generating many spurious unwanted warnings in our CI logs:
/usr/share/miniconda3/envs/bk-test/lib/python3.11/site-packages/coverage/report.py:87: CoverageWarning: Couldn't parse '/home/runner/work/bokeh/bokeh/build/tmp/tmp1pi1schf.py': No source for code: '/home/runner/work/bokeh/bokeh/build/tmp/tmp1pi1schf.py'. (couldnt-parse)
coverage._warn(msg, slug="couldnt-parse")
I am looking for a way to silence these. I had tried using ignore
(see below) but apparently that is not the correct approach.
CI/CD URL
https://github.com/bokeh/bokeh/actions/runs/3484788160/jobs/5829784730#step:6:362
Codecov Output
Please provide the full output of running the uploader on your CI/CD. This will typically have the Codecov logo as ASCII.
[2022-11-17T02:36:58.118Z] ['verbose'] Start of uploader: 1668652618118...
[2022-11-17T02:36:58.119Z] ['info']
_____ _
/ ____| | |
| | ___ __| | ___ ___ _____ __
| | / _ \ / _` |/ _ \/ __/ _ \ \ / /
| |___| (_) | (_| | __/ (_| (_) \ V /
\_____\___/ \__,_|\___|\___\___/ \_/
Codecov report uploader 0.3.2
[2022-11-17T02:36:58.126Z] ['info'] => Project root located at: /home/runner/work/bokeh/bokeh
[2022-11-17T02:36:58.130Z] ['info'] -> No token specified or token is empty
[2022-11-17T02:36:58.130Z] ['verbose'] Start of network processing...
[2022-11-17T02:36:58.130Z] ['verbose'] Searching for files in /home/runner/work/bokeh/bokeh
[2022-11-17T02:36:58.141Z] ['verbose'] coveragepy is not installed
[2022-11-17T02:36:58.142Z] ['info'] Searching for coverage files...
[2022-11-17T02:36:58.335Z] ['info'] Warning: Some files located via search were excluded from upload.
[2022-11-17T02:36:58.335Z] ['info'] If Codecov did not locate your files, please review https://docs.codecov.com/docs/supported-report-formats
[2022-11-17T02:36:58.335Z] ['verbose'] Preparing to clean the following coverage paths: coverage.xml
[2022-11-17T02:36:58.336Z] ['info'] => Found 1 possible coverage files:
coverage.xml
[2022-11-17T02:36:58.336Z] ['verbose'] End of network processing
[2022-11-17T02:36:58.336Z] ['info'] Processing /home/runner/work/bokeh/bokeh/coverage.xml...
[2022-11-17T02:36:58.356Z] ['info'] Detected GitHub Actions as the CI provider.
[2022-11-17T02:36:58.356Z] ['verbose'] -> Using the following env variables:
[2022-11-17T02:36:58.356Z] ['verbose'] GITHUB_ACTION: __codecov_codecov-action
[2022-11-17T02:36:58.356Z] ['verbose'] GITHUB_HEAD_REF: bv/forward-ports-3.0.2
[2022-11-17T02:36:58.356Z] ['verbose'] GITHUB_REF: refs/pull/12621/merge
[2022-11-17T02:36:58.356Z] ['verbose'] GITHUB_REPOSITORY: bokeh/bokeh
[2022-11-17T02:36:58.356Z] ['verbose'] GITHUB_RUN_ID: 3484788160
[2022-11-17T02:36:58.356Z] ['verbose'] GITHUB_SERVER_URL: https://github.com
[2022-11-17T02:36:58.356Z] ['verbose'] GITHUB_SHA: 5bf66980fad3a09cf41d14cc87f7f28b71af088e
[2022-11-17T02:36:58.356Z] ['verbose'] GITHUB_WORKFLOW: Bokeh-CI
[2022-11-17T02:36:58.357Z] ['verbose'] Using the following upload parameters:
[2022-11-17T02:36:58.357Z] ['verbose'] branch
[2022-11-17T02:36:58.357Z] ['verbose'] build
[2022-11-17T02:36:58.357Z] ['verbose'] buildURL
[2022-11-17T02:36:58.357Z] ['verbose'] commit
[2022-11-17T02:36:58.357Z] ['verbose'] job
[2022-11-17T02:36:58.357Z] ['verbose'] pr
[2022-11-17T02:36:58.357Z] ['verbose'] service
[2022-11-17T02:36:58.357Z] ['verbose'] slug
[2022-11-17T02:36:58.357Z] ['verbose'] name
[2022-11-17T02:36:58.357Z] ['verbose'] tag
[2022-11-17T02:36:58.357Z] ['verbose'] flags
[2022-11-17T02:36:58.357Z] ['verbose'] parent
[2022-11-17T02:36:58.358Z] ['info'] Pinging Codecov: https://codecov.io/upload/v4?package=github-action-3.1.1-uploader-0.3.2&token=*******&branch=bv%2Fforward-ports-3.0.2&build=3484788160&build_url=https%3A%2F%2Fgithub.com%2Fbokeh%2Fbokeh%2Factions%2Fruns%2F3484788160&commit=e69ed94c264ce4196d7206f5ea481f9d841db855&job=Bokeh-CI&pr=12621&service=github-actions&slug=bokeh%2Fbokeh&name=&tag=&flags=unit&parent=
[2022-11-17T02:36:58.358Z] ['verbose'] Passed token was 0 characters long
[2022-11-17T02:36:58.358Z] ['verbose'] https://codecov.io/upload/v4?package=github-action-3.1.1-uploader-0.3.2&branch=bv%2Fforward-ports-3.0.2&build=3484788160&build_url=https%3A%2F%2Fgithub.com%2Fbokeh%2Fbokeh%2Factions%2Fruns%2F3484788160&commit=e69ed94c264ce4196d7206f5ea481f9d841db855&job=Bokeh-CI&pr=12621&service=github-actions&slug=bokeh%2Fbokeh&name=&tag=&flags=unit&parent=
Content-Type: 'text/plain'
Content-Encoding: 'gzip'
X-Reduced-Redundancy: 'false'
[2022-11-17T02:36:58.937Z] ['info'] https://app.codecov.io/github/bokeh/bokeh/commit/e69ed94c264ce4196d7206f5ea481f9d841db855
https://storage.googleapis.com/codecov/v4/raw/2022-11-17/806CD61507D87185E53165AE0C925E2D/e69ed94c264ce4196d7206f5ea481f9d841db855/e863dc3f-05b4-47f6-b8fa-460eed13bbe5.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=GOOG1EJOGFN2JQ4OCTGA2MU5AEIT7OT5Z7HTFOAN2SPG4NWSN2UJYOY5U6LZQ%2F20221117%2FUS%2Fs3%2Faws4_request&X-Amz-Date=20221117T023658Z&X-Amz-Expires=10&X-Amz-SignedHeaders=host&X-Amz-Signature=44e697a11e085d48e3428520191537c4624e120e8910facf3a49e83c9f295b47
[2022-11-17T02:36:58.937Z] ['verbose'] Returned upload url: https://storage.googleapis.com/codecov/v4/raw/2022-11-17/806CD61507D87185E53165AE0C925E2D/e69ed94c264ce4196d7206f5ea481f9d841db855/e863dc3f-05b4-47f6-b8fa-460eed13bbe5.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=GOOG1EJOGFN2JQ4OCTGA2MU5AEIT7OT5Z7HTFOAN2SPG4NWSN2UJYOY5U6LZQ%2F20221117%2FUS%2Fs3%2Faws4_request&X-Amz-Date=20221117T023658Z&X-Amz-Expires=10&X-Amz-SignedHeaders=host&X-Amz-Signature=44e697a11e085d48e3428520191537c4624e120e8910facf3a49e83c9f295b47
[2022-11-17T02:36:58.937Z] ['info'] Uploading...
[2022-11-17T02:36:59.133Z] ['info'] {"status":"success","resultURL":"https://app.codecov.io/github/bokeh/bokeh/commit/e69ed94c264ce4196d7206f5ea481f9d841db855"}
[2022-11-17T02:36:59.133Z] ['verbose'] End of uploader: 1015 milliseconds
Expected Results
I tried to slience these warnings by adding ignore
to our codecov.yml
, per these instructions. Following the paths in the warnings, I added the pattern "**/build/tmp/tmp*.py"
. The resulting value in the codecov.io site was
ignore:
- (?s:.*/build/tmp/tmp[^\/]+\.py.*)\Z
I expected (hoped) that ignoring the file would also result in suppressing any warnings about the ignored files.
Actual Results
After adding the ignore
block, the warning messages still persist in CI logs.
Additional Information
Is there a different mechanism to silence or quiet specific warnings? I did not turn up anything.