@@ -145,6 +145,49 @@ jobs:
145145 HF_HUB_DISABLE_TELEMETRY : 1
146146 run : make download-models
147147
148+ - name : Validate /mnt storage and symlink
149+ run : |
150+ set -e
151+ echo "=== Validating /mnt storage configuration ==="
152+
153+ # Verify symlink
154+ if [ ! -L "models" ] || [ "$(readlink models)" != "/mnt/models" ]; then
155+ echo "ERROR: Symlink 'models' -> '/mnt/models' is not configured correctly"
156+ exit 1
157+ fi
158+ echo "✓ Symlink configured: models -> /mnt/models"
159+
160+ # Verify models accessible - check both symlink and direct path
161+ echo "Checking models via symlink:"
162+ ls -la models/ | head -20 || echo "No models found via symlink"
163+ MODEL_COUNT=$(find models -mindepth 1 -maxdepth 1 -type d 2>/dev/null | wc -l)
164+ echo "✓ Models accessible via symlink: $MODEL_COUNT directories found"
165+
166+ echo "Checking models directly in /mnt/models:"
167+ ls -la /mnt/models/ | head -20 || echo "No models found in /mnt/models"
168+ DIRECT_COUNT=$(find /mnt/models -mindepth 1 -maxdepth 1 -type d 2>/dev/null | wc -l)
169+ echo "✓ Models in /mnt/models: $DIRECT_COUNT directories found"
170+
171+ # Verify test path resolution
172+ cd src/semantic-router/pkg/classification
173+ if [ ! -d "../../../../models" ]; then
174+ echo "ERROR: Test path '../../../../models' not accessible"
175+ exit 1
176+ fi
177+ RESOLVED=$(readlink -f ../../../../models 2>/dev/null || echo "N/A")
178+ echo "✓ Test path resolves: ../../../../models -> $RESOLVED"
179+
180+ # Verify models are accessible from test path
181+ echo "Checking models from test path:"
182+ ls -la ../../../../models/ | head -20 || echo "No models found from test path"
183+ TEST_PATH_COUNT=$(find ../../../../models -mindepth 1 -maxdepth 1 -type d 2>/dev/null | wc -l)
184+ echo "✓ Models accessible from test path: $TEST_PATH_COUNT directories found"
185+ cd - > /dev/null
186+
187+ # Disk usage
188+ echo "✓ Disk usage: /mnt $(df -h /mnt | tail -1 | awk '{print $4 " available"}')"
189+ echo "=== Validation complete ==="
190+
148191 - name : Start Milvus service
149192 run : |
150193 echo "Starting Milvus vector database..."
0 commit comments