Fix two repository checks that fail on main #1561
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
missing claim
needs rebase
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/ubiquitarianism--leonida!1561
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1561/head"
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?
@ytsodacan on GitHub · 2026-11-25 04:38 UTC · original
ytsodacan:fix-red-tests→main· +28 −0 · 8 files · 4 commits · merged 2026-11-26 00:56 UTCWhat and why
Two repository checks fail on
main:tests/test_tool_stdout_encoding.py:tools/compute_heap_layout_census.py,tools/game_run_summary.pyandtools/stage_timeline.pydon't seterrors="replace"on stdout, so a redirected run can stop on a name the Windows code page can't encode. They get the guard the other tools have.tests/test_runner_calls_all_tests.py:test_out_named_like_the_optional_spirv_indexintests/test_feature_scan.pyisn't in the checker's list. Its runner already calls it (throughglobals(), which the checker doesn't follow in that form), so it joins the file's other tests inRUNNER_SKIPS.Overlaps #1673, which fixes the same two checks and a third, without the last two guards.
Tested
macOS, Python 3.14.4. On
mainboth checks fail; with this change both pass, and so dotests/test_feature_scan.py,tests/test_compute_heap_layout_census.pyandtests/test_game_run_summary.py. OguzSoykan verified the first commit on native Windows; the two newer guards have no Windows run.GPUs tested: n/a
Checklist
mainand merges cleanly.@ytsodacan on GitHub · 2026-11-25 06:28 UTC · original
@tiguan26 please review
@tiguan26 on GitHub · 2026-11-25 18:05 UTC · original
Tested on current main (
b9320a1): both changes are correct, andtest_runner_calls_all_tests.pynow passes.test_tool_stdout_encoding.pystill fails on main, though, because two tools have landed since without the guard:tools/game_run_summary.pyandtools/stage_timeline.py(Lists differ: ['tools/game_run_summary.py', 'tools/stage_timeline.py'] != []). If you add the samesys.stdout.reconfigure(errors="replace")block to those two, this PR fixes both checks and I'll approve it.AI-assisted (Claude).
@OguzSoykan on GitHub · 2026-11-25 20:14 UTC · original
Verified on native Windows at head
263c9114b:test_runner_calls_all_tests.pyandtest_tool_stdout_encoding.pyfail onmainand pass here. It overlaps #1673, which fixes the same two plustest_runtime_paths.pyand teaches the checker the comprehension form instead of extendingRUNNER_SKIPS.Native Windows 10 Pro 19045, CPython 3.12,
py -3.12 -I, checkout under a non-ASCII profile path (C:\Users\Oğuz\..., TEMP is the 8.3 aliasC:\Users\OUZ~1\...). No game files.AI-assisted (Claude Code).
@ytsodacan on GitHub · 2026-11-25 20:45 UTC · original
Thanks, reproduced on current
main. Both tools have the guard in4b10cbe91, andtest_tool_stdout_encoding.pyandtest_runner_calls_all_tests.pypass on top ofdb1a22d29.@OguzSoykan thanks for the Windows run and for pointing out #1673. It fixes the checker itself rather than extending
RUNNER_SKIPS, so if it's merged first I'll cut this one down to the two new guards.@tiguan26 on GitHub · 2026-11-25 21:35 UTC · original · approved these changes
Approving
4b10cbe. Merged into current main with no conflicts:tests/test_runner_calls_all_tests.pypasses, and the two tools I named now have the guard.Main keeps moving, though. On today's main
test_tool_stdout_encoding.pynow listsscripts/corpus_watch.py, which landed after this PR. That's a new file, not something this PR missed, so it shouldn't hold this up. #1673, which teaches the checker the comprehension form, may be the longer-term fix for the runner check.AI-assisted (Claude).
@aslan2142 on GitHub · 2026-11-26 00:56 UTC · original
Merged, thanks! With this, the three repository checks that failed on
mainpass again.compute_heap_layout_census.py,game_run_summary.pyandstage_timeline.py, andtest_out_named_like_the_optional_spirv_indexinRUNNER_SKIPS.d9bb37465): the same guard in three scripts that landed since (check_compute_journal_overlay.pyandcompute_workers_win.pywith #2098,corpus_watch.pywith #817), andtools/conformance/**in both path filters ofruntime.yml, whichtest_runtime_pathsneeds. That last change is from #1673 (xel1uz), which this replaces.test_tool_stdout_encoding,test_runner_calls_all_testsandtest_runtime_pathspass, and so do the CI and ctest registration tests.main88479ff65+d9bb37465: the semantic suite passes (495 files, 6,333 tests, 0 files failed);test_runner_calls_all_testspass; the 15 docs and writer tests pass;check_no_game_data.pyis clean on the 8 changed files.AI-assisted (Claude Code, Claude Opus 5.5).