lemurheavy / coveralls-public

The public issue tracker for coveralls.io
http://coveralls.io
124 stars 7 forks source link

Job stuck in "Pending Completion" #1778

Closed davidbyoung closed 1 month ago

davidbyoung commented 1 month ago

I haven't made any changes to the way my repository reports coverage info. I've noticed that my jobs are all stuck with "Pending completion". I am not using parallel builds, and am unsure how to fix this. For reference, here is my project: https://coveralls.io/github/aphiria/aphiria.

davidbyoung commented 1 month ago

hmm, on the latest build, this appears to have disappeared. It was stuck like this for quite some time on my PR builds, but when I merged the PR, it resolved. Please disregard.

afinetooth commented 1 month ago

Hi @davidbyoung.

Thanks for reporting your issue, and thanks for the update. I'm glad it cleared itself.

In case it's helpful, I looked at stats for your builds and, at least for the past 7 days, the avg build time is ~1min, with the longest build time being 2min. So what that means, practically, is that you may see "pending completion" at your job/build page at Coveralls.io from the point you receive it in your API response until the job/build is complete (so far 1-2 min), but should shouldn't be seeing it for any longer than that. If you did, let me know.

Additional info on long-running build(s) for your repo:

Re: that 406 issue: It's something we started seeing in Apr of this year and are trying to address, but it requires significant code changes on our end, has been rated indeterminate complexity, and has not been added to a sprint yet. The only current workaround is to either forego coverage stats on your "big" PR, or break it into smaller pieces to get stats on each piece.

davidbyoung commented 1 month ago

Thank you so much for the detailed response! I did notice that my PR was stuck in this pending state for most of the time it was open, and not just for a short period after the build process. However, I do not see it anymore now that the PR was merged into the 1.x branch.

afinetooth commented 1 month ago

You're welcome. And now that I think about it, that makes complete sense, since, we would not have been able to fully process and perform an aggregate coverage calculation on your build(s) for that PR as long as we could not obtain the full diff (to perform a coverage diff) from the GitHub API.

So, for the benefit of anyone else experiencing a longstanding "Pending Completion" on builds for a certain PR, this is most likely your issue. We have a dev ticket in queue to pass through end user account-related GitHub API errors/messages, around such things as exceeding rate limit or this diff size limit, so they appear in PR Comments, or status checks, or at least Coveralls Build Pages, to help users understand what's going on in these fairly rare circumstances.