use different fixture
All checks were successful
Tests / Run integration tests (pull_request) Successful in 4m5s
Tests / Run compliance tests (pull_request) Successful in 4m51s

This commit is contained in:
Roy Crihfield 2023-10-03 19:55:41 +08:00
parent fd6fb99540
commit f4fbbee9ed

View File

@ -48,19 +48,18 @@ jobs:
- name: Run basic integration test
env:
DATABASE_TYPE: postgres
LEVELDB_PATH: ./fixtures/chaindata/_data/small
LEVELDB_ANCIENT: ./fixtures/chaindata/_data/small/ancient
LEVELDB_PATH: ./fixtures/chaindata/_data/small2
LEVELDB_ANCIENT: ./fixtures/chaindata/_data/small2/ancient
LOG_FILE: ./server-log
ETH_GENESIS_BLOCK: "0x37cbb63c7150a7b60f2878433963ed8ba7e5f82fb2683ec7a945c974e1cf4e05"
ETH_CHAIN_ID: 4242
timeout-minutes: 30
ETH_GENESIS_BLOCK: "0x8a3c7cddacbd1ab4ec1b03805fa2a287f3a75e43d87f4f987fcc399f5c042614"
timeout-minutes: 20
run: |
./eth-statediff-service --config ./test/ci-config.toml serve &
sleep 10
./scripts/request-range.sh 0 32 || (E=$?; cat $LOG_FILE; exit $E)
./scripts/request-range.sh 0 10 || (E=$?; cat $LOG_FILE; exit $E)
until grep "Finished processing block 32" $LOG_FILE
until grep "Finished processing block 10" $LOG_FILE
do sleep 1; done
count_results() {
@ -69,11 +68,11 @@ jobs:
psql -tA cerc_testing -U vdbm -c "$query"
}
set -x
[[ "$(count_results eth.header_cids)" = 33 ]]
[[ "$(count_results eth.state_cids)" = 21 ]]
[[ "$(count_results eth.storage_cids)" = 18 ]]
[[ "$(count_results eth.transaction_cids)" = 10 ]]
[[ "$(count_results eth.receipt_cids)" = 10 ]]
[[ "$(count_results eth.header_cids)" = 11 ]]
[[ "$(count_results eth.state_cids)" = 287 ]]
[[ "$(count_results eth.storage_cids)" = 31 ]]
[[ "$(count_results eth.transaction_cids)" = 144 ]]
[[ "$(count_results eth.receipt_cids)" = 144 ]]
compliance-test:
name: Run compliance tests
@ -124,7 +123,6 @@ jobs:
LEVELDB_ANCIENT: ./fixtures/chaindata/_data/small2/ancient
ETH_GENESIS_BLOCK: "0x8a3c7cddacbd1ab4ec1b03805fa2a287f3a75e43d87f4f987fcc399f5c042614"
ETH_CHAIN_CONFIG: ./eth-statediff-service/test/ci-chain.json
ETH_CHAIN_ID: 1212
run: |
until
ready_query='select max(version_id) from goose_db_version;'