`klaus review` runs the reviewer in an empty temporary directory and sends it the diff cut at 80,000 bytes. A larger change is reviewed from a fragment, and the reviewer cannot open any file to check context: the code around a change, its callers, the tests it claims to add. On a 112 KB diff the reviewer said the diff was truncated and the workspace empty, and reported one finding. Fixed when: - the reviewer's workspace is a read-only checkout of the change's head, removed afterwards; - the full diff is a file in that workspace, and the inline diff says where it is when cut; - the printed result and any posted review say when the inline diff was cut. An end-to-end test reviews a change larger than the cap.
No comments.