Repository navigation
Conversation
|
Tested on Windows 11, Python 3.15.2, NVIDIA RTX 4060 Ti (driver 621.24; CPU-only checks, no GPU/llvm-mc/MSVC used, no game files): pass. AI-assisted (Claude Code). Only the tests this PR touches were run, from a clean checkout of the PR head. |
…2367 follow-up) ItsNotRexed#6798 took the drive-root game entries from v["expected_exe"] and v["files"], but the two drive-root tests in tests/test_make_game_paths.py stub make_game.check to return {} and patch os.listdir, so on main they end in KeyError: 'expected_exe' (4 errors). game_top_level_entries(version) reads the manifest's top-level entries with .get, and the two tests now give their entries through a version manifest instead of patching os.listdir. A new test resumes into a build folder that the drive listing holds; with the code before ItsNotRexed#6798 it fails with "--out and --work must be outside the game folder". Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
d1a3aec to
4cdcb4c
Compare
|
Independent native Windows/Python 3.15 verification at 4cdcb4c: python -I tests/test_make_game_paths.py passes 7/7 in an isolated worktree. Main 8575d36 in the CPU audit reproduces the expected_exe KeyError in the drive-root fixture; this head passes. Synthetic CPU inputs only, no GPU/game files. AI-assisted (Codex). |
|
Tested 4cdcb4c merged onto main
It merges cleanly together with #7092 #6049 #7120 #6513 #7242 #7209 #6254 #7214 #7309 #4771 #7029 #7094 #7129 #6508 #7152 #7174 #7032 onto main; with all of them applied, the only standalone test still red on Windows is No GPU or game files needed. AI-assisted (Claude Code); I read the diff before running it. |
Claimed in the coordination issue as: BUILD-2367 (#6750 (comment)), follow-up to #6798
Depends on: #6798 (merged)
What and why
tests/test_make_game_paths.pyhas failed onmainsince #6798 (9bffab5f8): 4 errors,KeyError: 'expected_exe', intest_drive_root_game_folder_rulesandtest_drive_root_checks_entries_on_each_volume. #6798 builds the drive-root game entries fromv["expected_exe"]andv["files"]. Those two tests stubmake_game.checkto return{}and patchos.listdir, which the check no longer reads.make_game.py: the same rule as make_game: at a drive-root --game, take the game folder's top-level names from the manifest (BUILD-2367) #6798, moved intogame_top_level_entries(version): the first path component of everyfilespath and ofexpected_exe. It reads both with.get, so a version without one doesn't raise.tests/test_make_game_paths.py:version_with(...)) instead of patchingos.listdir. Their cases and expectations are unchanged, and they test the check again.test_drive_root_resume_is_not_refused_by_the_build_folder_itself:os.listdirholds the build folder and an unrelated one. A resume intoD:\Leonida_Portand a build intoD:\Unrelated\buildgo ahead;outinside a listed folder, a top-level file or the executable is refused.test_game_top_level_entries.Tested
Windows 11 Pro 26300, Python 3.12.10, on
main1a9c8c9e:tests/test_make_game_paths.py: 7 OK. Cleanmain:FAILED (errors=4),KeyError: 'expected_exe'.tests/test_make_game_destinations.py(with make_game: at a drive-root --game, take the game folder's top-level names from the manifest (BUILD-2367) #6798's new tests): OK.tests/test_make_game_*.pypass excepttest_make_game_resume.py(11 errors) andtest_make_game_empty_translation.py(1 error). Both fail the same way on cleanmain(AttributeError: 'FakeProc' object has no attribute 'poll'), and this PR doesn't touch them.--out and --work must be outside the game folder.compileallandgit diff --check: clean.CPU only, no game files.
AI-assisted: yes (Claude Code)
Checklist
docs/design.md, with how it was confirmed. (Not applicable: no translator change.)🤖 Generated with Claude Code