Skip to content

Commit

Permalink
add run_test cmd line
Browse files Browse the repository at this point in the history
  • Loading branch information
mriccobene committed Feb 5, 2024
1 parent 12e995e commit 5681a90
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions .github/workflows/rpc-integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -39,15 +40,15 @@ jobs:
# Execute the build. You can specify a specific target with "--target <NAME>"
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
Expand All @@ -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 <chain>
python3 ./run_tests.py --continue --blockchain mainnet --jwt <your_silkworm_dir>/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=$?
Expand Down

0 comments on commit 5681a90

Please sign in to comment.