chore(rebase): reconcile with develop and apply ruff format

After rebasing onto current develop:
- chroma.py: keep develop's quarantine_stale_hnsw + UnsupportedFilterError
  validation alongside this PR's _pin_hnsw_threads retrofit.
- tests/test_backends.py: combine quarantine_stale_hnsw and
  _pin_hnsw_threads test sections; ruff format.
- miner.py: propagate the new `files=` kwarg (added on develop in #1183
  for the init -> mine flow) through _mine_impl so the caller can pass
  a pre-scanned file list under the global lock.
This commit is contained in:
Igor Lins e Silva
2026-04-25 04:39:31 -03:00
parent 8df944a54d
commit 7773432bca
3 changed files with 6 additions and 9 deletions
+2 -6
View File
@@ -483,9 +483,7 @@ def test_get_collection_applies_retrofit_on_existing_palace(tmp_path):
# Simulate a legacy palace: create collection without num_threads
bootstrap_client = chromadb.PersistentClient(path=str(palace_path))
bootstrap_client.create_collection(
"mempalace_drawers", metadata={"hnsw:space": "cosine"}
)
bootstrap_client.create_collection("mempalace_drawers", metadata={"hnsw:space": "cosine"})
del bootstrap_client # drop reference so a fresh client reopens cleanly
wrapper = ChromaBackend().get_collection(
@@ -494,6 +492,4 @@ def test_get_collection_applies_retrofit_on_existing_palace(tmp_path):
create=False,
)
assert (
wrapper._collection.configuration_json["hnsw"]["num_threads"] == 1
)
assert wrapper._collection.configuration_json["hnsw"]["num_threads"] == 1