-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
uploadStatuses
triggers a "Ref not found" issue when adding a comment
#1635
Comments
@wlynch Perhaps you have an idea? I added some logging and found out that after the |
Looks like GitHub returns 404 if there are no statuses on the PR yet for both GetCombinedStatus and ListStatuses: https://gist.github.com/wlynch/223c1720a12fcbed92668fa5b988291d Should be an easy fix. /assign wlynch |
Nevermind, that last gist was wrong. Here's the one showing it works: https://gist.github.com/wlynch/1fe05245b990cb2b0505c51fcd4712d7 Is the PR URL something you can share? I'm curious what the download thinks the status/SHA actually is, or if it's missing altogether. |
Ahhhh. I see what's going on. The SHA is missing here: pipeline/cmd/pullrequest-init/disk.go Lines 305 to 307 in 6f6d7bf
Good news is that #1550 will fix this: https://github.com/tektoncd/pipeline/pull/1550/files#diff-76f60b9c5045c6d153fdb07b04cc699eR303-R304 |
@vdemeester: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/kind bug |
Expected Behavior
When I add a comment to a PR, the resource add the comments and succeeds.
Actual Behavior
The comment is added to GitHub, however the upload step fails:
I narrowed down the issue to this block of code:
pipeline/cmd/pullrequest-init/api.go
Lines 262 to 264 in 6f6d7bf
Something goes wrong when retrieving the status.
Steps to Reproduce the Problem
Additional Info
The text was updated successfully, but these errors were encountered: