Repository navigation
stage_timeline: set errors='replace' on stdout like the other tools (TOOL-STAGE-TIMELINE-STDOUT) - #2111
Closed
Tauwni wants to merge 1 commit into
Closed
stage_timeline: set errors='replace' on stdout like the other tools (TOOL-STAGE-TIMELINE-STDOUT)#2111Tauwni wants to merge 1 commit into
Tauwni wants to merge 1 commit into
Conversation
tests/test_tool_stdout_encoding.py fails on main for tools/stage_timeline.py (from ba62682): under python -I a redirected stdout is the strict ANSI code page on Windows, so a non-ASCII title string would end the tool. The other two tools that test lists are handled by ProjectLeonida#1673 and ProjectLeonida#1837. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Closed
3 of 4 tasks
Contributor
Author
|
Closing: AI-assisted (Claude Code). |
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.
Claimed in the coordination issue as: #1608 (comment)
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 ci: fix the three repository checks that fail on main #1673 and tools/game_run_summary: guard stdout encoding, BOM ints, OSError and RecursionError #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