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

Show stderr output from failing task #134

Open
JoshuaKGoldberg opened this issue Feb 21, 2018 · 1 comment
Open

Show stderr output from failing task #134

JoshuaKGoldberg opened this issue Feb 21, 2018 · 1 comment

Comments

@JoshuaKGoldberg
Copy link

I'm using concurrently for a CI job on VSTS to run a bunch of tasks in parallel and fail fast if one does.

{
    "scripts": {
        "verify": "concurrently \"npm run build\" \"npm run lint\" \"npm run lint\" --kill-others-on-fail"
    }
}

If the task fails, npm just logs the root-level "concurrently failed!" without any info on which one. Not very useful for CI logs.

What would be useful is, if a task fails, concurrently were to print its output (either stderr+stdout or just stederr).

@gustavohenke
Copy link
Member

I think this is quite related to #75 and its PR #79.
Unfortunately that PR was never looked very deeply into by me :(

rekmarks added a commit to MetaMask/metamask-extension that referenced this issue Oct 6, 2021
This PR fixes our local unit test package scripts. When the state migration unit tests were migrated to Jest in #12106, it left the `test:unit` script in a broken state, because it didn't tell `mocha` to ignore the state migration tests.

Arguably, that script was already broken, since the most reasonably expectation from its name is that it runs _all_ unit tests. The PR makes it so that it does just that, by means of `concurrently`.

Unfortunately, `concurrently` only outputs errors from child processes once (at the time when they exit, open-cli-tools/concurrently#134). This means that we have to search/navigate the output for this combined script to identify the failure. That said, it's better than the status quo.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants