fix: improve tmate connection info retrieval
- Add proper wait and retry logic for tmate initialization - Tmate needs time to connect to servers before showing SSH info - Try multiple times with delays to get connection details
This commit is contained in:
23
.github/workflows/build-reusable.yml
vendored
23
.github/workflows/build-reusable.yml
vendored
@@ -290,10 +290,27 @@ jobs:
|
||||
fi
|
||||
|
||||
# Start tmate session in background
|
||||
echo "Starting tmate session..."
|
||||
tmate -S debug-session new-session -d
|
||||
echo "🔗 Tmate session created. Connection info:"
|
||||
tmate -S debug-session display -p '#{tmate_ssh}'
|
||||
echo "🔗 Web session: $(tmate -S debug-session display -p '#{tmate_web}')"
|
||||
|
||||
# Wait for tmate to initialize and get connection info
|
||||
echo "Waiting for tmate to initialize..."
|
||||
sleep 5
|
||||
|
||||
# Try multiple times to get connection info
|
||||
for i in {1..10}; do
|
||||
SSH_INFO=$(tmate -S debug-session display -p '#{tmate_ssh}' 2>/dev/null || echo "")
|
||||
WEB_INFO=$(tmate -S debug-session display -p '#{tmate_web}' 2>/dev/null || echo "")
|
||||
|
||||
if [[ -n "$SSH_INFO" && "$SSH_INFO" != "connecting..." ]]; then
|
||||
echo "🔗 SSH: $SSH_INFO"
|
||||
echo "🔗 Web: $WEB_INFO"
|
||||
break
|
||||
fi
|
||||
|
||||
echo "Attempt $i: Still connecting... (SSH: '$SSH_INFO')"
|
||||
sleep 2
|
||||
done
|
||||
echo "⏱️ Session will timeout after 30 minutes"
|
||||
echo "💡 You can now SSH in and run: pytest tests/ -vv --capture=no"
|
||||
echo "💡 Or run diagnostics: bash scripts/diagnose_hang.sh"
|
||||
|
||||
Submodule packages/leann-backend-diskann/third_party/DiskANN updated: 04048bb302...b2dc4ea2c7
Submodule packages/leann-backend-hnsw/third_party/faiss updated: 4a2c0d67d3...ff22e2c86b
Reference in New Issue
Block a user