mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 23:55:52 +01:00
[PR #1439] tests: a locked recorder.exe no longer hides the cmake batch case's result (TEST-CMAKE-BATCH-CLEANUP) #1469
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#1469
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/1439
Author: @Anonymous78e
Created: 11/25/2026
Status: 🔄 Open
Base:
main← Head:test/cmake-batch-cleanup📝 Commits (1)
751de4dtests: a locked recorder.exe no longer hides the cmake batch case's result (TEST-CMAKE-BATCH-CLEANUP)📊 Changes
1 file changed (+4 additions, -2 deletions)
View changed files
📝
tests/test_build_runtime_cmake.py(+4 -2)📄 Description
Claimed in the coordination issue as: TEST-CMAKE-BATCH-CLEANUP (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7148310075)
What and why
Part (3) of @GTAVIB4GTAVI's parallel-load finding (#14). Parts (1) and (2) are #1410 and #1002.
tests/test_build_runtime_cmake.pybuilds each case intempfile.TemporaryDirectory(dir=self.base)and copies arecorder.exeinto it, which a child process runs. When Windows still holds that image at cleanup (antivirus, a late handle close),shutil.rmtreeraisesPermissionError: [WinError 5]and that error replaces the case's own result, as reported:Both temp folders, the per-case one and the class one that holds the compiled recorder, now pass
ignore_cleanup_errors=True(Python 3.10+; the project needs 3.12+), so the assertion stays in charge. Nothing else changes.Tested
Windows 11 Pro 26H2, CPython 3.13.15, on
main1154976d4:The mechanism, deterministically: a file held open inside a
TemporaryDirectorywhose body fails an assertion.main)PermissionError: [WinError 32] ...ignore_cleanup_errors=TrueAssertionError: the case's own assertionpython -I tests/test_build_runtime_cmake.py: 1 test (27 subtests) OK in 11 s with this change.scripts/check_no_game_data.pyon the file: clean.GPUs tested: n/a
AI-assisted: yes (Claude Code, Claude Opus 5.5)
Checklist
mainand merges cleanly (a conflicting pull request is labeledneeds rebase).docs/design.md, with how it was confirmed. (n/a: no translator change)🤖 Generated with Claude Code
https://claude.ai/code/session_014sDZDAAcsauTL6d8ie67Qo
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.