Skip to content

Conversation

@navntoft
Copy link
Contributor

@navntoft navntoft commented Sep 16, 2025

The splitLargeRefSpecs function had a logic error where it incremented by 25 but used a batch size of 100, creating overlapping batches that pushed the same refs multiple times.

Could potentially solve an issue with pushing refs to GHES instances.

The splitLargeRefSpecs function had a logic error where it incremented
by 25 but used a batch size of 100, creating overlapping batches that
pushed the same refs multiple times.
@navntoft navntoft marked this pull request as ready for review September 16, 2025 07:42
Copilot AI review requested due to automatic review settings September 16, 2025 07:42
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Fixes a critical logic error in the splitLargeRefSpecs function where the loop increment and batch size were mismatched, causing overlapping batches and duplicate ref pushes.

  • Introduces a batchSize variable set to 25 to ensure consistency
  • Updates loop increment to use the batchSize variable instead of hardcoded 25
  • Changes batch end calculation to use batchSize instead of hardcoded 100

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Copy link

@oscarsj oscarsj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@navntoft navntoft merged commit b13e101 into main Sep 16, 2025
7 checks passed
@navntoft navntoft deleted the navntoft/fix-push-batch-size branch September 16, 2025 10:11
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.

3 participants