mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 21:40:52 +01:00
[PR #2111] [CLOSED] stage_timeline: set errors='replace' on stdout like the other tools (TOOL-STAGE-TIMELINE-STDOUT) #2117
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#2117
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/2111
Author: @Tauwni
Created: 11/25/2026
Status: ❌ Closed
Base:
main← Head:fix/stage-timeline-stdout📝 Commits (1)
fe4ef36stage_timeline: set errors='replace' on stdout like the other tools📊 Changes
1 file changed (+4 additions, -0 deletions)
View changed files
📝
tools/stage_timeline.py(+4 -0)📄 Description
Claimed in the coordination issue as: https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7173443163
What and why
tests/test_tool_stdout_encoding.pyfails onmainfor three tools whose__main__block doesn't seterrors='replace'on stdout. Underpython -I, a redirected stdout is the strict ANSI code page on Windows, so one character it can't encode ends the tool. #1673 handlestools/compute_heap_layout_census.pyand #1837tools/game_run_summary.py. This PR handles the third,tools/stage_timeline.py(fromba626820e), with the same guardedsys.stdout.reconfigure(errors="replace")the other tools use.Tested
python -I tests/test_tool_stdout_encoding.py:tools/stage_timeline.pyis no longer listed. Only the two files #1673 and #1837 fix remain, and the test passes with all three merged.python -I tools/stage_timeline.py --helpand a run on a log without peek lines behave as before.main(no new failure).GPUs tested: n/a
AI-assisted: yes (Claude Code)
Checklist
mainand merges cleanly.🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.