Skip to content

[9.3.0] Reland Communicate persistent worker protocol to remote execution service - #30641

Open
armandomontanez wants to merge 1 commit into
bazelbuild:release-9.3.0from
armandomontanez:armando/persistent-worker-protocol-9.3.0
Open

[9.3.0] Reland Communicate persistent worker protocol to remote execution service#30641
armandomontanez wants to merge 1 commit into
bazelbuild:release-9.3.0from
armandomontanez:armando/persistent-worker-protocol-9.3.0

Conversation

@armandomontanez

@armandomontanez armandomontanez commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

This reland combines #28489 and #29299 to reland the persistentWorkerProtocol platform property to make it possible to execute remote persistent worker actions that specify a non-default persistent worker protocol (e.g. JSON).

Original descriptions:

Communicate persistent worker protocol to remote execution service

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 (persistentWorkerProtocol) to support intermixing JSON and Proto remote persistent worker protocols across a build.

Only set persistentWorkerProtocol for persistent actions

The persistentWorkerProtocol platform property was unconditionally added to any action with requires-worker-protocol in its execution requirements, even when the action was not a remote persistent worker request. This could cause unexpected platform properties when sent as a non-persistent remote action.

Gate the persistentWorkerProtocol property behind --experimental_remote_mark_tool_inputs so it's only set when it is needed.

Work towards #29267.

…tion service

This reland combines bazelbuild#28489 and bazelbuild#29299 to reland the
`persistentWorkerProtocol` platform property to make it possible to
execute remote persistent worker actions that specify a non-default
persistent worker protocol (e.g. JSON).

Original descriptions:

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 (persistentWorkerProtocol) to support intermixing JSON and Proto remote persistent worker protocols across a build.

The persistentWorkerProtocol platform property was unconditionally added to any action with requires-worker-protocol in its execution requirements, even when the action was not a remote persistent worker request. This could cause unexpected platform properties when sent as a non-persistent remote action.

Gate the persistentWorkerProtocol property behind --experimental_remote_mark_tool_inputs so it's only set when it is needed.

Work towards bazelbuild#29267.
@armandomontanez
armandomontanez marked this pull request as ready for review August 7, 2026 20:52
@armandomontanez
armandomontanez requested a review from a team as a code owner August 7, 2026 20:52
@github-actions github-actions Bot added team-Remote-Exec Issues and PRs for the Execution (Remote) team team-Documentation Documentation improvements that cannot be directly linked to other team labels awaiting-review PR is awaiting review from an assigned reviewer labels Aug 7, 2026
@bazel-docs-pr-commenter

Copy link
Copy Markdown

✅ Bazel docs preview is ready!

Preview URL: https://bazel-pr-30641.mintlify.app/

⚠️ Some changed doc pages have MDX parse errors and will not render
Failed to parse page content at path remote/persistent.mdx: Could not parse expression with acorn
*Updated for `3b1185fe0570b4acf8eae5b396c29e921788ca25`*

@fmeum

fmeum commented Aug 7, 2026

Copy link
Copy Markdown
Collaborator

As much as I would like to see this released in Bazel, isn't it still an incompatible change since unknown platform properties are, by the spec, expected to fail the build? That's fine for Bazel 10, but not necessarily for a cherry-pick.

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-Documentation Documentation improvements that cannot be directly linked to other team labels team-Remote-Exec Issues and PRs for the Execution (Remote) team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants