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
porch: a failed check prints 5 lines of stderr and drops the captured stdout, so a failing test is never named #1801
When a porch check fails, porch prints only the first five lines of the check's stderr and discards the captured stdout. For the tests check (npm test -- --exclude='**/e2e/**') vitest writes its failure report, including the failing test's file and name, to stdout. The builder therefore sees a failed check with no indication of which test failed.
Observed on spir-1789 phase_2: porch done failed the tests check twice, each time printing only pr-create forge-script noise from stderr. The builder spent eight manual full-suite runs (all green) trying to reproduce before capturing porch's exact command in a loop to name the test (a load-sensitive, CI-skipped terminal test; filed separately).
The failure formatter (lines ~403-411) prints result.error.split('\n').slice(0, 5) and never touches result.output.
So the information is captured and then dropped at the print site. Nothing persists it either (no check log on disk).
Fix shape (hypothesis)
On failure, print the tail of result.output (e.g. the last 30-40 lines, where vitest's FAIL lines and summary live) in addition to the stderr head, or write the full stdout+stderr of a failed check to a file under the project's codev/projects/<id>/ directory (gitignored like the consult .txt outputs) and print its path.
Keep the terminal output bounded; the goal is that a failed tests check always names at least one failing test without the builder reconstructing porch's command.
Test: a check whose command exits non-zero with a vitest-style stdout report and empty stderr produces output containing the FAIL line.
Activity