-
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
repository_ctx.symlink error when testing remotely using RBE #9979
Comments
Thanks for reporting! You are right, we have not implemented support for |
@buchgr Thank for the quick answer and confirming the problem. How can I mark the test to not run on |
|
Thx! |
Unfortunately it doesn't work. It's And it's still failing with the same error message as in description of this issue:
The original code is here: [2]. What am I missing? Update: I have sent this CL: [3], that didn't fix the problem. [1] http://paste.openstack.org/show/782730 |
I'm running into a similar issue updating from 0.28.0 to 1.0.0. This happens when I migrate default cpp toolchains from
I have a temporary workaround, which is to not migrate from static toolchains and to pass |
Not sure what changed, but now it always failing for me, even on other rules:
|
Not sure what is going on here, but it seems non-deterministic. Now it works here, for rule:
|
I can get the tests to run if I disable license_test() by inserting a |
It's not the test that's failing, but the setup of the C++ toolchain that's failing. The built-in sh_test implicitly depends on the C++ toolchain, and apparently the rest of your codebase does not. I suspect that's not easily fixable in Bazel. What you could do is write your own test rule in Starlark, or rewrite test_license.sh as a Java test (or in some other language). I wonder if there's already Starlark code for a forbidden dependency check somewhere that you could reuse. |
That's strange, because Gerrit depends on |
Thanks, Ulf, I'll try that. (I don't quite understand though: we depend on protobuf, which is C++. Does that work because the protobuf dependency is in the @protobuf repository?) |
Looks like py_test has the same problem. |
Is there any publicly available rule set for low-overhead programming (python, shell) languages you can recommend? |
My diagnosis is apparently incorrect, interesting. Maybe it's the genrule that's triggering the C++ toolchain config, not the test? Can you build the genrule, or does that also trigger the error? |
It looks like the CC toolchain gets dragged in through the genquery, see https://gerrit-review.googlesource.com/c/gerrit/+/247613 The genquery is just above the changed code. I'm only interested in dependencies that might reach into //lib:LICENSE-xxx files. I tried add --noimplicit_deps , --notool_deps, but it's in vain. |
This seems to work now on Bazel@HEAD (5b95663):
|
still broken on $ bazel version |
Have you noticed my last comment?
|
yes, I did. It's more a note to self. I'll ask bazel team when the next release will be out. |
When running tests on Gerrit@HEAD using RBE (see this documentation section), I am getting this error, when running one specific test:
Note, that other tests work as expected, e.g.:
//CC @hanwen @buchgr
The text was updated successfully, but these errors were encountered: