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

[DEMO ONLY] Speed up CI by using "threaded installs" for pnpm #4229

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

dmichon-msft
Copy link
Contributor

@dmichon-msft dmichon-msft commented Jul 10, 2023

Summary

This PR is a tech demonstration of a streamlined dependency installation flow for use on CI, to be used as reference for propagating the performance enhancements upstream into package managers.

Details

The most interesting component of this PR is the tarball hash/decompress/parse/extract worker.
The next most interesting is the networking layer that directly uses the node:https module for reliability and performance.

For performance comparison, this plugin performs a functional equivalent of rush install on a production repository in 20-30 seconds, whereas using the actual rush install command typically took on the order of 200-300 seconds.

How it was tested

This is code currently used in use, with various secrets redacted and left as placeholders.

@octogonz octogonz changed the title [DEMO ONLY] Perform CI installation via phased command orchestration [DEMO ONLY] Speed up CI by using "threaded installs" for pnpm Jul 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: General Discussions
Development

Successfully merging this pull request may close these issues.

1 participant