Skip to content

Speed up GitLab plugin by fetching pages in parallel#467

Open
thrix wants to merge 1 commit into
psss:mainfrom
thrix:speed-up-gitlab
Open

Speed up GitLab plugin by fetching pages in parallel#467
thrix wants to merge 1 commit into
psss:mainfrom
thrix:speed-up-gitlab

Conversation

@thrix
Copy link
Copy Markdown

@thrix thrix commented Apr 8, 2026

Use ThreadPoolExecutor to fetch paginated GitLab API results concurrently instead of sequentially. Parse the last page link to determine total pages upfront, then fetch all in parallel. Fall back to sequential next-link following when last header is absent. Filter results by since date per-page.

Add unit tests for page ordering, error handling, next-link fallback, and missing MR/Note lookups.

Assisted-by: Claude Code

@thrix thrix force-pushed the speed-up-gitlab branch from 95c5c50 to b354df6 Compare April 8, 2026 22:48
Use `ThreadPoolExecutor` to fetch paginated GitLab API results
concurrently instead of sequentially. Parse the `last` page link
to determine total pages upfront, then fetch all in parallel.
Fall back to sequential `next`-link following when `last` header
is absent. Filter results by `since` date per-page.

Handle HTTP 429 rate limiting with retry using `Retry-After`
header. Use `tenacity` for connection retry (consistent with
the GitHub plugin).

Add unit tests for page ordering, error handling, next-link
fallback, and missing MR/Note lookups.

Assisted-by: Claude Code
Signed-off-by: Miroslav Vadkerti <mvadkert@redhat.com>
@thrix thrix force-pushed the speed-up-gitlab branch from b354df6 to 4bad3b2 Compare April 17, 2026 04:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant