From 5681a9016f0bf0a4fa7f6da20b13ef00c5014ebc Mon Sep 17 00:00:00 2001 From: Michelangelo Riccobene Date: Mon, 5 Feb 2024 15:59:41 +0100 Subject: [PATCH] add run_test cmd line --- .github/workflows/rpc-integration-tests.yml | 23 ++++++++++++--------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/.github/workflows/rpc-integration-tests.yml b/.github/workflows/rpc-integration-tests.yml index 5935278f53..8ed7b03c4c 100644 --- a/.github/workflows/rpc-integration-tests.yml +++ b/.github/workflows/rpc-integration-tests.yml @@ -13,6 +13,7 @@ jobs: runs-on: self-hosted env: ERIGON_DATA_DIR: /opt/erigon/datadir + RPC_TEST_DIR: /opt/rpc-test steps: - name: Check out repository @@ -39,15 +40,15 @@ jobs: # Execute the build. You can specify a specific target with "--target " run: cmake --build . --config Release --target rpcdaemon -j 2 - - name: Put Erigon ("db-producer") in paused state - run: | - response=$(curl -o /dev/null -s -w "%{http_code}\n" -X POST http://localhost:8080/production \ - -H "Content-Type: application/json" \ - -d '{"status":"paused"}') - if [ "$response" -ne 200 ]; then - echo "::error::Failed to pause Erigon, reason= $response" - exit 1 - fi + #- name: Put Erigon ("db-producer") in paused state + # run: | + # response=$(curl -o /dev/null -s -w "%{http_code}\n" -X POST http://localhost:8080/production \ + # -H "Content-Type: application/json" \ + # -d '{"status":"paused"}') + # if [ "$response" -ne 200 ]; then + # echo "::error::Failed to pause Erigon, reason= $response" + # exit 1 + # fi - name: Run SilkRpc working-directory: ${{runner.workspace}}/build/cmd @@ -58,8 +59,10 @@ jobs: - name: Run integration tests id: test_step run: | + cd $RPC_TEST_DIR/integration + # Run Erigon, send ctrl-c and check logs - python3 ./run_tests.py -c -k jwt.hex -b + python3 ./run_tests.py --continue --blockchain mainnet --jwt /jwt.hex --display-only-fail --port 8545 -x admin_,eth_mining,eth_getWork,eth_coinbase,eth_createAccessList/test_16.json # Capture monitoring script exit status monitoring_exit_status=$?