Skip to content

perf(test): reduce redundant CLI subprocess startup #2387

Description

@Astro-Han

Part of #2382.

Problem

CLI, Headless CLI, and harness A/B CLI tests repeatedly start Node processes for scenarios whose semantics can be exercised through existing in-process entry points.

Real subprocess coverage remains necessary for process-level behavior, but not every scenario needs to pay that cost.

Outcome

  • Test ordinary command semantics in process.
  • Retain representative subprocess coverage for stdin, stdout, exit codes, signals, persistence, detached execution, and fail-closed behavior.
  • Keep CLI and Headless changes in separate PRs.
  • Do not change production command behavior.

Each PR must identify the retained process contracts and include comparable before/after timing.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions