runtime/test/check_sparse_queue_family.py: harden argv, LF settings, BOM traces, and OSError #2296
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!2296
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/check-sparse-queue-family-safety"
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: CHECK-SPARSE-QUEUE-FAMILY-LF-ARGV-AND-SORTED-TRACE (https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7192688642)
What and why
argv: list[str] | None = Nonetomain(argv=None) -> intinruntime/test/check_sparse_queue_family.py(with non-empty executable check viaparser.error), preserving defaultsys.argv[1:]behavior.newline="\n"when writingvk_layer_settings.txtso Vulkan layer configuration stays LF-terminated on Windows hosts.path.glob("sparse_create_info.log*")deterministically in bothmain()anddied_in_vk_destroy_device().encoding="utf-8-sig", errors="replace"insingle_sparse_queue_family(),check_trace(), anddied_in_vk_destroy_device().OSErroraroundsubprocess.run()inrun_pass()and raiseAssertionErrorcleanly.tests/test_check_sparse_queue_family.py.Tested
python -I tests/test_check_sparse_queue_family.py -v: 30 passed, 0 failed (detachedupstream/mainbaseline with only the updated test file fails with 1 error).python -I tests/test_ci_registration.py: 16 passed.python -I tests/test_text_write_line_endings.py: 3 passed.python -I scripts/check_no_game_data.py,python -I -m compileall -q runtime/test/check_sparse_queue_family.py tests/test_check_sparse_queue_family.py, andgit diff --cached --check: passed.GPUs tested: n/a
AI-assisted: yes
Checklist
mainand merges cleanly (a conflicting pull request is labeledneeds rebase).docs/design.md, with how it was confirmed.Red/green: the PR's test fails on main and passes with this PR (checked by OreoFR).
Runtime batch of 20 PRs tested by OreoFR (full build, ctest without the game, Python suite, translator): same results as main 09c153948, RTX 4070 Laptop / Windows 11.
AI-assisted (Claude Code, Claude Opus 5.5)
Verified by OreoFR
09c153948+ PR head3a42a9e25; integration package 1 of 6 (20 PRs, merged without conflict)AI-assisted (Claude Code, Claude Opus 5.5).