RFR: 2340: CommitCommentsWorkItem executing in GitLab takes a lot of time.

Zhao Song zsong at openjdk.org
Mon Aug 5 18:48:25 UTC 2024


Currently, if a user comments under a commit named "Merge" in GitLab, the CommitCommentsWorkItem will take about 8 hours to complete. This delay occurs because the Skara bot checks all commits named "Merge" in the repository.

In the previous implementation, the bot fetched all the commit comments for all candidates and then attempted to find the one with the correct ID. With my patch, the bot now fetches the commit comment for only one candidate at a time and looks for the correct ID.

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

Commit messages:
 - SKARA-2340

Changes: https://git.openjdk.org/skara/pull/1682/files
  Webrev: https://webrevs.openjdk.org/?repo=skara&pr=1682&range=00
  Issue: https://bugs.openjdk.org/browse/SKARA-2340
  Stats: 9 lines in 1 file changed: 5 ins; 0 del; 4 mod
  Patch: https://git.openjdk.org/skara/pull/1682.diff
  Fetch: git fetch https://git.openjdk.org/skara.git pull/1682/head:pull/1682

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


More information about the skara-dev mailing list