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

--aggregate-output doesn't work with regex-based pnpm run #7556

Closed
2 of 4 tasks
yjp20 opened this issue Jan 23, 2024 · 0 comments · Fixed by #7557
Closed
2 of 4 tasks

--aggregate-output doesn't work with regex-based pnpm run #7556

yjp20 opened this issue Jan 23, 2024 · 0 comments · Fixed by #7557

Comments

@yjp20
Copy link
Contributor

yjp20 commented Jan 23, 2024

Verify latest release

  • I verified that the issue exists in the latest pnpm release

pnpm version

No response

Which area(s) of pnpm are affected? (leave empty if unsure)

CLI

Link to the code that reproduces this issue or a replay of the bug

No response

Reproduction steps

pnpm --no-bail --aggregate-output --reporter=append-only --workspace-concurrency=0 run '/^lint:/'

package.json:

{
  "name": "test",
  "version": "1.0.0",
  "description": "",
  "main": "index.js",
  "scripts": {
    "lint:a": "sh -c 'for i in {1..30}; do echo foo; sleep 0.1; done'",
    "lint:b": "sh -c 'for i in {1..30}; do echo bar; sleep 0.1; done'"
  },
  "keywords": [],
  "author": "",
  "license": "ISC"
}

Describe the Bug

--aggregate-output currently only works for scripts across workspaces, but not for scripts within the same workspace.

The reproduction leads to:

. lint:a$ sh -c 'for i in {1..30}; do echo foo; sleep 0.1; done'
. lint:b$ sh -c 'for i in {1..30}; do echo bar; sleep 0.1; done'
. lint:a: foo
. lint:b: bar
. lint:a: foo
. lint:b: bar
. lint:a: foo
. lint:b: bar
. lint:a: foo
. lint:b: bar
. lint:a: foo
. lint:b: bar
. lint:a: foo
. lint:b: bar
. lint:a: foo
. lint:b: bar
. lint:b: bar
. lint:a: foo
. lint:b: bar
. lint:a: foo
. lint:b: bar
. lint:a: foo
. lint:b: bar

Expected Behavior

I would have expected for the tests inside the same workspace to also have aggregated output.

Which Node.js version are you using?

21.5.0

Which operating systems have you used?

  • macOS
  • Windows
  • Linux

If your OS is a Linux based, which one it is? (Include the version if relevant)

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant