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
1026: Skara bot doesn't update Progress checklist for clean backports to show that it is properly reviewed #1198
1026: Skara bot doesn't update Progress checklist for clean backports to show that it is properly reviewed #1198
Conversation
|
Webrevs
|
Looks good. I left one minor comment on the name of the new method.
.map(entry -> "- [" + (entry.getValue() ? "x" : " ") + "] " + entry.getKey()) | ||
.collect(Collectors.joining("\n")); | ||
private String getChecksList(PullRequestCheckIssueVisitor visitor, boolean isCleanBackport) { | ||
var checks = isCleanBackport ? visitor.getReadyForReviewChecks() : visitor.getChecks(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I find the name of the new method a little confusing. A clean backport is ready for integration not for review. Maybe just getReadyChecks
or getChecksClean
? I'll leave it up to you.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I understand the confusion. I chose the name to fit in with the current model and naming. When CheckRun evaluates if a cleanBackport PR is ready for integration, it calls PullRequestCheckIssueVisitor.isReadyForReview() (instead of .messages().isEmpty()). So the state we are checking for in the visitor is already named "readyForReview". The new method builds on that and returns the checks that were used to decide if it was readyForReview.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I should add that the CheckRun knows about clean backports, while the visitor does not, it just evaluates Jcheck checks and reports on the outcome.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, thanks for the explanation.
@erikj79 This change now passes all automated pre-integration checks. After integration, the commit message for the final commit will be:
You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed. At the time when this comment was updated there had been no new commits pushed to the
|
/integrate |
When a backport is considered clean, no review is required. This should be reflected in the progress list in the PR body. This patch simply removes the "Change must be properly reviewed" line in that case.
Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.java.net/skara pull/1198/head:pull/1198
$ git checkout pull/1198
Update a local copy of the PR:
$ git checkout pull/1198
$ git pull https://git.openjdk.java.net/skara pull/1198/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 1198
View PR using the GUI difftool:
$ git pr show -t 1198
Using diff file
Download this PR as a diff file:
https://git.openjdk.java.net/skara/pull/1198.diff