tests: sgpr census folding-volume case survives Windows realpath case (TEST-WIN-SWEEP) #368
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!368
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/368/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?
@ItsMrDubey on GitHub · 2026-11-24 03:57 UTC · original
ItsMrDubey:win-realpath-case-census→main· +7 −3 · 1 files · 1 commits · merged 2026-11-24 14:53 UTCClaimed in the coordination issue as: TEST-WIN-SWEEP (#14)
What and why
python -m pytest tests/test_user_sgpr_census.pyfails on Windows intest_json_report_refuses_to_overwrite_index[folding-volume-case]:Expected 'mock' to have been called once. Called 0 times.The case writesindex.jsonand passesINDEX.JSONas--jsonto simulate a case-folding volume, patching_resolved_keyandos.path.samefileso only the_same_resolved_nameprobe can catch the collision. On Windowsos.path.realpathreturns an existing file's name as it is stored, soINDEX.JSONresolves to...\index.json, the two keys already match and the probe is never asked. The tool did refuse the overwrite (exit 2), only by the other route; the test was wrong, not the code.The case now also patches
realpathwithos.path.abspath, astests/test_wave64_graphics_scan.pyandtests/test_psin_names.pyalready do for the same simulation, so the spelling reaches the probe on every OS.Tested
Windows 11, Python 3.11.9 and 3.12.9:
py -3.12 -m pytest tests/test_user_sgpr_census.py: before 1 failed, 43 passed; after 44 passed. Same with Python 3.11.9.python -I scripts/check_no_game_data.py tests/test_user_sgpr_census.py: clean.realpathnever changed the case there, andtmp_pathgives both names one parent, soabspathyields the same pair as before.AI-assisted: yes
Checklist
docs/design.md, with how it was confirmed. n/a: no translator rule@sodove on GitHub · 2026-11-24 06:18 UTC · original
Independent Windows integration check of
608a24a1cd. Windows 11 build 26100, Python 3.12, pytest 9.2.0.8f481cfhad the reported assertion failure (43 passed, 1 failed). With this test commit applied to main, all 44 passed.448dae0f. All 44 SGPR census tests passed there, along with 10/10 real NTFS cases on synthetic files and 35/36 report-path tests (one APFS-only case skipped).This verifies the test correction with either version of same_report_path. CPU-only, synthetic files. AI-assisted verification.
@quartz-heron-58 on GitHub · 2026-11-24 08:28 UTC · original
Tested
608a24a1(cherry-picked onto main1c93c869) on native Windows 11 Home (build 26300), Python 3.12.10, pytest 9.2.0 (the pins intests/requirements.txt, in a virtual environment): pass.On main
1c93c869,python -m pytest tests/test_user_sgpr_census.pyfailstest_json_report_refuses_to_overwrite_index[folding-volume-case]here: the tool refuses the overwrite as it should, but the probe mock is called 0 times. With this commit the file gives 44 passed. No game files.AI-assisted (Claude Code ran the tests and wrote this comment).
@QemmHD on GitHub · 2026-11-24 14:53 UTC · original
Merging.
Why merged: Fixes a Windows-only test failure: realpath case-folds INDEX.JSON there, so the sgpr-census folding-volume test now patches realpath. Independent Windows passes from sodove and quartz-heron-58, with no open requests.
Why it's good: Test-only change. tests/test_user_sgpr_census.py: 44 passed.
Tested on Windows 11 / RTX 4070 SUPER: merged alone onto main
47c651174, where the repo-consistency set (cmake/translator-deps, shader_stage_resume, runtime_paths, docs, make_game, no-game-data, run_semantic_tests) gives 566 passed / 5 skipped / 0 failed with this PR in. git merge-tree against current main8f05e09e2: 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).