-
Notifications
You must be signed in to change notification settings - Fork 183
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
APIView pipeline job must update comment when APIView job fails #5377
Comments
The comment is updated if APIView generation fails. The only case where it's not updated is if all the APIViews are skipped. |
I think I have identified the actual problem cases. |
I have fixed the first two cases. And I have added logging so as to be able to track down exactly where and how events are getting missing, dropped or not picked up. One approach suggested by @praveenkuttappan is to add the comment directly from APIView service using the DetectApiChanges endpoint and setting |
I would like to avoid having the APIView service knowing about the specs PR and figuring out how to update those type of comments. I know we do it for the SDK repos currently but I'd like to eliminate that at some point as well, if possible. Is the issue that we are generating the APIView's async and we don't update the comment until it is finished? I thought APIView was always returning a URL even if it is wasn't ready yet and we should be able to add that to the comment. |
A event is pushed to eventhub for each APIView generation attempted, with the result (success or fail) of the attempt. The kebab bot picks up this event then writes the comment to Github. The issue here is one where the event was pushed to eventhub but the kebab bot did not write any comment. |
Yeah that seems like a bug we should be trying to handle in the kebab bot as opposed to adding a new ApiView dependency on it. |
The APIView PR pipeline job posts a comment in the PR to say that it has begun generation of an APIView:
But if APIView generation fails, the comment is not always updated to indicate that processing failed and why.
The APIView pipeline job should ensure that this comment is updated, whatever the outcome of the processing.
Also, the PR Check should not report "Succeeded" when it has actually failed.
The text was updated successfully, but these errors were encountered: