Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create Dr.CI comment if it doesn't exist (#4949)
This happened in pytorch/pytorch#119774 (comment) where the bot failed to create the comment due to a GitHub hiccup losing the event. Atm, the comment is only created by the bot when the PR is opened or sync https://github.com/pytorch/test-infra/blob/main/torchci/lib/bot/drciBot.ts#L6. When a workflow finishes, making an API call to Dr.CI returns early when there is no Dr.CI comment https://github.com/pytorch/test-infra/blob/main/torchci/pages/api/drci/drci.ts#L136-L141 ### Testing Not sure how to test this because there is no mock setup. But this looks benign enough to jump the bullet? Co-authored-by: tfsingh <105320310+tfsingh@users.noreply.github.com>
- Loading branch information