From ae1ca5511985063ddac3233d310bedb9cb98caa1 Mon Sep 17 00:00:00 2001 From: jsvisa Date: Tue, 5 Nov 2024 00:19:23 +0800 Subject: [PATCH] github/qa: use createType branch Signed-off-by: jsvisa --- .../workflows/qa-rpc-integration-tests.yml | 21 +++++++++---------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/.github/workflows/qa-rpc-integration-tests.yml b/.github/workflows/qa-rpc-integration-tests.yml index bbdd869281b..04803528b1c 100644 --- a/.github/workflows/qa-rpc-integration-tests.yml +++ b/.github/workflows/qa-rpc-integration-tests.yml @@ -31,7 +31,7 @@ jobs: - name: Checkout RPC Tests Repository & Install Requirements run: | rm -rf ${{ runner.workspace }}/rpc-tests - git -c advice.detachedHead=false clone --depth 1 --branch v1.0.0 https://github.com/erigontech/rpc-tests ${{runner.workspace}}/rpc-tests + git -c advice.detachedHead=false clone --depth 1 --branch feature/add_createtype_for_parity_traces https://github.com/erigontech/rpc-tests ${{runner.workspace}}/rpc-tests cd ${{ runner.workspace }}/rpc-tests pip3 install -r requirements.txt @@ -52,12 +52,12 @@ jobs: working-directory: ${{ github.workspace }}/build/bin run: | echo "RpcDaemon starting..." - + ./rpcdaemon --datadir $ERIGON_REFERENCE_DATA_DIR --http.api admin,debug,eth,parity,erigon,trace,web3,txpool,ots,net --ws --verbosity 1 > erigon.log 2>&1 & - RPC_DAEMON_PID=$! + RPC_DAEMON_PID=$! echo "RPC_DAEMON_PID=$RPC_DAEMON_PID" >> $GITHUB_ENV - + echo "RpcDaemon started" - name: Wait for port 8545 to be opened @@ -83,7 +83,7 @@ jobs: cd ${{ runner.workspace }}/rpc-tests/integration rm -rf ./mainnet/results/ - + # Run RPC integration test runner via http python3 ./run_tests.py -p 8545 --continue -f --json-diff -x \ debug_accountRange,debug_getModifiedAccountsByHash,debug_getModifiedAccountsByNumber,debug_storageRangeAt,debug_traceBlockByHash,\ @@ -174,13 +174,13 @@ jobs: web3_clientVersion/test_1.json,\ eth_estimateGas/test_14.json,\ trace_replayBlockTransactions/test_29.tar - + # Capture test runner script exit status test_exit_status=$? - + # Save the subsection reached status echo "::set-output name=test_executed::true" - + # Check test runner exit status if [ $test_exit_status -eq 0 ]; then echo "tests completed successfully" @@ -189,7 +189,7 @@ jobs: else echo "error detected during tests" echo "TEST_RESULT=failure" >> "$GITHUB_OUTPUT" - + # Save failed results to a directory with timestamp and commit hash cp -r ${{ runner.workspace }}/rpc-tests/integration/mainnet/results/ $RPC_PAST_TEST_DIR/mainnet_$(date +%Y%m%d_%H%M%S)_integration_$commit_http/ fi @@ -227,7 +227,7 @@ jobs: if [ -z "$db_version" ]; then db_version="no-version" fi - + python3 $ERIGON_QA_PATH/test_system/qa-tests/uploads/upload_test_results.py --repo erigon --commit $(git rev-parse HEAD) --branch ${{ github.ref_name }} --test_name rpc-integration-tests --chain $CHAIN --runner ${{ runner.name }} --db_version $db_version --outcome $TEST_RESULT #--result_file ${{ github.workspace }}/result-$CHAIN.json - name: Action for Success @@ -239,4 +239,3 @@ jobs: run: | echo "::error::Error detected during tests" exit 1 -