-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Bazel 5.3 fails to run external tests #16003
Comments
Does #14600 fix this issue? |
Aw, I was hopeful. I fixed some merge conflicts (looks like "../".replace() -> Strings.replace("../", ...) and I still get the same failure.
|
Could you check whether #16008 fixes the issue? It includes an integration test that I distilled from your reproducer. |
It does! Great work, thanks for the prompt response and prompt resolution. I really appreciate it. FYI, there's the same merge conflict with Strings.replace. Not a hard thing to fix though. |
Assigning to @oquenchil since the linked fix is about cc rules. |
The solib directory is located within the subdirectory of the runfiles directory corresponding to the workspace. Thus, if a binary is contained in an external repository, its $ORIGIN relative rpath has to first ascend to the runfiles directory and then descend into the workspace directory. Fixes bazelbuild#16003 Closes bazelbuild#16008. PiperOrigin-RevId: 466634083 Change-Id: I4ada28b459f23f68a2091dbaad9147cfec2fbe43
The solib directory is located within the subdirectory of the runfiles directory corresponding to the workspace. Thus, if a binary is contained in an external repository, its $ORIGIN relative rpath has to first ascend to the runfiles directory and then descend into the workspace directory. Fixes #16003 Closes #16008. PiperOrigin-RevId: 466634083 Change-Id: I4ada28b459f23f68a2091dbaad9147cfec2fbe43
@bazel-io fork 5.3.1 |
The fix introduced a regression (see #16008 (comment)), which we will probably need a patch release for. |
Seeing a very similar problem when upgrading from 5.2.0 to 5.3.0:
But trying out 5.3.1rc2, it looks like that particular problem is resolved for us. |
Hello @AustinSchuh, Are you still seeing this issue with Release 5.3.1 ? |
5.3.1 works for me. I'm hitting #16108 but that feels separate. |
Thanks for the update @AustinSchuh! |
Description of the bug:
Bazel fails to run C++ tests in external repositories on remote execution.
Running locally passes, even with linux-sandbox. Bazel 5.0 worked. This has broken bazel > 5.0 for us, and is blocking all upgrades.
What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
bazel test -c opt --config=engflow --config=build_without_the_bytes @aos//aos:condition_test
Run a c++ test for an external repository on remote execution. (I can't give you a remote execution cluster)
Which operating system are you running Bazel on?
Debian Bullseye
What is the output of
bazel info release
?release 5.3.0-202207291633+f440f8ec3f
If
bazel info release
returnsdevelopment version
or(@non-git)
, tell us how you built Bazel.What's the output of
git remote get-url origin; git rev-parse master; git rev-parse HEAD
?Have you found anything relevant by searching the web?
Reverting 0080572 fixes it. #12821 suggested that I add linkstatic to every C++ test we want to run, which seems like 1k's of lines of diffs off upstream, since no reasonable upstream would accept that patch.
Any other information, logs, or outputs that you want to share?
And to prove I'm not crazy:
The text was updated successfully, but these errors were encountered: