Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add an integration test for redis KVStore and ensure it has functional parity with other KVStores #506

Closed
dineshyv opened this issue Nov 22, 2024 · 3 comments
Labels
good first issue Good for newcomers

Comments

@dineshyv
Copy link
Contributor

dineshyv commented Nov 22, 2024

🚀 The feature, motivation and pitch

Redis KVStore has been relatively less used and does not yet have an integration test fixture . We need to add a fixture for it here and test the end to end flow.

Alternatives

No response

Additional context

No response

@dineshyv dineshyv added the good first issue Good for newcomers label Nov 22, 2024
@Mohit-Gaur
Copy link

I'd like to take this up!

@ashwinb
Copy link
Contributor

ashwinb commented Nov 23, 2024

@dineshyv I think this issue is mistaken. We don't have a Redis memory provider.

image

Did you perhaps mean Redis as a Key-Value (KV) store?

@dineshyv dineshyv changed the title Add an integration test for redis memory provider and ensure it has functional parity with other memory providers. Add an integration test for redis KVStore and ensure it has functional parity with other KVStores Nov 25, 2024
@dineshyv
Copy link
Contributor Author

Ah, thanks for catching this. Corrected the issue.

vishwamartur added a commit to vishwamartur/llama-stack that referenced this issue Dec 14, 2024
Related to meta-llama#506

Add integration tests for Redis KVStore to ensure functional parity with other KVStores.

* **`llama_stack/distribution/store/tests/test_registry.py`**:
  - Add fixture for `RedisKVStoreConfig`.
  - Add tests for `RedisKVStoreConfig` covering initialization, connection, CRUD operations, namespaced keys, expiration handling, error handling, and concurrency.
  - Add tests for `redis_registry` and `cached_redis_registry` to verify registration, retrieval, and updates of memory banks and models.

* **`llama_stack/providers/tests/memory/test_memory.py`**:
  - Add fixture for `RedisKVStoreConfig`.
  - Add tests for `redis_kvstore` covering initialization, CRUD operations, namespaced keys, expiration handling, error handling, and concurrency.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

4 participants