2023-10-07 05:53:10 +00:00
|
|
|
set -e
|
|
|
|
|
2023-10-08 17:11:31 +00:00
|
|
|
replication=5
|
2023-10-17 12:32:05 +00:00
|
|
|
name=testnamehere
|
|
|
|
filter=TwoClient
|
2023-10-07 05:47:54 +00:00
|
|
|
|
|
|
|
echo "Deploying..."
|
|
|
|
cd ../../Tools/CodexNetDeployer
|
2023-10-07 06:04:11 +00:00
|
|
|
for i in $( seq 0 $replication)
|
2023-10-07 05:47:54 +00:00
|
|
|
do
|
|
|
|
dotnet run \
|
2023-10-23 08:19:52 +00:00
|
|
|
--deploy-name=codex-continuous-$name-$i \
|
2023-10-07 05:47:54 +00:00
|
|
|
--kube-config=/opt/kubeconfig.yaml \
|
2023-10-17 12:32:05 +00:00
|
|
|
--kube-namespace=codex-continuous-$name-tests-$i \
|
|
|
|
--deploy-file=codex-deployment-$name-$i.json \
|
2023-10-07 05:47:54 +00:00
|
|
|
--nodes=5 \
|
|
|
|
--validators=3 \
|
|
|
|
--log-level=Trace \
|
2023-10-08 17:11:31 +00:00
|
|
|
--storage-quota=20480 \
|
2023-10-07 05:47:54 +00:00
|
|
|
--storage-sell=1024 \
|
|
|
|
--min-price=1024 \
|
|
|
|
--max-collateral=1024 \
|
|
|
|
--max-duration=3600000 \
|
2023-10-08 17:11:31 +00:00
|
|
|
--block-ttl=99999999 \
|
|
|
|
--block-mi=99999999 \
|
|
|
|
--block-mn=100 \
|
2023-10-23 08:57:59 +00:00
|
|
|
--metrics-endpoints=1 \
|
|
|
|
--metrics-scraper=1 \
|
2023-10-07 06:04:11 +00:00
|
|
|
--check-connect=1 \
|
|
|
|
-y
|
2023-10-07 08:29:09 +00:00
|
|
|
|
2023-10-17 12:32:05 +00:00
|
|
|
cp codex-deployment-$name-$i.json ../../Tests/CodexContinuousTests
|
2023-10-07 05:47:54 +00:00
|
|
|
done
|
|
|
|
echo "Starting tests..."
|
2023-10-07 05:53:10 +00:00
|
|
|
cd ../../Tests/CodexContinuousTests
|
2023-10-07 06:04:11 +00:00
|
|
|
for i in $( seq 0 $replication)
|
2023-10-07 05:47:54 +00:00
|
|
|
do
|
|
|
|
screen -d -m dotnet run \
|
|
|
|
--kube-config=/opt/kubeconfig.yaml \
|
2023-10-17 12:32:05 +00:00
|
|
|
--codex-deployment=codex-deployment-$name-$i.json \
|
|
|
|
--log-path=logs-$name-$i \
|
|
|
|
--data-path=data-$name-$i \
|
2023-10-07 05:47:54 +00:00
|
|
|
--keep=1 \
|
|
|
|
--stop=1 \
|
2023-10-17 12:32:05 +00:00
|
|
|
--filter=$filter \
|
2023-10-08 17:11:31 +00:00
|
|
|
--cleanup=1 \
|
|
|
|
--full-container-logs=1 \
|
2023-10-07 05:47:54 +00:00
|
|
|
--target-duration=172800 # 48 hours
|
2023-10-22 09:29:16 +00:00
|
|
|
|
|
|
|
sleep 30
|
2023-10-07 05:47:54 +00:00
|
|
|
done
|