ci: fix stress tests by adding server start/stop

This commit is contained in:
chrislu
2025-12-16 00:02:00 -08:00
parent aff144f8b5
commit daa3af826f

View File

@@ -389,6 +389,9 @@ jobs:
uname -a uname -a
free -h free -h
# Start server for stress tests
make start-server
# Run stress tests (concurrent operations) # Run stress tests (concurrent operations)
make test-versioning-stress || { make test-versioning-stress || {
echo "❌ Stress test failed, checking logs..." echo "❌ Stress test failed, checking logs..."
@@ -396,6 +399,7 @@ jobs:
echo "=== Server logs ===" echo "=== Server logs ==="
tail -200 weed-test.log tail -200 weed-test.log
fi fi
make stop-server
make clean make clean
exit 1 exit 1
} }
@@ -408,9 +412,12 @@ jobs:
echo "=== Server logs ===" echo "=== Server logs ==="
tail -200 weed-test.log tail -200 weed-test.log
fi fi
make stop-server
make clean make clean
exit 1 exit 1
} }
make stop-server
make clean make clean
- name: Upload stress test logs - name: Upload stress test logs