Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/qa-rpc-integration-tests-clients.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ jobs:
ERIGON_QA_PATH: /home/qarunner/erigon-qa
RPC_PAST_TEST_DIR: /opt/rpc-past-tests
CHAIN: mainnet
RPC_VERSION: v2.4.0

steps:
- name: Check out repository
Expand All @@ -53,7 +54,7 @@ jobs:
uses: actions/cache@v5
with:
path: ${{ runner.workspace }}/rpc-tests
key: rpc-tests-${{ runner.os }}-${{ runner.arch }}-v2.4.0
key: rpc-tests-${{ runner.os }}-${{ runner.arch }}-${{ env.RPC_VERSION }}
Comment thread
lupin012 marked this conversation as resolved.

- name: Run RPC Integration Tests
id: test_step
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/qa-rpc-integration-tests-gnosis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ jobs:
ERIGON_ASSERT: true
RPC_PAST_TEST_DIR: /opt/rpc-past-tests
CHAIN: gnosis
RPC_VERSION: v2.8.1

steps:
- name: Check out repository
Expand Down Expand Up @@ -73,7 +74,7 @@ jobs:
uses: actions/cache@v5
with:
path: ${{ runner.workspace }}/rpc-tests
key: rpc-tests-${{ runner.os }}-${{ runner.arch }}-v2.8.1
key: rpc-tests-${{ runner.os }}-${{ runner.arch }}-${{ env.RPC_VERSION }}
Comment thread
lupin012 marked this conversation as resolved.

- name: Run RPC Integration Tests
id: test_step
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/qa-rpc-integration-tests-latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ jobs:
ERIGON_ASSERT: true
RPC_PAST_TEST_DIR: /opt/rpc-past-tests
CHAIN: mainnet
RPC_VERSION: v2.8.1

steps:
- name: Check out repository
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/qa-rpc-integration-tests-remote.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ jobs:
ERIGON_ASSERT: true
RPC_PAST_TEST_DIR: /opt/rpc-past-tests/remote
CHAIN: mainnet
RPC_VERSION: v2.8.1

steps:
- name: Check out repository
Expand Down Expand Up @@ -140,7 +141,7 @@ jobs:
uses: actions/cache@v5
with:
path: ${{ runner.workspace }}/rpc-tests
key: rpc-tests-${{ runner.os }}-${{ runner.arch }}-v1.121.0
key: rpc-tests-${{ runner.os }}-${{ runner.arch }}-${{ env.RPC_VERSION }}
Comment thread
lupin012 marked this conversation as resolved.

- name: Run RPC Integration Tests
id: test_step
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/qa-rpc-integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ jobs:
ERIGON_ASSERT: true
RPC_PAST_TEST_DIR: /opt/rpc-past-tests
CHAIN: mainnet
RPC_VERSION: v2.8.1
Copy link

Copilot AI Apr 26, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This workflow introduces RPC_VERSION: v2.8.1 as a hardcoded value, which still requires manual bumps to invalidate caches. Given the PR intent to auto-invalidate via script hash, consider removing the need for this hardcoded value by basing the cache key on hashFiles(...) (and only keeping RPC_VERSION if it is independently needed to select the rpc-tests ref).

Copilot uses AI. Check for mistakes.

steps:
- name: Check out repository
Expand Down Expand Up @@ -73,7 +74,7 @@ jobs:
uses: actions/cache@v5
with:
path: ${{ runner.workspace }}/rpc-tests
key: rpc-tests-${{ runner.os }}-${{ runner.arch }}-v2.8.1
key: rpc-tests-${{ runner.os }}-${{ runner.arch }}-${{ env.RPC_VERSION }}
Comment thread
lupin012 marked this conversation as resolved.

- name: Run RPC Integration Tests
id: test_step
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/qa-sync-from-scratch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ jobs:
TOTAL_TIME_SECONDS: ${{ matrix.total_time_seconds || 43200 }} # 12 hours
CHAIN: ${{ matrix.chain }}
ERIGON_ASSERT: true
RPC_VERSION: v2.8.1

steps:
- name: Check out repository
Expand Down Expand Up @@ -143,7 +144,7 @@ jobs:
uses: actions/cache@v5
with:
path: ${{ runner.workspace }}/rpc-tests
key: rpc-tests-${{ runner.os }}-${{ runner.arch }}-v2.4.0
key: rpc-tests-${{ runner.os }}-${{ runner.arch }}-${{ env.RPC_VERSION }}
Comment thread
lupin012 marked this conversation as resolved.

- name: Run RPC Integration Tests
id: rpc_test_step
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/scripts/run_rpc_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
set -e # Enable exit on error

# Sanity check for mandatory parameters
if [ -z "$1" ] || [ -z "$2" ]; then
if [ -z "$1" ]; then
echo "Usage: $0 <CHAIN> <RPC_VERSION> [DISABLED_TESTS] [WORKSPACE] [RESULT_DIR] [TESTS_TYPE] [REFERENCE_HOST] [COMPARE_ERROR_MESSAGE] [DUMP_RESPONSE]"
echo
echo " CHAIN: The chain identifier (possible values: mainnet, gnosis, polygon)"
Expand All @@ -17,6 +17,10 @@ if [ -z "$1" ] || [ -z "$2" ]; then
echo
exit 1
fi
if [ -z "$2" ]; then
echo "Error: RPC_VERSION is not set — export RPC_VERSION=<tag> before running (e.g. vX.Y.Z)"
exit 1
fi

CHAIN="$1"
RPC_VERSION="$2"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/scripts/run_rpc_tests_ethereum.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,4 @@ DISABLED_TEST_LIST=(
DISABLED_TESTS=$(IFS=,; echo "${DISABLED_TEST_LIST[*]}")

# Call the main test runner script with the required and optional parameters
"$(dirname "$0")/run_rpc_tests.sh" mainnet v2.8.1 "$DISABLED_TESTS" "$WORKSPACE" "$RESULT_DIR"
"$(dirname "$0")/run_rpc_tests.sh" mainnet "$RPC_VERSION" "$DISABLED_TESTS" "$WORKSPACE" "$RESULT_DIR"
Comment thread
lupin012 marked this conversation as resolved.
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ DISABLED_TEST_LIST=(
DISABLED_TESTS=$(IFS=,; echo "${DISABLED_TEST_LIST[*]}")

# Call the main test runner script with the required and optional parameters
"$(dirname "$0")/run_rpc_tests.sh" mainnet v2.8.1 "$DISABLED_TESTS" "$WORKSPACE" "$RESULT_DIR" "latest" "$REFERENCE_HOST" "do-not-compare-error-message" "$DUMP_RESPONSE"
"$(dirname "$0")/run_rpc_tests.sh" mainnet "$RPC_VERSION" "$DISABLED_TESTS" "$WORKSPACE" "$RESULT_DIR" "latest" "$REFERENCE_HOST" "do-not-compare-error-message" "$DUMP_RESPONSE"
Comment thread
lupin012 marked this conversation as resolved.
2 changes: 1 addition & 1 deletion .github/workflows/scripts/run_rpc_tests_geth.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ DISABLED_TESTS=$(IFS=,; echo "${DISABLED_TEST_LIST[*]}")

Comment thread
lupin012 marked this conversation as resolved.
# Call the main test runner script with the required and optional parameters
# Use do-not-compare-error-message since Geth error messages differ from Erigon
"$(dirname "$0")/run_rpc_tests.sh" mainnet v2.4.0 "$DISABLED_TESTS" "$WORKSPACE" "$RESULT_DIR" "" "" "do-not-compare-error-message"
"$(dirname "$0")/run_rpc_tests.sh" mainnet "$RPC_VERSION" "$DISABLED_TESTS" "$WORKSPACE" "$RESULT_DIR" "" "" "do-not-compare-error-message"
2 changes: 1 addition & 1 deletion .github/workflows/scripts/run_rpc_tests_gnosis.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ DISABLED_TEST_LIST=(
DISABLED_TESTS=$(IFS=,; echo "${DISABLED_TEST_LIST[*]}")

# Call the main test runner script with the required and optional parameters
"$(dirname "$0")/run_rpc_tests.sh" gnosis v2.8.1 "$DISABLED_TESTS" "$WORKSPACE" "$RESULT_DIR"
"$(dirname "$0")/run_rpc_tests.sh" gnosis "$RPC_VERSION" "$DISABLED_TESTS" "$WORKSPACE" "$RESULT_DIR"
Comment thread
lupin012 marked this conversation as resolved.

2 changes: 1 addition & 1 deletion .github/workflows/scripts/run_rpc_tests_nethermind.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,4 @@ DISABLED_TESTS=$(IFS=,; echo "${DISABLED_TEST_LIST[*]}")

# Call the main test runner script with the required and optional parameters
# Use do-not-compare-error-message since Nethermind error messages differ from Erigon
"$(dirname "$0")/run_rpc_tests.sh" mainnet v2.4.0 "$DISABLED_TESTS" "$WORKSPACE" "$RESULT_DIR" "" "" "do-not-compare-error-message"
"$(dirname "$0")/run_rpc_tests.sh" mainnet "$RPC_VERSION" "$DISABLED_TESTS" "$WORKSPACE" "$RESULT_DIR" "" "" "do-not-compare-error-message"
Comment thread
lupin012 marked this conversation as resolved.
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ DISABLED_TEST_LIST=(
DISABLED_TESTS=$(IFS=,; echo "${DISABLED_TEST_LIST[*]}")

# Call the main test runner script with the required and optional parameters
"$(dirname "$0")/run_rpc_tests.sh" mainnet v2.8.1 "$DISABLED_TESTS" "$WORKSPACE" "$RESULT_DIR"
"$(dirname "$0")/run_rpc_tests.sh" mainnet "$RPC_VERSION" "$DISABLED_TESTS" "$WORKSPACE" "$RESULT_DIR"
Comment thread
lupin012 marked this conversation as resolved.
Loading