-
Notifications
You must be signed in to change notification settings - Fork 139
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
botreview, prow update: narrow down files to look at #3162
Comments
/kind bug |
/kind prow |
@dhiller: The label(s) In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/area automatin |
@dhiller: The label(s) In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/area automation |
/assign |
/unassign |
@dhiller: Guidelines
For more details on the requirements of such an issue, please see here and ensure that they are met. If this request no longer meets these requirements, the label can be removed In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
I'm keen to pick this one up. /assign |
Hey @dhiller - We met at the contribfest can you please point me to what the "good" pr's are for this bot so I can start thinking about filtering based on subject etc. |
Hey @jmhbnz thanks for your interest in this! I've added a subsection |
@jmhbnz one other thing to get you started - the func GuessReviewTypes selects the proper strategy - I'd go add the subject to the |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with /lifecycle stale |
/remove-lifecycle stale |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with /lifecycle stale |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with /lifecycle rotten |
/remove-lifecycle rotten |
TL;DR
goal: make the botreview only look at pull requests that the review type is made for
Background
The botreview plugin has been created to automatically review pull requests that have been created by automation. It's initial implementation is intended to check expectation but it could easily extended to also check whether images are available etc.
Problem
Issue is that it currently picks up pull requests that are none of it's business. I.e. #3146 (comment) shows that the PR has been accidentally considered to be reviewed.
However, the review types are clearly made to only consider pull requests created by automation.
Task
Narrow down the pull requests to be considered per review type, such that it doesn't consider other pull requests and creates noise on it.
Suggestion: make the botreview only look at pull requests that have the correct subject for the pull request type
Subject examples
bump_kubevirtci.go
Bump kubevirtci
PR Bump kubevirtci
image_update.go
Run hack/bump-prow-job-images.sh
Run hack/bump-prow-job-images.sh
kubevirt_uploader.go
Run bazelisk run //robots/cmd/uploader:uploader -- -workspace /home/prow/go/src/github.com/kubevirt/project-infra/../kubevirt/WORKSPACE -dry-run=false
Run bazelisk ...
prow_autobump.go
Run hack/bump-prow.sh
Run hack/bump-prow.sh
Footnotes
The review type effectively is the implementation of the strategy for checking a set of reviews of the same type ↩
This is the subject of the reviews that the strategy is meant to check ↩
This query should yield all PRs that the strategy is meant to check ↩
The text was updated successfully, but these errors were encountered: