-
Notifications
You must be signed in to change notification settings - Fork 7
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
Branches not correctly fetched from github - badge not showing #1581
Comments
@jhannes will look into this asap as the site is currently in emergency maintenance: I suspect the 500 error you received on Friday related to the root cause for the original maintenance window, which started then. |
Hi @jhannes I checked this morning and your latest build appears normal and your default branch shows as main with no new info detected upon a repo sync. This indicates things should be back to normal. Let me know if not. |
I had the same problem after changing my branch from After some time (over an hour at least) I finally got results on coveralls.io. It's possible there's just a backlog after coveralls came back online, so maybe if I had waited if it would have succeeded updating by itself. |
@afinetooth I still have a commit hash showing instead of the main branch, the "sync branches" button spinning forever and a failed request to https://coveralls.io/repos/351454/sync_branches.json with 500. |
Hi @jhannes. Thanks for you patience. So that The Coveralls API will accept whatever you pass it for We can verify that by running a new build, or re-running an old build in verbose mode, which adds debug output to your CI build log and shows the exact JSON you're POSTing to the Coveralls API. I can't tell what CI you're using from your build pages, for example: But I can see you're building a Java project. The way to enable verbose mode will depend on the integration you're using, so if you are using the community-created Java integration listed here (coveralls-maven-plugin), this is the closest thing to a debug flag I can find. If you are using coveralls-maven-plugin, you may want to search the project's issues to see if other users mention it, or ask there how to enable debug mode. Likewise, if you're using a different Java integration, you can consult that project's README or issues. Let me know what Java integration you're using and I'll try to help with that. Another way to enable verbose mode is available through a couple of CI-specific coveralls tools, like the Coveralls Orb for CircleCI and the Coveralls Github Action. Those come with their own debug flag, which we can employ if you're using one of those (let me know). Once we can examine the Otherwise, if you take my suspicion as a viable assumption and you know how to get your CI to pass the branch name, such as by reverting from detached HEAD state or pulling the branch in a step before running coveralls, the issue might fix itself. Let me know how I can help from here. |
@andyholmes if you'd like some help with your project, I'll need to know the Coveralls URL for your repo and/or a specific build URL. Thanks. |
@afinetooth All good :) I thought I had the same problem, but it resolved itself. Thanks! |
@andyholmes great. |
@afinetooth Thank you for following up. It took me a while to make the necessary investigations. I am stumped why this may be as I have several other projects with Coveralls that seem run correctly in Github Actions, for example https://github.com/jhannes/action-controller |
Hi @jhannes, unless I'm wrong, it looks like you're getting hashes for branch names in this project too: https://coveralls.io/github/jhannes/action-controller This issue crops up from time-to-time and I haven't been able to identify a single cause, only case-by-case solutions. Usually, the issue is related to default CI configuration, using a self-hosted runner, doing a squash merge or rebase right before your build, etc. Without figuring out why CI is passing a hash instead of a branch name, the solution is usually something as simple as adding a step to your CI config file that does a Unfortunately, since you're not using the Coveralls Github Action, I can't offer a verbose flag to add debug output to your build log. It could be useful to see what CI is providing in the Can you try adding a You're basically trying to get CI / git out of "detached HEAD" state, which CI may be building in for various reasons (squash merge, rebase, etc.). This explanation from Bitrise CI docs is as good as any I've seen on what that state is and how to "recover" from it. This blog post is good too. |
I made a quick effort to do a git checkout, but it didn't seem to change things. It sounds like using the Coveralls Github Action would be a good way forward, but I can't find a Maven plugin that generates lcov-files. Is there are tutorial anywhere? |
Hi @jhannes, yes, that is a limitation users of some languages run into (Java, Python). On the python side, there's a separate community-created Github Action used by many python devs here. From this issue, I found this resource:
Doesn't exactly match your need from that description, but this list of its Output Formats indicates LCOV might be an export format: This online configuration tool also indicates you can pick LCOV as the output format for any input format, like XML: Another thing: The tool appears to be for use with .NET, but it looks like they have a package for Github Actions here: Support for Github Actions is something users of the coveralls-maven-plugin have been asking for as well, apparently. You might find something helpful in that regard, in the body of this issue: Hope that helps! |
This issue has been automatically marked for closure because it has not had recent activity. It will be closed if no further activity occurs. If your issue is still active please add a comment and we’ll review as soon as we can. Thank you for your contributions. |
In one of my repositories, the builds in Coveralls are linked to commit hashes instead of the
main
branch. The repository in question is https://coveralls.io/github/jhannes/logevents?branch=mainI suspected that the reason for this was that I renamed the default branch from
master
tomain
and Coveralls was unable to sync the branch names, so I tried to delete the repository in coveralls and recreate it but the problem persists.When I try to sync branches, the progress spinner never stops. This is due to a 500 while performing the request https://coveralls.io/repos/351454/sync_branches.json
The text was updated successfully, but these errors were encountered: