Skip to content

fix(bazel): speed up d.ts bundling by configuring worker - #45900

Closed
devversion wants to merge 1 commit into
angular:mainfrom
devversion:fix-speed-up-bundling-worker
Closed

devversion wants to merge 1 commit into
angular:mainfrom
devversion:fix-speed-up-bundling-worker

Conversation

@devversion

Copy link
Copy Markdown
Member

Speeds up the d.ts bundling by configuring it as a Bazel
persistent worker. Also improve logging for the ng packager
rule to make it easier to spot which actions/bundles take
up significant time.

Type bundling will occur for every entry-point so for machines
with rather limited cores/threads, this will be useful to save
NodeJS boot and resolution time.

@devversion
devversion requested review from clydin and josephperrott May 5, 2022 19:53
@devversion devversion added action: review The PR is still awaiting reviews from at least one requested reviewer area: bazel Issues related to the published `@angular/bazel` build rules target: rc This PR is targeted for the next release-candidate labels May 5, 2022
@ngbot ngbot Bot modified the milestone: Backlog May 5, 2022
@devversion
devversion marked this pull request as ready for review May 5, 2022 19:54
josephperrott
josephperrott previously approved these changes May 5, 2022

@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

Speeds up the `d.ts` bundling by configuring it as a Bazel
persistent worker. Also improve logging for the ng packager
rule to make it easier to spot which actions/bundles take
up significant time.

Type bundling will occur for every entry-point so for machines
with rather limited cores/threads, this will be useful to save
NodeJS boot and resolution time.
@devversion
devversion force-pushed the fix-speed-up-bundling-worker branch from 17c78e1 to d01b175 Compare May 5, 2022 20:45
@devversion devversion added action: merge The PR is ready for merge by the caretaker and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels May 5, 2022
@devversion
devversion removed the request for review from clydin May 5, 2022 20:46
@AndrewKushnir AndrewKushnir added the action: presubmit The PR is in need of a google3 presubmit label May 5, 2022

@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

@AndrewKushnir

Copy link
Copy Markdown
Contributor

FYI, the NgBot was requesting a presubmit, but we were not syncing anything from those files into g3. I've created a PR to update NgBot config (based on the internal config): #45901. Thank you.

@AndrewKushnir AndrewKushnir removed the action: presubmit The PR is in need of a google3 presubmit label May 5, 2022
@AndrewKushnir

Copy link
Copy Markdown
Contributor

This PR was merged into the repository by commit a6b6590.

AndrewKushnir pushed a commit that referenced this pull request May 5, 2022
Speeds up the `d.ts` bundling by configuring it as a Bazel
persistent worker. Also improve logging for the ng packager
rule to make it easier to spot which actions/bundles take
up significant time.

Type bundling will occur for every entry-point so for machines
with rather limited cores/threads, this will be useful to save
NodeJS boot and resolution time.

PR Close #45900
@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 Jun 5, 2022
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: bazel Issues related to the published `@angular/bazel` build rules target: rc This PR is targeted for the next release-candidate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants