Skip to content

Commit ba5a2d4

Browse files
author
Liav Weiss
committed
Add validation step to verify /mnt storage and symlink configuration
Signed-off-by: Liav Weiss <[email protected]>
1 parent 68238e1 commit ba5a2d4

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/test-and-build.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff 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..."

0 commit comments

Comments
 (0)