Skip to content

Create tests to verify process/pipeline management and signal handling #6591

Open

Description

@dandavison

Related problem

There were a sequence of subtle bugs and slightly broken releases relating to pipeline management and signal handling (see #6542 for a summary). It is looking like #6584 fixes the known issues, and it would be valuable to have tests preventing future regressions. @unrelentingtech suggests (#6584 (comment)) that this might follow the patterns used by fish to implement similar tests, which use the pexpect tool:

https://github.com/fish-shell/fish-shell/tree/master/tests/pexpects

Describe the solution you'd like

Tests that prevent regressions relating to pipelines and signal handling. Ideally, it should be possible to cherry-pick the tests onto some past commits and verify that the tests fail on commits with the bugs described in #6542 (e.g. #6240 and #6496).

Describe alternatives you've considered

I don't see an alternative; nushell should have such tests at some point.

Additional context and details

No response

Activity

  1. added
    tests
    on Sep 20, 2022
  2. fdncred commented on Sep 20, 2022

    @fdncred
    Contributor

    Tests would be awesome for this. We've struggled with the implementation of this feature so much.

  3. sholderbach commented on Oct 10, 2022

    @sholderbach
    Member

    @WindSoilder added one test in that area with #6688

  4. added
    A:redirection-pipe
    A:signal-cancel
    help wanted
    and removed on Sep 26, 2023
  5. mkuchuman commented on Nov 21, 2026

    @mkuchuman
    Contributor

    Hi, is anyone working on this? I'd like to try adding tests for pipeline and signal handling.

  6. fdncred commented on Nov 21, 2026

    @fdncred
    Contributor

    have at it @mkuchuman

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

Metadata

Metadata

Assignees

Labels

A:redirection-pipeA:signal-cancelcategory:enhancementhelp wantedtests

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions