OLD-9850: test_ttpf_assets: read the original DDS before the rebuild removes it #1771
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1771"
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?
Imported from ubiquitarianism/leonida. Originally posted by potatoe0100 on 2026-11-25T11:47:58Z.
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
Imported from ubiquitarianism/leonida. Originally posted by PierreEbele on 2026-11-25T18:48:40Z.
Reviewed
e01d022: test-only fix. tests/test_ttpf_assets.py runs 31 tests OK (2 skips) identically on this branchand on main; the changed test skips in this environment because its native gate needs the built bcpack_calibration
library (no Rust toolchain here), so the fixed path was verified by code reading: the rebuild names the export with
sha256(decoder_digest + profile bytes), the old file lands in the manifest's PENDING list and remove_replaced
unlinks it, so the old line's
original.read_bytes()raised FileNotFoundError, and the newassertFalse(original.exists())is exactly the removal remove_replaced promises. No findings. AI-assisted review.Recommendation: Merge