yarnpkg / berry

📦🐈 Active development trunk for Yarn ⚒
https://yarnpkg.com
BSD 2-Clause "Simplified" License
7.34k stars 1.1k forks source link

[Bug?]: misconfigured yarn global script issue when executed with parallel flag #6403

Open twlite opened 1 month ago

twlite commented 1 month ago

Self-service

Describe the bug

Yarn version I am on is 4.3.1 and it seems to be utilizing 100% of the cpu when a misconfigured global script is used.

To reproduce

I have created a repro here https://github.com/twlite/yarn-global-script-repro with a simple setup. This seems to occur only with the workspace.

Steps

Environment

System:
    OS: Windows 11 10.0.22631
    CPU: (28) x64 Intel(R) Core(TM) i7-14700K
  Binaries:
    Node: 22.2.0 - ~\AppData\Local\Temp\xfs-4bfc2d56\node.CMD
    Yarn: 4.3.1 - ~\AppData\Local\Temp\xfs-4bfc2d56\yarn.CMD
    npm: 10.5.2 - ~\AppData\Local\Volta\tools\image\npm\10.5.2\bin\npm.CMD
    pnpm: 9.4.0 - C:\Program Files\Volta\pnpm.EXE
    bun: 1.1.18 - ~\.bun\bin\bun.EXE

Additional context

I wanted to take a screenshot but it failed due to the stress on my cpu.

ghimirebibek commented 1 month ago

Similar Issue for my Mac device too. The script never stops (yarn super:test) from that test repo.

System:
    OS: macOS 14.5
    CPU: (8) arm64 Apple M1
  Binaries:
    Node: 22.3.0 - /private/var/folders/n9/xslg6lpj36ngd35lz2v6khdh0000gn/T/xfs-c16a5db9/node
    Yarn: 4.3.1 - /private/var/folders/n9/xslg6lpj36ngd35lz2v6khdh0000gn/T/xfs-c16a5db9/yarn
    npm: 10.8.1 - ~/.volta/tools/image/node/22.3.0/bin/npm
twlite commented 1 month ago

Update

After letting it run for a while, I got this error. Also CPU usage seems to be random now, not sure what happened at first.

