-
Notifications
You must be signed in to change notification settings - Fork 404
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #617 from aklenik/examples-to-ci
Add multi-phase Besu, Ethereum, FISCO-BCOS and Sawtooth tests to CI
- Loading branch information
Showing
96 changed files
with
3,344 additions
and
40 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
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 |
---|---|---|
|
@@ -55,6 +55,7 @@ sut: | |
1.4.4: &fabric-latest | ||
packages: ['[email protected]', '[email protected]', '[email protected]', '[email protected]', '[email protected]'] | ||
latest: *fabric-latest | ||
|
||
sawtooth: | ||
1.0.0: | ||
packages: [ '[email protected]' ] | ||
|
@@ -67,25 +68,35 @@ sut: | |
1.0.5: &sawtooth-latest | ||
packages: [ '[email protected]' ] | ||
latest: *sawtooth-latest | ||
|
||
burrow: | ||
0.23.0: &burrow-latest | ||
packages: [ '@monax/[email protected]' ] | ||
latest: *burrow-latest | ||
|
||
iroha: | ||
0.6.3: &iroha-latest | ||
packages: [ '[email protected]' ] | ||
latest: *iroha-latest | ||
|
||
composer: | ||
0.20.8: &composer-latest | ||
packages: ['[email protected]', '[email protected]', '[email protected]', '[email protected]', '[email protected]' ] | ||
settings: | ||
- *new-node-old-grpc | ||
latest: *composer-latest | ||
|
||
fisco-bcos: | ||
2.0.0: &fisco-latest | ||
packages: ['[email protected]'] | ||
latest: *fisco-latest | ||
|
||
ethereum: | ||
1.2.1: ðereum-latest | ||
packages: ['[email protected].1'] | ||
packages: ['[email protected].0'] | ||
latest: *ethereum-latest | ||
|
||
besu: | ||
1.3.2: &besu-latest | ||
packages: ['[email protected]'] | ||
latest: *besu-latest |
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
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,2 @@ | ||
**/*.log | ||
report.html |
39 changes: 39 additions & 0 deletions
39
packages/caliper-tests-integration/besu_tests/benchconfig.yaml
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,39 @@ | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# | ||
|
||
--- | ||
test: | ||
clients: | ||
type: local | ||
number: 1 | ||
rounds: | ||
- label: open | ||
txNumber: [100] | ||
rateControl: [{ type: 'fixed-rate', opts: { tps: 10 } }] | ||
arguments: | ||
money: 10000 | ||
callback: open.js | ||
- label: query | ||
txNumber: [200] | ||
rateControl: [{ type: 'fixed-feedback-rate', opts: { tps: 10, unfinished_per_client: 5 } }] | ||
callback: query.js | ||
- label: transfer | ||
txNumber: [100] | ||
rateControl: [{ type: 'linear-rate', opts: { startingTps: 5, finishingTps: 20 } }] | ||
arguments: | ||
money: 10000 | ||
callback: transfer.js | ||
observer: | ||
interval: 1 | ||
type: local |
48 changes: 48 additions & 0 deletions
48
packages/caliper-tests-integration/besu_tests/caliper.yaml
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,48 @@ | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# | ||
|
||
caliper: | ||
benchconfig: benchconfig.yaml | ||
networkconfig: networkconfig.json | ||
workspace: ./ | ||
report: | ||
path: report.html | ||
logging: | ||
template: '%timestamp%%level%%module%%message%%metadata%' | ||
formats: | ||
timestamp: 'YYYY.MM.DD-HH:mm:ss.SSS ZZ' | ||
label: false | ||
json: false | ||
pad: true | ||
align: false | ||
attributeformat: | ||
level: ' %attribute%' | ||
module: ' [%attribute%] ' | ||
metadata: ' (%attribute%)' | ||
colorize: | ||
all: true | ||
colors: | ||
info: green | ||
error: red | ||
warn: yellow | ||
debug: grey | ||
targets: | ||
console: | ||
target: console | ||
enabled: true | ||
options: | ||
level: debug | ||
file: | ||
target: file | ||
enabled: false |
18 changes: 18 additions & 0 deletions
18
packages/caliper-tests-integration/besu_tests/config/caliper-besu-clique.Dockerfile
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,18 @@ | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# | ||
|
||
FROM hyperledger/besu:1.3.2 | ||
COPY ./data/ /root/ | ||
VOLUME [ "/root/.ethereum/keystore/" ] | ||
ENTRYPOINT [ "/opt/besu/bin/besu", "--genesis-file=/root/genesis.json", "--node-private-key-file=/root/.ethereum/keystore/key" ] |
31 changes: 31 additions & 0 deletions
31
packages/caliper-tests-integration/besu_tests/config/data/genesis.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,31 @@ | ||
{ | ||
"config": { | ||
"chainId": 48122, | ||
"homesteadBlock": 1, | ||
"eip150Block": 2, | ||
"eip150Hash": "0x0000000000000000000000000000000000000000000000000000000000000000", | ||
"eip155Block": 3, | ||
"eip158Block": 3, | ||
"byzantiumBlock": 4, | ||
"constantinopleBlock": 5, | ||
"clique": { | ||
"blockperiodseconds": 5, | ||
"epoch": 30000 | ||
} | ||
}, | ||
"nonce": "0x0", | ||
"timestamp": "0x5ca916c6", | ||
"extraData": "0x0000000000000000000000000000000000000000000000000000000000000000c0A8e4D217eB85b812aeb1226fAb6F588943C2C20000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", | ||
"gasLimit": "0x47b760", | ||
"difficulty": "0x1", | ||
"mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000", | ||
"coinbase": "0xc0A8e4D217eB85b812aeb1226fAb6F588943C2C2", | ||
"number": "0x0", | ||
"gasUsed": "0x0", | ||
"parentHash": "0x0000000000000000000000000000000000000000000000000000000000000000", | ||
"alloc": { | ||
"0xc0A8e4D217eB85b812aeb1226fAb6F588943C2C2": { | ||
"balance": "0x200000000000000000000000000000000000000000000000000000000000000" | ||
} | ||
} | ||
} |
27 changes: 27 additions & 0 deletions
27
packages/caliper-tests-integration/besu_tests/config/docker-compose.yml
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,27 @@ | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# | ||
|
||
version: "3" | ||
services: | ||
node: | ||
build: | ||
context: . | ||
dockerfile: caliper-besu-clique.Dockerfile | ||
image: caliper-besu-clique | ||
container_name: besu_clique | ||
volumes: | ||
- ./keys:/root/.ethereum/keystore | ||
ports: | ||
- 8545-8547:8545-8547 | ||
command: --revert-reason-enabled --rpc-http-enabled --rpc-http-host 0.0.0.0 --host-whitelist=* --rpc-http-apis admin,eth,miner,web3,net --graphql-http-enabled --discovery-enabled=false |
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 @@ | ||
0xa67bee5d6fb43acd42e307eb67547ab5006ad2fbb9567829e9b4b2ef3580acea |
22 changes: 22 additions & 0 deletions
22
packages/caliper-tests-integration/besu_tests/networkconfig.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,22 @@ | ||
{ | ||
"caliper": { | ||
"blockchain": "ethereum", | ||
"command" : { | ||
"start": "docker-compose -f config/docker-compose.yml up -d && sleep 10", | ||
"end" : "docker-compose -f config/docker-compose.yml down" | ||
} | ||
}, | ||
"ethereum": { | ||
"url": "http://localhost:8545", | ||
"contractDeployerAddress": "0xc0A8e4D217eB85b812aeb1226fAb6F588943C2C2", | ||
"contractDeployerAddressPrivateKey": "0xa67bee5d6fb43acd42e307eb67547ab5006ad2fbb9567829e9b4b2ef3580acea", | ||
"fromAddress": "0xc0A8e4D217eB85b812aeb1226fAb6F588943C2C2", | ||
"fromAddressPrivateKey": "0xa67bee5d6fb43acd42e307eb67547ab5006ad2fbb9567829e9b4b2ef3580acea", | ||
"transactionConfirmationBlocks": 2, | ||
"contracts": { | ||
"simple": { | ||
"path": "src/simple/simple.json" | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.