Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[email protected] #3494

Merged
merged 22 commits into from
Dec 31, 2024
Merged

[email protected] #3494

merged 22 commits into from
Dec 31, 2024

Conversation

kgreenek
Copy link
Contributor

Closes #3487

@bazel-io
Copy link
Member

Hello @bazelbuild/bcr-maintainers, modules without existing maintainers (lanelet2) have been updated in this PR. Please review the changes.

@wep21
Copy link
Contributor

wep21 commented Dec 26, 2024

needs presubmit.yml?

@kgreenek
Copy link
Contributor Author

needs presubmit.yml?

Doh I was in too much of a rush this morning! Added

@kgreenek
Copy link
Contributor Author

@bazel-io skip_check unstable_url

@bazel-io bazel-io added the skip-url-stability-check Skip the URL stability check for the PR label Dec 26, 2024
@kgreenek
Copy link
Contributor Author

PTAL

Sorry for the noise

@wep21
Copy link
Contributor

wep21 commented Dec 27, 2024

@fmeum @meteorcloudy please add presubmit auto run

@fmeum fmeum added the presubmit-auto-run Presubmit jobs will be triggered for new changes automatically without reviewer's approval label Dec 27, 2024
fmeum
fmeum previously approved these changes Dec 27, 2024
@fmeum
Copy link
Contributor

fmeum commented Dec 27, 2024

Checks are falling

@wep21
Copy link
Contributor

wep21 commented Dec 27, 2024

please update geographiclib after #3495 is merged.

@kgreenek
Copy link
Contributor Author

The test errors are tough to debug because I can't reproduce here locally. On my machine and my CI the tests pass.

Is it possible for me to see the .bazelrc that is being used in these CI checks?

@bazel-io bazel-io dismissed fmeum’s stale review December 27, 2024 14:35

Require module maintainers' approval for newly pushed changes.

@kgreenek
Copy link
Contributor Author

Nevermind! I figured it out. I needed to pass the c++17 args in my presubmit.yml

@kgreenek
Copy link
Contributor Author

This is just waiting until the geographiclib fix is merged to main now

@kgreenek kgreenek changed the title Add lanelet2 module [email protected] Dec 31, 2024
@kgreenek
Copy link
Contributor Author

kgreenek commented Dec 31, 2024

@fmeum I could use your help.

I think the current CI failure with bazel rolling in this PR can only be fixed once rules_cc v0.1.1 is released.

The reason is because boost require the rules_cc version to be 0.1.0. And since 0.1.0 is higher than 0.0.17 I can't specify a version besides 0.1.0 here. However, 0.1.0 does not contain the runfiles definitions in rules_cc that would be needed to break the cycle that causes the build to fail.

It looks like bazel tools in rolling now depends on rules_cc. But rules_cc 0.1.0 depends on bazel tools.
See:
https://github.com/bazelbuild/rules_cc/blob/0.1.0/cc/runfiles/BUILD#L5

Hence, I think I either need to wait for rules_cc 0.1.1, or I would need to somehow get rules_cc 0.0.17, which has the newer rules_cc runfiles macro which does not depend on bazel tools.

Here's the error:

(07:08:19) ERROR: /var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/6ba68aacb32a9a3eb373d5b292e7e579/external/bazel_tools/tools/cpp/runfiles/BUILD:1:11: in cc_library rule @@bazel_tools//tools/cpp/runfiles:runfiles: cycle in dependency graph:
    @@lanelet2+//:lanelet2_io_test (b777599e4daec69c84b8dea9290f68043118d9d1328876eb1515a5c541e8a806)
    @@bazel_tools//tools/cpp/runfiles:runfiles (b777599e4daec69c84b8dea9290f68043118d9d1328876eb1515a5c541e8a806)
.-> @@bazel_tools//tools/cpp/runfiles:runfiles (7f0665c24598269e6100c4a15535c8239f48b5033f2be3be41783159023fadc4)
|   @@rules_cc+//cc/runfiles:runfiles (7f0665c24598269e6100c4a15535c8239f48b5033f2be3be41783159023fadc4)
`-- @@bazel_tools//tools/cpp/runfiles:runfiles (7f0665c24598269e6100c4a15535c8239f48b5033f2be3be41783159023fadc4)

Do you have any suggestions for the best way I can resolve this?

@kgreenek kgreenek requested a review from fmeum December 31, 2024 07:44
@fmeum
Copy link
Contributor

fmeum commented Dec 31, 2024

Could boost downgrade to a lower rules_cc version in a new version? Depending on the minimum required version rather than the latest version is recommended with Bzlmod.

At the same time it's totally fine for rolling to require unreleased ruleset versions. Keeping rolling in your BCR presubmit (rather than just your module's own CI) is somewhat risky in that regard.

Cc @comius for potential advice on the future of v0.1.* vs v0.0.* of rules_cc.

@kgreenek kgreenek requested a review from fmeum December 31, 2024 08:12
@fmeum fmeum merged commit 2877e3a into bazelbuild:main Dec 31, 2024
19 checks passed
@kgreenek kgreenek deleted the kgk/lanelet2 branch December 31, 2024 08:20
@kgreenek
Copy link
Contributor Author

I think downgrading the version of rules_cc required by the boost libraries would be a good idea.

FWIW there are some other compatibility issues because rules_cc 0.1.0 removed cc_proto_library.

I found that I currently cannot depend on both boost and protobuf because a transitive dependency is not compatible with rules_cc 0.1.0.

I submitted a PR upstream to the offending package here (bufbuild/protoc-gen-validate#1210). If they merge that and create a release, then I can update the version in the BCR and make everything compatible with rules_cc 0.1.0.

I'll send up a PR shortly that illustrates the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
presubmit-auto-run Presubmit jobs will be triggered for new changes automatically without reviewer's approval skip-url-stability-check Skip the URL stability check for the PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

wanted: lanelet2
4 participants