You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(test): emit actionable rerun commands for process failures #3914
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.
Activity
fix(test): harden long-running Python supervision (FastLED#3917)