Don't eagerly flatten a NestedSet in RepoMappingManifestAction#18349
Don't eagerly flatten a NestedSet in RepoMappingManifestAction#18349fmeum wants to merge 1 commit intobazelbuild:masterfrom
NestedSet in RepoMappingManifestAction#18349Conversation
96fda7a to
783a194
Compare
Delays the flattening from action creation to action execution in preparation for making this action accessible from Starlark.
|
@bazel-io flag |
|
@bazel-io fork 6.3.0 |
| ruleContext.getTransitivePackagesForRunfileRepoMappingManifest()), | ||
| runfiles), | ||
| ruleContext.getTransitivePackagesForRunfileRepoMappingManifest(), | ||
| runfiles.getAllArtifacts(), |
There was a problem hiding this comment.
FYI: getAllArtifacts() does a partial flattening -- symlinks and root symlinks are still flattened. But those those are usually small, so still a big win.
There was a problem hiding this comment.
Do you think it would be worth improving that further? Can Runfiles be serialized? Then that could make for a better action constructor argument.
There was a problem hiding this comment.
I think so? SourceManifestAction, for example, accepts a Runfiles object directly.
I wouldn't expect a large gain in practice. The symlinks and root_symlinks are usually small. Runfiles.getAllArtifacts() is called in a few different places already.
There was a problem hiding this comment.
Thanks for your comment, it led me to discover that the repo mapping manifest didn't handle symlinks correctly: #18381
Delays the flattening from action creation to action execution in preparation for making this action accessible from Starlark. Work towards bazelbuild#17941 Closes bazelbuild#18349. PiperOrigin-RevId: 531165675 Change-Id: Ia2c175834d409c30303dd3ecba0dd276ea2cd905
Delays the flattening from action creation to action execution in preparation for making this action accessible from Starlark. Work towards bazelbuild#17941 Closes bazelbuild#18349. PiperOrigin-RevId: 531165675 Change-Id: Ia2c175834d409c30303dd3ecba0dd276ea2cd905
Delays the flattening from action creation to action execution in preparation for making this action accessible from Starlark. Work towards bazelbuild#17941 Closes bazelbuild#18349. PiperOrigin-RevId: 531165675 Change-Id: Ia2c175834d409c30303dd3ecba0dd276ea2cd905
Delays the flattening from action creation to action execution in preparation for making this action accessible from Starlark. Work towards bazelbuild#17941 Closes bazelbuild#18349. PiperOrigin-RevId: 531165675 Change-Id: Ia2c175834d409c30303dd3ecba0dd276ea2cd905
Delays the flattening from action creation to action execution in preparation for making this action accessible from Starlark.
Work towards #17941