RFR: 2082: Use correct .jcheck/conf in AdditionalConfiguration.java [v3]

Erik Joelsson erikj at openjdk.org
Fri Nov 3 14:19:40 UTC 2023


On Fri, 3 Nov 2023 13:39:27 GMT, Erik Joelsson <erikj at openjdk.org> wrote:

>> Erik Duveblad has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   optimize
>
> bots/pr/src/main/java/org/openjdk/skara/bots/pr/CheckRun.java line 1238:
> 
>> 1236:                         var commitJCheckConf = checkablePullRequest.parseJCheckConfiguration(hash)
>> 1237:                                                 .orElseThrow(() -> new IllegalStateException("No .jcheck/conf present in tree for commit " + hash));
>> 1238:                         var commitVisitor = checkablePullRequest.createVisitor(commitJCheckConf, hash);
> 
> We could move the creation of these two into the if block below. Could create `messageStream = targetVisitor.messages().stream()` before the if and override it with the concatenated stream inside the block. I think it's worth trying to minimize any external calls or processes when possible to speed up WorkItem processing.

Maybe we shouldn't concat the streams and instead differentiate the message between the different jcheck runs and include information about which jcheck conf was used.

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

PR Review Comment: https://git.openjdk.org/skara/pull/1578#discussion_r1381752417


More information about the skara-dev mailing list