Skip to content

Merkle tree cache doesn't cache tree artifacts #17923

@coeuvre

Description

@coeuvre

Description of the bug:

When --experimental_remote_merkle_tree_cache is set, Bazel will cache the non-leaf nodes in the NestedSet when building merkle tree. However, tree artifacts are leaf nodes in the NestedSet so they are never cached. For some builds, one tree artifact could contain hundreds of thousands files, caching tree artifact could improve the performance.

Related #17804.

What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.

No response

Which operating system are you running Bazel on?

No response

What is the output of bazel info release?

No response

If bazel info release returns development version or (@non-git), tell us how you built Bazel.

No response

What's the output of git remote get-url origin; git rev-parse master; git rev-parse HEAD ?

No response

Have you found anything relevant by searching the web?

No response

Any other information, logs, or outputs that you want to share?

No response

Metadata

Metadata

Assignees

Labels

P1I'll work on this now. (Assignee required)team-Remote-ExecIssues and PRs for the Execution (Remote) teamtype: bug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions