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
PRs on GitHub - typescript-eslint/typescript-eslint: Monorepo for all the tooling which enables ESLint to support TypeScript consistently have incorrect amounts of coverage reported. We often have reports like ādecrease coverage by 2.81%
ā for PR sthat change only package.json
& yarn.lock
, for example.
CI/CD URL
Codecov Output
Please provide the full output of running the uploader on your CI/CD. This will typically have the Codecov logo as ASCII.
==> linux OS detected
https://uploader.codecov.io/latest/linux/codecov.SHA256SUM
==> SHASUM file signed by key id 806bb28aed779869
==> Uploader SHASUM verified (20f9c9d78483fce977b6cc39e231a734a23bcd36f4d536bb7355222fb88d02bc codecov)
==> Running version latest
==> Running version v0.3.2
/home/runner/work/_actions/codecov/codecov-action/v3/dist/codecov -n codecov -Q github-action-3.1.1 -f coverage/**/lcov.info -F unittest -C ea0da9ec92e74b960bf769d82d2e85733d1fd5dd
[2022-10-02T09:05:22.578Z] ['info']
_____ _
/ ____| | |
| | ___ __| | ___ ___ _____ __
| | / _ \ / _` |/ _ \/ __/ _ \ \ / /
| |___| (_) | (_| | __/ (_| (_) \ V /
\_____\___/ \__,_|\___|\___\___/ \_/
Codecov report uploader 0.3.2
[2022-10-02T09:05:22.588Z] ['info'] => Project root located at: /home/runner/work/typescript-eslint/typescript-eslint
[2022-10-02T09:05:22.592Z] ['info'] -> No token specified or token is empty
[2022-10-02T09:05:22.604Z] ['info'] Searching for coverage files...
[2022-10-02T09:05:22.886Z] ['info'] Warning: Some files passed via the -f flag would normally be excluded from search.
[2022-10-02T09:05:22.886Z] ['info'] If Codecov encounters issues processing your reports, please review https://docs.codecov.com/docs/supported-report-formats
[2022-10-02T09:05:22.886Z] ['info'] => Found 9 possible coverage files:
coverage/eslint-plugin-coverage/lcov.info
coverage/eslint-plugin-internal-coverage/lcov.info
coverage/eslint-plugin-tslint-coverage/lcov.info
coverage/parser-coverage/lcov.info
coverage/scope-manager-coverage/lcov.info
coverage/type-utils-coverage/lcov.info
coverage/typescript-estree-coverage/lcov.info
coverage/utils-coverage/lcov.info
coverage/visitor-keys-coverage/lcov.info
[2022-10-02T09:05:22.887Z] ['info'] Processing /home/runner/work/typescript-eslint/typescript-eslint/coverage/eslint-plugin-coverage/lcov.info...
[2022-10-02T09:05:22.889Z] ['info'] Processing /home/runner/work/typescript-eslint/typescript-eslint/coverage/eslint-plugin-internal-coverage/lcov.info...
[2022-10-02T09:05:22.890Z] ['info'] Processing /home/runner/work/typescript-eslint/typescript-eslint/coverage/eslint-plugin-tslint-coverage/lcov.info...
[2022-10-02T09:05:22.891Z] ['info'] Processing /home/runner/work/typescript-eslint/typescript-eslint/coverage/parser-coverage/lcov.info...
[2022-10-02T09:05:22.891Z] ['info'] Processing /home/runner/work/typescript-eslint/typescript-eslint/coverage/scope-manager-coverage/lcov.info...
[2022-10-02T09:05:22.892Z] ['info'] Processing /home/runner/work/typescript-eslint/typescript-eslint/coverage/type-utils-coverage/lcov.info...
[2022-10-02T09:05:22.892Z] ['info'] Processing /home/runner/work/typescript-eslint/typescript-eslint/coverage/typescript-estree-coverage/lcov.info...
[2022-10-02T09:05:22.893Z] ['info'] Processing /home/runner/work/typescript-eslint/typescript-eslint/coverage/utils-coverage/lcov.info...
[2022-10-02T09:05:22.894Z] ['info'] Processing /home/runner/work/typescript-eslint/typescript-eslint/coverage/visitor-keys-coverage/lcov.info...
[2022-10-02T09:05:22.927Z] ['info'] Detected GitHub Actions as the CI provider.
[2022-10-02T09:05:22.929Z] ['info'] Pinging Codecov: https://codecov.io/upload/v4?package=github-action-3.1.1-uploader-0.3.2&token=*******&branch=member-ordering-natural-order&build=3167939340&build_url=https%3A%2F%2Fgithub.com%2Ftypescript-eslint%2Ftypescript-eslint%2Factions%2Fruns%2F3167939340&commit=ea0da9ec92e74b960bf769d82d2e85733d1fd5dd&job=CI&pr=5662&service=github-actions&slug=typescript-eslint%2Ftypescript-eslint&name=codecov&tag=&flags=unittest&parent=
[2022-10-02T09:05:23.496Z] ['info'] https://app.codecov.io/github/typescript-eslint/typescript-eslint/commit/ea0da9ec92e74b960bf769d82d2e85733d1fd5dd
https://storage.googleapis.com/codecov/v4/raw/2022-10-02/FB67E67CBA915F6C68E09A5DD9FD2D70/ea0da9ec92e74b960bf769d82d2e85733d1fd5dd/f0d34772-f43a-421b-a887-244f936d5d03.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=GOOG1EJOGFN2JQ4OCTGA2MU5AEIT7OT5Z7HTFOAN2SPG4NWSN2UJYOY5U6LZQ%2F20221002%2FUS%2Fs3%2Faws4_request&X-Amz-Date=20221002T090523Z&X-Amz-Expires=10&X-Amz-SignedHeaders=host&X-Amz-Signature=113055635430db28f33d635ccee62c1502e62e9a5352002391f2e608e05985ab
[2022-10-02T09:05:23.498Z] ['info'] Uploading...
[2022-10-02T09:05:23.724Z] ['info'] {"status":"success","resultURL":"https://app.codecov.io/github/typescript-eslint/typescript-eslint/commit/ea0da9ec92e74b960bf769d82d2e85733d1fd5dd"}
Expected Results
Coverage numbers should be accurate to each PR.
Actual Results
They are not.
Additional Information
Sent here from Twitter thanks to the friendly Tom Hu : https://twitter.com/thomasrockhu/status/1577417093472985089
the tl;dr is that it seems like the base commit is not uploading ācoverage/eslint-plugin-internal-coverage/lcov.infoā, while the head of the PR does.
Out of curiosity, how did you determine this? Experience from Codecov, or is there some log, or