open-cli-tools / open-cli-tools/concurrently
Multiple processes exiting with code 0 or SIGTERM produce a non-zero exit code
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 7.9k
- Forks
- 281
- Avg merge
- 17h 12m
- Merged PRs (30d)
- 1
Description
4.1.0
This is my output. All the processes are exiting with 0 or SIGTERM. But the final exit code is non-zero.
[test ] npm run test:docker:sleep exited with code 0
--> Sending SIGTERM to other processes..
[server] [mock ] npm run start:mockserver:nobunyan exited with code SIGTERM
[server] [nes ] DOCKER=1 nessie start exited with code 0
[server] [webpack] npm run webpack:server exited with code 0
[server] npm ERR! code ELIFECYCLE
Here are my npm scripts:
"start:docker": "concurrently --n 'nes ,mock ,webpack' -s 'first' 'DOCKER=1 nessie start' 'npm run start:mockserver:nobunyan' 'npm run webpack:server'",
"test:docker:sleep": "sleep 10 && npm run --prefix functional-tests test:docker",
"test:functional:docker:ra": "npm-run-all --parallel -lr 'test:docker:sleep' 'start:docker'",
"test:functional:docker": "concurrently -n 'test ,server' -s 'first' --kill-others 'npm run test:docker:sleep' 'npm run start:docker' ",
test:functional:docker:ra runs the same commands but exits with 0 (the desired output).
I need this exit code for my build pipeline.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the reported concurrently 4.1.0 behavior using the shown npm scripts, especially the test:functional:docker:ra and test:functional:docker commands. Start at concurrently's process-exit and final exit-code handling; done means the command returns zero when every process exits with code 0 or SIGTERM.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- node.js, typescript
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 40/100