RFR: 1806: Optimize the CSR progress message and log when CSR not found
Erik Joelsson
erikj at openjdk.org
Thu Jan 26 17:04:49 UTC 2023
On Wed, 25 Jan 2023 23:40:42 GMT, Zhao Song <zsong at openjdk.org> wrote:
> A user reported that she have a PR which can't find its corresponding CSR.
> Erik found that the issue was caused by the user not updating their branch in a long time, and the fixVersion in the .jcheck/conf file was still set at 20. However, the fixVersion of the CSR was 21, make the bot unable to locate the corresponding CSR.
>
> In this patch, I optimized the CSR progress message and log.
bots/pr/src/main/java/org/openjdk/skara/bots/pr/CheckRun.java line 77:
> 75: private Duration expiresIn;
> 76:
> 77: private Optional<JdkVersion> versionOpt;
Fields should not be `Optional`. We should also not add fields that are arbitrarily initiated as a side effect of some method. This needs to be initiated in one place and then propagated through parameters. Looking at the calling tree of the various getIssue methods, this looks like a pretty bad mess. Not sure how to untangle this to propagate the version value.
-------------
PR: https://git.openjdk.org/skara/pull/1463
More information about the skara-dev
mailing list