forked from SimonLangowski/trellis
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(gateway): improve build and test (#7)
* refactor: remove coordinator debug log * hack: add symlinks cmd/xtrellis/{groups,servers}.json -> ../coordinator/{groups,servers}.json * chore(xtrellis): gitignore exclude {groups,servers}.json * chore: gitignore cmd/coordinator/res.json{,.csv} * feat(bin): test-gateway-io.sh: gateway host/port as params * feat(bin): add run-coordinator-gateway * feat(docker): install netcat for gateway test scripts * feat(docker-compose): add xtrellis-test-gateway service in test profile * chore(docker): sync dockerignore with gitignore * refactor(gateway): log message data stats (but not actual data) to terminal * docs(xtrellis): update README with prereqs, build, test * docs(bin): test-gateway-io.sh: update comments * feat(utils): add DebugCaller option with flag * refactor(gateway): improve and conform log messages * feat(bin): test-gateway-io.sh: exit with status * feat(xtrellis): change default MessageSize * refactor: remove xtrellis/bin/run-coordinator-gateway.sh * docs(xtrellis): more detailed build and run gateway * chore(go): update pb version * ci(test): replace test of `./...` with `./xtrellis/...` * ci(test): add `--profile test-gateway` to docker-compose * feat(bin): add test-gateway-ci.sh * feat(docker-compose): replace multi-line command with `./bin/test-gateway-ci.sh`
- Loading branch information
Showing
17 changed files
with
201 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,30 @@ | ||
.env | ||
.git | ||
cmd/*/*.log | ||
cmd/*/*.pprof | ||
cmd/certificates/*.key | ||
cmd/certificates/*.pem | ||
cmd/client/client | ||
cmd/coordinator/clients.json | ||
cmd/coordinator/coordinator | ||
cmd/coordinator/groups.json | ||
cmd/coordinator/keys.json | ||
cmd/coordinator/messages.json | ||
cmd/coordinator/res.json | ||
cmd/coordinator/res.json.csv | ||
cmd/coordinator/servers.json | ||
cmd/experiments/*.list | ||
cmd/server/server | ||
cmd/simulation/simulation | ||
cmd/testnet2/testnet2 | ||
cmd/xtrellis/clients.json | ||
cmd/xtrellis/keys.json | ||
cmd/xtrellis/messages.json | ||
cmd/xtrellis/res.json | ||
cmd/xtrellis/res.json.csv | ||
cmd/xtrellis/xtrellis | ||
coordinator/*.pprof | ||
coordinator/*.prof | ||
docker-compose.yml | ||
errors/*.log | ||
pb/gen |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,6 +15,7 @@ RUN apt update \ | |
git \ | ||
libgmp-dev \ | ||
libssl-dev \ | ||
netcat \ | ||
sudo \ | ||
unzip \ | ||
wget \ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,5 @@ | ||
*.json | ||
!groups.json | ||
!servers.json | ||
|
||
xtrellis |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/bin/bash | ||
|
||
set -ex | ||
|
||
./xtrellis \ | ||
coordinator \ | ||
--gatewayenable \ | ||
--debug \ | ||
& | ||
|
||
xtrellis_pid=$! | ||
|
||
sleep 10s | ||
|
||
./bin/test-gateway-io.sh 102400 | ||
|
||
kill -s SIGTERM ${xtrellis_pid} | ||
|
||
exit 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../coordinator/groups.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../coordinator/servers.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.