Skip to content

ServerActionsGraph: pass ModuleGraphLayer as OperationVc#94141

Merged
sokra merged 1 commit into
canaryfrom
sokra/map-server-actions
May 27, 2026
Merged

ServerActionsGraph: pass ModuleGraphLayer as OperationVc#94141
sokra merged 1 commit into
canaryfrom
sokra/map-server-actions

Conversation

@sokra
Copy link
Copy Markdown
Member

@sokra sokra commented May 27, 2026

What?

Threads the layer module graph through ServerActionsGraph and map_server_actions as an OperationVc instead of a resolved Vc, calling connect() at each consumer.

Why?

Fixes the invalidation priority of map_server_actions so it is executed after the module graph on incremental builds. Previously, because the graph was resolved at construction time, the dependency ordering caused map_server_actions to be re-run before the module graph on incremental rebuilds.

How?

By passing the layer graph as an OperationVc and calling connect() within each consumer task, the graph is resolved within the consuming task rather than at construction time. This restores the intended invalidation/scheduling order between the module graph and map_server_actions.

Thread the layer graph through ServerActionsGraph and map_server_actions
as an OperationVc, calling connect() at each consumer so the graph is
resolved within the consuming task rather than at construction time.
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 27, 2026

Tests Passed

Commit: afa9b71

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 27, 2026

Stats skipped

Commit: afa9b71
View workflow run

@sokra sokra requested a review from lukesandberg May 27, 2026 01:13
@sokra sokra marked this pull request as ready for review May 27, 2026 01:13
@sokra sokra merged commit fda8a60 into canary May 27, 2026
162 of 164 checks passed
@sokra sokra deleted the sokra/map-server-actions branch May 27, 2026 01:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants