refactor(cli): remove obsolete workflow commands

This commit is contained in:
2026-08-16 02:29:00 +02:00
parent 91650d9c67
commit 7651b63cea
19 changed files with 211 additions and 646 deletions
@@ -22,16 +22,16 @@ WORKSPACE = Path(os.environ.get("THT_L2_WORKSPACE", "/Users/mp/projects/tht-work
def test_ablazione_returns_multiple_columns(l2_env):
"""On the real schema, 'ablazione' should ground to more than one column (e.g.
a flag and a free-text patologia field) -- the whole point of D14a's
non-collapsing aggregation. Requires a built LSH index (tht lsh build)."""
non-collapsing aggregation. Requires a built LSH index (preprocess dwh --steps lsh)."""
if not WORKSPACE.exists():
pytest.skip(f"per-customer workspace repo not found: {WORKSPACE} (clone tht-workspace-psd)")
try:
from tht.lshindex import load_index, query_index # ported with the lsh build path
except ModuleNotFoundError:
pytest.skip("tht.lshindex not yet ported (deferred from B3; lands with tht lsh build)")
pytest.skip("tht.lshindex not yet ported (deferred from B3 preprocessing)")
from tht.search import aggregate_lsh_multi
# The index lives at <indexes>/lsh/<schema>_*.pkl (same convention as tht lsh build/query),
# The index lives at <indexes>/lsh/<schema>_*.pkl (the preprocess-dwh convention),
# and is keyed by the database schema name (cfg.database.db_schema), not a hard-coded literal.
ws = load_workspace(WORKSPACE)
index_dir = ws.paths.indexes / "lsh"
@@ -39,7 +39,7 @@ def test_ablazione_returns_multiple_columns(l2_env):
try:
lsh, minhashes, meta = load_index(index_dir, schema_name)
except Exception as e:
pytest.skip(f"LSH index not built yet (run tht lsh build -c {WORKSPACE}): {e}")
pytest.skip(f"LSH index not built yet (run tht preprocess dwh --steps lsh -c {WORKSPACE}): {e}")
hits = query_index(lsh, minhashes, "ablazione", meta, top_n=20)
grouped = aggregate_lsh_multi(