mirror of
https://github.com/headroomlabs-ai/headroom.git
synced 2026-11-22 13:29:19 +08:00
deps: update sqlite-vec requirement from >=0.1.6 to >=0.1.9 (#4654)
Updates the requirements on [sqlite-vec](https://TODO.com) to permit the latest version. Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> <!-- devin-review-badge-begin --> --- <a href="https://app.devin.ai/review/headroomlabs-ai/headroom/pull/4654" target="_blank"><picture><source media="(prefers-color-scheme: dark)" srcset="https://static.devin.ai/assets/gh-devin-review-dark.svg?v=4"><img src="https://static.devin.ai/assets/gh-devin-review-light.svg?v=4" alt="Devin Review"></picture></a> <!-- devin-review-badge-end --> ### Maintainer current-main requalification Exact head `45ff018fcda1368f0e1b3d8cf84f97203dd993d8`, upstream main `f50db67006e2fe3f43b295542b759d90bb73e5a1`. Maintainer remediation under the user's explicit directive to maintain Dependabot updates and qualify them for approval. This records an authorized routine-maintenance exception rather than inventing a newly required vector feature or claiming the old range excluded0.1.9. sqlite-vec remains in the existing optional memory extras; the base install gains no new dependency, service or network behavior. Native extension/wheel compatibility is the relevant install surface. Synchronized current main and repaired the selected sqlite-vec lock entry plus all three declared floor records to0.1.9, retaining unrelated lock metadata. Offline lock consistency and whitespace checks pass. Installed the actual0.1.9 Python3.12 native wheel in an isolated overlay and verified its module path/version. All45 vector-index/local-search/core-search/relation-key tests pass, exercising real extension loading, indexing/querying, filters, updates/deletes and persistence. The initial Windows suite exposed pre-existing fixture teardown errors: indexes cached connections but fixtures unlinked the open databases. A clean-main control reproduced that error. Fixed the test-only lifecycle to await close before unlink, and strengthened the persistence test to close the first index before reopening the database. Production vector/runtime logic and assertions are unchanged. Re-execution passes all45 with no cleanup errors. Existing Headroom native core supports startup; this does not claim a rebuilt sqlite-vec wheel or fresh Headroom Rust extension build. Hosted checks cover remaining platforms; maintainers handle final approval. No requests for changes to the bot and nothing merged. Exact-head hosted checks are being handled by maintainers. No new finding in the reviewed scope; formal approval awaits exact-head hosted qualification; nothing merged. ### Maintainer current-main requalification Exact head `6d6cd26dff5f6f954fc737a5ac89ba9a960d2448`, upstream main `def4ef10099514d09188326852138a8b20c26237`. Maintainer remediation under the user's explicit directive to maintain Dependabot updates and qualify them for approval. This records an authorized routine-maintenance exception rather than inventing a newly required vector feature or claiming the old range excluded0.1.9. sqlite-vec remains in the existing optional memory extras; the base install gains no new dependency, service or network behavior. Native extension/wheel compatibility is the relevant install surface. Synchronized current main and repaired the selected sqlite-vec lock entry plus all three declared floor records to0.1.9, retaining unrelated lock metadata. Offline lock consistency and whitespace checks pass. Installed the actual0.1.9 Python3.12 native wheel in an isolated overlay and verified its module path/version. All45 vector-index/local-search/core-search/relation-key tests pass, exercising real extension loading, indexing/querying, filters, updates/deletes and persistence. The initial Windows suite exposed pre-existing fixture teardown errors: indexes cached connections but fixtures unlinked the open databases. A clean-main control reproduced that error. Fixed the test-only lifecycle to await close before unlink, and strengthened the persistence test to close the first index before reopening the database. Production vector/runtime logic and assertions are unchanged. Re-execution passes all45 with no cleanup errors. Existing Headroom native core supports startup; this does not claim a rebuilt sqlite-vec wheel or fresh Headroom Rust extension build. Hosted checks cover remaining platforms; maintainers handle final approval. No requests for changes to the bot and nothing merged. Post-merge requalification: maindef4ef1009adds only the already approved docs/package.json and npm lock update. The new integration changes no Python/runtime/test or dependency inputs for this PR; prior exact-version local results remain scoped to byte-identical inputs. Offline lock consistency and whitespace pass again. New-head hosted qualification remains pending; no redundant runtime run is claimed. Exact-head hosted checks are being handled by maintainers. No new finding in the reviewed scope; formal approval awaits exact-head hosted qualification; nothing merged. ### Maintainer current-main requalification Exact head `ba7370bf466fd27ca8c124d4626465cc6ead9daf`, upstream main `ea59ac3eef3a3dc02076e9fe4bb30d572ca9c1a9`. Final landing preparation after merged Click#4655: clean integration with current upstream/mainea59ac3eef, including the proven macOS native setup fix. Reviewed the remaining three-file delta: sqlite-vec floor/lock0.1.9 and test-only connection lifecycle cleanup. Actual isolated sqlite-vec0.1.9 plus Click8.5.0 run together:79 vector/local/core/relation/scoped-clear/metadata-sync/connection-cleanup/temporal-filter/CLI-help tests pass. Offline frozen lock consistency and whitespace pass. No production vector logic changed. Maintainers handle fresh exact-head hosted qualification and merge only after green; no bot changes request. Exact-head hosted checks are being handled by maintainers. No new finding in the reviewed scope; formal approval awaits exact-head hosted qualification; nothing merged. --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: JerrettDavis <mxjerrett@gmail.com>
This commit is contained in:
co-authored by
JerrettDavis
parent
ea59ac3eef
commit
de1a1e0f47
+3
-3
@@ -127,7 +127,7 @@ proxy = [
|
||||
# publishes no macOS wheel for Python 3.14, so installing it there needs a C
|
||||
# compiler. The watcher is optional and skips itself when watchdog is absent.
|
||||
"watchdog>=4.0.0; sys_platform != 'darwin' or python_version < '3.14'",
|
||||
"sqlite-vec>=0.1.6", # Vector index for memory (--memory). Lightweight, no torch.
|
||||
"sqlite-vec>=0.1.9", # Vector index for memory (--memory). Lightweight, no torch.
|
||||
]
|
||||
# Production ASGI/WSGI server — Unix-only (gunicorn does not support Windows).
|
||||
# Kept separate from [proxy] so that dev, CI, and Windows users are not forced
|
||||
@@ -167,7 +167,7 @@ ml = [
|
||||
# in the [vector] extra below; installing it here would make `[all]` (which pulls
|
||||
# [memory]) fail on any machine without a compiler — see #1368.
|
||||
memory = [
|
||||
"sqlite-vec>=0.1.6",
|
||||
"sqlite-vec>=0.1.9",
|
||||
"sentence-transformers>=2.2.0,<7.0; sys_platform != 'darwin' or platform_machine != 'x86_64'",
|
||||
]
|
||||
# Optional HNSW vector backend. Needs a C++ toolchain to build hnswlib, so it is
|
||||
@@ -347,7 +347,7 @@ dev = [
|
||||
"ollama>=0.4.0",
|
||||
"langchain-ollama>=0.2.0",
|
||||
"hnswlib>=0.8.0",
|
||||
"sqlite-vec>=0.1.6",
|
||||
"sqlite-vec>=0.1.9",
|
||||
"sentence-transformers>=2.2.0,<7.0",
|
||||
"numpy>=1.24.0",
|
||||
"openpyxl>=3.1.0", # exercises spreadsheet_ingest (.xlsx) in the test suite
|
||||
|
||||
@@ -15,6 +15,7 @@ import tempfile
|
||||
|
||||
import numpy as np
|
||||
import pytest
|
||||
import pytest_asyncio
|
||||
|
||||
from headroom.memory.models import Memory
|
||||
from headroom.memory.ports import VectorFilter
|
||||
@@ -32,8 +33,8 @@ except ImportError:
|
||||
class TestSQLiteVectorIndex:
|
||||
"""Tests for SQLiteVectorIndex."""
|
||||
|
||||
@pytest.fixture
|
||||
def index(self):
|
||||
@pytest_asyncio.fixture
|
||||
async def index(self):
|
||||
"""Create a temporary SQLite vector index."""
|
||||
with tempfile.NamedTemporaryFile(suffix=".db", delete=False) as f:
|
||||
db_path = f.name
|
||||
@@ -41,10 +42,12 @@ class TestSQLiteVectorIndex:
|
||||
from headroom.memory.adapters.sqlite_vector import SQLiteVectorIndex
|
||||
|
||||
index = SQLiteVectorIndex(dimension=384, db_path=db_path)
|
||||
yield index
|
||||
|
||||
if os.path.exists(db_path):
|
||||
os.unlink(db_path)
|
||||
try:
|
||||
yield index
|
||||
finally:
|
||||
await index.close()
|
||||
if os.path.exists(db_path):
|
||||
os.unlink(db_path)
|
||||
|
||||
@pytest.mark.asyncio
|
||||
async def test_index_and_search(self, index):
|
||||
@@ -270,6 +273,7 @@ class TestSQLiteVectorIndexPersistence:
|
||||
with tempfile.NamedTemporaryFile(suffix=".db", delete=False) as f:
|
||||
db_path = f.name
|
||||
|
||||
index1 = index2 = None
|
||||
try:
|
||||
from headroom.memory.adapters.sqlite_vector import SQLiteVectorIndex
|
||||
|
||||
@@ -287,7 +291,8 @@ class TestSQLiteVectorIndexPersistence:
|
||||
|
||||
memory_id = memory.id
|
||||
|
||||
# Create new index instance
|
||||
# Close the first connection before reopening the persisted index.
|
||||
await index1.close()
|
||||
index2 = SQLiteVectorIndex(dimension=384, db_path=db_path)
|
||||
|
||||
assert index2.size == 1
|
||||
@@ -302,6 +307,9 @@ class TestSQLiteVectorIndexPersistence:
|
||||
assert len(results) == 1
|
||||
assert results[0].memory.id == memory_id
|
||||
finally:
|
||||
for index in (index1, index2):
|
||||
if index is not None:
|
||||
await index.close()
|
||||
if os.path.exists(db_path):
|
||||
os.unlink(db_path)
|
||||
|
||||
@@ -310,8 +318,8 @@ class TestSQLiteVectorIndexPersistence:
|
||||
class TestSQLiteVectorIndexMemoryStats:
|
||||
"""Tests for memory statistics."""
|
||||
|
||||
@pytest.fixture
|
||||
def index(self):
|
||||
@pytest_asyncio.fixture
|
||||
async def index(self):
|
||||
"""Create a temporary SQLite vector index."""
|
||||
with tempfile.NamedTemporaryFile(suffix=".db", delete=False) as f:
|
||||
db_path = f.name
|
||||
@@ -319,10 +327,12 @@ class TestSQLiteVectorIndexMemoryStats:
|
||||
from headroom.memory.adapters.sqlite_vector import SQLiteVectorIndex
|
||||
|
||||
index = SQLiteVectorIndex(dimension=384, db_path=db_path, page_cache_size_kb=4096)
|
||||
yield index
|
||||
|
||||
if os.path.exists(db_path):
|
||||
os.unlink(db_path)
|
||||
try:
|
||||
yield index
|
||||
finally:
|
||||
await index.close()
|
||||
if os.path.exists(db_path):
|
||||
os.unlink(db_path)
|
||||
|
||||
@pytest.mark.asyncio
|
||||
async def test_memory_stats(self, index):
|
||||
@@ -375,8 +385,8 @@ class TestSQLiteVectorIndexMemoryStats:
|
||||
class TestSQLiteVectorIndexEdgeCases:
|
||||
"""Tests for edge cases."""
|
||||
|
||||
@pytest.fixture
|
||||
def index(self):
|
||||
@pytest_asyncio.fixture
|
||||
async def index(self):
|
||||
"""Create a temporary SQLite vector index."""
|
||||
with tempfile.NamedTemporaryFile(suffix=".db", delete=False) as f:
|
||||
db_path = f.name
|
||||
@@ -384,10 +394,12 @@ class TestSQLiteVectorIndexEdgeCases:
|
||||
from headroom.memory.adapters.sqlite_vector import SQLiteVectorIndex
|
||||
|
||||
index = SQLiteVectorIndex(dimension=384, db_path=db_path)
|
||||
yield index
|
||||
|
||||
if os.path.exists(db_path):
|
||||
os.unlink(db_path)
|
||||
try:
|
||||
yield index
|
||||
finally:
|
||||
await index.close()
|
||||
if os.path.exists(db_path):
|
||||
os.unlink(db_path)
|
||||
|
||||
@pytest.mark.asyncio
|
||||
async def test_search_empty_index(self, index):
|
||||
|
||||
@@ -1792,9 +1792,9 @@ requires-dist = [
|
||||
{ name = "sentence-transformers", marker = "(platform_machine != 'x86_64' and extra == 'memory') or (sys_platform != 'darwin' and extra == 'memory')", specifier = ">=2.2.0,<7.0" },
|
||||
{ name = "sentence-transformers", marker = "extra == 'dev'", specifier = ">=2.2.0,<7.0" },
|
||||
{ name = "sentencepiece", marker = "extra == 'image'", specifier = ">=0.1.99" },
|
||||
{ name = "sqlite-vec", marker = "extra == 'dev'", specifier = ">=0.1.6" },
|
||||
{ name = "sqlite-vec", marker = "extra == 'memory'", specifier = ">=0.1.6" },
|
||||
{ name = "sqlite-vec", marker = "extra == 'proxy'", specifier = ">=0.1.6" },
|
||||
{ name = "sqlite-vec", marker = "extra == 'dev'", specifier = ">=0.1.9" },
|
||||
{ name = "sqlite-vec", marker = "extra == 'memory'", specifier = ">=0.1.9" },
|
||||
{ name = "sqlite-vec", marker = "extra == 'proxy'", specifier = ">=0.1.9" },
|
||||
{ name = "starlette", marker = "extra == 'mcp'", specifier = ">=0.27.0" },
|
||||
{ name = "strands-agents", marker = "extra == 'strands'", specifier = ">=0.1.0" },
|
||||
{ name = "tiktoken", specifier = ">=0.5.0" },
|
||||
@@ -5442,14 +5442,14 @@ wheels = [
|
||||
|
||||
[[package]]
|
||||
name = "sqlite-vec"
|
||||
version = "0.1.6"
|
||||
version = "0.1.9"
|
||||
source = { registry = "https://pypi.org/simple/" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/88/ed/aabc328f29ee6814033d008ec43e44f2c595447d9cccd5f2aabe60df2933/sqlite_vec-0.1.6-py3-none-macosx_10_6_x86_64.whl", hash = "sha256:77491bcaa6d496f2acb5cc0d0ff0b8964434f141523c121e313f9a7d8088dee3", size = 164075, upload-time = "2024-11-20T16:40:29.847Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/a7/57/05604e509a129b22e303758bfa062c19afb020557d5e19b008c64016704e/sqlite_vec-0.1.6-py3-none-macosx_11_0_arm64.whl", hash = "sha256:fdca35f7ee3243668a055255d4dee4dea7eed5a06da8cad409f89facf4595361", size = 165242, upload-time = "2024-11-20T16:40:31.206Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/f2/48/dbb2cc4e5bad88c89c7bb296e2d0a8df58aab9edc75853728c361eefc24f/sqlite_vec-0.1.6-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:7b0519d9cd96164cd2e08e8eed225197f9cd2f0be82cb04567692a0a4be02da3", size = 103704, upload-time = "2024-11-20T16:40:33.729Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/80/76/97f33b1a2446f6ae55e59b33869bed4eafaf59b7f4c662c8d9491b6a714a/sqlite_vec-0.1.6-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux1_x86_64.whl", hash = "sha256:823b0493add80d7fe82ab0fe25df7c0703f4752941aee1c7b2b02cec9656cb24", size = 151556, upload-time = "2024-11-20T16:40:35.387Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/6a/98/e8bc58b178266eae2fcf4c9c7a8303a8d41164d781b32d71097924a6bebe/sqlite_vec-0.1.6-py3-none-win_amd64.whl", hash = "sha256:c65bcfd90fa2f41f9000052bcb8bb75d38240b2dae49225389eca6c3136d3f0c", size = 281540, upload-time = "2024-11-20T16:40:37.296Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/68/85/9fad0045d8e7c8df3e0fa5a56c630e8e15ad6e5ca2e6106fceb666aa6638/sqlite_vec-0.1.9-py3-none-macosx_10_6_x86_64.whl", hash = "sha256:1b62a7f0a060d9475575d4e599bbf94a13d85af896bc1ce86ee80d1b5b48e5fb", size = 131171, upload-time = "2026-03-31T08:02:31.717Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/a4/3d/3677e0cd2f92e5ebc43cd29fbf565b75582bff1ccfa0b8327c7508e1084f/sqlite_vec-0.1.9-py3-none-macosx_11_0_arm64.whl", hash = "sha256:1d52e30513bae4cc9778ddbf6145610434081be4c3afe57cd877893bad9f6b6c", size = 165434, upload-time = "2026-03-31T08:02:32.712Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/00/d4/f2b936d3bdc38eadcbd2a87875815db36430fab0363182ba5d12cd8e0b51/sqlite_vec-0.1.9-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:4e921e592f24a5f9a18f590b6ddd530eb637e2d474e3b1972f9bbeb773aa3cb9", size = 160076, upload-time = "2026-03-31T08:02:33.796Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/6f/ad/6afd073b0f817b3e03f9e37ad626ae341805891f23c74b5292818f49ac63/sqlite_vec-0.1.9-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux1_x86_64.whl", hash = "sha256:1515727990b49e79bcaf75fdee2ffc7d461f8b66905013231251f1c8938e7786", size = 163388, upload-time = "2026-03-31T08:02:34.888Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/42/89/81b2907cda14e566b9bf215e2ad82fc9b349edf07d2010756ffdb902f328/sqlite_vec-0.1.9-py3-none-win_amd64.whl", hash = "sha256:4a28dc12fa4b53d7b1dced22da2488fade444e96b5d16fd2d698cd670675cf32", size = 292804, upload-time = "2026-03-31T08:02:36.035Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
|
||||
Reference in New Issue
Block a user