From 3872111ff3005f60878d1b5adcc3525684a29ca6 Mon Sep 17 00:00:00 2001 From: mmsqe Date: Mon, 5 Aug 2024 11:23:17 +0800 Subject: [PATCH] Problem: nondeterministic account set occurs with more stm workers --- scripts/run-integration-tests.sh | 8 ++++++-- tests/integration_tests/configs/default.jsonnet | 1 + tests/integration_tests/test_debug_traceblock.py | 1 + 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/scripts/run-integration-tests.sh b/scripts/run-integration-tests.sh index e867e392a9..95aada2b95 100755 --- a/scripts/run-integration-tests.sh +++ b/scripts/run-integration-tests.sh @@ -12,11 +12,15 @@ npm run typechain cd .. TESTS_TO_RUN="${TESTS_TO_RUN:-all}" +RUNS=5 if [[ "$TESTS_TO_RUN" == "all" ]]; then echo "run all tests" pytest -vv -s else - echo "run tests matching $TESTS_TO_RUN" - pytest -vv -s -m "$TESTS_TO_RUN" + for ((i=1; i<=$RUNS; i++)) + do + echo "run tests: $i" + pytest -v -s test_debug_traceblock.py + done fi diff --git a/tests/integration_tests/configs/default.jsonnet b/tests/integration_tests/configs/default.jsonnet index 0f5a0495f7..df136a4e29 100644 --- a/tests/integration_tests/configs/default.jsonnet +++ b/tests/integration_tests/configs/default.jsonnet @@ -8,6 +8,7 @@ 'index-events': ['ethereum_tx.ethereumTxHash'], evm: { 'block-executor': 'block-stm', + 'block-stm-workers': 32, }, 'json-rpc': { address: '127.0.0.1:{EVMRPC_PORT}', diff --git a/tests/integration_tests/test_debug_traceblock.py b/tests/integration_tests/test_debug_traceblock.py index 2e83fdd069..f8241eb5e8 100644 --- a/tests/integration_tests/test_debug_traceblock.py +++ b/tests/integration_tests/test_debug_traceblock.py @@ -56,3 +56,4 @@ def trace_blk(blk): if total < expected: total += len(trace_blk(blk + 1)) assert total == expected + send_transaction(w3, tx)