fix: arborist cold list filtered out .fts.tar.zst keys

_cmd_cold_list only recognized .metadata.tar.zst and .chunks.tar.zst
key suffixes; .fts.tar.zst keys hit the else-continue and were
invisible. 2026-05-26 producer pushed 4 fts packs and cold list
reported 0 of them.

Trivial extension: add an `elif key.endswith('.fts.tar.zst')` branch
that classifies as kind='fts'. Now cold list shows all 3 kinds.

Also unblocks the make cold-hydrate target's metadata-pack discovery
filter (`kind=='metadata'`) from accidentally matching mis-classified
fts packs.
This commit is contained in:
russell@unturf.com 2026-05-26 20:40:24 -04:00
parent e409a30a40
commit 45960d3909
No known key found for this signature in database

View file

@ -3116,13 +3116,16 @@ def _cmd_cold_list(args: argparse.Namespace) -> int:
backend = _make_cold_backend()
packs = []
for key in backend.list_keys(PACK_PREFIX):
# v3 keys: packs/<hash>.metadata.tar.zst or packs/<hash>.chunks.tar.zst
# v3 keys: packs/<hash>.{metadata,chunks,fts}.tar.zst
if key.endswith(".metadata.tar.zst"):
kind = "metadata"
pack_hash = key[len(PACK_PREFIX):-len(".metadata.tar.zst")]
elif key.endswith(".chunks.tar.zst"):
kind = "chunks"
pack_hash = key[len(PACK_PREFIX):-len(".chunks.tar.zst")]
elif key.endswith(".fts.tar.zst"):
kind = "fts"
pack_hash = key[len(PACK_PREFIX):-len(".fts.tar.zst")]
else:
continue
entry = {