Strange order of logs in 19.0.4
khludenevav opened this issue · 3 comments
khludenevav commented
Current Behavior
"test1": {
"executor": "nx:run-commands",
"options": {
"commands": ["echo test1"]
}
},
"test2": {
"executor": "nx:run-commands",
"options": {
"commands": ["echo test2"]
}
},
"test3": {
"executor": "nx:run-commands",
"options": {
"commands": ["echo test3"]
}
},
"test4": {
"dependsOn": ["test1", "test2", "test3"],
"executor": "nx:run-commands",
"options": {
"commands": ["echo test4"]
}
},
Such config when I launch CI=true nx run docs:test4
gives
NX Running target test4 for project docs and 3 tasks it depends on:
——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————
> nx run docs:test1
> nx run docs:test2
> nx run docs:test3
> echo test1
> echo test2
> echo test3
test1
test2
test3
> nx run docs:test4
> echo test4
test4
——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————
NX Successfully ran target test4 for project docs and 3 tasks it depends on
Expected Behavior
To see output like
NX Running target test4 for project docs and 3 tasks it depends on:
——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————
> nx run docs:test1
> echo test1
test1
> nx run docs:test2
> echo test2
test2
> nx run docs:test3
> echo test3
test3
> nx run docs:test4
> echo test4
test4
——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————
NX Successfully ran target test4 for project docs and 3 tasks it depends on
GitHub Repo
No response
Steps to Reproduce
^^
Nx Report
NX Report complete - copy this into the issue template
Node : 20.10.0
OS : darwin-arm64
pnpm : 9.1.0
nx (global) : 19.0.4
nx : 19.0.4
@nx/js : 19.0.4
@nx/jest : 19.0.4
@nx/eslint : 19.0.4
@nx/workspace : 19.0.4
@nx/devkit : 19.0.4
@nx/eslint-plugin : 19.0.4
@nx/next : 19.0.4
@nx/plugin : 19.0.4
@nx/react : 19.0.4
@nx/storybook : 19.0.4
@nx/web : 19.0.4
typescript : 5.4.5
---------------------------------------
Registered Plugins:
nx-plugin
Failure Logs
No response
Package Manager Version
No response
Operating System
- macOS
- Linux
- Windows
- Other (Please specify)
Additional Information
No response
xiongemi commented
for now, you can use --parallel false
false to get your output, like CI=true nx run docs:test4 --parallel false
. i will look into this issue and do a proper fix.