-
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
Please consider exposing WorkRequestHandler to workspaces #14556
Comments
We don't want to add more things to @bazel_tools, see #4301. |
@larsrc-google what do you think about publishing part of Bazel library as independent maven artifacts? Actually, it is less about |
It's a good idea, and we're now talking internally about what the best way to do this kind of API-like thing is. There will be some maintenance involved if we separate it out. |
@larsrc-google We chatted briefly after the Performance BOF session. Is this something you'd still be willing to do? |
I think the reluctance to add stuff to |
Just for clarification: Is it impossible to depend on WorkRequestHandler, or is it just problematic because it pulls in much more than it ought to? If the former, that should be fixed, it's definitely intended to be depended upon. |
I'm no longer working on that codebase, but I think it's currently impossible to depend on |
:head_palm: Making it public. |
The worker API and Java handler implementation have been moved to https://github.com/bazelbuild/bazel-worker-api. |
Description of the problem / feature request:
I'd like to be able to reuse
WorkRequestHandler
for implementing custom persistent workers.Feature requests: what underlying problem are you trying to solve with this feature?
The
com.google.devtools.build.lib.worker.WorkRequestHandler
class is a great starting point for implementing persistent workers. However, external workers can't use it because it's inside the Bazel codebase and not exported under@bazel_tools
. It'd be easier to write custom workers if they could reuseWorkRequestHandler
.What operating system are you running Bazel on?
macOS Big Sur
What's the output of
bazel info release
?Have you found anything relevant by searching the web?
Any other information, logs, or outputs that you want to share?
bazel query @bazel_tools//...
shows other built-in tools that rules can reuse, likesinglejar
and the work request proto definitions at@bazel_tools//src/main/protobuf:worker_protocol_proto
. Based on the location thatworker_protocol_proto
is at, I spent a while trying to depend on@bazel_tools//src/main/java/com/google/devtools/build/lib/worker
to work.The text was updated successfully, but these errors were encountered: