Skip to content

[9.1.0] Only pass one InputMetadataProvider to ImportantOutputHandler.#28868

Open
iancha1992 wants to merge 1 commit intobazelbuild:release-9.1.0from
iancha1992:cpb005ba93
Open

[9.1.0] Only pass one InputMetadataProvider to ImportantOutputHandler.#28868
iancha1992 wants to merge 1 commit intobazelbuild:release-9.1.0from
iancha1992:cpb005ba93

Conversation

@iancha1992
Copy link
Member

Blaze's ImportantOutputHandler only needs important output metadata because it processes top-level runfiles separately. Bazel's RemoteImportantOutputHandler needs (hidden) top-level runfiles trees in addition to important outputs.

Instead of passing two metadata providers (important only and full), ask the ImportantOutputHandler which it needs.

This is a step towards moving ownership tracking completely into ActionRewindStrategy.

PiperOrigin-RevId: 877593911
Change-Id: I1ad1474a5cec900187ac0ae053e3275629d55b39

Description

Motivation

Build API Changes

No

Checklist

  • I have added tests for the new use cases (if any).
  • I have updated the documentation (if applicable).

Release Notes

RELNOTES: None

Commit b005ba9

Blaze's `ImportantOutputHandler` only needs important output metadata because it processes top-level runfiles separately. Bazel's `RemoteImportantOutputHandler` needs (hidden) top-level runfiles trees in addition to important outputs.

Instead of passing two metadata providers (important only and full), ask the `ImportantOutputHandler` which it needs.

This is a step towards moving ownership tracking completely into `ActionRewindStrategy`.

PiperOrigin-RevId: 877593911
Change-Id: I1ad1474a5cec900187ac0ae053e3275629d55b39
@iancha1992 iancha1992 requested a review from justinhorvitz March 3, 2026 19:04
@iancha1992 iancha1992 requested a review from a team as a code owner March 3, 2026 19:04
@iancha1992 iancha1992 added team-Remote-Exec Issues and PRs for the Execution (Remote) team awaiting-review PR is awaiting review from an assigned reviewer labels Mar 3, 2026
@github-actions github-actions bot added the team-Performance Issues for Performance teams label Mar 3, 2026
iancha1992 referenced this pull request Mar 3, 2026
Blaze's `ImportantOutputHandler` only needs important output metadata because it processes top-level runfiles separately. Bazel's `RemoteImportantOutputHandler` needs (hidden) top-level runfiles trees in addition to important outputs.

Instead of passing two metadata providers (important only and full), ask the `ImportantOutputHandler` which it needs.

This is a step towards moving ownership tracking completely into `ActionRewindStrategy`.

PiperOrigin-RevId: 877593911
Change-Id: I1ad1474a5cec900187ac0ae053e3275629d55b39
@iancha1992 iancha1992 enabled auto-merge March 3, 2026 19:07
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-Performance Issues for Performance teams 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