Skip to content

Disable Buildkite submodule checkout for Gerrit - #2827

Open
davido wants to merge 1 commit into
bazelbuild:masterfrom
davido:issue-2815-gerrit-disable-agent-submodules
Open

Disable Buildkite submodule checkout for Gerrit#2827
davido wants to merge 1 commit into
bazelbuild:masterfrom
davido:issue-2815-gerrit-disable-agent-submodules

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.

Disable agent-managed submodule checkout for the Gerrit pipeline so the bootstrap step can run. The generated Bazel CI runner still clones Gerrit with --git_repository and runs git submodule update, which resolves relative submodule URLs with Git's normal semantics.

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.

Disable agent-managed submodule checkout for the Gerrit pipeline so the
bootstrap step can run. The generated Bazel CI runner still clones
Gerrit with --git_repository and runs git submodule update, which
resolves relative submodule URLs with Git's normal semantics.

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.
@meteorcloudy

Copy link
Copy Markdown
Member

I actually tried this env var, but it led to some other errors: https://buildkite.com/bazel/gerrit/builds/14307#01a0332d-ee6f-4ef0-856d-e7cd99c81888

@davido

davido commented Aug 27, 2026

Copy link
Copy Markdown
Contributor Author

I actually tried this env var, but it led to some other errors: https://buildkite.com/bazel/gerrit/builds/14307#01a0332d-ee6f-4ef0-856d-e7cd99c81888

Here is another blind attempt to fix gerrit build:
#2828

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants