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
Zero 0% coverage reported #1593
Comments
Hi @lukka. The state of your build pages looked strange to me so I re-ran all the jobs in order again, to allow background jobs to re-run, and, among other things, re-calculate coverage % from your constituent coverage reports. Things look normal now: But I'm afraid I can't account for why this didn't occur initially. I assume one or more of your jobs got held up in queue, or failed to run and were awaiting a retry, but I can't determine a why. For now, I'll have to attribute it to a one-off. Closing for now, but let me know if it happens again and we can re-open this issue. In that case, it will be helpful to run a build in verbose mode, which can be enabled for the Coveralls Github Action by adding the following CI env var to your GHA config yaml so it's available to the coveralls step(s): The |
@afinetooth I'm also seeing a ton of builds randomly showing 0% in the final coverage report even though I can clearly see individual jobs from the parallel run reporting coverage. The individual jobs in the parallel run also don't seem to reliably report checks back either. Sometimes I see them for one job, sometimes both and sometimes none at all. |
Hi @WonderPanda I'm re-opening this. Are you on the same repo as @lukka? If not, please share your Coveralls repo URL and I'll have a look. |
Hey @afinetooth thanks for reopening. Its a private github repo but our URL is https://github.com/circadian-risk/project-ember-web |
@afinetooth it is now indeed working, without any change on run-vcpkg repository. For helping tracking down the issue, I enabled in this PR two different changes:
If the problem is reoccurring, at least we have more debugging info to look at. |
@WonderPanda since most of the builds described that way, now, are from today, I assume it relates to the performance issues we're having today, described here: It's unusual in your case that some of your builds appear complete but with 0 files processed (and thus 0% coverage), so I'm thinking those (background) jobs may have failed after a server timeout or similar. I will try to re-run those as soon as we've addressed the current issues, also described here. |
@lukka great. If you're experiencing problems similar to @WonderPanda they are probably related to current issues described on our status page. But if it occurs again, will be very happy to examine your verbose build logs for clues. |
@afinetooth Hi! I am a student and new to this, also experiencing the same thing as OP. I wondered if you could have a look here at my repo? Also, where do I put Edit: I managed to use the env variable. Does this point out on anything that I can fix the zero-coverage displayed at Coveralls.io? Using shrib to post the debug text here: https://shrib.com/#Lillie9nwvkV0 Edit2: Ok my problem was that it got fixed when I moved /coverage to root dir, even though I pointed the |
Hi @runejac. I'm glad you discovered more about verbose mode and using the Your verbose build log ultimately represents a successful POST to the Coveralls API...
The problem seems to have occurred somewhere between reading in your LCOV file:
And parsing and converting the LCOV data into JSON, which results in this JSON:
Note that the
Right now, I'm at a loss for why that happened, but am tracking the possibility of a breaking change in a dependency that's causing that parsing to fail silently. Will feedback asap. |
Hi and thanks for your answer. I fixed this by moving the test dir to root. When I had client/tests and therefore coverage dir inside client dir, this would happen. When I moved tests outside to root it would make a coverage dir on root aswell and then it was OK, Coveralls got the build. This was even when i redirected the "path-to-lcov" to the subdir folder. I would guess Coveralls work with subdir? Any way to fix this if I want to have tests inside a sub dir and also then coverage dir inside a sub dir? |
Hi @runejac, I see, great. Thanks for the update. Yes, if I understand correctly, you want to correct for the relative paths in your coverage report if you move your tests files into a subdirectory? If so, then you can use the |
All right, so if I have |
^ I also wondering about the same thing @runejac asking :) |
@runejac, @StianOek, yes, those assumptions sound correct. Except for the fact that I'm not sure what you mean by Let's use this scenario: Your coverage file lives in the default location, (Note that in, this case, you don't need to pass a value for So the relevant portion of your GHA config yaml would look like this:
Such that, when your
Those will be corrected to:
The point of Hope that helps. |
Really nice! :) Thank you very much. It all works fine now @afinetooth |
@StianOek great. Glad to hear it. |
@afinetooth Hi again. What if I have two dirs that is containing tests? |
@runejac so as regards your files in But since you can only pass one value for
Hope that helps. |
Hi guys, I'm going to close this for now since there have been no updates since Mar. (It's Sep now.) |
Coverall works fine with all repos, but not with this one:
https://coveralls.io/github/lukka/run-vcpkg
Any suggestion is welcome, thanks!
The text was updated successfully, but these errors were encountered: