Skip to content

Couple of bug fixes related to the status printing - #161

Merged
giordano merged 3 commits into
mainfrom
mg/printing-fixes
Aug 8, 2026
Merged

Couple of bug fixes related to the status printing#161
giordano merged 3 commits into
mainfrom
mg/printing-fixes

Conversation

@giordano

@giordano giordano commented Aug 8, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

giordano and others added 3 commits August 9, 2026 00:21
The status line listing running tests was truncated by slicing with byte
indices after checking the character length, so a multi-byte character
straddling the cut point threw a StringIndexError. This killed the printer
task, which then surfaced as a TaskFailedException from finalization — and
the truncation is computed even when stdout is not a TTY, so CI runs with
long non-ASCII test names were exposed too.

Extract the truncation into a `truncate_line` helper that slices by
character, and unit-test it.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
In verbose mode, `print_test_failed` wrote the init-time cell to
`ctx.stdout` while every other part of the row went to `ctx.stderr`,
splitting a single row across the two streams when they are redirected
separately.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@giordano
giordano merged commit 936e945 into main Aug 8, 2026
23 checks passed
@giordano
giordano deleted the mg/printing-fixes branch August 8, 2026 23:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant