Skip to content

Conversation

@damccorm
Copy link
Contributor

This starts running the pr bot on the python label. I did my best to come up with an initial set of reviewers to be round robined to, but it was mostly based on manual inspection. The bot should eventually update that list anyways.

Part of #21417


Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

See the Contributor Guide for more tips on how to make review process smoother.

To check the build health, please visit https://github.com/apache/beam/blob/master/.test-infra/BUILD_STATUS.md

GitHub Actions Tests Status (on master branch)

Build python source distribution and wheels
Python tests
Java tests

See CI.md for more information about GitHub Actions CI.

@asf-ci
Copy link

asf-ci commented Jun 10, 2022

Can one of the admins verify this patch?

3 similar comments
@asf-ci
Copy link

asf-ci commented Jun 10, 2022

Can one of the admins verify this patch?

@asf-ci
Copy link

asf-ci commented Jun 10, 2022

Can one of the admins verify this patch?

@asf-ci
Copy link

asf-ci commented Jun 10, 2022

Can one of the admins verify this patch?

@github-actions github-actions bot added the build label Jun 10, 2022
@damccorm damccorm marked this pull request as ready for review June 16, 2022 12:29
@damccorm
Copy link
Contributor Author

R: @tvalentyn

label.name.toLowerCase() === "python"
)
) {
console.log("Does not contain the go or python labels - skipping");
Copy link
Contributor

Choose a reason for hiding this comment

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

for my education, where can these logs be inspected?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

*/
function needsProcessed(pull: any, prState: typeof Pr): boolean {
if (!pull.labels.find((label) => label.name.toLowerCase() === "go")) {
if (
Copy link
Contributor

Choose a reason for hiding this comment

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

re item 6) above : for my education, what does it mean to have notifications stopped?
item 7 is out of sync now.

Copy link
Contributor Author

@damccorm damccorm Jun 16, 2022

Choose a reason for hiding this comment

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

Anytime a reviewer manually requests review (e.g. R: @user), the bot turns itself off (and comments that its doing so). For example - #21852 (comment)

Fixed the comment

if (createdAt < firstPrToProcess) {
if (
createdAt < firstPrToProcess &&
!pull.labels.find((label) => label.name.toLowerCase() === "go")
Copy link
Contributor

Choose a reason for hiding this comment

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

do we need to exclude go here given that the bot has already been enabled for go? and probably all outstanding go prs have been processed already, except for maybe a couple go of PRs that happen to be submitted before two successive iteration of this script?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We're excluding go because we don't want it to be skipped ever. Its worth noting that this would retroactively apply to in flight prs, even if the PR bot has already taken some action on them, so without this exclusion this would break the flow on all in-flight PRs. Functionally, the biggest implication would be that if its been assigned to a non-committer and that non-committer approves it won't get auto-routed to a committer

@tvalentyn tvalentyn merged commit 2e3d5e5 into apache:master Jun 17, 2022
@damccorm damccorm deleted the users/damccorm/prbot-python branch June 17, 2022 13:50
bullet03 pushed a commit to akvelon/beam that referenced this pull request Jun 20, 2022
* Expand pr bot to python

* Push reviewer changes

* Limit to Python WG + Brian

* Add Pablo

* Add Yichi

* Set start date and format

* Feedback
prodriguezdefino pushed a commit to prodriguezdefino/beam-pabs that referenced this pull request Jun 21, 2022
* Expand pr bot to python

* Push reviewer changes

* Limit to Python WG + Brian

* Add Pablo

* Add Yichi

* Set start date and format

* Feedback
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants