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.
I understand that the community boards are a free, best-effort tool. While we hope to have someone on the Codecov team resolve your problem quickly, this is not always possible.
Description
Created a new monorepo with packages with Python and Javascript. The Javascript project looks fine but the Python project is missing files. Python project is using coverage tool and the data looks fine from the tool.
Please provide the full output of running the uploader on your CI/CD. This will typically have the Codecov logo as ASCII.
12:09:49 + codecov --verbose --nonZero --rootDir /home/ubuntu/jenkins/workspace/cellaneous_nemesis-generator_dev --flags nemesis-generator --dir .
12:09:49 [2023-05-03T16:09:49.125Z] ['verbose'] Start of uploader: 1683130189125...
12:09:49 [2023-05-03T16:09:49.126Z] ['info']
12:09:49 _____ _
12:09:49 / ____| | |
12:09:49 | | ___ __| | ___ ___ _____ __
12:09:49 | | / _ \ / _` |/ _ \/ __/ _ \ \ / /
12:09:49 | |___| (_) | (_| | __/ (_| (_) \ V /
12:09:49 \_____\___/ \__,_|\___|\___\___/ \_/
12:09:49
12:09:49 Codecov report uploader 0.5.0
12:09:49 [2023-05-03T16:09:49.126Z] ['info'] => Project root located at: /home/ubuntu/jenkins/workspace/cellaneous_nemesis-generator_dev
12:09:49 [2023-05-03T16:09:49.129Z] ['info'] -> Token found by environment variables
12:09:49 [2023-05-03T16:09:49.130Z] ['verbose'] Start of network processing...
12:09:49 [2023-05-03T16:09:49.130Z] ['verbose'] Searching for files in /home/ubuntu/jenkins/workspace/cellaneous_nemesis-generator_dev
12:09:49 [2023-05-03T16:09:49.272Z] ['verbose'] Skipping coveragepy, no .coverage file found.
12:09:49 [2023-05-03T16:09:49.276Z] ['info'] Searching for coverage files...
12:09:49 [2023-05-03T16:09:49.357Z] ['info'] Warning: Some files located via search were excluded from upload.
12:09:49 [2023-05-03T16:09:49.358Z] ['info'] If Codecov did not locate your files, please review https://docs.codecov.com/docs/supported-report-formats
12:09:49 [2023-05-03T16:09:49.358Z] ['verbose'] Preparing to clean the following coverage paths: coverage.xml
12:09:49 [2023-05-03T16:09:49.358Z] ['info'] => Found 1 possible coverage files:
12:09:49 coverage.xml
12:09:49 [2023-05-03T16:09:49.358Z] ['verbose'] End of network processing
12:09:49 [2023-05-03T16:09:49.358Z] ['info'] Processing coverage.xml...
12:09:49 [2023-05-03T16:09:49.363Z] ['info'] Detected Jenkins CI as the CI provider.
12:09:49 [2023-05-03T16:09:49.363Z] ['verbose'] -> Using the following env variables:
12:09:49 [2023-05-03T16:09:49.364Z] ['verbose'] BRANCH_NAME: dev
12:09:49 [2023-05-03T16:09:49.364Z] ['verbose'] BUILD_NUMBER: 4
12:09:49 [2023-05-03T16:09:49.364Z] ['verbose'] BUILD_URL: https://jenkins.symboldev.com/job/Nem/job/generated/job/miscellaneous/job/nemesis-generator/job/dev/4/
12:09:49 [2023-05-03T16:09:49.364Z] ['verbose'] CHANGE_ID: undefined
12:09:49 [2023-05-03T16:09:49.364Z] ['verbose'] GIT_BRANCH: dev
12:09:49 [2023-05-03T16:09:49.364Z] ['verbose'] GIT_COMMIT: 0f9087a61ea292f3c1b7ca75ccf7e11b44b6c721
12:09:49 [2023-05-03T16:09:49.364Z] ['verbose'] JENKINS_URL: https://jenkins.symboldev.com/
12:09:49 [2023-05-03T16:09:49.364Z] ['verbose'] ghprbActualCommit: undefined
12:09:49 [2023-05-03T16:09:49.364Z] ['verbose'] ghprbPullId: undefined
12:09:49 [2023-05-03T16:09:49.364Z] ['verbose'] ghprbSourceBranch: undefined
12:09:49 [2023-05-03T16:09:49.377Z] ['verbose'] Using the following upload parameters:
12:09:49 [2023-05-03T16:09:49.377Z] ['verbose'] branch
12:09:49 [2023-05-03T16:09:49.377Z] ['verbose'] build
12:09:49 [2023-05-03T16:09:49.378Z] ['verbose'] buildURL
12:09:49 [2023-05-03T16:09:49.378Z] ['verbose'] commit
12:09:49 [2023-05-03T16:09:49.378Z] ['verbose'] job
12:09:49 [2023-05-03T16:09:49.378Z] ['verbose'] pr
12:09:49 [2023-05-03T16:09:49.378Z] ['verbose'] service
12:09:49 [2023-05-03T16:09:49.378Z] ['verbose'] slug
12:09:49 [2023-05-03T16:09:49.378Z] ['verbose'] name
12:09:49 [2023-05-03T16:09:49.378Z] ['verbose'] tag
12:09:49 [2023-05-03T16:09:49.378Z] ['verbose'] flags
12:09:49 [2023-05-03T16:09:49.378Z] ['verbose'] parent
12:09:49 [2023-05-03T16:09:49.379Z] ['info'] Pinging Codecov: https://codecov.io/upload/v4?package=uploader-0.5.0&token=*******&branch=dev&build=4&build_url=https%3A%2F%2Fjenkins.symboldev.com%2Fjob%2FNem%2Fjob%2Fgenerated%2Fjob%2Fmiscellaneous%2Fjob%2Fnemesis-generator%2Fjob%2Fdev%2F4%2F&commit=0f9087a61ea292f3c1b7ca75ccf7e11b44b6c721&job=&pr=&service=jenkins&slug=NEMProject%2Fmiscellaneous&name=&tag=&flags=nemesis-generator&parent=
12:09:49 [2023-05-03T16:09:49.379Z] ['verbose'] Passed token was 36 characters long
12:09:49 [2023-05-03T16:09:49.379Z] ['verbose'] https://codecov.io/upload/v4?package=uploader-0.5.0&branch=dev&build=4&build_url=https%3A%2F%2Fjenkins.symboldev.com%2Fjob%2FNem%2Fjob%2Fgenerated%2Fjob%2Fmiscellaneous%2Fjob%2Fnemesis-generator%2Fjob%2Fdev%2F4%2F&commit=0f9087a61ea292f3c1b7ca75ccf7e11b44b6c721&job=&pr=&service=jenkins&slug=NEMProject%2Fmiscellaneous&name=&tag=&flags=nemesis-generator&parent=
12:09:49 Content-Type: 'text/plain'
12:09:49 Content-Encoding: 'gzip'
12:09:49 X-Reduced-Redundancy: 'false'
12:09:49 [2023-05-03T16:09:49.601Z] ['info'] https://app.codecov.io/github/NemProject/miscellaneous/commit/0f9087a61ea292f3c1b7ca75ccf7e11b44b6c721
12:09:49 https://storage.googleapis.com/codecov/v4/raw/2023-05-03/D15196F2D2954B7CD53E83DE79C5C907/0f9087a61ea292f3c1b7ca75ccf7e11b44b6c721/6a67dfb6-f6ad-4314-b022-fbb6dd24ce92.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=GOOG1EJOGFN2JQ4OCTGA2MU5AEIT7OT5Z7HTFOAN2SPG4NWSN2UJYOY5U6LZQ%2F20230503%2FUS%2Fs3%2Faws4_request&X-Amz-Date=20230503T160949Z&X-Amz-Expires=10&X-Amz-SignedHeaders=host&X-Amz-Signature=ca0dc69b68757b8e83be39116db15647797c7705c1e8c764598c547d0e95f394
12:09:49 [2023-05-03T16:09:49.601Z] ['verbose'] Returned upload url: https://storage.googleapis.com/codecov/v4/raw/2023-05-03/D15196F2D2954B7CD53E83DE79C5C907/0f9087a61ea292f3c1b7ca75ccf7e11b44b6c721/6a67dfb6-f6ad-4314-b022-fbb6dd24ce92.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=GOOG1EJOGFN2JQ4OCTGA2MU5AEIT7OT5Z7HTFOAN2SPG4NWSN2UJYOY5U6LZQ%2F20230503%2FUS%2Fs3%2Faws4_request&X-Amz-Date=20230503T160949Z&X-Amz-Expires=10&X-Amz-SignedHeaders=host&X-Amz-Signature=ca0dc69b68757b8e83be39116db15647797c7705c1e8c764598c547d0e95f394
12:09:49 [2023-05-03T16:09:49.601Z] ['info'] Uploading...
12:09:49 [2023-05-03T16:09:49.769Z] ['info'] {"status":"success","resultURL":"https://app.codecov.io/github/NemProject/miscellaneous/commit/0f9087a61ea292f3c1b7ca75ccf7e11b44b6c721"}
12:09:49 [2023-05-03T16:09:49.769Z] ['verbose'] End of uploader: 644 milliseconds
Expected Results
I expected that all the files should show coverage. Below is the output of the coverage tool during the CI run. It shows that all the files had 100% coverage.
@Wayonb I think there is something wrong with the way the coverage is being merged before you run the Codecov upload commands, but I could be wrong. Would you be able to output cat coverage.xml before uploading to Codecov, around here?
Codecov is getting a coverage report with only one __init__.py and __main__.py, so it’s not really possible for us to figure out which directory it’s getting under. You can see that by clicking Download on the 4 build here
It seems to be how the directories/files are specified in the .coveragerc.
I switched from the first to the second connif and it seems to work.
The first seems to combined the output