Skip to content

Skip Buildkite checkout for Gerrit bootstrap - #2828

Open
davido wants to merge 1 commit into
bazelbuild:masterfrom
davido:issue-2815-gerrit-skip-bootstrap-checkout
Open

Skip Buildkite checkout for Gerrit bootstrap#2828
davido wants to merge 1 commit into
bazelbuild:masterfrom
davido:issue-2815-gerrit-skip-bootstrap-checkout

Conversation

@davido

@davido davido commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

Buildkite's git mirror checkout currently mirrors raw relative URLs from Gerrit's .gitmodules, such as ../java-prettify, from the mirror cache directory. That fails before the pipeline command can upload the Bazel CI steps.

Disabling agent-managed submodules avoids that exact failure, but still leaves the bootstrap step doing a full Gerrit checkout and post-checkout clean before running commands. The bootstrap step does not need the checked-out Gerrit tree; it downloads bazelci.py and uploads the generated pipeline.

Add a step-scoped checkout.skip option to the shared pipeline template and enable it only for the Gerrit bootstrap step. Generated build and test steps are uploaded separately and still get their normal checkout.

This workaround can be reverted after buildkite/agent#4276 is accepted and the Bazel CI workers run an updated Buildkite agent that includes the fix.

Refs #2815.
See buildkite/agent#4276 for the upstream agent fix.

Buildkite's git mirror checkout currently mirrors raw relative URLs
from Gerrit's .gitmodules, such as ../java-prettify, from the mirror
cache directory. That fails before the pipeline command can upload the
Bazel CI steps.

Disabling agent-managed submodules avoids that exact failure, but still
leaves the bootstrap step doing a full Gerrit checkout and post-checkout
clean before running commands. The bootstrap step does not need the
checked-out Gerrit tree; it downloads bazelci.py and uploads the
generated pipeline.

Add a step-scoped checkout.skip option to the shared pipeline template
and enable it only for the Gerrit bootstrap step. Generated build and
test steps are uploaded separately and still get their normal checkout.

This workaround can be reverted after buildkite/agent#4276 is accepted
and the Bazel CI workers run an updated Buildkite agent that includes
the fix.

Refs bazelbuild#2815.
See buildkite/agent#4276 for the upstream agent fix.
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