File tree Expand file tree Collapse file tree 1 file changed +30
-0
lines changed
Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Original file line number Diff line number Diff line change @@ -145,6 +145,36 @@ 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
161+ MODEL_COUNT=$(find models -mindepth 1 -maxdepth 1 -type d 2>/dev/null | wc -l)
162+ echo "✓ Models accessible via symlink: $MODEL_COUNT directories found"
163+
164+ # Verify test path resolution
165+ cd src/semantic-router/pkg/classification
166+ if [ ! -d "../../../../models" ]; then
167+ echo "ERROR: Test path '../../../../models' not accessible"
168+ exit 1
169+ fi
170+ RESOLVED=$(readlink -f ../../../../models 2>/dev/null || echo "N/A")
171+ echo "✓ Test path resolves: ../../../../models -> $RESOLVED"
172+ cd - > /dev/null
173+
174+ # Disk usage
175+ echo "✓ Disk usage: /mnt $(df -h /mnt | tail -1 | awk '{print $4 " available"}')"
176+ echo "=== Validation complete ==="
177+
148178 - name : Start Milvus service
149179 run : |
150180 echo "Starting Milvus vector database..."
You can’t perform that action at this time.
0 commit comments