Skip to content

Use a custom bazel-postsubmit.yml file for Bazel in downstream pipeline#1878

Merged
meteorcloudy merged 1 commit intobazelbuild:masterfrom
meteorcloudy:fix_bazel_in_downstream
Feb 12, 2024
Merged

Use a custom bazel-postsubmit.yml file for Bazel in downstream pipeline#1878
meteorcloudy merged 1 commit intobazelbuild:masterfrom
meteorcloudy:fix_bazel_in_downstream

Conversation

@meteorcloudy
Copy link
Copy Markdown
Member

@meteorcloudy meteorcloudy commented Feb 12, 2024

Fixes bazelbuild/bazel#21292

After bazelbuild/bazel@a54a393, the canonical repo name returned by Bazel@HEAD no longer matches the name in MODULE.bazel.lock, therefore we need to run bazel mod deps --lockfile_mode=update to re-generate the lockfile before running the build.

This is done by changing the postsubmi.yml file for Bazel to a custom version located in the CI repo, which can be updated by running ./update-bazel-postsubmit.sh under ./pipelines.

We may revert this change after we update Bazel to 7.1 for building Bazel itself.

@meteorcloudy
Copy link
Copy Markdown
Member Author

/cc @sgowroji @fmeum

@meteorcloudy meteorcloudy merged commit de5ab84 into bazelbuild:master Feb 12, 2024
Wyverald pushed a commit that referenced this pull request Apr 16, 2024
Re-applying
#1878 to
address
bazelbuild/bazel#21864 (comment)

The postsubmit.yml was synced to the latest version in Bazel
fweikert pushed a commit to fweikert/continuous-integration that referenced this pull request Mar 27, 2025
…ne (bazelbuild#1878)

Fixes bazelbuild/bazel#21292

After
bazelbuild/bazel@a54a393,
the canonical repo name returned by Bazel@HEAD no longer matches the
name in MODULE.bazel.lock, therefore we need to run `bazel mod deps
--lockfile_mode=update` to re-generate the lockfile before running the
build.

This is done by changing the postsubmi.yml file for Bazel to a custom
version located in the CI repo, which can be updated by running
`./update-bazel-postsubmit.sh` under `./pipelines`.

We may revert this change after we update Bazel to 7.1 for building
Bazel itself.
fweikert pushed a commit to fweikert/continuous-integration that referenced this pull request Mar 27, 2025
Re-applying
bazelbuild#1878 to
address
bazelbuild/bazel#21864 (comment)

The postsubmit.yml was synced to the latest version in Bazel
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.

ERROR: An error occurred during the fetch of repository '_main~bazel_build_deps~bootstrap_repo_cache' in CI

2 participants