You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ci: add Linux Buildkite fast-test generator - #4595
The shared Buildkite bootstrap expects an executable pipeline generator.
Add a standard-library Python generator that emits Linux fast-test jobs
for supported Bazel versions, plus tests for its executable output and
test-command failure propagation.
This supplements the existing BazelCI matrix. Platform, coverage, nested
workspace, and integration testing continue through BazelCI.
No actionable comments were generated in the recent review.
Walkthrough
The change adds a Buildkite pipeline generator for Linux fast tests across Bazel 7.x, 8.x, and 9.x. It also adds a Bazel test target and tests for the generated pipeline and command behavior.
Changes: Buildkite fast-test pipeline
Layer / File(s)
Summary
Generate the Bazel version pipeline .buildkite/pipeline.py
Defines Bazel versions 7.x, 8.x, and 9.x. Generates one Linux fast-test job per version, with a version-based key, USE_BAZEL_VERSION, and the configured test command. Prints the generated pipeline as JSON when run as a script.
Wire and validate the pipeline tests .buildkite/BUILD.bazel, .buildkite/pipeline_test.py
Adds a Bazel test target, excluding Windows. Tests check the generated jobs, command arguments, and propagation of exit codes 0, 1, 3, and 37.
This adds a Linux fast-test pipeline generator for Bazel 7.x, 8.x, and 9.x, with tests of its output and exit-code behavior. It supplements the existing CI matrix and does not change library behavior. No actionable merge risk was found.
Security architecture risk: Low · up to 72f13
The new Buildkite hook is intended to add three fast-test jobs. It does not request credentials or select a privileged worker, but the shared Buildkite configuration determines which revision can supply the hook and what access it receives. No privilege expansion was verified.
Retained concerns
Low · security · inferred: If the shared bootstrap executes the new hook from an untrusted PR checkout with authority beyond that granted to ordinary PR jobs, PR-authored code could run with that authority and supply pipeline definitions. The PR adds the hook; the checkout and isolation conditions are not established.
Security review details
Trust Boundaries and Controls
inferred — The documented invocation places the trust decision at the shared bootstrap: it must decide which revision supplies the executable before running it and which placement and isolation policies apply to its output.
Hardening Proposals
proposed — Before activation, verify that the bootstrap either loads the generator from a trusted revision or runs PR-authored generators without privileged credentials and restricts their generated jobs to isolated PR workers.
Pre-merge checks: 4
Check name
Status
Explanation
Title check
The title "ci: add Linux Buildkite fast-test generator" matches the main change. The PR adds a standard-library Python pipeline generator at .buildkite/pipeline.py that emits Linux fast-test jobs for …
Description check
The description states the purpose of the change: a standard-library Python generator that emits Linux fast-test jobs for supported Bazel versions, with tests for executable output and test-command fa…
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Full details: Title check
Explanation
The title "ci: add Linux Buildkite fast-test generator" matches the main change. The PR adds a standard-library Python pipeline generator at .buildkite/pipeline.py that emits Linux fast-test jobs for Bazel 7.x, 8.x, and 9.x, plus tests for its output and failure propagation. The title is specific and concise.
Full details: Description check
Explanation
The description states the purpose of the change: a standard-library Python generator that emits Linux fast-test jobs for supported Bazel versions, with tests for executable output and test-command failure propagation. The changeset includes these items (.buildkite/pipeline.py and .buildkite/pipeline_test.py). It also notes that BazelCI keeps platform, coverage, and integration testing, which fits the scope of the change.
Finishing Touches
Generate unit tests (beta)
Create a new PR
Fix failing CI checks
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Layers: Repository YAML (base), Central YAML (inherited)
Review profile: QUIET
Plan: Advanced
Run ID: f1b863aa-fd14-4ff1-800e-71bf3f117f76
Commits
Reviewing files that changed from the base of the PR and between c5a1161 and 72f1367.
Files selected for processing: 3
.buildkite/BUILD.bazel
.buildkite/pipeline.py
.buildkite/pipeline_test.py
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 0 remain after this review.
Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.
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
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.
The shared Buildkite bootstrap expects an executable pipeline generator.
Add a standard-library Python generator that emits Linux fast-test jobs
for supported Bazel versions, plus tests for its executable output and
test-command failure propagation.
This supplements the existing BazelCI matrix. Platform, coverage, nested
workspace, and integration testing continue through BazelCI.