Repository navigation
Read sources for performance test selection from git, not the GitHub API - #131332
Merged
Merged
Conversation
`PerformanceSelection.source` downloaded every changed file at the merge base and at the coverage `binary_sha` through the GitHub contents API, in every shard, without a token. A PR that changes more than about 30 files exhausts the unauthenticated rate limit (60 requests per hour) within a minute, and the job reports `Performance tests were not run: test selection unavailable: GitHub API 403 Client Error: rate limit exceeded` on every rerun. Fetch both revisions into the shallow checkout once and read the files with `git show`. Related: #117346 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Contributor
|
Workflow [PR], commit [35896ab] Summary: ✅
AI ReviewSummaryThe PR replaces per-file GitHub API downloads for performance test selection with a shallow revision fetch and local source reads. Reviewed head Findings
Tests
Final VerdictStatus: |
…-sources-with-git # Conflicts: # ci/jobs/scripts/performance_selection.py
This was referenced Nov 14, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PerformanceSelection.sourcedownloaded every changed file at the merge base and at the coveragebinary_shathrough the GitHub contents API, in every shard, without a token. A PR that changes more than about 30 files exhausts the unauthenticated rate limit (60 requests per hour) within a minute, and the job reportsPerformance tests were not run: test selection unavailable: GitHub API 403 Client Error: rate limit exceededon every rerun. PRs aboveMAX_SELECTION_CHANGED_FILES(200) avoided it only by running the full suite.Now both revisions are fetched into the shallow checkout once (
git fetch --depth=1) and the files are read withgit show. The three remaining API calls (PR metadata, merge base, diff) are unchanged.Related: #117346
Changelog category (leave one):
🤖 Generated with Claude Code
Workflow [PR]
Sync PR [sync-upstream/pr/131332]
Version info
26.11.1.2329-master(included in26.11and later)