-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[CLI] Report is marked unusable when duplicate directory exists #118
Comments
codecov/codecov-cli#423 May be helpful, @thomasrockhu-codecov |
Hello @drazisil-codecov , are there any updates regarding this issue? |
Hi @osama-salman99 , Can you check if https://docs.codecov.com/docs/the-codecov-cli has the same issue? |
Yep, just tried it and it gives the same error - "unusable report" |
Thanks for confirmation. I believe we are currently preferring the CLI over the uploader, so let me get this tagged and setup so we can review again in our next bug sync meeting. |
culprits here are likely one of the two things:
Possibly something else is happening here, but these are the two scenarios I'd run down first. Will assign for investigation in Sprint 134. |
I don't think this issue is related to the CLI. I think the CLI would also behave correctly in this case (it runs I just checked the repo and the consequences seem to be that reports are being processed, but they are only detecting one file. I would reframe this issue as a path matching issue. |
Hi, @osama-salman99 I think using path fixes will help fix this issue. I think a path fix of Right now what's happening is that your coverage report refers to part of the files paths for example:
In your git repo there are 3 files that exist that Codecov finds can possibly match with this one:
because of this Codecov does not know which one to match it with, it ignores all of them. By applying the path fix, you would turn the file path in your coverage report into:
which would exactly match with that file in your git repo. |
It seems the underlying problem is that the |
@osama-salman99 I'm going to mark this as done. If you have any more questions feel free to reopen the issue and ping me. |
Describe the bug
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.
Environment:
To Reproduce
Steps to reproduce the behavior:
Report is marked as “unusable report”
Tried cases in detail:
codecov.yml
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.
Expected behavior
Report processing succeeds and coverage passes.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
A link to the CI/CD run.
Commit SHA: 3f55bc87446b999f6a5771cc075315c92fa57731
The text was updated successfully, but these errors were encountered: