Skip to content

[ci] Check more events before pinging reviewers#10208

Merged
areusch merged 2 commits into
apache:mainfrom
driazati:ping2
Feb 24, 2022
Merged

[ci] Check more events before pinging reviewers#10208
areusch merged 2 commits into
apache:mainfrom
driazati:ping2

Conversation

@driazati

@driazati driazati commented Feb 10, 2022

Copy link
Copy Markdown
Member

This was missing some events before (reviews without comments, PR updated from a draft -> ready for review) so these were being ignored when finding the latest event. This PR adds them and restructures the code a bit to make it more clear what is happening for each PR. This addresses some of the issues from #9983

cc @areusch @hpanda-naut

This was missing some events before (reviews without comments, PR updated from a draft -> ready for review) so these were being ignored when finding the latest event. This PR adds them and restructures the code a bit to make it more clear what is happening for each PR. This addresses some of the issues from #9983

@areusch areusch left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

thanks @driazati suggesting a couple clarifications

f"Skipping #{pr['number']} since author {pr['author']['login']} is not in allowlist: {author_allowlist}"
)
else:
print(f"Checking #{pr['number']}, {author_allowlist}")

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
print(f"Checking #{pr['number']}, {author_allowlist}")
print(f"Will check #{pr['number']}, {author_allowlist}")

print(f"Checking #{pr['number']}, {author_allowlist}")
prs_to_check.append(pr)

print(f"Summary: Checking {len(prs_to_check)} of {len(prs)} fetched")

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
print(f"Summary: Checking {len(prs_to_check)} of {len(prs)} fetched")
print(f"Summary: Need to check {len(prs_to_check)} of {len(prs)} fetched")

Comment thread tests/scripts/ping_reviewers.py
Comment thread tests/python/unittest/test_ci.py
@areusch

areusch commented Feb 24, 2022

Copy link
Copy Markdown
Contributor

we discussed offline and @driazati will address the remaining two comments in a follow-on to avoid blocking on CI test time.

@areusch areusch merged commit 35df464 into apache:main Feb 24, 2022
pfk-beta pushed a commit to pfk-beta/tvm that referenced this pull request Apr 11, 2022
* [ci] Check more events before pinging reviewers

This was missing some events before (reviews without comments, PR updated from a draft -> ready for review) so these were being ignored when finding the latest event. This PR adds them and restructures the code a bit to make it more clear what is happening for each PR. This addresses some of the issues from apache#9983

* fix tests

Co-authored-by: driazati <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