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 done truncates failing check output; the failing test is never named #1853
porch done runs the project's test check before advancing a phase. When the check fails, porch prints a truncated tail of the output, so the failing test is never named. An intermittent failure at that step therefore cannot be investigated after the fact: a retry clears it and the evidence is gone.
Measured case
Spec 1595 builder, phases 7 and 8, 2026-10-21:
the test check failed three times at porch done, and passed on immediate retry each time
every failing run started within seconds of a git commit
the same suite never failed when run directly, nor in porch-shaped replays
the truncated output did not include the failing test name in any of the three runs
The builder's thread log on the 1595 branch (codev/state/spir-1595_thread.md, lands on main with the PR) carries the timestamps.
Ask
Persist the full check stdout and stderr per run under the project directory, for example codev/projects/<id>/checks/<phase>-<timestamp>.log, and name that file in the truncated terminal message.
Keep the truncated terminal output as is; the file is the record.
With the record in place, investigate the commit-adjacent timing (the three failures all followed a commit by seconds, which points at a race with porch's own chore commit or a build step rather than at the tests).
An intermittent failure at a fixed step is a step-level signal, not noise. Today it goes unreported because the retry passes and nothing names the test.
Scope for the fix (BUGFIX), from the 2026-11-23/24 cases where four different builders could not name a failing test:
Persist the full output of every failed check (stdout and stderr) to a file under the project directory, as the issue asks, and print that path in the terminal message. Keep it out of git (the directory should be ignored like the other per-run review outputs) and keep only a bounded number of files per project.
Show the useful end, not the useless start. Today formatCheckResults (packages/codev/src/commands/porch/checks.ts) prints the first five lines of the error, which for the tests check are npm and tool warnings. Print the last lines instead (enough to include a test runner's failure summary), plus the path to the full file.
Tests: a failing check whose output starts with 50 lines of warnings and ends with a failure summary shows the summary and the file path; the file holds the complete output; a passing check writes nothing.
porch.checks overrides and the timeout path (a check killed at its limit) must also write the file: a timed-out check is the case where the output matters most.
Activity
waleedkadous commentedon Nov 24, 2026
Scope for the fix (BUGFIX), from the 2026-11-23/24 cases where four different builders could not name a failing test:
formatCheckResults(packages/codev/src/commands/porch/checks.ts) prints the first five lines of the error, which for the tests check are npm and tool warnings. Print the last lines instead (enough to include a test runner's failure summary), plus the path to the full file.porch.checksoverrides and the timeout path (a check killed at its limit) must also write the file: a timed-out check is the case where the output matters most.waleedkadous commentedon Nov 24, 2026
On it! Working on a fix now.
[Bugfix #1853] Fix: save failed check output to a log, print its last…
[Bugfix #1853] Test: failed check output names the failure and is sav…
[Bugfix #1853] Thread: fix built, draft PR #1964
[Bugfix #1853] Fix: regenerate shipped skill hashes for the edited po…
[Bugfix #1853] Fix: whole-line transcript, and never prune the log ju…
[Bugfix #1853] Test: no mid-line splice across streams; the new log s…
[Bugfix #1853] Thread: pr phase, CMAP outcome
Merge pull request #1964 from cluesmith/builder/bugfix-1853