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

Strange order of logs in 19.0.4 #23490

Closed
1 of 4 tasks
khludenevav opened this issue May 17, 2024 · 3 comments
Closed
1 of 4 tasks

Strange order of logs in 19.0.4 #23490

khludenevav opened this issue May 17, 2024 · 3 comments
Assignees
Labels
scope: core core nx functionality type: bug

Comments

@khludenevav
Copy link

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

@khludenevav khludenevav changed the title Quire strange order of logs in 19.0.4 Strange order of logs in 19.0.4 May 17, 2024
@FrozenPandaz FrozenPandaz added the scope: core core nx functionality label May 17, 2024
@xiongemi
Copy link
Collaborator

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.

@xiongemi
Copy link
Collaborator

i think the output is correct because when --parallel option is not passed, it would default to true. so when "test1", "test2" and "test3" are run in parallel, the log might be in sequential order.

@khludenevav
Copy link
Author

Thank you for investigating.
nx run --help states --parallel Max number of parallel processes [default is 3] [string]
So probably it is defaults to 3.

But I'm complaining about another thing: logs don't give me an answer to the question "Which logs relate to which task".
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
scope: core core nx functionality type: bug
Projects
None yet
Development

No branches or pull requests

3 participants