[test]: Process started
[test]: 'yarn' is not recognized as an internal or external command,
[test]: operable program or batch file.
[test]: The command failed for workspaces that are depended upon by other workspaces; can't satisfy the dependency graph
[test]: Failed with errors in 0s 48ms
[test]: The command failed for workspaces that are depended upon by other workspaces; can't satisfy the dependency graph
[test]: Failed with errors in 0s 296ms
[test]: The command failed for workspaces that are depended upon by other workspaces; can't satisfy the dependency graph
[test]: Failed with errors in 0s 550ms
[test]: The command failed for workspaces that are depended upon by other workspaces; can't satisfy the dependency graph
[test]: Failed with errors in 0s 804ms
[test]: The command failed for workspaces that are depended upon by other workspaces; can't satisfy the dependency graph
[test]: Failed with errors in 1s 49ms
[test]: The command failed for workspaces that are depended upon by other workspaces; can't satisfy the dependency graph
[test]: Failed with errors in 1s 297ms
[test]: The command failed for workspaces that are depended upon by other workspaces; can't satisfy the dependency graph
[test]: Failed with errors in 1s 531ms
[test]: The command failed for workspaces that are depended upon by other workspaces; can't satisfy the dependency graph
[test]: Failed with errors in 1s 764ms
[test]: The command failed for workspaces that are depended upon by other workspaces; can't satisfy the dependency graph
[test]: Failed with errors in 2s 8ms
[test]: The command failed for workspaces that are depended upon by other workspaces; can't satisfy the dependency graph
[test]: Failed with errors in 2s 244ms
[test]: The command failed for workspaces that are depended upon by other workspaces; can't satisfy the dependency graph
[test]: Failed with errors in 2s 455ms
[test]: The command failed for workspaces that are depended upon by other workspaces; can't satisfy the dependency graph
[test]: Failed with errors in 2s 718ms
[test]: The command failed for workspaces that are depended upon by other workspaces; can't satisfy the dependency graph
[test]: Failed with errors in 2s 951ms
[test]: The command failed for workspaces that are depended upon by other workspaces; can't satisfy the dependency graph
[test]: Failed with errors in 3s 198ms
[test]: The command failed for workspaces that are depended upon by other workspaces; can't satisfy the dependency graph
[test]: Failed with errors in 3s 441ms
[test]: The command failed for workspaces that are depended upon by other workspaces; can't satisfy the dependency graph
[test]: Failed with errors in 3s 688ms
[test]: The command failed for workspaces that are depended upon by other workspaces; can't satisfy the dependency graph
[test]: Failed with errors in 3s 911ms
[test]: The command failed for workspaces that are depended upon by other workspaces; can't satisfy the dependency graph
[test]: Failed with errors in 4s 149ms
[test]: The command failed for workspaces that are depended upon by other workspaces; can't satisfy the dependency graph
[test]: Failed with errors in 4s 384ms
[test]: The command failed for workspaces that are depended upon by other workspaces; can't satisfy the dependency graph
[test]: Failed with errors in 4s 601ms
[test]: The command failed for workspaces that are depended upon by other workspaces; can't satisfy the dependency graph
[test]: Failed with errors in 4s 840ms
[test]: The command failed for workspaces that are depended upon by other workspaces; can't satisfy the dependency graph
[test]: Failed with errors in 5s 76ms
[test]: The command failed for workspaces that are depended upon by other workspaces; can't satisfy the dependency graph
[test]: Failed with errors in 5s 265ms
[test]: The command failed for workspaces that are depended upon by other workspaces; can't satisfy the dependency graph
[test]: Failed with errors in 5s 492ms
[test]: The command failed for workspaces that are depended upon by other workspaces; can't satisfy the dependency graph
[test]: Failed with errors in 5s 724ms
[test]: The command failed for workspaces that are depended upon by other workspaces; can't satisfy the dependency graph
[test]: Failed with errors in 5s 952ms
[test]: The command failed for workspaces that are depended upon by other workspaces; can't satisfy the dependency graph
[test]: Failed with errors in 6s 202ms
[test]: The command failed for workspaces that are depended upon by other workspaces; can't satisfy the dependency graph
[test]: Failed with errors in 6s 452ms
[test]: The command failed for workspaces that are depended upon by other workspaces; can't satisfy the dependency graph
[test]: Failed with errors in 6s 692ms
[test]: The command failed for workspaces that are depended upon by other workspaces; can't satisfy the dependency graph
[test]: Failed with errors in 6s 905ms
[test]: The command failed for workspaces that are depended upon by other workspaces; can't satisfy the dependency graph
[test]: Failed with errors in 7s 173ms
[test]: The command failed for workspaces that are depended upon by other workspaces; can't satisfy the dependency graph
[test]: Failed with errors in 7s 389ms
[test]: The command failed for workspaces that are depended upon by other workspaces; can't satisfy the dependency graph
[test]: Failed with errors in 7s 634ms
[test]: The command failed for workspaces that are depended upon by other workspaces; can't satisfy the dependency graph
[test]: Failed with errors in 7s 872ms
[test]: The command failed for workspaces that are depended upon by other workspaces; can't satisfy the dependency graph
[test]: Failed with errors in 8s 114ms
[test]: The command failed for workspaces that are depended upon by other workspaces; can't satisfy the dependency graph
[test]: Failed with errors in 8s 341ms
[test]: The command failed for workspaces that are depended upon by other workspaces; can't satisfy the dependency graph
[test]: Failed with errors in 8s 586ms
[test]: The command failed for workspaces that are depended upon by other workspaces; can't satisfy the dependency graph
[test]: Failed with errors in 8s 827ms
[test]: The command failed for workspaces that are depended upon by other workspaces; can't satisfy the dependency graph
[test]: Failed with errors in 9s 55ms
[test]: The command failed for workspaces that are depended upon by other workspaces; can't satisfy the dependency graph
[test]: Failed with errors in 9s 298ms
[test]: The command failed for workspaces that are depended upon by other workspaces; can't satisfy the dependency graph
[test]: Failed with errors in 9s 594ms
[test]: The command failed for workspaces that are depended upon by other workspaces; can't satisfy the dependency graph
[test]: Failed with errors in 9s 828ms
[test]: The command failed for workspaces that are depended upon by other workspaces; can't satisfy the dependency graph
[test]: Failed with errors in 10s 69ms
[test]: The command failed for workspaces that are depended upon by other workspaces; can't satisfy the dependency graph
[test]: Failed with errors in 10s 312ms
[test]: The command failed for workspaces that are depended upon by other workspaces; can't satisfy the dependency graph
[test]: Failed with errors in 10s 542ms
[test]: The command failed for workspaces that are depended upon by other workspaces; can't satisfy the dependency graph
[test]: Failed with errors in 10s 773ms
[test]: The command failed for workspaces that are depended upon by other workspaces; can't satisfy the dependency graph
[test]: Failed with errors in 11s 22ms
[test]: The command failed for workspaces that are depended upon by other workspaces; can't satisfy the dependency graph
[test]: Failed with errors in 11s 257ms
[test]: The command failed for workspaces that are depended upon by other workspaces; can't satisfy the dependency graph
[test]: Failed with errors in 11s 503ms
[test]: The command failed for workspaces that are depended upon by other workspaces; can't satisfy the dependency graph
[test]: Failed with errors in 11s 736ms
[test]: The command failed for workspaces that are depended upon by other workspaces; can't satisfy the dependency graph
[test]: Failed with errors in 11s 973ms
[test]: The command failed for workspaces that are depended upon by other workspaces; can't satisfy the dependency graph
[test]: Failed with errors in 12s 209ms
[test]: The command failed for workspaces that are depended upon by other workspaces; can't satisfy the dependency graph
[test]: Failed with errors in 12s 453ms
[test]: The command failed for workspaces that are depended upon by other workspaces; can't satisfy the dependency graph
[test]: Failed with errors in 12s 687ms
[test]: The command failed for workspaces that are depended upon by other workspaces; can't satisfy the dependency graph
[test]: Failed with errors in 12s 937ms
[test]: The command failed for workspaces that are depended upon by other workspaces; can't satisfy the dependency graph
[test]: Failed with errors in 13s 180ms
[test]: The command failed for workspaces that are depended upon by other workspaces; can't satisfy the dependency graph
[test]: Failed with errors in 13s 407ms
[test]: The command failed for workspaces that are depended upon by other workspaces; can't satisfy the dependency graph
[test]: Failed with errors in 13s 647ms
[test]: The command failed for workspaces that are depended upon by other workspaces; can't satisfy the dependency graph
[test]: Failed with errors in 13s 882ms
[test]: The command failed for workspaces that are depended upon by other workspaces; can't satisfy the dependency graph
[test]: Failed with errors in 14s 114ms
[test]: The command failed for workspaces that are depended upon by other workspaces; can't satisfy the dependency graph
[test]: Failed with errors in 14s 333ms
[test]: The command failed for workspaces that are depended upon by other workspaces; can't satisfy the dependency graph
[test]: Failed with errors in 14s 561ms
[test]: The command failed for workspaces that are depended upon by other workspaces; can't satisfy the dependency graph
[test]: Failed with errors in 14s 786ms
[test]: The command failed for workspaces that are depended upon by other workspaces; can't satisfy the dependency graph
[test]: Failed with errors in 15s 12ms
[test]: The command failed for workspaces that are depended upon by other workspaces; can't satisfy the dependency graph
[test]: Failed with errors in 15s 257ms
[test]: The command failed for workspaces that are depended upon by other workspaces; can't satisfy the dependency graph
[test]: Failed with errors in 15s 494ms
[test]: The command failed for workspaces that are depended upon by other workspaces; can't satisfy the dependency graph
[test]: Failed with errors in 15s 725ms
[test]: The command failed for workspaces that are depended upon by other workspaces; can't satisfy the dependency graph
[test]: Failed with errors in 15s 974ms
[test]: The command failed for workspaces that are depended upon by other workspaces; can't satisfy the dependency graph
[test]: Failed with errors in 16s 207ms
[test]: The command failed for workspaces that are depended upon by other workspaces; can't satisfy the dependency graph
[test]: Failed with errors in 16s 451ms
[test]: The command failed for workspaces that are depended upon by other workspaces; can't satisfy the dependency graph
[test]: Failed with errors in 16s 684ms
[test]: The command failed for workspaces that are depended upon by other workspaces; can't satisfy the dependency graph
[test]: Failed with errors in 16s 921ms
[test]: The command failed for workspaces that are depended upon by other workspaces; can't satisfy the dependency graph
[test]: Failed with errors in 17s 159ms
[test]: The command failed for workspaces that are depended upon by other workspaces; can't satisfy the dependency graph
[test]: Failed with errors in 17s 397ms
[test]: The command failed for workspaces that are depended upon by other workspaces; can't satisfy the dependency graph
[test]: Failed with errors in 17s 634ms
[test]: The command failed for workspaces that are depended upon by other workspaces; can't satisfy the dependency graph
[test]: Failed with errors in 17s 868ms
[test]: The command failed for workspaces that are depended upon by other workspaces; can't satisfy the dependency graph
[test]: Failed with errors in 18s 106ms
[test]: The command failed for workspaces that are depended upon by other workspaces; can't satisfy the dependency graph
[test]: Failed with errors in 18s 348ms
[test]: The command failed for workspaces that are depended upon by other workspaces; can't satisfy the dependency graph
[test]: Failed with errors in 18s 582ms
[test]: The command failed for workspaces that are depended upon by other workspaces; can't satisfy the dependency graph
[test]: Failed with errors in 18s 827ms
[test]: The command failed for workspaces that are depended upon by other workspaces; can't satisfy the dependency graph
[test]: Failed with errors in 19s 74ms
[test]: The command failed for workspaces that are depended upon by other workspaces; can't satisfy the dependency graph
[test]: Failed with errors in 19s 310ms
[test]: The command failed for workspaces that are depended upon by other workspaces; can't satisfy the dependency graph
[test]: Failed with errors in 19s 551ms
[test]: The command failed for workspaces that are depended upon by other workspaces; can't satisfy the dependency graph
[test]: Failed with errors in 19s 788ms
[test]: The command failed for workspaces that are depended upon by other workspaces; can't satisfy the dependency graph
[test]: Failed with errors in 20s 25ms
[test]: The command failed for workspaces that are depended upon by other workspaces; can't satisfy the dependency graph
[test]: Failed with errors in 20s 250ms
[test]: The command failed for workspaces that are depended upon by other workspaces; can't satisfy the dependency graph
[test]: Failed with errors in 20s 488ms
[test]: The command failed for workspaces that are depended upon by other workspaces; can't satisfy the dependency graph
[test]: Failed with errors in 20s 721ms
[test]: The command failed for workspaces that are depended upon by other workspaces; can't satisfy the dependency graph
[test]: Failed with errors in 20s 970ms
[test]: The command failed for workspaces that are depended upon by other workspaces; can't satisfy the dependency graph
[test]: Failed with errors in 21s 193ms
[test]: The command failed for workspaces that are depended upon by other workspaces; can't satisfy the dependency graph
[test]: Failed with errors in 21s 417ms
[test]: The command failed for workspaces that are depended upon by other workspaces; can't satisfy the dependency graph
[test]: Failed with errors in 21s 641ms
[test]: The command failed for workspaces that are depended upon by other workspaces; can't satisfy the dependency graph
[test]: Failed with errors in 21s 865ms
[test]: The command failed for workspaces that are depended upon by other workspaces; can't satisfy the dependency graph
[test]: Failed with errors in 22s 84ms
[test]: The command failed for workspaces that are depended upon by other workspaces; can't satisfy the dependency graph
[test]: Failed with errors in 22s 294ms
[test]: The command failed for workspaces that are depended upon by other workspaces; can't satisfy the dependency graph
[test]: Failed with errors in 22s 530ms
[test]: The command failed for workspaces that are depended upon by other workspaces; can't satisfy the dependency graph
[test]: Failed with errors in 22s 754ms
[test]: The command failed for workspaces that are depended upon by other workspaces; can't satisfy the dependency graph
[test]: Failed with errors in 22s 977ms
[test]: The command failed for workspaces that are depended upon by other workspaces; can't satisfy the dependency graph
[test]: Failed with errors in 23s 197ms
[test]: The command failed for workspaces that are depended upon by other workspaces; can't satisfy the dependency graph
[test]: Failed with errors in 23s 428ms
[test]: The command failed for workspaces that are depended upon by other workspaces; can't satisfy the dependency graph
[test]: Failed with errors in 23s 643ms
[test]: The command failed for workspaces that are depended upon by other workspaces; can't satisfy the dependency graph
[test]: Failed with errors in 23s 867ms
[test]: The command failed for workspaces that are depended upon by other workspaces; can't satisfy the dependency graph
[test]: Failed with errors in 24s 99ms
[test]: The command failed for workspaces that are depended upon by other workspaces; can't satisfy the dependency graph
[test]: Failed with errors in 24s 324ms
[test]: The command failed for workspaces that are depended upon by other workspaces; can't satisfy the dependency graph
[test]: Failed with errors in 24s 525ms
[test]: The command failed for workspaces that are depended upon by other workspaces; can't satisfy the dependency graph
[test]: Failed with errors in 24s 775ms
[test]: The command failed for workspaces that are depended upon by other workspaces; can't satisfy the dependency graph
[test]: Failed with errors in 24s 993ms
[test]: The command failed for workspaces that are depended upon by other workspaces; can't satisfy the dependency graph
[test]: Failed with errors in 25s 191ms
[test]: The command failed for workspaces that are depended upon by other workspaces; can't satisfy the dependency graph
[test]: Failed with errors in 25s 423ms
[test]: The command failed for workspaces that are depended upon by other workspaces; can't satisfy the dependency graph
[test]: Failed with errors in 25s 667ms
[test]: The command failed for workspaces that are depended upon by other workspaces; can't satisfy the dependency graph
[test]: Failed with errors in 25s 936ms
[test]: The command failed for workspaces that are depended upon by other workspaces; can't satisfy the dependency graph
[test]: Failed with errors in 26s 202ms
[test]: The command failed for workspaces that are depended upon by other workspaces; can't satisfy the dependency graph
[test]: Failed with errors in 26s 471ms
[test]: The command failed for workspaces that are depended upon by other workspaces; can't satisfy the dependency graph
[test]: Failed with errors in 26s 732ms
[test]: The command failed for workspaces that are depended upon by other workspaces; can't satisfy the dependency graph
[test]: Failed with errors in 26s 999ms
[test]: The command failed for workspaces that are depended upon by other workspaces; can't satisfy the dependency graph
[test]: Failed with errors in 27s 282ms
[test]: The command failed for workspaces that are depended upon by other workspaces; can't satisfy the dependency graph
[test]: Failed with errors in 27s 562ms
[test]: The command failed for workspaces that are depended upon by other workspaces; can't satisfy the dependency graph
[test]: Failed with errors in 27s 817ms
[test]: The command failed for workspaces that are depended upon by other workspaces; can't satisfy the dependency graph
[test]: Failed with errors in 28s 77ms
[test]: The command failed for workspaces that are depended upon by other workspaces; can't satisfy the dependency graph
[test]: Failed with errors in 28s 350ms
[test]: The command failed for workspaces that are depended upon by other workspaces; can't satisfy the dependency graph
[test]: Failed with errors in 28s 609ms
[test]: The command failed for workspaces that are depended upon by other workspaces; can't satisfy the dependency graph
[test]: Failed with errors in 28s 891ms
[test]: The command failed for workspaces that are depended upon by other workspaces; can't satisfy the dependency graph
[test]: Failed with errors in 29s 166ms
[test]: The command failed for workspaces that are depended upon by other workspaces; can't satisfy the dependency graph
[test]: Failed with errors in 29s 422ms
[test]: The command failed for workspaces that are depended upon by other workspaces; can't satisfy the dependency graph
[test]: Failed with errors in 29s 605ms
[test]: The command failed for workspaces that are depended upon by other workspaces; can't satisfy the dependency graph
[test]: Failed with errors in 29s 788ms
[test]: The command failed for workspaces that are depended upon by other workspaces; can't satisfy the dependency graph
[test]: Failed with errors in 29s 970ms
[test]: The command failed for workspaces that are depended upon by other workspaces; can't satisfy the dependency graph
[test]: Failed with errors in 30s 149ms
[test]: The command failed for workspaces that are depended upon by other workspaces; can't satisfy the dependency graph
[test]: Failed with errors in 30s 330ms
[test]: The command failed for workspaces that are depended upon by other workspaces; can't satisfy the dependency graph
[test]: Failed with errors in 30s 514ms
[test]: The command failed for workspaces that are depended upon by other workspaces; can't satisfy the dependency graph
[test]: Failed with errors in 30s 698ms
[test]: The command failed for workspaces that are depended upon by other workspaces; can't satisfy the dependency graph
[test]: Failed with errors in 30s 878ms
[test]: The command failed for workspaces that are depended upon by other workspaces; can't satisfy the dependency graph
[test]: Failed with errors in 31s 58ms
[test]: The command failed for workspaces that are depended upon by other workspaces; can't satisfy the dependency graph
[test]: Failed with errors in 31s 235ms
[test]: The command failed for workspaces that are depended upon by other workspaces; can't satisfy the dependency graph
[test]: Failed with errors in 31s 417ms
[test]: The command failed for workspaces that are depended upon by other workspaces; can't satisfy the dependency graph
[test]: Failed with errors in 31s 599ms
[test]: The command failed for workspaces that are depended upon by other workspaces; can't satisfy the dependency graph
[test]: Failed with errors in 31s 782ms
[test]: The command failed for workspaces that are depended upon by other workspaces; can't satisfy the dependency graph
[test]: Failed with errors in 31s 962ms
[test]: The command failed for workspaces that are depended upon by other workspaces; can't satisfy the dependency graph
[test]: Failed with errors in 32s 141ms
[test]: The command failed for workspaces that are depended upon by other workspaces; can't satisfy the dependency graph
[test]: Failed with errors in 32s 319ms
[test]: The command failed for workspaces that are depended upon by other workspaces; can't satisfy the dependency graph
[test]: Failed with errors in 32s 500ms
[test]: The command failed for workspaces that are depended upon by other workspaces; can't satisfy the dependency graph
[test]: Failed with errors in 32s 688ms
[test]: The command failed for workspaces that are depended upon by other workspaces; can't satisfy the dependency graph
[test]: Failed with errors in 32s 867ms
[test]: The command failed for workspaces that are depended upon by other workspaces; can't satisfy the dependency graph
[test]: Failed with errors in 33s 48ms
[test]: The command failed for workspaces that are depended upon by other workspaces; can't satisfy the dependency graph
[test]: Failed with errors in 33s 232ms
[test]: The command failed for workspaces that are depended upon by other workspaces; can't satisfy the dependency graph
[test]: Failed with errors in 33s 411ms
[test]: The command failed for workspaces that are depended upon by other workspaces; can't satisfy the dependency graph
[test]: Failed with errors in 33s 592ms
[test]: Process exited (exit code 1), completed in 33s 779ms
The command failed for workspaces that are depended upon by other workspaces; can't satisfy the dependency graph
Failed with errors in 33s 782ms