Integrated: 1963: Reduce the frequency of fetching the same issue from IssueProject in CheckRun

Erik Joelsson erikj at openjdk.org
Tue Jun 27 17:02:54 UTC 2023


On Mon, 26 Jun 2023 16:13:57 GMT, Erik Joelsson <erikj at openjdk.org> wrote:

> This patch adds a cache for `IssueTrackerIssue` in `CheckWorkItem`. This will ensure that we only ever fetch issues from the issue project once in each work item. I'm also inlining the rather common `IssueProject` null check wherever possible.
> 
> Note that this patch is built on top of #1535 so will go in after that one.
> 
> Doing this also fixes a flaw with the current metadata hash logic. At the end of a check run, the metadata hash is updated. The current implementation fetches all issues again at that point, which means that we may store an updated version of an issue, that hasn't been part of the check run, in the hash. With this change, we are guaranteed to store the same issue state as was used in the check run.

This pull request has now been integrated.

Changeset: ce35e09a
Author:    Erik Joelsson <erikj at openjdk.org>
URL:       https://git.openjdk.org/skara/commit/ce35e09a9cdadc3498fea543650953bb9048b853
Stats:     28 lines in 2 files changed: 14 ins; 4 del; 10 mod

1963: Reduce the frequency of fetching the same issue from IssueProject in CheckRun

Reviewed-by: zsong

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

PR: https://git.openjdk.org/skara/pull/1536


More information about the skara-dev mailing list