Skip to content

Commit a2247d1

Browse files
committed
Remove legacy ragas test cases
modified: tests/llama_stack/conftest.py modified: tests/llama_stack/constants.py deleted: tests/llama_stack/eval/test_ragas_provider.py
1 parent ea3d10b commit a2247d1

File tree

3 files changed

+0
-217
lines changed

3 files changed

+0
-217
lines changed

tests/llama_stack/conftest.py

Lines changed: 0 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -229,48 +229,6 @@ def test_with_remote_milvus(llama_stack_server_config):
229229
if trustyai_embedding_model:
230230
env_vars.append({"name": "TRUSTYAI_EMBEDDING_MODEL", "value": trustyai_embedding_model})
231231

232-
# Kubeflow-related environment variables
233-
if params.get("enable_ragas_remote"):
234-
# Get fixtures only when Ragas Remote/Kubeflow is enabled
235-
model_namespace = request.getfixturevalue(argname="model_namespace")
236-
current_client_token = request.getfixturevalue(argname="current_client_token")
237-
dspa_route = request.getfixturevalue(argname="dspa_route")
238-
dspa_s3_secret = request.getfixturevalue(argname="dspa_s3_secret")
239-
240-
# KUBEFLOW_LLAMA_STACK_URL: Build from LlamaStackDistribution service
241-
env_vars.append({
242-
"name": "KUBEFLOW_LLAMA_STACK_URL",
243-
"value": f"http://{distribution_name}-service.{model_namespace.name}.svc.cluster.local:8321",
244-
})
245-
246-
# KUBEFLOW_PIPELINES_ENDPOINT: Get from DSPA route
247-
env_vars.append({"name": "KUBEFLOW_PIPELINES_ENDPOINT", "value": f"https://{dspa_route.instance.spec.host}"})
248-
249-
# KUBEFLOW_NAMESPACE: Use model namespace
250-
env_vars.append({"name": "KUBEFLOW_NAMESPACE", "value": model_namespace.name})
251-
252-
# KUBEFLOW_BASE_IMAGE
253-
env_vars.append({
254-
"name": "KUBEFLOW_BASE_IMAGE",
255-
"value": params.get(
256-
"kubeflow_base_image",
257-
"quay.io/diegosquayorg/my-ragas-provider-image"
258-
"@sha256:3749096c47f7536d6be2a7932e691abebacd578bafbe65bad2f7db475e2b93fb",
259-
),
260-
})
261-
262-
# KUBEFLOW_RESULTS_S3_PREFIX: Build from MinIO bucket
263-
env_vars.append({
264-
"name": "KUBEFLOW_RESULTS_S3_PREFIX",
265-
"value": params.get("kubeflow_results_s3_prefix", "s3://llms/ragas-results"),
266-
})
267-
268-
# KUBEFLOW_S3_CREDENTIALS_SECRET_NAME: Use DSPA secret name
269-
env_vars.append({"name": "KUBEFLOW_S3_CREDENTIALS_SECRET_NAME", "value": dspa_s3_secret.name})
270-
271-
# KUBEFLOW_PIPELINES_TOKEN: Get from current client token
272-
env_vars.append({"name": "KUBEFLOW_PIPELINES_TOKEN", "value": str(current_client_token)})
273-
274232
# POSTGRESQL environment variables for sql_default and kvstore_default
275233
env_vars.append({"name": "POSTGRES_HOST", "value": "vector-io-postgres-service"})
276234
env_vars.append({"name": "POSTGRES_PORT", "value": "5432"})

tests/llama_stack/constants.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ class Safety(str, Enum):
1717

1818
class Eval(str, Enum):
1919
TRUSTYAI_LMEVAL = "trustyai_lmeval"
20-
TRUSTYAI_RAGAS_INLINE = "trustyai_ragas_inline"
21-
TRUSTYAI_RAGAS_REMOTE = "trustyai_ragas_remote"
2220

2321

2422
class ModelInfo(NamedTuple):

tests/llama_stack/eval/test_ragas_provider.py

Lines changed: 0 additions & 173 deletions
This file was deleted.

0 commit comments

Comments
 (0)