Skip to content

[9.1.0] Use FileArtifactValue#setContentsProxy for remote repo contents cache (https://github.com/bazelbuild/bazel/pull/28654)#29016

Merged
iancha1992 merged 1 commit intobazelbuild:release-9.1.0from
bazel-io:cp28654-9.1.0-045204
Mar 17, 2026
Merged

[9.1.0] Use FileArtifactValue#setContentsProxy for remote repo contents cache (https://github.com/bazelbuild/bazel/pull/28654)#29016
iancha1992 merged 1 commit intobazelbuild:release-9.1.0from
bazel-io:cp28654-9.1.0-045204

Conversation

@bazel-io
Copy link
Copy Markdown
Member

Even though expiration times don't matter in Bazel (they aren't honored), supporting the contents proxy optimization avoids Skyframe invalidation when external repo files are materialized later.

Along the way ensure that the persistent action cache always recreates remote metadata via FileArtifactValue.createForRemoteFileWithMaterializationData. Before this change, such metadata would roundtrip into a RemoteFileArtifactValue (without the content proxy optimization) if expirationTime is set to null.

Closes #28654.

PiperOrigin-RevId: 884796123
Change-Id: Ib399aff3864f5fbbef230b64a7a5ef619bf854d0

Commit 257a224

…he (bazelbuild#28654)

Even though expiration times don't matter in Bazel (they aren't honored), supporting the contents proxy optimization avoids Skyframe invalidation when external repo files are materialized later.

Along the way ensure that the persistent action cache always recreates remote metadata via `FileArtifactValue.createForRemoteFileWithMaterializationData`. Before this change, such metadata would roundtrip into a `RemoteFileArtifactValue` (without the content proxy optimization) if `expirationTime` is set to `null`.

Closes bazelbuild#28654.

PiperOrigin-RevId: 884796123
Change-Id: Ib399aff3864f5fbbef230b64a7a5ef619bf854d0
@bazel-io bazel-io requested a review from a team as a code owner March 17, 2026 04:52
@bazel-io bazel-io added team-Performance Issues for Performance teams team-Remote-Exec Issues and PRs for the Execution (Remote) team awaiting-review PR is awaiting review from an assigned reviewer labels Mar 17, 2026
@bazel-io bazel-io requested a review from tjgq March 17, 2026 04:52
@iancha1992 iancha1992 enabled auto-merge March 17, 2026 19:30
@iancha1992 iancha1992 added this pull request to the merge queue Mar 17, 2026
Merged via the queue into bazelbuild:release-9.1.0 with commit 329f3bf Mar 17, 2026
46 checks passed
@github-actions github-actions bot removed the awaiting-review PR is awaiting review from an assigned reviewer label Mar 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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.

4 participants