Skip to content

Docs: list the "no command" reasons next to the fallback reasons #127

Closed

Description

@adityankale190895

DiffCI can select tests but still be unable to write a command that runs only those tests. In that case check prints no command: <reason> (packages/diffci-cli/src/client/cli.ts:782), the job summary prints No runnable command: <reason> (job-summary.ts:67), and Core's plan reports commandSynthesis.status: "UNAVAILABLE" (src/planner/planner.ts:87).

The reasons come from src/planner/test-command.ts. Examples: Workspace routing requires non-overlapping declared npm or pnpm packages (L288), Scoped Vitest execution requires pnpm and verified package test paths (L377), Mixed Maven/JavaScript selective execution requires separate CI jobs (L421) and Selected tests are outside the default runner configuration (L515). None of them is in the docs. The Fallback reasons section only covers full-suite fallbacks, and tests/fallback-reasons-docs.test.ts only checks those.

Add a "No runnable command" subsection to docs/using-diffci.md, after the fallback tables. It needs one table row per reason: the message, a one-line example of what causes it, and what the user can do. Usually the answer is "run the full suite", sometimes a config fix. Then extend the docs test, either with another site pattern in scripts/fallback-reasons.mjs or with a small sibling extractor, so a new refusal reason in test-command.ts fails the test until it is documented. Reasons built from other messages (L284 joins blockers; L528 is a template) can use … the same way the fallback table does.

If the whole list is too much for one PR, start with the workspace reasons (L288–L370) and say so here; the rest can follow.

Done when: every literal refusal reason in test-command.ts appears in the new table, and a test fails when one is added to the code without a docs row. Do not change the reasons or the planning behaviour.

Setup and conventions are in CONTRIBUTING.md: run npm test, sign off commits with git commit -s (DCO). Comment here if you want to take it, and ask anything.

Activity

  1. added
    documentation
    good first issue
    on Nov 13, 2026
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

    documentationgood first issue

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions