Skip to content

Conversation

@armandomontanez
Copy link

This gives remote execution services the information required to correctly handle remote persistent workers that do not use the default protocol.

Closes #28405.

RELNOTES: The requires-worker-protocol execution requirement is now forwarded to remote execution services as a platform property to support intermixing JSON and Proto remote persistent worker protocols across a build.

@google-cla
Copy link

google-cla bot commented Jan 30, 2026

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

This gives remote execution services the information required to
correctly handle remote persistent workers that do not use the default
protocol.

Closes bazelbuild#28405.

RELNOTES: The `requires-worker-protocol` execution requirement is now
forwarded to remote execution services as a platform property to support
intermixing JSON and Proto remote persistent worker protocols across a
build.
@armandomontanez armandomontanez force-pushed the communicate-worker-protocol branch from 197ab47 to fdf027b Compare January 30, 2026 19:20
@armandomontanez armandomontanez marked this pull request as ready for review January 31, 2026 00:41
@armandomontanez armandomontanez requested a review from a team as a code owner January 31, 2026 00:41
@github-actions github-actions bot added team-Remote-Exec Issues and PRs for the Execution (Remote) team awaiting-review PR is awaiting review from an assigned reviewer labels Jan 31, 2026
Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request correctly implements the forwarding of the requires-worker-protocol execution requirement to the remote execution service. The changes in RemoteExecutionService are clean, and the refactoring to use a builder for platform properties is a good improvement. The test cases in RemoteExecutionServiceTest have been updated appropriately to cover the new functionality. I have no concerns with this change.

}
if (spawn.getExecutionInfo().containsKey(ExecutionRequirements.REQUIRES_WORKER_PROTOCOL)) {
additionalPropertiesBuilder.put(
ExecutionRequirements.REQUIRES_WORKER_PROTOCOL,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since the worker protocol is specific to Bazel, we could consider prefixing this with bazel-.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting-review PR is awaiting review from an assigned reviewer team-Remote-Exec Issues and PRs for the Execution (Remote) team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

JSON support for remote persistent workers

2 participants