Integrated: 1687: Workaround bug in GitLab where merge request LIST API may serve stale data

Erik Joelsson erikj at openjdk.org
Thu Dec 1 21:08:04 UTC 2022


On Mon, 28 Nov 2022 21:43:24 GMT, Erik Joelsson <erikj at openjdk.org> wrote:

> This patch provides a workaround for a GitLab bug that we are currently encountering. The issue has been fixed upstream, but until we have it deployed in our instance, we need to work around it.
> 
> GitLab sometimes serves stale data for merge requests from list queries. For Skara this means that label changes aren't always picked up. I have verified that up-to-date data is always received when fetching single merge requests by ID, so the patch simply re-fetches MRs to make sure the data is always up to date. I'm also adding logging to track when stale data is detected. This will help us verify (at least empirically) when the GitLab issue resolved for us.

This pull request has now been integrated.

Changeset: ba6e1ad2
Author:    Erik Joelsson <erikj at openjdk.org>
URL:       https://git.openjdk.org/skara/commit/ba6e1ad2681041bcf92e34fbce1846e73f17946e
Stats:     38 lines in 1 file changed: 38 ins; 0 del; 0 mod

1687: Workaround bug in GitLab where merge request LIST API may serve stale data

Reviewed-by: zsong, ihse

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

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


More information about the skara-dev mailing list