mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 23:55:52 +01:00
[PR #2296] runtime/test/check_sparse_queue_family.py: harden argv, LF settings, BOM traces, and OSError #2300
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#2300
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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 Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/2296
Author: @kirigayakazima
Created: 11/26/2026
Status: 🔄 Open
Base:
main← Head:fix/check-sparse-queue-family-safety📝 Commits (1)
3a42a9eruntime/test/check_sparse_queue_family.py: add argv support, LF layer settings, sorted trace globs, and OSError guard📊 Changes
2 files changed (+42 additions, -9 deletions)
View changed files
📝
runtime/test/check_sparse_queue_family.py(+15 -9)📝
tests/test_check_sparse_queue_family.py(+27 -0)📄 Description
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.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.