ci: fix stress tests by adding server start/stop
This commit is contained in:
7
.github/workflows/s3-go-tests.yml
vendored
7
.github/workflows/s3-go-tests.yml
vendored
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user