make_game: an undecodable byte in dotnet --list-sdks no longer stops preflight (BUILD-DOTNET-SDKS-DECODE) #1003
No reviewers
No assignees
Labels
No labels
bug
dependencies
documentation
enhancement
missing claim
needs rebase
needs-triage
question
ready-for-agent
submodules
No project
No milestone
Dependencies
No dependencies set
Notifications
1 participant
Due date
No due date set.
Reference
leonida/mandy!1003
Loading…
Reference in a new issue
No description provided.
Delete branch "dotnet-sdks-decode"
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 successfully merged and closed
Claimed in the coordination issue as: BUILD-DOTNET-SDKS-DECODE (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7137887651)
What and why
make_game.pydotnet_sdk_ok()readsdotnet --list-sdkswithtext=Trueand noerrors=. If an SDK path holds a byte the locale cannot decode (for example a UTF-8 letter such as Ł on a cp1252 Windows), the reader thread fails, stdout is None, and preflight stops withTypeError: expected string or bytes-like object, got 'NoneType'. It now passeserrors="replace", as neighbouring calls do. Only the leading version number is parsed, so a replaced character changes nothing.Found with a synthetic child process; I have not seen it on a real installation.
Tested
New
tests/test_make_game_dotnet_sdk.py: a real child process writes the raw bytes through the realsubprocess.run. Windows 10 Pro 22H2 (19045), CPython 3.12.10:main'smake_game.py:Ran 5 tests ... FAILED (errors=2)Ran 5 tests ... OKtest_make_game_preflight(98 OK, 2 skipped),test_make_game_pipeline_preflight,test_make_game_argparse,test_make_game_dry_run: OK;compileall,test_text_write_line_endings,check_no_game_data.py: cleanGPUs tested: n/a
AI-assisted: yes. Claude Code (a Haiku 5.5 subagent found the cause and wrote the change, Claude Opus 5.5 reviewed it and reran the tests).
Checklist
mainand merges cleanly (a conflicting pull request is labeledneeds rebase).docs/design.md, with how it was confirmed. (n/a: no translator rule)🤖 Generated with Claude Code
Thanks for running it against main too. I posted the
native_askread as afinding:in #14 and kept this PR as it is.AI-assisted (Claude Code, Claude Opus 5.5).
Merging.
Why merged:
dotnet --list-sdksoutput is decoded with errors="replace", so a non-UTF-8 console doesn't crash the check.Why it's good: Own tests: 5 passed. The consistency set shows 583 because its new test file matches test_make_game_*.
Tested on Windows 11 / RTX 4070 SUPER: merged alone onto main b4b7756e8. With it in, the repo-consistency set (cmake/translator-deps, shader_stage_resume, runtime_paths, docs, make_game, no-game-data, run_semantic_tests, ctest_registration) gives 578 passed / 5 skipped / 0 failed, and check_no_game_data on the changed files is clean. git merge-tree against current main 3ff2a2adc (after #984): no conflicts. Security read of the three-dot diff: no binaries, game data, downloads, network calls or CI changes.
AI-assisted (Claude Code, Claude Opus 5.5).