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

Does not work with remote action execution #65

Closed
Monnoroch opened this issue Apr 6, 2019 · 2 comments
Closed

Does not work with remote action execution #65

Monnoroch opened this issue Apr 6, 2019 · 2 comments

Comments

@Monnoroch
Copy link

Monnoroch commented Apr 6, 2019

Here is my repository. The software is pretty complicated, but the part relevant to this example is simple. I have a proto_library with some protos, a proto_plugin with a Java binary and a proto_compile rule that wants to use this plugin to generate some files from the mentioned library. If one was to clone this repository, checkout to branch bazel-1 and run bazel test //... with three last bazel releases it would succeed. If one was to use remote bazel execution and use the standard bazelrc for it, when running bazel test //... --config=remote -s one would get the following error:

SUBCOMMAND: # //:test_proto_compile [action 'ProtoCompile test_proto_compile/test_proto_compile.jar']
(cd /home/monnoroch/.cache/bazel/_bazel_monnoroch/feda265a792323e37770534c35ab788f/execroot/blerpc && \
  exec env - \
  /bin/bash -c 'bazel-out/host/bin/external/com_google_protobuf/protoc --descriptor_set_out=bazel-out/k8-fastbuild/bin/test_proto_compile/descriptor.source.bin --proto_path=bazel-out/k8-fastbuild/bin/test_proto_compile --include_imports --include_source_info --java_out=bazel-out/k8-fastbuild/bin/test_proto_compile/test_proto_compile.jar --reactive-blerpc-generator_out=bazel-out/k8-fastbuild/bin/test_proto_compile --plugin=protoc-gen-reactive-blerpc-generator=bazel-out/host/bin/reactive-blerpc bazel-out/k8-fastbuild/bin/test_proto_compile/reactive-blerpc-test/src/main/proto/test_service.proto')
ERROR: /home/monnoroch/dev/blerpc-android/BUILD.bazel:74:1: error executing shell command: '/bin/bash -c bazel-out/host/bin/external/com_google_protobuf/protoc --descriptor_set_out=bazel-out/k8-fastbuild/bin/test_proto_compile/descriptor.source.bin --proto_path=bazel-out/k8-fastbuild/bin/...' failed (Exit 1)
bazel-out/host/bin/reactive-blerpc: Cannot locate runfiles directory. (Set $JAVA_RUNFILES to inhibit searching.)
--reactive-blerpc-generator_out: protoc-gen-reactive-blerpc-generator: Plugin failed with status code 1.
@pcj
Copy link
Member

pcj commented May 7, 2019

This repo is now on the bazelci. The rbe is not enabled by default ATM but could be changed to make sure this is always tested. PR welcome.

@pcj
Copy link
Member

pcj commented Nov 16, 2021

Closing stale PRs and issue, please reopen new one if desired.

@pcj pcj closed this as completed Nov 16, 2021
alexeagle pushed a commit to alexeagle/rules_proto that referenced this issue Sep 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants