-
Notifications
You must be signed in to change notification settings - Fork 518
1.Windows compatibility. 2. Conflicts merged. 3.All discv4 tests #128
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
52 commits
Select commit
Hold shift + click to select a range
e1e7f62
Rename clients/aleth:nightly/Dockerfile to clients/aleth_nightly/Dock…
FrankSzendzielarz d76b654
Rename clients/aleth:nightly/aleth.sh to clients/aleth_nightly/aleth.sh
FrankSzendzielarz 0016a5c
Rename clients/aleth:nightly/config.json to clients/aleth_nightly/con…
FrankSzendzielarz dbe50af
Rename clients/ethereumj:develop/Dockerfile to clients/ethereumj-deve…
FrankSzendzielarz 76970cd
Rename clients/ethereumj:develop/harmony.sh to clients/ethereumj-deve…
FrankSzendzielarz 3fc5211
Rename clients/ethereumj:master/Dockerfile to clients/ethereumj-maste…
FrankSzendzielarz 496b7cc
Rename clients/ethereumj:master/harmony.sh to clients/ethereumj-maste…
FrankSzendzielarz 2002e92
Rename clients/go-ethereum:local/Dockerfile to clients/go-ethereum-lo…
FrankSzendzielarz 1758eee
Rename clients/go-ethereum:local/geth.sh to clients/go-ethereum-local…
FrankSzendzielarz bc5d833
Rename clients/go-ethereum:local/version.json to clients/go-ethereum-…
FrankSzendzielarz 8b06975
Rename clients/go-ethereum:master/Dockerfile to clients/go-ethereum-m…
FrankSzendzielarz b1f4811
Rename clients/go-ethereum:master/geth.sh to clients/go-ethereum-mast…
FrankSzendzielarz 23c9791
Rename clients/go-ethereum:stable/Dockerfile to clients/go-ethereum-s…
FrankSzendzielarz ae04a03
Rename clients/go-ethereum:stable/geth.sh to clients/go-ethereum-stab…
FrankSzendzielarz 3a9ca3d
Rename clients/parity:beta/parity.sh to clients/parity-beta/parity.sh
FrankSzendzielarz f266260
Rename clients/parity:beta/Dockerfile to clients/parity-beta/Dockerfile
FrankSzendzielarz 7eddc97
Rename clients/parity:beta/chain.json to clients/parity-beta/chain.json
FrankSzendzielarz 666fb2e
Rename clients/parity:master/Dockerfile to clients/parity-master/Dock…
FrankSzendzielarz 4e2903b
Rename clients/parity:master/chain.json to clients/parity-master/chai…
FrankSzendzielarz fc98916
Rename clients/parity:master/parity.sh to clients/parity-master/parit…
FrankSzendzielarz 7357410
Windows compatibility
FrankSzendzielarz 1b30799
Remove unwanted comments
FrankSzendzielarz 9191e5c
Moving launch.json
FrankSzendzielarz e3b058d
Correcting json format
FrankSzendzielarz 0d398f3
More json correction
FrankSzendzielarz 98f1018
Unstaged .vscode using gitignore
FrankSzendzielarz 00378f0
devp2p tests
FrankSzendzielarz fdf4ca7
Including UDP/disc code
FrankSzendzielarz 057a4ce
Ping done, adding docker context
FrankSzendzielarz 90e4ae2
-
FrankSzendzielarz 7ba97c0
Test running in docker
FrankSzendzielarz 7c23a2b
Updating TODOs
FrankSzendzielarz 8fc3cb4
Allowing validator to get client enode
FrankSzendzielarz fcdbee6
ping finally working!
FrankSzendzielarz 5d73134
Ping enode or container IP
FrankSzendzielarz 377f5bb
Devp2p clients with bootnodes
FrankSzendzielarz c1dbbf2
Merge conflicts
FrankSzendzielarz 6e1b596
Merge branch 'discv4validator'
FrankSzendzielarz 574d0b7
Listing tests in the project
FrankSzendzielarz 65ff247
Added test placeholders and docs
FrankSzendzielarz 7c29c91
Test isolation for when tests need the client reset to initial state
FrankSzendzielarz 2a5a271
Test isolation continues
FrankSzendzielarz c92868b
Unexpected packet refactoring start
FrankSzendzielarz 433e460
More refactorings in the udp.go
FrankSzendzielarz 691c32e
Refactoring the udp test code
FrankSzendzielarz 700a3d9
Test mods
FrankSzendzielarz 6416bb3
Error in matched flag
FrankSzendzielarz 8148de7
Test body implementations
FrankSzendzielarz 988f4d9
Implementing more tests
FrankSzendzielarz 5752e40
Tests implemented
FrankSzendzielarz 1e2dcb9
Merge branch 'discv4validator'
FrankSzendzielarz 778e9bf
Tweaks
FrankSzendzielarz File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,2 @@ | ||
| .vscode/ | ||
| workspace |
This file contains hidden or 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 hidden or 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
File renamed without changes.
File renamed without changes.
This file contains hidden or 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,4 @@ | ||
| # Dockerfile allowing devp2p tests on geth master | ||
| FROM hive/clients/ethereumj_master | ||
|
|
||
| ENV HIVE_BOOTNODE enode://158f8aab45f6d19c6cbf4a089c2670541a8da11978a2f90dbf6a502a4a3bab80d288afdbeb7ec0ef6d92de563767f3b1ea9e8e334ca711e9f8e2df5a0385e8e6@13.75.154.138:30303 |
This file contains hidden or 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,8 @@ | ||
| # Dockerfile allowing devp2p tests on geth master | ||
| FROM hive/clients/go-ethereum_master | ||
|
|
||
| #Live bootnode | ||
| #ENV HIVE_BOOTNODE enode://158f8aab45f6d19c6cbf4a089c2670541a8da11978a2f90dbf6a502a4a3bab80d288afdbeb7ec0ef6d92de563767f3b1ea9e8e334ca711e9f8e2df5a0385e8e6@13.75.154.138:30303 | ||
|
|
||
| #Dead bootnode | ||
| ENV HIVE_BOOTNODE enode://158f8aab45f6d19c6cbf4a089c2670541a8da11978a2f90dbf6a502a4a3bab80d288afdbeb7ec0ef6d92de563767f3b1ea9e8e334ca711e9f8e2df5a0385e8e6@1.2.3.4:30000 |
This file contains hidden or 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,4 @@ | ||
| # Dockerfile allowing devp2p tests on geth master | ||
| FROM hive/clients/parity_master | ||
|
|
||
| ENV HIVE_BOOTNODE enode://158f8aab45f6d19c6cbf4a089c2670541a8da11978a2f90dbf6a502a4a3bab80d288afdbeb7ec0ef6d92de563767f3b1ea9e8e334ca711e9f8e2df5a0385e8e6@13.75.154.138:30303 |
This file contains hidden or 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
File renamed without changes.
This file contains hidden or 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
File renamed without changes.
File renamed without changes.
This file contains hidden or 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 hidden or 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,17 @@ | ||
| #!/bin/bash | ||
|
|
||
| # Script to retrieve the enode | ||
| # | ||
| # This is copied into the validator container by Hive | ||
| # and used to provide a client-specific enode id retriever | ||
| # | ||
|
|
||
| # Immediately abort the script on any error encountered | ||
| set -e | ||
| echo "Trying to get enode." | ||
|
|
||
| TARGET_RESPONSE=$(curl -s -X POST -H "Content-Type: application/json" --data '{"jsonrpc":"2.0","method":"admin_nodeInfo","params":[],"id":1}' "$HIVE_CLIENT_IP:8545" ) | ||
|
|
||
| echo "Got admin enode info response: $TARGET_RESPONSE" | ||
| TARGET_ENODE=$(echo ${TARGET_RESPONSE}| jq -r '.result.enode') | ||
| echo "Target enode identified as $TARGET_ENODE" |
This file contains hidden or 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 hidden or 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
File renamed without changes.
This file contains hidden or 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
File renamed without changes.
File renamed without changes.
This file contains hidden or 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
File renamed without changes.
This file contains hidden or 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,20 @@ | ||
| #!/bin/bash | ||
|
|
||
| # Script to retrieve the enode | ||
| # | ||
| # This is copied into the validator container by Hive | ||
| # and used to provide a client-specific enode id retriever | ||
| # | ||
|
|
||
| # Immediately abort the script on any error encountered | ||
| set -e | ||
|
|
||
| set -e | ||
| echo "Trying to get enode." | ||
|
|
||
| TARGET_RESPONSE=$(curl --data '{"method":"parity_enode","params":[],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST "$HIVE_CLIENT_IP:8545" ) | ||
|
|
||
| echo "Got admin enode info response: $TARGET_RESPONSE" | ||
| TARGET_ENODE=$(echo ${TARGET_RESPONSE}| jq -r '.result.enode') | ||
|
|
||
| echo "Target enode identified as $TARGET_ENODE" |
File renamed without changes.
Binary file not shown.
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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,47 @@ | ||
| # This validation runs various devp2p tests against the client | ||
|
|
||
| FROM golang:1-alpine | ||
|
|
||
| # Build a geth bootnode, regular node from the develop branch and unit test binary | ||
| RUN apk add --update git make gcc musl-dev curl jq linux-headers | ||
|
|
||
| # Get master branch of geth | ||
| RUN (git clone -b master --single-branch https://github.com/ethereum/go-ethereum /go/src/github.com/ethereum/go-ethereum) | ||
| RUN (cd /go/src/github.com/ethereum/go-ethereum ) | ||
|
|
||
| # Build geth | ||
| RUN (cd /go/src/github.com/ethereum/go-ethereum && GOPATH=/go make all) | ||
| RUN (cd /go/src/github.com/ethereum/go-ethereum && GOPATH=/go go get) | ||
|
|
||
| # Add the docker client | ||
| RUN (git clone -b master https://github.com/fsouza/go-dockerclient /go/src/github.com/fsouza/go-dockerclient) | ||
|
|
||
| RUN (cd /go/src/github.com/fsouza/go-dockerclient && GOPATH=/go go get) | ||
|
|
||
|
|
||
|
|
||
| #RUN (cd / && GOPATH=/go go get github.com/fsouza/go-dockerclient) | ||
|
|
||
| # Add the local test stuff | ||
| ADD devp2p_test.go /devp2p_test.go | ||
| ADD node.go /node.go | ||
| ADD udp.go /udp.go | ||
|
|
||
|
|
||
| #go test -c -o means compile the tests (-c) and rename (-o) to | ||
| RUN (cd / && GOPATH=/go go test -c -o /devp2p.test) | ||
|
|
||
| # Cleanup previous stuff | ||
| RUN apk del git make gcc musl-dev linux-headers | ||
| RUN (rm -rf /var/cache/apk/* && rm -rf /go) | ||
|
|
||
| # Add shell | ||
| RUN apk add --update bash curl jq | ||
| # Add the entry script | ||
| ADD tests.sh /tests.sh | ||
| #mandatory init file | ||
| ADD genesis.json /genesis.json | ||
|
|
||
| EXPOSE 8545 8546 30303 30303/udp | ||
|
|
||
| ENTRYPOINT ["/tests.sh"] |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please don't --
4isDEBUG,5isTRACE,6means is everything and their grandmothers. The logs will be humoungous if we do this.