Skip to content

remote: allow local fallback for buildRemoteAction failures#29185

Open
coeuvre wants to merge 1 commit intobazelbuild:masterfrom
coeuvre:push-yymlnnkmkqou
Open

remote: allow local fallback for buildRemoteAction failures#29185
coeuvre wants to merge 1 commit intobazelbuild:masterfrom
coeuvre:push-yymlnnkmkqou

Conversation

@coeuvre
Copy link
Copy Markdown
Member

@coeuvre coeuvre commented Apr 1, 2026

If buildRemoteAction fails due to a RemoteExecutionCapabilitiesException, the failure should trigger local fallback if --remote_local_fallback is enabled.

Previously, RemoteExecutionCapabilitiesException was caught in buildRemoteAction and re-thrown as an ExecException, which is considered fatal and bypasses the fallback logic in RemoteSpawnRunner and RemoteSpawnCache.

Closes #29129

@coeuvre coeuvre requested a review from a team as a code owner April 1, 2026 13:17
@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 Apr 1, 2026
@coeuvre coeuvre marked this pull request as draft April 1, 2026 13:20
If buildRemoteAction fails due to a RemoteExecutionCapabilitiesException,
the failure should trigger local fallback if --remote_local_fallback is enabled.

Previously, RemoteExecutionCapabilitiesException was caught in
buildRemoteAction and re-thrown as an ExecException, which is considered
fatal and bypasses the fallback logic in RemoteSpawnRunner and
RemoteSpawnCache.

Closes bazelbuild#29129
@coeuvre coeuvre force-pushed the push-yymlnnkmkqou branch from ab62a04 to 8877b80 Compare April 1, 2026 13:35
@coeuvre coeuvre marked this pull request as ready for review April 1, 2026 13:36
@coeuvre coeuvre requested a review from tjgq April 1, 2026 13:36
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.

--remote_local_fallback bypassed when --remote_executor endpoint is unreachable

1 participant