Skip to content

fix(github): reduce merged GraphQL batch size to avoid resource limits - #3559

Merged
setchy merged 1 commit into
mainfrom
fix/github-merge-batch-size
Oct 29, 2026
Merged

setchy merged 1 commit into
mainfrom
fix/github-merge-batch-size

Conversation

@setchy

@setchy setchy commented Oct 29, 2026

Copy link
Copy Markdown
Member

Problem

Enriching notifications merges up to 100 notifications into one GraphQL query. Each entry pulls nested connections (labels, comments, replies). With larger inboxes, GitHub rejects the whole batch with Resource limits for this query exceeded, and none of the notifications in it get enriched.

Change

Reduce GITHUB_API_MERGE_BATCH_SIZE from 100 to 25 and update the doc comment.

Testing

  • The error reproduced locally at 100.
  • pnpm vitest run src/renderer/utils/forges/github: 418 tests pass.

Follow-up

The limit is undocumented and depends on how much each notification pulls in, not just how many there are. Splitting the batch in half and retrying on this error would be more robust.

@setchy
setchy requested a review from afonsojramos as a code owner October 29, 2026 02:12
@github-actions github-actions Bot added bug Something isn't working forge:github GitHub Cloud, GitHub Enterprise labels Oct 29, 2026
@setchy
setchy merged commit ea7d72f into main Oct 29, 2026
13 of 14 checks passed
@setchy
setchy deleted the fix/github-merge-batch-size branch October 29, 2026 02:13
@github-actions github-actions Bot added this to the Release 8.0.0 milestone Oct 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working forge:github GitHub Cloud, GitHub Enterprise

Development

Successfully merging this pull request may close these issues.

1 participant