Skip to content

refactor(migrations): support parallel tsurge metadata merging - #58280

Closed
devversion wants to merge 3 commits into
angular:mainfrom
devversion:tsurge-parallelize-merge
Closed

devversion wants to merge 3 commits into
angular:mainfrom
devversion:tsurge-parallelize-merge

Conversation

@devversion

Copy link
Copy Markdown
Member

This is helpful and important for large scale migrations where a single
call for merging all unit data's can be subject to memory / disk
resource constraints. Consider a compilation unit data for every target
in Google3, and those being merged in a single program.

@angular-robot angular-robot Bot added the area: migrations Issues related to `ng update`/`ng generate` migrations label Oct 21, 2024
@ngbot ngbot Bot added this to the Backlog milestone Oct 21, 2024
@devversion devversion added action: review The PR is still awaiting reviews from at least one requested reviewer target: minor This PR is targeted for the next minor release labels Oct 21, 2024
@devversion
devversion marked this pull request as ready for review October 21, 2024 10:13
@pullapprove
pullapprove Bot requested a review from alxhub October 21, 2024 10:13
@devversion
devversion removed the request for review from alxhub October 21, 2024 11:25
@pkozlowski-opensource

Copy link
Copy Markdown
Member

LGTM but will require cleanup (G3 presubmit is failing)

@pkozlowski-opensource pkozlowski-opensource added action: cleanup The PR is in need of cleanup, either due to needing a rebase or in response to comments from reviews action: review The PR is still awaiting reviews from at least one requested reviewer and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels Oct 21, 2024

@josephperrott josephperrott left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@devversion
devversion force-pushed the tsurge-parallelize-merge branch 2 times, most recently from b65b7f1 to c46cb49 Compare October 22, 2024 10:04
@devversion

Copy link
Copy Markdown
Member Author

@devversion devversion added action: merge The PR is ready for merge by the caretaker and removed action: cleanup The PR is in need of cleanup, either due to needing a rebase or in response to comments from reviews action: review The PR is still awaiting reviews from at least one requested reviewer labels Oct 22, 2024
@AndrewKushnir

Copy link
Copy Markdown
Contributor

This PR was merged into the repository by commit cb34e40.

The changes were merged into the following branches: main

AndrewKushnir pushed a commit that referenced this pull request Oct 22, 2024
…arallel (#58280)

This is necessary given the previous Tsurge refactorings. It should
speed up migrations in the merge phase signficiantly and reduce memory
pressure. In 1P, we already have workers from analyze phase anyway— so
those can be re-used for parallel metadata merging.

PR Close #58280
AndrewKushnir pushed a commit that referenced this pull request Oct 22, 2024
)

This allows the batch test for the signal input migration to pass.

PR Close #58280
AndrewKushnir added a commit to AndrewKushnir/angular that referenced this pull request Oct 22, 2024
AndrewKushnir added a commit to AndrewKushnir/angular that referenced this pull request Oct 22, 2024
AndrewKushnir added a commit to AndrewKushnir/angular that referenced this pull request Oct 22, 2024
@devversion

Copy link
Copy Markdown
Member Author

This is helpful and important for large scale migrations where a single
call for merging _all_ unit data's can be subject to memory / disk
resource constraints. Consider a compilation unit data for every target
in Google3, and those being merged in a single program.
@devversion devversion added the action: cleanup The PR is in need of cleanup, either due to needing a rebase or in response to comments from reviews label Oct 23, 2024
@devversion
devversion force-pushed the tsurge-parallelize-merge branch from afcbb0a to ab4b70f Compare October 23, 2024 20:15
…arallel

This is necessary given the previous Tsurge refactorings. It should
speed up migrations in the merge phase signficiantly and reduce memory
pressure. In 1P, we already have workers from analyze phase anyway— so
those can be re-used for parallel metadata merging.
This allows the batch test for the signal input migration to pass.
@devversion
devversion force-pushed the tsurge-parallelize-merge branch from ab4b70f to eb8c464 Compare October 23, 2024 20:24
@devversion devversion added merge: caretaker note Alert the caretaker performing the merge to check the PR for an out of normal action needed or note and removed action: cleanup The PR is in need of cleanup, either due to needing a rebase or in response to comments from reviews labels Oct 23, 2024
@AndrewKushnir AndrewKushnir added target: rc This PR is targeted for the next release-candidate and removed target: minor This PR is targeted for the next minor release labels Oct 24, 2024
@devversion

Copy link
Copy Markdown
Member Author

This PR was merged into the repository by commit 35d7ca5.

The changes were merged into the following branches: main, 19.0.x

devversion added a commit that referenced this pull request Oct 25, 2024
…arallel (#58280)

This is necessary given the previous Tsurge refactorings. It should
speed up migrations in the merge phase signficiantly and reduce memory
pressure. In 1P, we already have workers from analyze phase anyway— so
those can be re-used for parallel metadata merging.

PR Close #58280
devversion added a commit that referenced this pull request Oct 25, 2024
)

This allows the batch test for the signal input migration to pass.

PR Close #58280
devversion added a commit that referenced this pull request Oct 25, 2024
This is helpful and important for large scale migrations where a single
call for merging _all_ unit data's can be subject to memory / disk
resource constraints. Consider a compilation unit data for every target
in Google3, and those being merged in a single program.

PR Close #58280
devversion added a commit that referenced this pull request Oct 25, 2024
…arallel (#58280)

This is necessary given the previous Tsurge refactorings. It should
speed up migrations in the merge phase signficiantly and reduce memory
pressure. In 1P, we already have workers from analyze phase anyway— so
those can be re-used for parallel metadata merging.

PR Close #58280
devversion added a commit that referenced this pull request Oct 25, 2024
)

This allows the batch test for the signal input migration to pass.

PR Close #58280
@angular-automatic-lock-bot

Copy link
Copy Markdown

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot Bot locked and limited conversation to collaborators Nov 25, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: merge The PR is ready for merge by the caretaker area: migrations Issues related to `ng update`/`ng generate` migrations merge: caretaker note Alert the caretaker performing the merge to check the PR for an out of normal action needed or note PullApprove: disable target: rc This PR is targeted for the next release-candidate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants