Skip to content

--kill-others --kill-signal=SIGINT exits process with code 1 #521

Open
@dankerk

Description

@dankerk

I don't know if this is a bug or a feature request or if I'm simply not understanding how to properly use this package.

  • Description:
    I'm trying to run a web server, then run some e2e tests. When the tests complete successfully, the web server process is ended with SIGTERM, causing NPM to think the tests failed.
    If I don't kill the web server, the task keeps running forever/times out.

I've tried concurrently --kill-others --kill-signal=SIGINT "start server" && "run e2e tests"
as well as concurrently --kill-others --success last "start server" && "run e2e tests"

  • Expected Behaviour:
    Processes exit with code 0, NPM thinks (rightfully) that tests pass.

  • Environment:
    In an Azure devOps pipeline running Linux 5.15.0-1074-azure,
    v18.20.5,
    Concurrently 9.1.0

  • Reproduction: A way to reproduce the issue
    concurrently --kill-others --kill-signal=SIGINT "start server" && "run e2e tests"
    or concurrently --kill-others --success last "start server" && "run e2e tests"

Would you be able to see whether I'm doing something wrong if this is a feature request or bug?
Many thanks.

Screenshot 2024-12-16 at 18 38 17

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions