Skip to content

[CI] github_cc_reviewers: Catch all exceptions so all reviewers can be processed#12578

Merged
driazati merged 2 commits intoapache:mainfrom
yelite:cc-reviewer-error-handling
Aug 25, 2022
Merged

[CI] github_cc_reviewers: Catch all exceptions so all reviewers can be processed#12578
driazati merged 2 commits intoapache:mainfrom
yelite:cc-reviewer-error-handling

Conversation

@yelite
Copy link
Contributor

@yelite yelite commented Aug 24, 2022

In a recent change, github.post throws RuntimeError instead of HTTPError when the requested reviewer isn't a project collaborator. This prevents other reviewers to be added to the PR, for example, https://github.com/apache/tvm/runs/8001367110?check_suite_focus=true.

This PR changes the caller to catch any exception so the execution won't be interrupted.

cc @Mousius @areusch @driazati @gigiblender

@github-actions github-actions bot requested a review from driazati August 24, 2022 18:27
Copy link
Member

@driazati driazati left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice catch and thanks for the fix!

Co-authored-by: driazati <9407960+driazati@users.noreply.github.com>
@github-actions github-actions bot requested review from Mousius and areusch August 24, 2022 18:39
@driazati driazati merged commit b547106 into apache:main Aug 25, 2022
xinetzone pushed a commit to daobook/tvm that referenced this pull request Nov 25, 2022
…e processed (apache#12578)

In a recent change, `github.post` throws `RuntimeError` instead of `HTTPError` when the requested reviewer isn't a project collaborator. This prevents other reviewers to be added to the PR, for example, https://github.com/apache/tvm/runs/8001367110?check_suite_focus=true.

This PR changes the caller to catch any exception so the execution won't be interrupted.

Co-authored-by: driazati <9407960+driazati@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants