Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[7.2.0] Replace most Bzlmod events with a Skyframe graph lookup #22265

Merged
merged 4 commits into from
May 7, 2024

Conversation

Wyverald
Copy link
Member

@Wyverald Wyverald commented May 6, 2024

Retaining Postables across the graph increases the memory usage of every dependent Skyframe node.

ModuleExtensionResolutionEvent is replaced with a lookup of the "done" Skyframe nodes for extension evaluation in BazelLockFileModule#afterCommand.

RootModuleFileFixupEvent is replaced with direct storage in SingleExtensionEvalValue. The validation of repos imported from an extension is moved into a separate SkyFunction. This simplifies bazel mod tidy, which no longer needs to swallow certain exceptions, and allows cache hits when only the (invalid) imports of an extension are modified even without the lockfile.

The BazelModuleResolutionEvent is kept for now, but will become obsolete with the new lockfile format.

Work towards #20369

Closes #22058.

PiperOrigin-RevId: 628213907
Change-Id: I8ba19f5151a8183be5051c8d9280f93476db2272

Retaining `Postable`s across the graph increases the memory usage of every dependent Skyframe node.

`ModuleExtensionResolutionEvent` is replaced with a lookup of the "done" Skyframe nodes for extension evaluation in `BazelLockFileModule#afterCommand`.

`RootModuleFileFixupEvent` is replaced with direct storage in `SingleExtensionEvalValue`. The validation of repos imported from an extension is moved into a separate `SkyFunction`. This simplifies `bazel mod tidy`, which no longer needs to swallow certain exceptions, and allows cache hits when only the (invalid) imports of an extension are modified even without the lockfile.

The `BazelModuleResolutionEvent` is kept for now, but will become obsolete with the new lockfile format.

Work towards #20369

Closes #22058.

PiperOrigin-RevId: 628213907
Change-Id: I8ba19f5151a8183be5051c8d9280f93476db2272
@Wyverald Wyverald requested a review from a team as a code owner May 6, 2024 23:48
@Wyverald Wyverald enabled auto-merge May 6, 2024 23:48
@github-actions github-actions bot added awaiting-review PR is awaiting review from an assigned reviewer team-Configurability platforms, toolchains, cquery, select(), config transitions team-ExternalDeps External dependency handling, remote repositiories, WORKSPACE file. labels May 6, 2024
@Wyverald Wyverald added this pull request to the merge queue May 7, 2024
Merged via the queue into release-7.2.0 with commit 4391b2e May 7, 2024
34 checks passed
@github-actions github-actions bot removed the awaiting-review PR is awaiting review from an assigned reviewer label May 7, 2024
@Wyverald Wyverald deleted the wyv-720-22058 branch May 7, 2024 17:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
team-Configurability platforms, toolchains, cquery, select(), config transitions team-ExternalDeps External dependency handling, remote repositiories, WORKSPACE file.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants