Skip to content
Snippets Groups Projects
Commit d437b68a authored by Josh Brooks's avatar Josh Brooks
Browse files

WIP: Improve documentation

parent 4af524ad
No related branches found
No related tags found
3 merge requests!68Master merge,!24Josh/local env migration,!11Release
...@@ -27,10 +27,11 @@ is added to this testing suite via the run script (`run.sh`) ...@@ -27,10 +27,11 @@ is added to this testing suite via the run script (`run.sh`)
## Local Network ## Local Network
The [localNetwork package](./localNetwork) is a more general use network tool. The [localNetwork package](./localNetwork) is a more general use network tool.
This package will run a local version of the xx network on a single machine. This package will run a local version of the xx network on a single machine until a
This can be done either via the `run.sh` script, which will run the network entirely manually killed by the user. This can be done either via the `run.sh` script,
locally with internal IP addresses, or the `runpublish.sh`, which runs the network which will run the network with internal IP addresses, or the `runpublish.sh`, which runs the network
with remotely accessible IP addresses. with remotely accessible IP addresses. With this network established, a developer may,
for example, test the xxDK against it.
## How to manually run locally ## How to manually run locally
......
#!/usr/bin/env bash #!/usr/bin/env bash
set -e
# Clear out the previous run's logs # Clear out the previous run's logs
rm gateway*-knownRound || true rm gateway*-knownRound || true
rm errServer-* || true rm errServer-* || true
...@@ -18,9 +21,9 @@ UDBOUT=results/udb-console.txt ...@@ -18,9 +21,9 @@ UDBOUT=results/udb-console.txt
mkdir -p $SERVERLOGS mkdir -p $SERVERLOGS
mkdir -p $GATEWAYLOGS mkdir -p $GATEWAYLOGS
# Allow for verbose gRPC logs ## Uncomment to allow for verbose gRPC logs
export GRPC_GO_LOG_VERBOSITY_LEVEL=99 #export GRPC_GO_LOG_VERBOSITY_LEVEL=99
export GRPC_GO_LOG_SEVERITY_LEVEL=info #export GRPC_GO_LOG_SEVERITY_LEVEL=info
nodes=$(ls -1q ./server-*.yaml | wc -l | xargs) nodes=$(ls -1q ./server-*.yaml | wc -l | xargs)
...@@ -86,6 +89,7 @@ finish() { ...@@ -86,6 +89,7 @@ finish() {
echo "KILL -9 $job" echo "KILL -9 $job"
kill -9 $job || true kill -9 $job || true
done done
set +x
} }
echo "You can't use the network until rounds run." echo "You can't use the network until rounds run."
...@@ -94,9 +98,11 @@ echo "and review logs for what went wrong." ...@@ -94,9 +98,11 @@ echo "and review logs for what went wrong."
rm rid.txt || true rm rid.txt || true
touch rid.txt touch rid.txt
echo -n "Waiting for rounds to run..." echo -n "Waiting for rounds to run..."
while [ ! -s rid.txt ]; do cnt=0
while [ ! -s rid.txt ] && [ $cnt -lt 240 ]; do
sleep 1 sleep 1
grep -a "RID 1 ReceiveFinishRealtime END" results/servers/server-2.log > rid.txt || true grep -a "RID 1 ReceiveFinishRealtime END" results/servers/server-2.log > rid.txt || true
cnt=$(($cnt + 1))
echo -n "." echo -n "."
done done
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment