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
1673: CSR bot should be able to handle a withdrawn CSR properly #1418
Conversation
👋 Welcome back zsong! A progress list of the required criteria for merging this PR into |
/summary Co-authored-by: user1 |
@zhaosongzs Invalid summary:
A summary line cannot start with any of the following: |
/integrate |
@zhaosongzs This pull request has not yet been marked as ready for integration. |
@zhaosongzs This change now passes all automated pre-integration checks. ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for details. 🔍 One or more changes in this pull request modifies files in areas of the source code that often require two reviewers. Please consider if this is the case for this pull request, and if so, await a second reviewer to approve this pull request before you integrate it. 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 ➡️ To integrate this PR with the above commit message to the |
/integrate |
@zhaosongzs |
/sponsor |
@erikj79 @zhaosongzs Since your change was applied there have been 3 commits pushed to the
It was not possible to rebase your changes automatically. Please merge |
# Conflicts: # bots/csr/src/main/java/org/openjdk/skara/bots/csr/PullRequestWorkItem.java
/integrate |
Going to push as commit fc863a2. |
@zhaosongzs Pushed as commit fc863a2. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
A user reported that skara bot keeps changing the description in his MR.
After investigation, we found a bug related with CSR bot.
The user linked a CSR issue with the main issue, and after that, he found CSR unneeded and withdrawn the CSR issue.
However, our logic about handling withdrawn CSR issue has some problem.
In PullRequestWorkItem#run, the bot would add updateMarker() to the PR body regardless of the state of CSR issue. And if a PR body contains the updateMarker, it will be updated periodically until the body contains a CSR progress. However, since our CSR issue is withdrawn, the CSR label would not be added to the pr and CSR progress would not be added to the PR body. So it will be an endless loop.
In summary, the bug would happen in such a case, the user withdraw the csr issue before the csr issue bot first time run.
In this patch, before the CSR Issue bot is trying to add the updateMarker, it will check the resolution of the CSR Issue first, if the CSR Issue is already withdrawn, then updateMarker would not be added to the PR body. And PR bot would work normally.
Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/skara pull/1418/head:pull/1418
$ git checkout pull/1418
Update a local copy of the PR:
$ git checkout pull/1418
$ git pull https://git.openjdk.org/skara pull/1418/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 1418
View PR using the GUI difftool:
$ git pr show -t 1418
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/skara/pull/1418.diff