Repository navigation
Stream local check output into a bounded diagnostic tail - #1409
Conversation
Co-Authored-By: Codex <noreply@openai.com>
There was a problem hiding this comment.
loopzero primary review by claude on 3b649d6fe937c2c1b6fc51f2bf3cee543c44999a, 45.6s: approve (0 critical, 0 important, 1 suggestion)
Settings per native call (launch configuration and CLI claims, not backend attestation):
- Call 1: requested model claude-opus-5-5 (effort medium); CLI-reported model claude-opus-5-5 (effort unknown); configured model claude-opus-5-5 (effort medium)
Native Claude output is retained in the restricted local review receipt.
|
|
||
| def test_timeout_is_recorded_with_drained_output(git_repo, bwrap_log): | ||
| command = "printf '%20000s\\n' ''; echo last diagnostic >&2; exec sleep 30" | ||
| report = sandbox.run_checks( |
There was a problem hiding this comment.
suggestion: Real-process timeout test depends on a 1s wall-clock window
test_timeout_is_recorded_with_drained_output needs bash to start, run printf and echo last diagnostic >&2 within the real 1s timeout. On a slow or heavily loaded CI host, the deadline can hit before the final diagnostic is written. The endswith("\nlast diagnostic\n\n[loopzero] timed out after 1s") assertion would then fail even though the code is correct. Smallest fix: raise the timeout to a few seconds (the child exec sleep 30 still guarantees a timeout), or have the child signal readiness before it sleeps. The streaming logic itself looks correct. Incremental decode with newline translation matches communicate's text decoding. Parent memory stays bounded at roughly 2×limit plus a 64 KiB chunk. On timeout, the trailing newlines are kept and the original exc.output/ProcTimeout path is reused. The preserve_newlines raw-diff path is rejected by the guard and left unchanged.
|
@Mergifyio queue |
❌ Left the queue ·
|
|
No description provided. |
|
@Mergifyio queue |
✅ Merged into
|
|
No description provided. |
Local sandbox stages drain the merged output stream and retain a bounded diagnostic suffix. Verbose and timed-out checks keep the 16 KiB receipt format, exit code and final diagnostic.
Closes #1194
Supersedes #1343. The change carries forward the reviewed fix and resolves its overlap with #1353’s raw review-diff capture. Review commands continue using the existing raw byte capture; local stages use the bounded text capture.
Validation
Recorded for
4eb81754a123uv run --group dev ruff check src tests: exit 0uv run --group dev tach check: exit 0uv run --python 3.14 python scripts/check_architecture_docs.py: exit 0scripts/size_budget.sh: exit 0uv run --group dev pytest -q: exit 0Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.Review