ojkelly / yarn.build

Build 🛠 and Bundle 📦 your local workspaces. Like Bazel, Buck, Pants and Please but for Yarn Berry. Build any language, mix javascript, typescript, golang and more in one polyglot repo. Ship your bundles to AWS Lambda, Docker, or any nodejs runtime.
https://yarn.BUILD
MIT License
325 stars 28 forks source link

Figuring out run order is taking too long #238

Closed srich-kr closed 3 months ago

srich-kr commented 2 years ago

Describe the bug I think the script is taking too long to figure out the run order.

To Reproduce Steps to reproduce the behavior:

  1. Take a huge monrepo with 300 packages
  2. Run build in the root directory
  3. Look at the build time at the end of the logs and compare it with the total execution time.

Expected behavior I expect yarn build to be fast. In my case, it took 30 mins in total but yarn.build says that the build time was 6 mins.

Screenshots

Screen Shot 2022-10-12 at 3 57 09 PM

Desktop

ojkelly commented 2 years ago

Thanks for this bug report.

This would suggest it spent 26 minutes determining how to build it?

Do you have any more information on the nature of the packages?

For 300 packages, I would expect it to take under a second or so to work out the build order, so something it definitely odd.

Any chance you can create a repro repo?

I'll try and do some testing too.