-
Notifications
You must be signed in to change notification settings - Fork 425
iox-#2432: Fix bazel build for --incompatible_disallow_empty_glob
#2433
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
base: main
Are you sure you want to change the base?
Conversation
e127299
to
77028a4
Compare
--incompatible_disallow_empty_glob
--incompatible_disallow_empty_glob
77028a4
to
7531ca0
Compare
7531ca0
to
59eed8f
Compare
Add https://github.com/eclipse-iceoryx/iceoryx/releases/tag/v2.95.4 Includes patches for these PRs: * eclipse-iceoryx/iceoryx#2371 * eclipse-iceoryx/iceoryx#2433 * eclipse-iceoryx/iceoryx#2436 * eclipse-iceoryx/iceoryx#2437 * eclipse-iceoryx/iceoryx#2439 Added `test_targets` in presubmit as well, except for those that are failing due to lack of resources in ci
Do you know it this is compatible with bazel 6.2? |
I don't see why not. Bazel 6 is quite old though, its EOL is only a few months away: https://bazel.build/release |
Are you able to check this? It might be old, but we have users who are still using it, so we need to keep it working. |
Checking with Bazel 6 (via ❯ USE_BAZEL_VERSION=6.x bazel test //... --enable_bzlmod
ERROR: https://bcr.bazel.build/modules/googletest/1.15.2/MODULE.bazel:68:20: name 'use_repo_rule' is not defined
ERROR: Error computing the main repository mapping: in module dependency chain <root> -> [email protected]: error executing MODULE.bazel file for [email protected]
❯ USE_BAZEL_VERSION=6.x bazel test //... --noenable_bzlmod
INFO: Analyzed 122 targets (31 packages loaded, 2454 targets configured).
INFO: Found 112 targets and 10 test targets...
ERROR: /home/laltenmueller/.cache/bazel/_bazel_laltenmueller/740f0239debf861aadac7b86a3d4babd/external/ncurses/BUILD.bazel:24:15: Foreign Cc - Configure: Building ncurses failed: (Exit 2): bash failed: error executing command (from target @ncurses//:ncurses) /bin/bash -c bazel-out/k8-fastbuild/bin/external/ncurses/ncurses_foreign_cc/wrapper_build_script.sh
(...)
/usr/bin/ar: ../lib/libncurses.a: No such file or directory
make[1]: *** [Makefile:924: ../lib/libncurses.a] Error 1
make[1]: Leaving directory '/home/laltenmueller/.cache/bazel/_bazel_laltenmueller/740f0239debf861aadac7b86a3d4babd/sandbox/linux-sandbox/749/execroot/org_eclipse_iceoryx/bazel-out/k8-fastbuild/bin/external/ncurses/ncurses.build_tmpdir/ncurses'
make: *** [Makefile:133: all] Error 2
FAILED: Build did NOT complete successfully So it seems like something about the Workspace build of ncurses also doesn't work Note that ❯ USE_BAZEL_VERSION=7.x bazel test //... --noenable_bzlmod
Starting local Bazel server and connecting to it...
INFO: Analyzed 122 targets (107 packages loaded, 3897 targets configured).
INFO: Found 112 targets and 10 test targets...
INFO: Elapsed time: 435.762s, Critical Path: 169.31s
INFO: 886 processes: 272 internal, 614 linux-sandbox.
INFO: Build completed successfully, 886 total actions
//iceoryx_binding_c/test:binding_c_integrationtests PASSED in 0.0s
//iceoryx_binding_c/test:binding_c_moduletests PASSED in 6.2s
//iceoryx_hoofs/test:hoofs_integrationtests PASSED in 0.0s
//iceoryx_hoofs/test:hoofs_moduletests PASSED in 3.4s
//iceoryx_hoofs/test/stresstests:hoofs_stresstests PASSED in 163.5s
//iceoryx_hoofs/test/stresstests:test_stress_spsc_sofi PASSED in 6.0s
//iceoryx_platform/test:platform_integrationtests PASSED in 0.0s
//iceoryx_platform/test:platform_moduletests PASSED in 0.0s
//iceoryx_posh/test:posh_integrationtests PASSED in 56.7s
//iceoryx_posh/test:posh_moduletests PASSED in 27.4s
Executed 10 out of 10 tests: 10 tests pass. works just fine! So I doubt that anybody uses this with Bazel 6 unless they have heavily patched things already. |
Hmm, it seems it is related to ncurses, so it might be that the 6.2 users are just not building the introspection. Everything else keeps building with these changes, so there is no reason not to merge them. I've review it the next days |
Add https://github.com/eclipse-iceoryx/iceoryx/releases/tag/v2.95.4 Includes patches for these PRs: * eclipse-iceoryx/iceoryx#2371 * eclipse-iceoryx/iceoryx#2433 * eclipse-iceoryx/iceoryx#2436 * eclipse-iceoryx/iceoryx#2437 * eclipse-iceoryx/iceoryx#2439 Added `test_targets` in presubmit as well, except for those that are failing due to lack of resources in ci
deps = ["@googletest//:gtest"], | ||
) | ||
|
||
cc_library( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Love seeing some of these targets split out 🙂
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@elBoberido For what it is worth this LGTM
Can't tell just by staring at the respelled globs that they pick up exactly the same file set, but if things compile and tests pass we should be good, right?
@gpalmer-latai @lalten sorry, got distracted. It's on my todo list to get back to all the bazel PRs. I try to refresh my memory on the weekend or beginning of next week. |
Notes for Reviewer
Fix bazel build for
--incompatible_disallow_empty_glob
which is the default on Bazel 8.Pre-Review Checklist for the PR Author
iox-123-this-is-a-branch
)iox-#123 commit text
)task-list-completed
)Checklist for the PR Reviewer
iceoryx_hoofs
have been added to./clang-tidy-diff-scans.txt
Post-review Checklist for the PR Author
References
--incompatible_disallow_empty_glob
#2432