Skip to content

Change Bazel to use Clang for layering checks - #953

Open
luca-della-vedova wants to merge 7 commits into
gazebosim:mainfrom
luca-della-vedova:luca/fix_bazel_layering_checks
Open

Change Bazel to use Clang for layering checks#953
luca-della-vedova wants to merge 7 commits into
gazebosim:mainfrom
luca-della-vedova:luca/fix_bazel_layering_checks

Conversation

@luca-della-vedova

Copy link
Copy Markdown
Contributor

🦟 Bug fix

WIP, fix CI / builds with Clang. Was not detected in original Bazel CI PR because the workflow doesn't run mac CI on branches, it only runs it after it is merged to main.

Summary

WIP, first commit changing build to be with Clang to enable layering checks, will work towards green CI.

Backport Policy

  • This is safe to backport to the following versions:
    • Jetty
    • Ionic
    • Harmonic
    • Fortress
  • This should not be backported
  • I am not sure
  • Other (fill in yourself)

Checklist

  • Signed all commits for DCO
  • Added a screen capture or video to the PR description that demonstrates the fix (as needed)
  • 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)
  • Updated Bazel files (if adding new files). Created an issue otherwise.
  • 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 "Assisted-by" to your commits. (See this policy for more info.)

Assisted-by: Gemini

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.

Backports: If this is a backport, please use Rebase and Merge instead.

Signed-off-by: Luca Della Vedova <lucadv@intrinsic.ai>
@luca-della-vedova
luca-della-vedova force-pushed the luca/fix_bazel_layering_checks branch from 8595b7d to f9dc34f Compare September 1, 2026 07:58
Signed-off-by: Luca Della Vedova <lucadv@intrinsic.ai>
@luca-della-vedova
luca-della-vedova force-pushed the luca/fix_bazel_layering_checks branch from 57cbb1a to faa7e7f Compare September 1, 2026 08:46
Signed-off-by: Luca Della Vedova <lucadv@intrinsic.ai>
Signed-off-by: Luca Della Vedova <lucadv@intrinsic.ai>
@luca-della-vedova
luca-della-vedova force-pushed the luca/fix_bazel_layering_checks branch from e1cc40d to d4f8fe7 Compare September 2, 2026 01:51
Signed-off-by: Luca Della Vedova <lucadv@intrinsic.ai>
Signed-off-by: Luca Della Vedova <lucadv@intrinsic.ai>
Signed-off-by: Luca Della Vedova <lucadv@intrinsic.ai>
Comment thread MODULE.bazel
Comment on lines +52 to +59
# TODO(anyone) Remove when bumping to zenoh-cpp 1.8.0 that has the fix merged in
single_version_override(
module_name = "zenoh-cpp",
patch_strip = 0,
patches = [
"//patches:zenoh_cpp_cancellation.patch",
],
)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a bit of a bummer, but should be straightforward to remove later

@luca-della-vedova
luca-della-vedova marked this pull request as ready for review September 2, 2026 04:04
@cheriehu

cheriehu commented Sep 3, 2026

Copy link
Copy Markdown

Tracking issue: gazebo-tooling/gz-bazel-dev#5

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

Projects

Status: Inbox

Development

Successfully merging this pull request may close these issues.

3 participants