Skip to content

fix(test): emit actionable rerun commands for process failures #3914

Closed

Description

@zackees

Context

When RunningProcessGroup times out uv run pytest --tb=short ci/tests --durations=0, it records the failure name with _extract_test_name(). That fallback skips uv and returns the next token, run, instead of the existing friendly name python_tests.

The outer exception handler then classifies every non-example process as a C++ unit test. The resulting failure guidance is:

run | unit | bash test run --cpp
bash test run --debug

Both commands are wrong. The mandated debug command immediately fails because run fuzzily matches multiple unrelated C++ tests (runner, sketch_runner, example_runner, and apple_runner_watchdog). This hides the actual failed process and sends users and agents down the wrong diagnostic path.

Proposal

Use the existing friendly process-name classifier consistently when process-level failures are created, and derive the failure category from the original command. Give Python-suite failures canonical Python rerun guidance (bash test --py) and verbose diagnostic guidance (bash test --py --verbose) instead of C++ sanitizer commands.

Acceptance criteria

  • Preserve RED evidence that a pytest process-level failure is currently named run and produces a C++ rerun command.
  • Process-level pytest failures are named python_tests.
  • The summary classifies them as Python, not unit C++.
  • The rerun command is bash test --py and the diagnostic command is bash test --py --verbose.
  • Existing unit/example failure guidance remains unchanged.
  • Focused tests and lint pass.

Decisions

  • Process failures use command-aware classification; test-case failures keep their existing unit/example behavior.
  • Python failures do not request --debug, because that flag enables C++ sanitizers and does not diagnose pytest process timeouts.
  • Severity is P2: the original failure remains visible, but the required recovery instructions are unusable.

Related

Activity

  1. moved this from Triage to Done in FastLED Trackeron Aug 20, 2026
  2. added a commit that references this issue on Aug 20, 2026
    5910be3
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

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions