Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
integration
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
elixxir
integration
Commits
f1bb6331
Commit
f1bb6331
authored
Feb 7, 2020
by
Richard T. Carback III
Browse files
Options
Downloads
Plain Diff
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
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
.gitlab-ci.yml
+37
-30
37 additions, 30 deletions
.gitlab-ci.yml
smokeinfra/gateway-1.yaml
+3
-0
3 additions, 0 deletions
smokeinfra/gateway-1.yaml
smokeinfra/gateway-3.yaml
+3
-0
3 additions, 0 deletions
smokeinfra/gateway-3.yaml
smokeinfra/run.sh
+6
-10
6 additions, 10 deletions
smokeinfra/run.sh
with
49 additions
and
40 deletions
.gitlab-ci.yml
+
37
−
30
View file @
f1bb6331
...
@@ -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
:
...
...
This diff is collapsed.
Click to expand it.
smokeinfra/gateway-1.yaml
+
3
−
0
View file @
f1bb6331
...
@@ -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"
...
...
This diff is collapsed.
Click to expand it.
smokeinfra/gateway-3.yaml
+
3
−
0
View file @
f1bb6331
...
@@ -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"
...
...
This diff is collapsed.
Click to expand it.
smokeinfra/run.sh
+
6
−
10
View file @
f1bb6331
...
@@ -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!"
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment