Repository navigation
CI: authenticate performance test selection with a read-only job token - #131070
Merged
Merged
Conversation
Pass the GitHub Actions job token to PR performance jobs with read-only contents, pull-request and Actions permissions. Keep the token in the job command environment so parent report publication uses its existing auth. This prevents source mapping from using the anonymous GitHub API quota. Related: #129327 CI failure: https://github.com/ClickHouse/ClickHouse/actions/runs/43119319956/job/130914755090
Contributor
|
Workflow [PR], commit [e394767] Summary: ✅ AI ReviewSummaryReviewed PR head Final VerdictStatus: ✅ Approve. No unresolved findings or new inline comments. |
fm4v
approved these changes
Nov 12, 2026
Require the read token in CI, while letting local performance jobs run without credentials and forwarding a supplied token when present. Related: #131070 (comment)
This was referenced Nov 12, 2026
Merged
Merged
This was referenced Nov 13, 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.
Performance test selection hit the anonymous GitHub API rate limit while downloading source files and stopped before running tests. Pass the built-in GitHub Actions job token to PR performance jobs with read-only permissions for contents, pull requests and Actions. The token reaches the existing selector through
GITHUB_TOKEN; parent report publication keeps its separate authentication. Local runs still work without a token and forward one when supplied.Validated with eight focused checks covering the runner-to-HTTP token flow, permission scope, mandatory CI credentials, optional local credentials with and without Docker, and absence of token values in logs. Workflow generation and linting of the actual generated YAML also passed.
Related: #129327
Related: #80373
Failing job: https://github.com/ClickHouse/ClickHouse/actions/runs/43119319956/job/130914755090
CI report: https://s3.amazonaws.com/clickhouse-test-reports/PRs/80373/0f248a568ef8685fce02dec3aa54689cc5958fa9/pr/result_performance_comparison_arm_release_master_head_1_6.json
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Authenticate coverage-based performance test selection with a read-only GitHub job token.
Workflow [PR]
Sync PR [sync-upstream/pr/131070]
Version info
26.11.1.2119-master(included in26.11and later)