mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 23:05:53 +01:00
[PR #2295] runtime/test/check_tiny_frame.py: strip BOM, guard CLI/subprocess errors, fail on bad probe #2299
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#2299
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/2295
Author: @kirigayakazima
Created: 11/26/2026
Status: 🔄 Open
Base:
main← Head:fix/check-tiny-frame-safety📝 Commits (1)
61a07bbruntime/test/check_tiny_frame.py: harden BOM handling, upfront CLI checks, subprocess errors, and line join📊 Changes
2 files changed (+111 additions, -10 deletions)
View changed files
📝
runtime/test/check_tiny_frame.py(+38 -10)📝
tests/test_check_tiny_frame.py(+73 -0)📄 Description
Claimed in the coordination issue as: CHECK-TINY-FRAME-CLI-TIMEOUT-BOM-AND-LINE-JOIN-SAFETY (https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7192645242)
What and why
\ufeff) on line 1 inparse_trace(),check_output(), andcheck_queue_test_settings_ignored()(runtime/test/check_tiny_frame.py).main(argv=None)and upfront validation forloader,guest, and--probepaths (rejecting blank paths viaparser.errorand missing/non-file paths withERROR:and exit code2before spawning subprocesses).subprocess.run()invocations intry/except (OSError, subprocess.TimeoutExpired)so missing binaries or timeouts exit cleanly withFAIL:instead of raw tracebacks."\n"when joining non-emptystdoutandstderrifstdoutdoes not end with a newline, and return exit code1when--probefails with a non-zero exit code other than77.tests/test_check_tiny_frame.py.Tested
python -I tests/test_check_tiny_frame.py -v: 15 passed, 0 failed (detachedupstream/mainbaseline with only the updated test file fails with 1 failure and 5 errors).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_tiny_frame.py tests/test_check_tiny_frame.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.