Files
hermes-agent/tests
BearHuddleston ee8cd63678 refactor(pm): one sdist seed rule for uv-cache/ and uv-cache.hpkg
The archive planner carried its own copy of the pointer-text check
(_parse_archive_pointer_bytes) and of the revision rule
(_collect_sdist_dir_buckets), and the copy had already drifted: the loose
walk judges each sdists-v* tree on its own, while the archive walk pooled
every tree, so a second sdists-v* tree with no wheel revision (another uv's
layout) fell back to a full merge from uv-cache/ but seeded selectively from
uv-cache.hpkg.

Both formats now share _pointer_text_bucket (the text rule, with the
format's own bucket-presence check) and _sdist_tree_buckets (one bucket per
wheel, and a wheel revision in every tree that holds files), applied per
sdists-v* tree. Directory walking and ZIP reads stay separate.

The selective-seed contracts in test_uv_cache_selective_seed.py now run
against both layouts, the hpkg one packed by the real
pack_uv_cache_archive. The two-tree case fails on the previous head for
hpkg only. New rows pin the presence, name and one-bucket-per-wheel
checks on their own: the stale-pointer test put its pointer beside a
valid one, so either check alone sent it to the full merge.
2026-11-30 04:52:06 -08:00
..