Repository navigation
Conversation
|
Not re-landed from an old branch: the Windows |
… against
main() now takes a drive-root game folder's top-level entries from the version
manifest (check()'s expected_exe and files) instead of os.listdir, so the
mock that returned {} raised KeyError: 'expected_exe' before the destination
was judged: four errors in the Windows check job. run_build() takes a manifest
for these cases, and the two tests stop patching os.listdir, which nothing
reads any more.
bbcb617 to
45edc68
Compare
|
Rebased onto |
|
Duplicate of #81 (natterman12), which fixes the same four Windows |
|
Closing as a duplicate of #81, which makes the same version-manifest fix to the drive-root cases in |
xma: start the frame after a continuation at the next packet that has frames
Claimed in the coordination issue as: none — the original project's coordination issue was lost with its repository, and this repository's issue index (#18) has no entry for it. No open pull request touches this file.
Depends on: none.
What and why
The Windows
checkjob reports four errors intests/test_make_game_paths.py, all the same:main()no longer lists the drive root to learn the dump's top-level entries; it takes them from the version manifestcheck()returns (expected_exeandfiles), so an unrelated folder on the drive cannot make the rerun look unsafe. The two drive-root tests still patchedos.listdir, which nothing reads any more, and theircheck()mock returned{}.run_build()now takes the manifest for the cases that need one, and the two tests pass one with the entries they mean (Content, andMountedContentfor the junction case). Theos.listdirpatches are gone, and with them the two orderings intest_drive_root_checks_entries_on_each_volume, which existed to vary a listing the code no longer reads; the two protected targets (the folder on the dump's own volume, and the one a junction reaches on another) are still both checked.Tested
main@9ec34cdff, macOS 15 arm64 (Apple M3 Pro), CPython 3.15.2, CPU only, no game files. Both cases skip on a non-Windows host, so the drive-root branch was exercised directly:/splits as a drive root underos.path.splitdrivehere too, which reaches the same code with POSIX paths.check()mockContentrc=0, preflight and runtime ran/Content/out)Contentrc=1, "must be outside the game folder"Contentrc=1MountedContent→/mnt/PackageContent+MountedContent,realpathmockedrc=1for both protected targets,rc=0for an independent folder{}KeyError: 'expected_exe', the CI tracebackpython -I tests/test_make_game_paths.py:OK (skipped=2), before and after.compileallclean,check_no_game_data.pyclean. Not run on Windows itself, and not run: any GPU test.AI-assisted: yes.
Checklist
docs/design.md, with how it was confirmed. (Not applicable: test-only.)