Skip to content
Snippets Groups Projects
Commit f1bb6331 authored by Richard T. Carback III's avatar Richard T. Carback III
Browse files

Merge branch 'hotfix/smokeup' into 'release'

resurrect smokeinfra

See merge request !64
parents 65c7fec5 ab79a99d
No related branches found
No related tags found
No related merge requests found
...@@ -76,6 +76,7 @@ installbinaries: ...@@ -76,6 +76,7 @@ installbinaries:
- bin/gateway --version - bin/gateway --version
artifacts: artifacts:
when: always when: always
expire_in: '1 day'
paths: paths:
- bin/ - bin/
...@@ -90,6 +91,7 @@ basice2e: ...@@ -90,6 +91,7 @@ basice2e:
- cd .. - cd ..
artifacts: artifacts:
when: always when: always
expire_in: '1 day'
paths: paths:
- basice2e/results/ - basice2e/results/
- bin/ - bin/
...@@ -112,42 +114,45 @@ basice2e: ...@@ -112,42 +114,45 @@ basice2e:
# - cd .. # - cd ..
# artifacts: # artifacts:
# when: always # when: always
# expire_in: '1 day'
# paths: # paths:
# - basice2e/ # - basice2e/
# - bin/ # - bin/
# smokeinfra: smokeinfra:
# stage: tests stage: tests
# image: $DOCKER_IMAGE image: $DOCKER_IMAGE
# script: script:
# - mkdir -p ~/.elixxir - mkdir -p ~/.elixxir
# - echo $PWD - echo $PWD
# - cd smokeinfra - cd smokeinfra
# - ./run.sh - ./run.sh
# - cd .. - cd ..
# artifacts: artifacts:
# when: always when: always
# paths: expire_in: '1 day'
# - smokeinfra/results/ paths:
# - bin/ - smokeinfra/results/
- bin/
# smokeinfraBatch4: smokeinfraBatch4:
# stage: tests stage: tests
# image: $DOCKER_IMAGE image: $DOCKER_IMAGE
# script: script:
# - mkdir -p ~/.elixxir - mkdir -p ~/.elixxir
# - echo $PWD - echo $PWD
# - cd smokeinfra - cd smokeinfra
# - git checkout -- . - git checkout -- .
# - sed -i 's/\ 42/\ 4/g' *.yaml - sed -i 's/\ 42/\ 4/g' *.yaml
# - ./run.sh - ./run.sh
# - cd .. - cd ..
# artifacts: artifacts:
# when: always when: always
# paths: expire_in: '1 day'
# - smokeinfra/results/ paths:
# - bin/ - smokeinfra/results/
- bin/
# smokeinfraBatch1: # smokeinfraBatch1:
# stage: tests # stage: tests
...@@ -162,6 +167,7 @@ basice2e: ...@@ -162,6 +167,7 @@ basice2e:
# - cd .. # - cd ..
# artifacts: # artifacts:
# when: always # when: always
# expire_in: '1 day'
# paths: # paths:
# - smokeinfra/results/ # - smokeinfra/results/
# - bin/ # - bin/
...@@ -176,6 +182,7 @@ benchmark: ...@@ -176,6 +182,7 @@ benchmark:
- ./bin/server benchmark -b 1024 -n 5 -i 1 - ./bin/server benchmark -b 1024 -n 5 -i 1
artifacts: artifacts:
when: always when: always
expire_in: '1 day'
paths: paths:
- bin/ - bin/
only: only:
......
...@@ -11,6 +11,9 @@ log: "results/gateway-1.log" ...@@ -11,6 +11,9 @@ log: "results/gateway-1.log"
# Used for debugging # Used for debugging
verbose: "true" verbose: "true"
# I am first node
firstNode: "true"
# The cMix nodes in the network # The cMix nodes in the network
cMixNodes: cMixNodes:
- "localhost:60000" - "localhost:60000"
......
...@@ -11,6 +11,9 @@ log: "results/gateway-3.log" ...@@ -11,6 +11,9 @@ log: "results/gateway-3.log"
# Used for debugging # Used for debugging
verbose: "true" verbose: "true"
# I am last node
lastNode: "true"
# The cMix nodes in the network # The cMix nodes in the network
cMixNodes: cMixNodes:
- "localhost:60000" - "localhost:60000"
......
...@@ -28,6 +28,8 @@ done ...@@ -28,6 +28,8 @@ done
echo "STARTING GATEWAYS..." echo "STARTING GATEWAYS..."
sleep 5
# Start gateways # Start gateways
for GWID in $(seq 3 -1 1) for GWID in $(seq 3 -1 1)
do do
...@@ -38,10 +40,12 @@ do ...@@ -38,10 +40,12 @@ do
echo "$GATEWAYCMD -- $PIDVAL" echo "$GATEWAYCMD -- $PIDVAL"
done done
sleep 120
jobs -p > results/serverpids jobs -p > results/serverpids
finish() { finish() {
echo "KILLED! STOPPING SERVERS AND GATEWAYS..." echo "STOPPING SERVERS AND GATEWAYS..."
# NOTE: jobs -p doesn't work in a signal handler # NOTE: jobs -p doesn't work in a signal handler
for job in $(cat results/serverpids) for job in $(cat results/serverpids)
do do
...@@ -55,13 +59,6 @@ trap finish INT ...@@ -55,13 +59,6 @@ trap finish INT
sleep 15 sleep 15
echo "STOPPING SERVERS AND GATEWAYS..."
# NOTE: jobs -p doesn't work in a signal handler
for job in $(cat results/serverpids)
do
echo "Stopping $job"
kill $job
done
echo "CHECKING OUTPUT FOR ERRORS" echo "CHECKING OUTPUT FOR ERRORS"
set +x set +x
...@@ -83,6 +80,5 @@ if [ ! -s rid.txt ]; then ...@@ -83,6 +80,5 @@ if [ ! -s rid.txt ]; then
exit 42 exit 42
fi fi
echo "SUCCESS!"
tail $SERVERLOGS/*.console tail $SERVERLOGS/*.console
echo "SUCCESS!"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment