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
When uploading coverage reports for a module (core) in our repo while having a duplicate of that module in another directory (release/core), Codecov results declares that report unusable.
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 (e6aa8429d6ff91eddc7eced927e6ec936364a88fe755eed28b1f627a6499980d codecov)
==> Running version latest
==> Running version v0.6.3
/home/runner/work/_actions/codecov/codecov-action/v3/dist/codecov -n -Q github-action-3.1.4 -Z -C 3f55bc87446b999f6a5771cc075315c92fa57731
[2023-10-11T10:20:47.336Z] ['info']
_____ _
/ ____| | |
| | ___ __| | ___ ___ _____ __
| | / _ \ / _` |/ _ \/ __/ _ \ \ / /
| |___| (_) | (_| | __/ (_| (_) \ V /
\_____\___/ \__,_|\___|\___\___/ \_/
Codecov report uploader 0.6.3
[2023-10-11T10:20:47.344Z] ['info'] => Project root located at: /home/runner/work/expediagroup-java-sdk/expediagroup-java-sdk
[2023-10-11T10:20:47.347Z] ['info'] -> Token found by environment variables
[2023-10-11T10:20:47.362Z] ['info'] Searching for coverage files...
[2023-10-11T10:20:47.591Z] ['info'] Warning: Some files located via search were excluded from upload.
[2023-10-11T10:20:47.591Z] ['info'] If Codecov did not locate your files, please review https://docs.codecov.com/docs/supported-report-formats
[2023-10-11T10:20:47.592Z] ['info'] => Found 1 possible coverage files:
core/target/jacoco/jacoco.xml
[2023-10-11T10:20:47.592Z] ['info'] Processing /home/runner/work/expediagroup-java-sdk/expediagroup-java-sdk/core/target/jacoco/jacoco.xml...
[2023-10-11T10:20:47.602Z] ['info'] Using manual override from args.
[2023-10-11T10:20:47.602Z] ['info'] Detected GitHub Actions as the CI provider.
[2023-10-11T10:20:47.827Z] ['info'] Pinging Codecov: https://codecov.io/upload/v4?package=github-action-3.1.4-uploader-0.6.3&token=*******&branch=osama-salman99%2Fcodecov-test&build=6481168187&build_url=https%3A%2F%2Fgithub.com%2FExpediaGroup%2Fexpediagroup-java-sdk%2Factions%2Fruns%2F6481168187%2Fjob%2F17598149914&commit=3f55bc87446b999f6a5771cc075315c92fa57731&job=Verify+Core&pr=323&service=github-actions&slug=ExpediaGroup%2Fexpediagroup-java-sdk&name=&tag=&flags=&parent=
[2023-10-11T10:20:47.949Z] ['info'] https://app.codecov.io/github/ExpediaGroup/expediagroup-java-sdk/commit/3f55bc87446b999f6a5771cc075315c92fa57731
https://storage.googleapis.com/codecov/v4/raw/2023-10-11/351AC7AFFC8A4DBEFADBDA2D511B8222/3f55bc87446b999f6a5771cc075315c92fa57731/87d7ff3e-6611-4219-9f1c-5d44fd11fb42.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=GOOG1EJOGFN2JQ4OCTGA2MU5AEIT7OT5Z7HTFOAN2SPG4NWSN2UJYOY5U6LZQ%2F20231011%2FUS%2Fs3%2Faws4_request&X-Amz-Date=20231011T102047Z&X-Amz-Expires=10&X-Amz-SignedHeaders=host&X-Amz-Signature=b1eb59e92282de42011d0f7a4de97ffe00b40fb487f597b2ad09107fa10a10c5
[2023-10-11T10:20:47.950Z] ['info'] Uploading...
[2023-10-11T10:20:48.176Z] ['info'] {"status":"processing","resultURL":"https://app.codecov.io/github/ExpediaGroup/expediagroup-java-sdk/commit/3f55bc87446b999f6a5771cc075315c92fa57731"}
Expected Results
Report processing succeeds and coverage passes.
Actual Results
Report is marked as “unusable report”
Tried cases in detail:
- Upload coverage report for core without the duplicate: Codecov succeeds. (Uploading core without release/core)
- Upload coverage report for core with the duplicate missing one file: Codecov succeeds. (Uploading both core and release/core, however removing one file from release/core so that they’re not identical)
- Upload coverage report for core with the duplicate: “unusable report”.
- Upload coverage report for core with the duplicate and adding an ignore config in codecov.yml as shown below: “unusable report”.
codecov.yml
coverage:
status:
project:
default:
# basic
target: auto
threshold: 0%
ignore:
- "release"
We have tried many different variations of ignore including:
"**/release
"**/release/
"**/release/**/*
"release/**/*
"/release/**/*
but none of them seem to actually ignore the “release” directory.
Note: The actual path to the duplicate ‘core’ is “release/{dir1}/{dir2}/{dir3}/{dir4}/{dir5}/{dir6}/{dir7}/core”, however I use “release/core” in this topic for simplicity.
Additional Information
Commit SHA: 3f55bc87446b999f6a5771cc075315c92fa57731