Compare commits

...

3 Commits

Author SHA1 Message Date
bf71dc3714 debug script
Some checks failed
Test Ethereum Fixturenet Stack / Run Ethereum Fixturenet stack test (push) Has been cancelled
Test Ethereum Plugeth Fixturenet Stack / Test fixturenet-plugeth stack (push) Successful in 29m50s
2024-06-27 21:14:14 +08:00
69457f83c3 dump logs on stack failure
All checks were successful
Test Ethereum Fixturenet Stack / Run Ethereum Fixturenet stack test (push) Successful in 18m23s
Test Ethereum Plugeth Fixturenet Stack / Test fixturenet-plugeth stack (push) Successful in 28m1s
2024-06-27 21:14:01 +08:00
c51064af17 plugeth state.scheme = hash 2024-06-27 20:51:24 +08:00
3 changed files with 11 additions and 7 deletions

View File

@ -36,6 +36,8 @@ jobs:
- name: "Install stack orchestrator"
run: pip3 install .tools/stack-orchestrator
- name: "Run stack tests"
env:
CERC_SCRIPT_DEBUG: 1
run: |
PATH=$PATH:~/bin
./tests/fixturenet-plugeth-stack/run-test.sh

View File

@ -20,6 +20,8 @@ COPY --from=fnetgen /opt/genesis /opt/testnet
COPY --from=statediff /usr/local/lib/statediff.so /usr/local/lib/plugeth/
# Initialize the geth db with our config
RUN geth --datadir ~/ethdata init /opt/testnet/build/el/geth.json && rm -f ~/ethdata/geth/nodekey
RUN geth --datadir ~/ethdata --state.scheme hash \
init /opt/testnet/build/el/geth.json && \
rm -f ~/ethdata/geth/nodekey
ENTRYPOINT ["/opt/testnet/run.sh"]

View File

@ -67,6 +67,12 @@ if [ ! -d "$test_deployment_dir" ]; then
fi
echo "deploy create test: passed"
dump_logs () {
echo "Test failed. Logs from stack:"
$SO_COMMAND deployment --dir $test_deployment_dir logs
}
trap dump_logs ERR
$SO_COMMAND deployment --dir $test_deployment_dir start
geth_endpoint=localhost:$($SO_COMMAND deployment --dir $test_deployment_dir port fixturenet-eth-geth-1 8545 | cut -d: -f2)
@ -109,12 +115,6 @@ log_info "Results of block height queries:"
echo "Initial block height: $initial_block_number"
echo "Subsequent block height: $subsequent_block_number"
dump_logs () {
echo "Test failed. Logs from stack:"
$SO_COMMAND deployment --dir $test_deployment_dir logs
}
trap dump_logs ERR
# Block height difference should be between 1 and some small number
[[ $block_number_difference -gt 1 && $block_number_difference -lt 100 ]]