RFR: 1850: CSR bot can pick up wrong fix version if PR branch is behind target branch [v7]

Erik Joelsson erikj at openjdk.org
Thu Apr 6 17:57:03 UTC 2023


On Thu, 6 Apr 2023 17:39:20 GMT, Zhao Song <zsong at openjdk.org> wrote:

>> As SKARA-1851 fixed, now we could be able to search for CSR with the  fixVersion in .jcheck/conf from the "merge branch".
>> 
>> There are also some changes to CSR Command in this patch.
>> 
>> Originally, we need to search for CSR issues in CSR Command because updating CSR progress in PR body needs cooperation between CSR bot and PR bot(so we couldn’t trust the CSR progress in PR body).
>> 
>> But now, we could force the update of PR body before handling the CSR command.
>> 
>> The logic of handling CSR command is also easy now.
>> 
>> For `/csr unneeded`:
>> 
>> Case 1: There exists CSR progress in the pr body, in this case, the csr requirement cannot be removed and we prompt user that 'withdraw csr first then try again'
>> Case 2: No CSR progress in the pr body, it means all the issues this pr solves don't have csr issue or the csr issue has already been withdrawn. In this case, we could remove the csr requirement safely.
>> 
>> For '/csr needed':
>> 
>> Case 1: The pr has csr label. We just tell the user csr is already require for this pr.
>> 
>> Case 2: The pr doesn't have csr label.
>> In this case, there are only three possibilities
>> (i) CSR is never requested and No CSR issues been created. In this case, we add CSR label to this pr and give user some prompts.
>> (ii) ALL CSR issues are withdrawn. In this case, we do the same as case (i)
>> (iii) ALL CSR issues are resolved. In this case, we won't add the csr label again and we just need to tell user there already exists resolved CSR issues.
>
> Zhao Song has updated the pull request incrementally with one additional commit since the last revision:
> 
>   fix a problem

Marked as reviewed by erikj (Lead).

-------------

PR Review: https://git.openjdk.org/skara/pull/1496#pullrequestreview-1375333701


More information about the skara-dev mailing list