test: replace memory with vector_io fixture (#984)

# What does this PR do?

Replaced references to `memory` with `vector_io` in
`DEFAULT_PROVIDER_COMBINATIONS` and adjusted corresponding fixture
imports to ensure proper configuration for vector I/O during tests. This
change aligns with the new testing structure.

Followup of https://github.com/meta-llama/llama-stack/pull/830 when the
memory fixture was removed.

Signed-off-by: Sébastien Han <seb@redhat.com>

## Test Plan

Please describe:
 - tests you ran to verify your changes with result summaries.
 - provide instructions so it can be reproduced.


## Sources

Please link relevant resources if necessary.


## Before submitting

- [ ] This PR fixes a typo or improves the docs (you can dismiss the
other checks if that's the case).
- [ ] Ran pre-commit to handle lint / formatting issues.
- [ ] Read the [contributor
guideline](https://github.com/meta-llama/llama-stack/blob/main/CONTRIBUTING.md),
      Pull Request section?
- [ ] Updated relevant documentation.
- [ ] Wrote necessary unit or integration tests.

Signed-off-by: Sébastien Han <seb@redhat.com>
This commit is contained in:
Sébastien Han 2025-02-06 19:12:59 +01:00 committed by GitHub
parent f5e4bf2edf
commit 403292fcf6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -12,11 +12,11 @@ from ..conftest import get_provider_fixture_overrides
from ..datasetio.fixtures import DATASETIO_FIXTURES from ..datasetio.fixtures import DATASETIO_FIXTURES
from ..inference.fixtures import INFERENCE_FIXTURES from ..inference.fixtures import INFERENCE_FIXTURES
from ..memory.fixtures import MEMORY_FIXTURES
from ..safety.fixtures import SAFETY_FIXTURES from ..safety.fixtures import SAFETY_FIXTURES
from ..scoring.fixtures import SCORING_FIXTURES from ..scoring.fixtures import SCORING_FIXTURES
from ..tools.fixtures import TOOL_RUNTIME_FIXTURES from ..tools.fixtures import TOOL_RUNTIME_FIXTURES
from .fixtures import EVAL_FIXTURES from .fixtures import EVAL_FIXTURES
from ..vector_io.fixtures import VECTOR_IO_FIXTURES
DEFAULT_PROVIDER_COMBINATIONS = [ DEFAULT_PROVIDER_COMBINATIONS = [
pytest.param( pytest.param(
@ -27,7 +27,7 @@ DEFAULT_PROVIDER_COMBINATIONS = [
"inference": "fireworks", "inference": "fireworks",
"agents": "meta_reference", "agents": "meta_reference",
"safety": "llama_guard", "safety": "llama_guard",
"memory": "faiss", "vector_io": "faiss",
"tool_runtime": "memory_and_search", "tool_runtime": "memory_and_search",
}, },
id="meta_reference_eval_fireworks_inference", id="meta_reference_eval_fireworks_inference",
@ -41,7 +41,7 @@ DEFAULT_PROVIDER_COMBINATIONS = [
"inference": "together", "inference": "together",
"agents": "meta_reference", "agents": "meta_reference",
"safety": "llama_guard", "safety": "llama_guard",
"memory": "faiss", "vector_io": "faiss",
"tool_runtime": "memory_and_search", "tool_runtime": "memory_and_search",
}, },
id="meta_reference_eval_together_inference", id="meta_reference_eval_together_inference",
@ -55,7 +55,7 @@ DEFAULT_PROVIDER_COMBINATIONS = [
"inference": "together", "inference": "together",
"agents": "meta_reference", "agents": "meta_reference",
"safety": "llama_guard", "safety": "llama_guard",
"memory": "faiss", "vector_io": "faiss",
"tool_runtime": "memory_and_search", "tool_runtime": "memory_and_search",
}, },
id="meta_reference_eval_together_inference_huggingface_datasetio", id="meta_reference_eval_together_inference_huggingface_datasetio",
@ -85,7 +85,7 @@ def pytest_generate_tests(metafunc):
"inference": INFERENCE_FIXTURES, "inference": INFERENCE_FIXTURES,
"agents": AGENTS_FIXTURES, "agents": AGENTS_FIXTURES,
"safety": SAFETY_FIXTURES, "safety": SAFETY_FIXTURES,
"memory": MEMORY_FIXTURES, "vector_io": VECTOR_IO_FIXTURES,
"tool_runtime": TOOL_RUNTIME_FIXTURES, "tool_runtime": TOOL_RUNTIME_FIXTURES,
} }
combinations = ( combinations = (