Skip to content

Bazel updates: prep for BCR release automation#1196

Merged
iche033 merged 4 commits intogz-rendering10from
shameek/bazel
Dec 11, 2025
Merged

Bazel updates: prep for BCR release automation#1196
iche033 merged 4 commits intogz-rendering10from
shameek/bazel

Conversation

@shameekganguly
Copy link
Copy Markdown
Contributor

@shameekganguly shameekganguly commented Nov 24, 2025

🦟 Bug fix

Summary

Few small fixes in MODULE.bazel as pre-work to add automation to push new releases to BCR.

  • Remove archive_override for gazebo package deps and use Jetty packages from BCR instead. As a result, bazel CI will use released versions of gz deps, which is consistent with cmake CI.
  • Drop repo_name, which removes the need to patch MODULE.bazel when pushing a release to BCR. repo_name is not a required field and can be added on the client side during import if needed to disambiguate packages.
  • Add compatibility_level to match what is set in BCR
  • Add buildifier linting for consistent bazel files formatting.
  • Use cc_library and cc_test from rules_cc, rather than native rules which are deprecated in bazel 9. The buildifier lint target added above already enforces this.
  • Add module docstring for bazel/gz_rendering_engine_libraries.bzl (enforced by buildifier linting).
  • Bump rules_cc and rules_gazebo to versions indicated by bazel in the resolved build graph.

Checklist

  • Signed all commits for DCO
  • Added tests
  • Updated documentation (as needed)
  • Updated migration guide (as needed)
  • Consider updating Python bindings (if the library has them)
  • codecheck passed (See contributing)
  • All tests passed (See test coverage)
  • While waiting for a review on your PR, please help review another open pull request to support the maintainers
  • Was GenAI used to generate this PR? If so, make sure to add "Generated-by" to your commits. (See this policy for more info.)

Note to maintainers: Remember to use Squash-Merge and edit the commit message to match the pull request summary while retaining Signed-off-by and Generated-by messages.

Signed-off-by: Shameek Ganguly <shameek@intrinsic.ai>
@shameekganguly
Copy link
Copy Markdown
Contributor Author

Note: this PR cannot be forward-ported to main automatically since we still want the archive_overrides in MODULE.bazel on that branch. I will open a manual forward port PR once this is merged.

Signed-off-by: Shameek Ganguly <shameek@intrinsic.ai>
Signed-off-by: Shameek Ganguly <shameek@intrinsic.ai>
Signed-off-by: Shameek Ganguly <shameek@intrinsic.ai>
@github-project-automation github-project-automation bot moved this from Inbox to In review in Core development Dec 10, 2025
@shameekganguly
Copy link
Copy Markdown
Contributor Author

Windows and Ubuntu Jenkins CI failures are unrelated.

@iche033 iche033 merged commit 0c7d251 into gz-rendering10 Dec 11, 2025
13 of 15 checks passed
@iche033 iche033 deleted the shameek/bazel branch December 11, 2025 21:19
@github-project-automation github-project-automation bot moved this from In review to Done in Core development Dec 11, 2025
@shameekganguly
Copy link
Copy Markdown
Contributor Author

Note: this PR cannot be forward-ported to main automatically since we still want the archive_overrides in MODULE.bazel on that branch. I will open a manual forward port PR once this is merged.

Forward port to main: #1200

shameekganguly added a commit that referenced this pull request Dec 12, 2025
…1196)

Signed-off-by: Shameek Ganguly <shameek@intrinsic.ai>
shameekganguly added a commit that referenced this pull request Dec 12, 2025
The change had to be amended to apply it on main. Specifically, the repo archive_overrides in MODULE.bazel for gz deps were removed in that PR on the Jetty branch, but we want to preserve it on main to ensure CI uses gz deps from HEAD.

-- Original PR description
Few small fixes in MODULE.bazel as pre-work to add automation to push new releases to BCR.

- Drop repo_name, which removes the need to patch MODULE.bazel when pushing a release to BCR. repo_name is not a required field and can be added on the client side during import if needed to disambiguate packages.
- Add compatibility_level to match what is set in BCR
- Add buildifier linting for consistent bazel files formatting.
- Use cc_library and cc_test from rules_cc, rather than native rules which are deprecated in bazel 9. The buildifier lint target added above already enforces this.
- Add module docstring for bazel/gz_rendering_engine_libraries.bzl (enforced by buildifier linting).
- Bump rules_cc and rules_gazebo to versions indicated by bazel in the resolved build graph.

Signed-off-by: Shameek Ganguly <shameek@intrinsic.ai>
shameekganguly added a commit that referenced this pull request Dec 16, 2025
…1196) (#1202)

Manually backported to use Ionic packages for gz deps from BCR instead of Jetty deps.

-- Original PR description:
Few small fixes in MODULE.bazel as pre-work to add automation to push new releases to BCR.

- Remove `archive_override` for gazebo package deps and use Jetty packages from BCR instead. As a result, bazel CI will use released versions of gz deps, which is consistent with cmake CI.
- Drop `repo_name`, which removes the need to patch MODULE.bazel when pushing a release to BCR. `repo_name` is not a required field and can be added on the client side during import if needed to disambiguate packages.
- Add `compatibility_level` to match [what is set in BCR](https://github.com/bazelbuild/bazel-central-registry/blob/928128b1c60e7e32d21ea8bde9fd802674eba5f3/modules/gz-rendering/10.0.0-pre2/MODULE.bazel#L4)
- Add `buildifier` linting for consistent bazel files formatting.
- Use `cc_library` and `cc_test` from `rules_cc`, rather than native rules which are [deprecated in bazel 9](https://bazel.build/about/roadmap#migration_of_android_c_java_python_and_proto_rules). The buildifier lint target added above already enforces this.
- Add module docstring for bazel/gz_rendering_engine_libraries.bzl (enforced by buildifier linting).
- Bump `rules_cc` and `rules_gazebo` to versions indicated by bazel in the [resolved build graph](https://github.com/gazebosim/gz-rendering/actions/runs/19647238647/job/56265351330?pr=1196#step:8:19).

Signed-off-by: Shameek Ganguly <shameek@intrinsic.ai>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🪵 jetty Gazebo Jetty

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

3 participants