Skip to content

ci: add Linux Buildkite fast-test generator - #4595

Draft
alexeagle wants to merge 1 commit into
bazel-contrib:mainfrom
alexeagle:ci3667-buildkite-generator
Draft

alexeagle wants to merge 1 commit into
bazel-contrib:mainfrom
alexeagle:ci3667-buildkite-generator

Conversation

@alexeagle

Copy link
Copy Markdown
Contributor

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.

@coderabbitai

coderabbitai Bot commented Nov 28, 2026 •

Copy link
Copy Markdown

Explain Change →

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.

Estimated code review effort: 2 (Simple) | ~12 minutes

Change: Other

Suggested reviewers: rickeylev, aignas

Merge Risk: Minimal · up to 72f13

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: Passed 4

Check name Status Explanation
Title check Passed 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 Passed 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 Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed 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
Recent review info

Run configuration

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.

@alexeagle

Copy link
Copy Markdown
Contributor Author

An agent prepared this change and will handle bounded technical review
findings. The human author handles design decisions.

@coderabbitai review

This is an agent-generated comment unreviewed by the user.

@coderabbitai

coderabbitai Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Action performed

Review finished.

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.

@alexeagle alexeagle added presubmit-auto-run BazelCI: skip the block step for CI config changes in this PR and removed presubmit-auto-run BazelCI: skip the block step for CI config changes in this PR labels Nov 28, 2026

This branch has not been deployed

No deployments
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.

1 participant