Repository navigation
corpus_watch: set errors='replace' on stdout like the other tools (TOOL-CORPUS-WATCH-STDOUT) - #2118
Closed
kevincommits wants to merge 1 commit into
Closed
kevincommits wants to merge 1 commit into
kevincommits wants to merge 1 commit into
Conversation
kevincommits
marked this pull request as ready for review
November 25, 2026 21:32
JordanWebDev
approved these changes
Nov 25, 2026
Author
|
Closing as superseded: |
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: TOOL-CORPUS-WATCH-STDOUT (#1608 (comment))
What and why
scripts/corpus_watch.py(added in5ba7f354) runssys.exit(main())without theerrors="replace"stdout guard the other programs carry, sotests/test_tool_stdout_encoding.pylists it. This adds the same four-line guardtools/feature_scan.pyuses to its__main__block. Nothing else changes.The same test also lists
tools/compute_heap_layout_census.py,tools/game_run_summary.pyandtools/stage_timeline.pyonmain. Those are covered by #1561, #1673, #1789, #1837, #1866 and #2111, so this pull request leaves them alone and the test stays red until one of those merges.Tested
On macOS (Apple M5 Pro), Python 3.14.2, at
7b523287:python -I tests/test_tool_stdout_encoding.py: the missing list goes from four entries to three;scripts/corpus_watch.pyis no longer in it.python -I tests/test_corpus_watch.py: OK.python -I scripts/corpus_watch.py --help: prints usage.tests/test_*.pyunderpython -I: 509 run, 505 pass. The 4 that fail are the same 4 that fail onmainwithout this change (test_mod_pack_output_aliason macOS,test_runner_calls_all_tests,test_runtime_paths,test_tool_stdout_encoding), each with an open pull request.Not tested on Windows, where the guard matters.
GPUs tested: n/a
AI-assisted: yes
Checklist
mainand merges cleanly (a conflicting pull request is labeledneeds rebase).docs/design.md, with how it was confirmed. (n/a: no translator change)