mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 23:10:53 +01:00
[PR #116] test_ttpf_assets: read the original DDS before the rebuild removes it (FileNotFoundError once bcpack_calibration is built) #168
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#168
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/116
Author: @Andretuta
Created: 11/24/2026
Status: 🔄 Open
Base:
main← Head:old-pr/9850📝 Commits (1)
43769a0test_ttpf_assets: read the original DDS before the rebuild removes it📊 Changes
1 file changed (+5 additions, -2 deletions)
View changed files
📝
tests/test_ttpf_assets.py(+5 -2)📄 Description
Original description (mentions and
#Nreferences are disabled; the numbers refer to the old repository):Claimed in the coordination issue as: https://github.com/ProjectLeonida/Leonida/issues/9677#issuecomment-7116702080 (new item)
What and why
test_profile_added_after_strict_rejectionintests/test_ttpf_assets.pyworks in two steps:original.read_bytes().The second build switches the row to a new file and removes the one it replaced (
remove_replacedintools/ttpf_assets.py). So the read of the original raisesFileNotFoundErroron every machine wheretools/bcpack_calibrationis built. Without the library the test skips, which is why it can look green.The test now does two things:
remove_replacedpromises.No tool changes.
#7134carried a fix for this test, among larger texture-pipeline changes, and was closed unmerged together withthe rest of the backlog.
Tested
Arch Linux, Python 3.14.10, at
2d53a8055, withcargo build --release --lockedoftools/bcpack_calibrationso that the test runs instead of skipping. Neither the change nor its test uses the GPU.main:python -I tests/test_ttpf_assets.pygivesFileNotFoundError: ...pool/000000_bcpack_v1-<hash>.ddsat line 231 (31 tests, 1 error).
RPF9DUMP_DLLnot set for that one).mainat once, compared withmainitself:main. The difference is this fix andthe other PR's new test; every other failure is the same file on
main.scripts/run_semantic_tests.pyandnode --test: identical tomain.compileallandmake_game.py --help: OK.mainhas were already there before this PR.scripts/check_no_game_data.pyand pyflakes on the changed file: clean.AI-assisted: yes (Claude Code, Claude Opus 5.5)
Checklist
docs/design.md, with how it was confirmed. (n/a: no translator change)🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.