Fix two repository checks that fail on main #1561

Merged
ytsodacan merged 4 commits from upstream-pr/1561 into main 2026-11-26 00:56:14 +00:00
ytsodacan commented 2026-11-25 04:38:43 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by ytsodacan on 2026-11-25T04:38:43Z.


What and why

Two repository checks fail on main:

  • tests/test_tool_stdout_encoding.py: tools/compute_heap_layout_census.py, tools/game_run_summary.py and tools/stage_timeline.py don't set errors="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_index in tests/test_feature_scan.py isn't in the checker's list. Its runner already calls it (through globals(), which the checker doesn't follow in that form), so it joins the file's other tests in RUNNER_SKIPS.

Overlaps #1673, which fixes the same two checks and a third, without the last two guards.

Tested

macOS, Python 3.14.4. On main both checks fail; with this change both pass, and so do tests/test_feature_scan.py, tests/test_compute_heap_layout_census.py and tests/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

  • Based on current main and merges cleanly.
  • One topic; follow-up work goes in a new pull request.
  • No game data, keys or decryption.
<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5485275279 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/1561). Originally posted by [ytsodacan](https://github.com/ytsodacan) on 2026-11-25T04:38:43Z. --- ### What and why Two repository checks fail on `main`: - `tests/test_tool_stdout_encoding.py`: `tools/compute_heap_layout_census.py`, `tools/game_run_summary.py` and `tools/stage_timeline.py` don't set `errors="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_index` in `tests/test_feature_scan.py` isn't in the checker's list. Its runner already calls it (through `globals()`, which the checker doesn't follow in that form), so it joins the file's other tests in `RUNNER_SKIPS`. Overlaps #1673, which fixes the same two checks and a third, without the last two guards. ### Tested macOS, Python 3.14.4. On `main` both checks fail; with this change both pass, and so do `tests/test_feature_scan.py`, `tests/test_compute_heap_layout_census.py` and `tests/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 - [x] Based on current `main` and merges cleanly. - [x] One topic; follow-up work goes in a new pull request. - [x] No game data, keys or decryption.
ytsodacan commented 2026-11-25 06:28:37 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by ytsodacan on 2026-11-25T06:28:37Z.


@tiguan26 please review

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7154829303 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/1561#issuecomment-7154829303). Originally posted by [ytsodacan](https://github.com/ytsodacan) on 2026-11-25T06:28:37Z. --- @tiguan26 please review
tiguan26 commented 2026-11-25 18:05:37 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by tiguan26 on 2026-11-25T18:05:37Z.


Tested on current main (b9320a1): both changes are correct, and test_runner_calls_all_tests.py now passes. test_tool_stdout_encoding.py still fails on main, though, because two tools have landed since without the guard: tools/game_run_summary.py and tools/stage_timeline.py (Lists differ: ['tools/game_run_summary.py', 'tools/stage_timeline.py'] != []). If you add the same sys.stdout.reconfigure(errors="replace") block to those two, this PR fixes both checks and I'll approve it.

AI-assisted (Claude).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7170427604 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/1561#issuecomment-7170427604). Originally posted by [tiguan26](https://github.com/tiguan26) on 2026-11-25T18:05:37Z. --- Tested on current main (b9320a1): both changes are correct, and `test_runner_calls_all_tests.py` now passes. `test_tool_stdout_encoding.py` still fails on main, though, because two tools have landed since without the guard: `tools/game_run_summary.py` and `tools/stage_timeline.py` (`Lists differ: ['tools/game_run_summary.py', 'tools/stage_timeline.py'] != []`). If you add the same `sys.stdout.reconfigure(errors="replace")` block to those two, this PR fixes both checks and I'll approve it. AI-assisted (Claude).
OguzSoykan commented 2026-11-25 20:14:20 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by OguzSoykan on 2026-11-25T20:14:20Z.


Verified on native Windows at head 263c9114b: test_runner_calls_all_tests.py and test_tool_stdout_encoding.py fail on main and pass here. It overlaps #1673, which fixes the same two plus test_runtime_paths.py and teaches the checker the comprehension form instead of extending RUNNER_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 alias C:\Users\OUZ~1\...). No game files.

AI-assisted (Claude Code).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7173378128 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/1561#issuecomment-7173378128). Originally posted by [OguzSoykan](https://github.com/OguzSoykan) on 2026-11-25T20:14:20Z. --- Verified on native Windows at head `263c9114b`: `test_runner_calls_all_tests.py` and `test_tool_stdout_encoding.py` fail on `main` and pass here. It overlaps #1673, which fixes the same two plus `test_runtime_paths.py` and teaches the checker the comprehension form instead of extending `RUNNER_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 alias `C:\Users\OUZ~1\...`). No game files. AI-assisted (Claude Code).
ytsodacan commented 2026-11-25 20:45:24 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by ytsodacan on 2026-11-25T20:45:24Z.


Thanks, reproduced on current main. Both tools have the guard in 4b10cbe91, and test_tool_stdout_encoding.py and test_runner_calls_all_tests.py pass on top of db1a22d29.

@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.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7174144443 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/1561#issuecomment-7174144443). Originally posted by [ytsodacan](https://github.com/ytsodacan) on 2026-11-25T20:45:24Z. --- Thanks, reproduced on current `main`. Both tools have the guard in 4b10cbe91, and `test_tool_stdout_encoding.py` and `test_runner_calls_all_tests.py` pass on top of db1a22d29. @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 commented 2026-11-25 21:35:38 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by tiguan26 on 2026-11-25T21:35:38Z.

Review: APPROVED


Approving 4b10cbe. Merged into current main with no conflicts: tests/test_runner_calls_all_tests.py passes, and the two tools I named now have the guard.

Main keeps moving, though. On today's main test_tool_stdout_encoding.py now lists scripts/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).

<!-- greyfinch-sync:ubiquitarianism/leonida:review:6065299096 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/1561#pullrequestreview-6065299096). Originally posted by [tiguan26](https://github.com/tiguan26) on 2026-11-25T21:35:38Z. **Review:** APPROVED --- Approving 4b10cbe. Merged into current main with no conflicts: `tests/test_runner_calls_all_tests.py` passes, and the two tools I named now have the guard. Main keeps moving, though. On today's main `test_tool_stdout_encoding.py` now lists `scripts/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 commented 2026-11-26 00:56:17 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by aslan2142 on 2026-11-26T00:56:17Z.


Merged, thanks! With this, the three repository checks that failed on main pass again.

  • Yours: the stdout guard in compute_heap_layout_census.py, game_run_summary.py and stage_timeline.py, and test_out_named_like_the_optional_spirv_index in RUNNER_SKIPS.
  • Added by us (d9bb37465): the same guard in three scripts that landed since (check_compute_journal_overlay.py and compute_workers_win.py with #2098, corpus_watch.py with #817), and tools/conformance/** in both path filters of runtime.yml, which test_runtime_paths needs. That last change is from #1673 (xel1uz), which this replaces.
  • Tested: test_tool_stdout_encoding, test_runner_calls_all_tests and test_runtime_paths pass, and so do the CI and ctest registration tests.
  • Checked on main 88479ff65 + d9bb37465: the semantic suite passes (495 files, 6,333 tests, 0 files failed); test_runner_calls_all_tests pass; the 15 docs and writer tests pass; check_no_game_data.py is clean on the 8 changed files.

AI-assisted (Claude Code, Claude Opus 5.5).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7179263886 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/1561#issuecomment-7179263886). Originally posted by [aslan2142](https://github.com/aslan2142) on 2026-11-26T00:56:17Z. --- Merged, thanks! With this, the three repository checks that failed on `main` pass again. - **Yours:** the stdout guard in `compute_heap_layout_census.py`, `game_run_summary.py` and `stage_timeline.py`, and `test_out_named_like_the_optional_spirv_index` in `RUNNER_SKIPS`. - **Added by us** (`d9bb37465`): the same guard in three scripts that landed since (`check_compute_journal_overlay.py` and `compute_workers_win.py` with #2098, `corpus_watch.py` with #817), and `tools/conformance/**` in both path filters of `runtime.yml`, which `test_runtime_paths` needs. That last change is from #1673 (xel1uz), which this replaces. - **Tested:** `test_tool_stdout_encoding`, `test_runner_calls_all_tests` and `test_runtime_paths` pass, and so do the CI and ctest registration tests. - **Checked on `main` `88479ff65` + `d9bb37465`:** the semantic suite passes (495 files, 6,333 tests, 0 files failed); `test_runner_calls_all_tests` pass; the 15 docs and writer tests pass; `check_no_game_data.py` is clean on the 8 changed files. AI-assisted (Claude Code, Claude Opus 5.5).
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
ProjectLeonida/mandy!1561
No description provided.