From 2fd212643c7ec741384e3cc932b5f4ffa336e526 Mon Sep 17 00:00:00 2001 From: Yossi Ovadia Date: Mon, 8 Dec 2025 14:28:05 -0800 Subject: [PATCH] fix(test): correct relative path for PII LoRA model in auto-detection test The PII auto-detection test was using an incorrect relative path "models/lora_pii_detector_bert-base-uncased_model" which would fail when running from the test directory location. Updated to use the correct relative path "../../../../models/lora_pii_detector_bert-base-uncased_model" to match the pattern used in the intent classification test. This ensures the test can locate the model files correctly and doesn't skip when the LoRA PII model is available. Fixes #787 Signed-off-by: Yossi Ovadia --- .../pkg/classification/lora_auto_detection_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/semantic-router/pkg/classification/lora_auto_detection_test.go b/src/semantic-router/pkg/classification/lora_auto_detection_test.go index 9d9aad1d2..89c889185 100644 --- a/src/semantic-router/pkg/classification/lora_auto_detection_test.go +++ b/src/semantic-router/pkg/classification/lora_auto_detection_test.go @@ -89,7 +89,7 @@ func TestIntentClassificationLoRAAutoDetection(t *testing.T) { // TestPIIAlreadyHasAutoDetection shows PII detection already works with LoRA auto-detection func TestPIIAlreadyHasAutoDetection(t *testing.T) { - modelPath := "models/lora_pii_detector_bert-base-uncased_model" + modelPath := "../../../../models/lora_pii_detector_bert-base-uncased_model" // Check if LoRA model exists if _, err := os.Stat(modelPath + "/lora_config.json"); os.IsNotExist(err) {