Repository navigation
Show when unit test output is cut, and keep its end - #331
Open
gorandodig wants to merge 1 commit into
Open
gorandodig wants to merge 1 commit into
gorandodig wants to merge 1 commit into
Conversation
Unit test output over the fixer's 10,000-character budget was handed to the server whole, which summarized it with an LLM (or kept the first 85%) and left only a DEBUG line behind. Lint findings and summary lines, which scripts print last, were the part most often lost, and script authors could not see that it happened. The client now cuts output over the budget from the middle, keeping equal shares of the start and the end with a marker saying how much was left out, and logs a WARNING with the original size and the budget. The budget and how to stay within it are documented for test script authors.
gorandodig
force-pushed
the
feat/eng-324-visible-test-output-budget
branch
from
October 14, 2026 10:29
73a4bea to
4962e05
Compare
gorandodig
marked this pull request as ready for review
October 14, 2026 14:19
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Rewritten files come back without a final newline, so linter tests in unit-test scripts never converge.
When a unit test script fails, its output goes to the fixer, which works with at most 10,000 characters. Output over that is now cut on the client: the fixer gets the first and the last ~4,980 characters, with a marker in between that says how much was left out (
[... 952 characters omitted ...]). Each time, a warning shows in the TUI, on headless stdout and incodeplain.log, without--verbose:The budget, and how to stay within it, is documented for test script authors in
docs/starting_a_plain_project_from_scratch.mdand in the--unittests-scripthelp (also indocs/plain2code_cli.md).Please review this behavior change: because the client now keeps the output within the server's budget, the server no longer summarizes long unit test output with an LLM. The fixer sees the script's own text, start and end. One difference: the server collapses repeated lines before it measures, while the client measures the raw output, so output that only fit after collapsing is now cut. Conformance test output is unchanged: the client does not cut it, and the server still summarizes it.
Verification
FixUnitTestson 10,912 characters of output through the realsetup_logging(headless, logging to file, no--verbose): the warning above appeared on stdout and in the log file.Summary by CodeRabbit