-
Notifications
You must be signed in to change notification settings - Fork 724
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
Problems updating GitHub commit status #1283
Comments
I stand corrected, the first occurrence of this error on .org was on July 23rd, at 18:10, which is after the last deploy. On .com it started around the same time (18:02) |
The only change I can see is the "user rename" change, which broke something on api, probably related? |
Confirmed to be an issue with GitHub's API:
Emailed GitHub Support. |
Turns out my reproducing thing above was invalid, but the issue is still there. Waiting on GitHub Support. |
This was a problem with GitHub, looks like it's been resolved now. |
This started showing up again 7-8 hours ago, notified GitHub. |
@henrikhodne Is this still a problem? I'm experiencing missing statuses in GH Status API for finished Travis .org builds. I'm at GitHub; can I help you to identify if we still have a bug in our API? |
@mislav Could you link me to a build where you noticed this, so I can look in our logs to see if we sent a request to the API and if there was an error? |
@henrikhodne None of the recent ruby-build builds have any status in the Status API https://travis-ci.org/sstephenson/ruby-build/builds |
@henrikhodne The last ruby-build build that has a recorded status in Status API is https://travis-ci.org/sstephenson/ruby-build/builds/14130802 ~ 60 Travis builds after that apparently didn't record a status. |
We don't seem to have a GitHub token on file for a user with permission to update the GitHub status, so we never even send the request. Probably related to you not being able to sign in (#1766). |
@henrikhodne I'm able to sign into Travis now. I've pushed a new branch to sstephenson/ruby-build and it got built but the Status API still isn't getting updated. What GitHub token do you have to have on file to be able to update GitHub Status? I presume it has to be sstephenson. Does he have to log in to Travis again? Please advise. |
@mislav We currently try to find a user with admin permissions to determine what GitHub token to use to update the status. It seems we no longer have sstephenson's GitHub token, so we can't find an admin on file. Having him logging in on Travis again would probably fix this, but after reading the documentation I see one only needs push access to update the repository status, so I'll work on a change that tries to find a user with push access instead of just limiting to admins. |
Thanks. And why did you lose sstephenson's key? Do they expire or |
I think the only reason for us to remove the token from the database is when the GitHub API tells us the token is invalid. The most common reason for this is if the token was revoked on GitHub. |
Closing this. |
@roidrage @henrikhodne Thanks for helping me out with this. The issue is now largely gone, but I'm still seeing intermittent instances of CI statuses not being recorded in the GitHub API. For instance, the 2 most recent open pulls to lostisland/faraday (363, 369) don't have a CI status, but the Travis builds for them ran. Here's a Travis build for the pull 369: https://travis-ci.org/lostisland/faraday/builds/23732361 — the build passed but the CI status for that commit SHA is empty and GitHub web interface doesn't display any CI status |
We don't have an admin user for this repository currently, that's why we can't talk to the GitHub API. We have some fixes in the work to make this stuff better and not just look for admins. |
The solution then, as before, is that technoweenie logs into Travis web |
Unfortunately yes, sorry. |
I just deployed a change that I think should fix this. |
For the last couple of days, we've seen an ever-increasing amount of errors related to updating the commit status (both on .org and on .com).
The error commonly looks like this:
The first time we've seen this error in the logs was on Monday, but it really started to pick up coming in July 25 and 26.
The payload in this case seems to be empty. There was a deploy to travis-tasks on both platforms on .org and .com, but I'm not sure how/if that's related.
@drogus @rkh could you guys please look into this?
The text was updated successfully, but these errors were encountered: