Skip to content

Keep reviewer timeout diagnostics byte-bounded in the terminal #1459

Done

Description

@eowca

On origin/main at 29a3f882, when both reviewer runners time out, loopzero review copies each partial runner diagnostic into the terminal error. The layout limits lines, so the final partial stderr line still appears in full. A long partial stdout line also appears in full when the runner emitted no stderr. This is the runtime timeout path. #1289 addresses malformed reviewer results.

Fake timeout tail per reviewer stdout stderr
40 bytes of stderr and 40 bytes of stdout 78 B / 1 line 478 B / 11 lines
2,000 bytes of stderr and 2,000 bytes of stdout 78 B / 1 line 4,398 B / 11 lines
No stderr and 2,000 bytes of stdout 78 B / 1 line 4,398 B / 11 lines

Offline reproducer: use wt, gh, arm_pr and arm_empty_primary_review_history from tests/test_cli.py. Stub runners.review_with for both configured reviewers to raise RunnerBadOutput(f"{family}: timed out after 600s", "e" * 2000 + "\n" + "o" * 2000). Omit the stderr line for the stdout-only case. Both shapes match tails handed over by runners._run on timeout. Run loopzero review under capsys. No model launches or review posts.

Acceptance

  • The long one-line timeout fixture returns exit 4 and emits under 2 KiB combined. Preserve both reviewer names, the timeout reason and rerun guidance.
  • Prefer a short byte-bounded final stderr diagnostic as in Include reviewer stderr in review timeout diagnostics #963. When stderr is empty, summarize or omit the partial stdout transcript. Keep useful short runtime diagnoses and existing successful review output.

Activity

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

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions