llama-stack-mirror/tests/unit/utils
Ashwin Bharambe c2c5ab622c feat(storage): share sql/kv instances and add upsert support
Sql stores now share a single SqlAlchemySqlStoreImpl per backend, and kvstore_impl caches instances per (backend, namespace). This avoids spawning multiple SQLite connections for the same file, reducing lock contention and aligning the cache story for all backends.

Added an async upsert API (with SQLite/Postgres dialect inserts) and routed it through AuthorizedSqlStore, then switched conversations and responses to call it. Using native ON CONFLICT DO UPDATE eliminates the insert-then-update retry window that previously caused long WAL lock retries.

Introduced an opt-in conversation stress test that mirrors the recorded prompts from test_conversation_multi_turn_and_streaming while fanning them out across many threads. This gives us a fast local way to hammer the conversations/responses sync path when investigating lockups.
2025-11-12 11:29:32 -08:00
..
inference feat(stores)!: use backend storage references instead of configs (#3697) 2025-10-20 13:20:09 -07:00
kvstore feat: Allow :memory: for kvstore (#3696) 2025-10-13 11:19:27 +02:00
responses feat(stores)!: use backend storage references instead of configs (#3697) 2025-10-20 13:20:09 -07:00
sqlstore feat(storage): share sql/kv instances and add upsert support 2025-11-12 11:29:32 -08:00
test_authorized_sqlstore.py chore: simplify authorized sqlstore (#3496) 2025-09-19 16:13:56 -07:00