mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-27 00:00:52 +01:00
[PR #1771] OLD-9850: test_ttpf_assets: read the original DDS before the rebuild removes it #1784
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#1784
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/1771
Author: @potatoe0100
Created: 11/25/2026
Status: 🔄 Open
Base:
main← Head:carry/old-9850📝 Commits (1)
e01d022test_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
Claimed in the coordination issue as: OLD-9850 (https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7161513239)
What and why
Carries on old PR 9850 (draft #116, branch
old-pr/9850, listed in #17; commit author David), rebased on currentmainwith the author's commit kept.test_profile_added_after_strict_rejectionrebuilds the pool with a changed calibration profile and then compared the new file withoriginal.read_bytes(). The rebuild switches the row to a new file and removes the one it replaced (remove_replaced), so that read raisesFileNotFoundErroron every machine where thebcpack_calibrationlibrary is built; without the library the test skips, which is why CI stays green. The test now keeps the original bytes before the rebuild and also checks that the replaced file is gone, which is whatremove_replacedpromises. Test-only change.Tested
tools/bcpack_calibration(cargo build --release --offline, Rust stable, Linux) so the test actually runs instead of skipping.python -I tests/test_ttpf_assets.pyon this branch: 31 tests OK (1 skipped, needsRPF9DUMP_DLL).main's test file:FileNotFoundErrorintest_profile_added_after_strict_rejection(1 error), so this fixes a real failure.GPUs tested: n/a (no GPU code)
AI-assisted: yes (Claude rebased and tested; the original commit was AI-assisted too)
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
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.