Skip to content

fix(review): keep GitCode provider change stats on capped review targets - #2464

Merged
bobleer merged 1 commit into
GCWing:mainfrom
bobleer:fix/gitcode-keep-provider-change-stats
Aug 24, 2026
Merged

fix(review): keep GitCode provider change stats on capped review targets#2464
bobleer merged 1 commit into
GCWing:mainfrom
bobleer:fix/gitcode-keep-provider-change-stats

Conversation

@bobleer

@bobleer bobleer commented Aug 24, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Follow-up to fix(review): load GitCode PR files as one bounded response #2463. The original PR merged before this review-fix commit could be pushed onto guantw/BitFun.
  • Keep GitCode review-target change stats from the full files response (and the provider count when it is larger), instead of summing only the first 1,000 mapped files.
  • Size the GitCode /files request against the documented 3,000-entry single response (16 MB) instead of the 4 MB pull-request detail budget.

Test plan

  • cargo test -p bitfun-services-integrations --no-default-features --features review-platform --lib gitcode_ (12 passed)
  • Wait for CI on this PR
  • Confirm a GitCode PR with more than 1,000 changed files still reports the provider file/additions/deletions counts, and omitted_file_count is the leftover after the 1,000-file review-target budget

The review-target path replaced the provider change counts with sums over
the first 1,000 mapped files, so a pull request with more changed files
than that budget reported a file count equal to the budget and an omitted
count of 1. Reuse the shared GitCode change-stats rule, which reads the
whole files response, keeps the provider count when it is larger, and
already refuses to claim truncated totals.

Size the GitCode files request against the documented 3,000-entry single
response instead of the pull request detail budget. The 4 MB detail limit
turned file lists that previously loaded under the 16 MB default into a
hard failure.

Co-authored-by: Bob Lee <liwenbo628@gmail.com>
@bobleer
bobleer merged commit b993edb into GCWing:main Aug 24, 2026
9 checks passed
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.

2 participants