turbo icon indicating copy to clipboard operation
turbo copied to clipboard

Gatsby logs not captured properly

Open alvarlagerlof opened this issue 2 years ago • 2 comments

What version of Turborepo are you using?

1.3.4

What package manager are you using / does the bug impact?

Yarn v2/v3 (node_modules linker only)

What operating system are you using?

Mac

Describe the Bug

When running build, all logs from Gatsby (quick start project) are not placed in the appropriate subrepo tag.

image image

Expected Behavior

All logs should have their subrepo name next to the.

To Reproduce

https://github.com/alvarlagerlof/turborepo-bug

alvarlagerlof avatar Jul 24 '22 12:07 alvarlagerlof

Thanks for the reproduction! I believe this is happening because Gatsby parallelizes builds across multiple processes - but turbo is only aware of the main process (that it started). You can see this by changing your build command to include the verbose flag:

"build": "gatsby build --verbose",

And then Gatsby will tell you how many new processes (workers) it's starting (variable based on CPU count):

verbose Creating 7 worker

tknickman avatar Jul 25 '22 14:07 tknickman

Cool. No problem! I suspected something like that might have been the cause. Is there any reasonable thing that could be done to capture logs from the workers?

alvarlagerlof avatar Jul 25 '22 18:07 alvarlagerlof