Skip to content

[8.2.0] Refactor build rewinding to a fallback strategy for action rewinding#25545

Merged
coeuvre merged 1 commit intobazelbuild:release-8.2.0from
fmeum:8.2.0-build-rewinding
Mar 13, 2025
Merged

[8.2.0] Refactor build rewinding to a fallback strategy for action rewinding#25545
coeuvre merged 1 commit intobazelbuild:release-8.2.0from
fmeum:8.2.0-build-rewinding

Conversation

@fmeum
Copy link
Copy Markdown
Collaborator

@fmeum fmeum commented Mar 13, 2025

By throwing LostInputExecExceptions in the right locations, build rewinding can be realized as a coarse-grained fallback for the more fine-grained action rewinding. This approach avoids further divergence between Bazel and Blaze logic and ensures that further improvements to build rewinding also simplify future efforts to add action rewinding to Bazel.

This should be a pure refactoring with one exception: if the download of the outputs of a remotely executed action (with caching disabled) fails due cache eviction, the build is no longer retried after the remote execution has already been retried. An RE backend that repeatedly fails to keep the outputs of a freshly excuted action in the cache long enough for them to be downloaded is faulty and additional full build retries are pointless after retries of the action execution have failed repeatedly. This change in behavior is required to get existing tests to pass.

Closes #25396.

PiperOrigin-RevId: 734550819
Change-Id: Idabee2483beb05721c413c27ab610b8f260412ec
(cherry picked from commit e8526d4)

Closes #25544

…winding

By throwing `LostInputExecExceptions` in the right locations, build rewinding can be realized as a coarse-grained fallback for the more fine-grained action rewinding. This approach avoids further divergence between Bazel and Blaze logic and ensures that further improvements to build rewinding also simplify future efforts to add action rewinding to Bazel.

This should be a pure refactoring with one exception: if the download of the outputs of a remotely executed action (with caching disabled) fails due cache eviction, the build is no longer retried after the remote execution has already been retried. An RE backend that repeatedly fails to keep the outputs of a freshly excuted action in the cache long enough for them to be downloaded is faulty and additional full build retries are pointless after retries of the action execution have failed repeatedly. This change in behavior is required to get existing tests to pass.

Closes bazelbuild#25396.

PiperOrigin-RevId: 734550819
Change-Id: Idabee2483beb05721c413c27ab610b8f260412ec
(cherry picked from commit e8526d4)
@fmeum fmeum requested a review from a team as a code owner March 13, 2025 13:20
@fmeum fmeum requested a review from coeuvre March 13, 2025 13:20
@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 Mar 13, 2025
@coeuvre coeuvre added this pull request to the merge queue Mar 13, 2025
Merged via the queue into bazelbuild:release-8.2.0 with commit c202315 Mar 13, 2025
@github-actions github-actions Bot removed the awaiting-review PR is awaiting review from an assigned reviewer label Mar 13, 2025
@fmeum fmeum deleted the 8.2.0-build-rewinding branch March 13, 2025 23:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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.

2 participants