RFR: 2061: Checking for .jcheck/conf fails when pr/X branches are removed [v2]

Erik Joelsson erikj at openjdk.org
Thu Oct 12 16:00:00 UTC 2023


On Thu, 12 Oct 2023 15:53:19 GMT, Zhao Song <zsong at openjdk.org> wrote:

>> As Erik described in the issue, "The targetRefPRMap introduced in [SKARA-1937](https://bugs.openjdk.org/browse/SKARA-1937) isn't working well with the dependent PR feature. When a pr/X branch is removed, the map may still contains that branch which will cause getPeriodicItems to fail with exception when trying to get .jcheck/conf from the non existing branch.". 
>> 
>> To solve this issue, I think that every pr would only have one targetRef, so before the bot is trying to create an entry for the pr, the bot should delete any existing entry associated with that pr.
>> 
>> Since the operations are all about HashMap, I believe they wouldn't significantly impact the bot's performance.
>
> Zhao Song has updated the pull request incrementally with one additional commit since the last revision:
> 
>   review comment

Marked as reviewed by erikj (Lead).

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

PR Review: https://git.openjdk.org/skara/pull/1568#pullrequestreview-1674553011


More information about the skara-dev mailing list