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
Use Coveralls Github Action to send data to coveralls again #319
Conversation
e45d62f
to
b3d1ef8
Compare
hum, we don't really want to do it seven times per PR. I'll have to tweak this a bit. |
26598aa
to
f04bf53
Compare
whew, well that syntax is surprisingly finicky - the quotes have to be single, YAML thing I guess? - but it works now. we only upload coverage data from the 3.11 route. we should bump that to be the current stable version periodically. |
f04bf53
to
2e6aa35
Compare
The change to run the workflow on push as well as pull request I think is necessary for the badge coverage number to be updated (it seems to only be updated when coveralls calculates coverage of the master branch, not when it calculates coverage for a PR). I'm trying to get the thing where coveralls posts a comment on the PR to work, but it doesn't seem to be yet. I need to check a setting on coveralls.io but I don't have access to the project settings there, something to do with permissions...trying to figure it out... |
2e6aa35
to
5628a1c
Compare
This was lost when Travis stopped working, so our coveralls data is frozen in 2021. This should get it working again using https://github.com/marketplace/actions/coveralls-github-action and allow coveralls to post comments on PRs. Signed-off-by: Adam Williamson <awilliam@redhat.com>
5628a1c
to
f077ec7
Compare
@AdamWill I got a "Third-party application approval request for In any case, I've made you an owner in the mwclient GitHub organization, so I suppose you should now have the same access levels as I do. In particular, you should be able to access the application access configurations at https://github.com/organizations/mwclient/settings/oauth_application_policy, and should probably be able to access https://coveralls.io/github/mwclient/mwclient/settings as well. Please confirm! |
Indeed I can, but I've set all the things that I can find right, and coveralls still isn't commenting. I've sent a mail to coveralls support, maybe they can help. :D |
So Coveralls support got back with a very detailed reply: "Apologies for the delay. It sounds like you're all set up to receive PR Comments, so, as I suspected, I see the issue has a different cause, which is that Coveralls can't find the base build for your PR build, which it needs to derive a coverage change calculation, which is the content of any PR Comment it would send. (We don't do a great job of letting you know we couldn't send one, right now. We are working on that.) The clue that this is the case, is that your PR Build reads "FIRST BUILD" in the Build Info table at the top of its Build Page. This sometimes happens when users are getting set up: They've added all the Coveralls configuration details to their PR, but they haven't merged those changes into their default branch yet. Since the base build of a PR build will almost always be a That's usually fixed by merging the PR changes into your default branch, at which point, we start getting coverage reports for your I'll leave it there since I'm almost certain that the changes related to switching from Travis-to-GitHub-Actions have created this situation for you, but if for some reason, you take those next steps and still don't receive PR Comments, please let me know and we'll take it from there." so, tl;dr, it sounds like if we go ahead and merge this, we should then get comments as expected on all other PRs. Are other maintainers OK with that? If nobody yells, I'll go ahead and merge this in a few days and we'll see what happens. |
If I'm reading that right, possibly we'll need to merge this and then do one more push to master somehow before comments start working. Not totally sure if the merge of this PR would give us the initial push build on master that coveralls needs. |
This was lost when Travis stopped working, so our coveralls data is frozen in 2021. This should get it working again using https://github.com/marketplace/actions/coveralls-github-action if I got it right.