debug: fix YAML syntax and add post-pytest cleanup monitoring
- Fix Python code formatting in YAML (pre-commit fixed indentation issues) - Add comprehensive post-pytest cleanup monitoring - Monitor for hanging processes after test completion - Focus on teardown phase based on previous hang analysis This addresses the root cause identified: hang occurs after tests pass, likely during cleanup/teardown of C++ extensions or embedding servers. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
13
.github/workflows/build-reusable.yml
vendored
13
.github/workflows/build-reusable.yml
vendored
@@ -330,6 +330,19 @@ jobs:
|
||||
echo "$(date +"%H:%M:%S") [PYTEST] $line"
|
||||
done
|
||||
echo "✅ [HANG DEBUG] Pytest completed at: $(date)"
|
||||
|
||||
# Monitor post-pytest cleanup for 30 seconds
|
||||
echo "🧹 [HANG DEBUG] Monitoring post-pytest cleanup..."
|
||||
for i in {1..30}; do
|
||||
echo "🔍 [HANG DEBUG] Cleanup check $i/30 at $(date)"
|
||||
ps aux | grep -E "(python|pytest|embedding)" | grep -v grep | head -5
|
||||
if [ $(ps aux | grep -E "(python|pytest)" | grep -v grep | wc -l) -eq 0 ]; then
|
||||
echo "✅ [HANG DEBUG] All Python processes cleaned up successfully"
|
||||
break
|
||||
fi
|
||||
sleep 1
|
||||
done
|
||||
echo "🏁 [HANG DEBUG] Cleanup monitoring finished"
|
||||
'
|
||||
PYTEST_EXIT=$?
|
||||
|
||||
|
||||
Reference in New Issue
Block a user