From 336bd41bfeb5550608335cc93170b2dabc3e78c8 Mon Sep 17 00:00:00 2001 From: Mariusz Jasuwienas Date: Wed, 29 Apr 2026 13:02:38 +0200 Subject: [PATCH 1/4] chore: use solo instead of localnode (#5060) Signed-off-by: Mariusz Jasuwienas --- .github/relay-values.yml | 3 + .github/scripts/forward-ports.sh | 37 +++++++++ .github/workflows/erc-registry-test.yml | 49 +++++++++-- .github/workflows/migration-testing.yml | 92 +++++++++++++++++---- .github/workflows/opcode-logger-testing.yml | 46 ++++++++++- .github/workflows/test-workflow.yml | 53 ++++++++++-- .github/workflows_documentation.md | 6 +- Makefile | 14 ++-- TEST_SETUP.md | 8 +- test/README.md | 2 +- 10 files changed, 263 insertions(+), 47 deletions(-) create mode 100644 .github/relay-values.yml create mode 100755 .github/scripts/forward-ports.sh diff --git a/.github/relay-values.yml b/.github/relay-values.yml new file mode 100644 index 000000000..15c76d7ea --- /dev/null +++ b/.github/relay-values.yml @@ -0,0 +1,3 @@ +relay: + config: + DEBUG_API_ENABLED: "true" diff --git a/.github/scripts/forward-ports.sh b/.github/scripts/forward-ports.sh new file mode 100755 index 000000000..7eb7c70c7 --- /dev/null +++ b/.github/scripts/forward-ports.sh @@ -0,0 +1,37 @@ +#!/usr/bin/env bash +set -euo pipefail + +# Built-in SOLO port forwarding does not work :/ +# Port forwarding stops shortly after a one-shot Falcon start in GitHub actions. +# For this reason, we use this script to start port forwarding directly via Bash, +# instead of relying on the Node.js script. +# This approach keeps the connection stable and ensures it lasts throughout the tests. + +FORWARDS=( + "mirror-1-rest|5551" + "network-node1|50211" + "relay-1|7546" + "mirror-1-grpc|5600" +) + +ps aux | grep "port-forward" | grep kubectl | awk '{print $2}' | xargs -r kill -9 +NS="$(kubectl get ns -o name | sed 's|^namespace/||' | grep '^solo' | grep -v '^solo-setup$' | head -n1)" + +listen() { + local pod="$1" + local port="$2" + ( + while true; do + if ! ps aux | grep -F kubectl | grep -F port-forward | grep -F " ${port}:${port}" | grep -v grep >/dev/null; then + kubectl port-forward "$pod" -n "$NS" "${port}:${port}" >/dev/null 2>&1 & + fi + sleep 1 + done + ) & +} + +for row in "${FORWARDS[@]}"; do + IFS='|' read -r include port <<<"$row" + POD="$(kubectl get pods -A --no-headers | grep -E "$include" | head -n 1 | awk '{print $2}' | head -n1)" + listen "$POD" "$port" +done diff --git a/.github/workflows/erc-registry-test.yml b/.github/workflows/erc-registry-test.yml index 4babfa023..47cf82250 100644 --- a/.github/workflows/erc-registry-test.yml +++ b/.github/workflows/erc-registry-test.yml @@ -46,15 +46,54 @@ jobs: cd ${{env.INDEXER_PATH}} npm run test:unit - - name: Start the local node - run: npx hedera start -d --verbose=trace - timeout-minutes: 5 + - name: Generate falcon-values config file + run: | + cat > .github/falcon.yml < .github/initial.yml < .github/target.yml < .github/falcon.yml < .github/falcon.yml < Date: Wed, 29 Apr 2026 13:21:39 +0200 Subject: [PATCH 2/4] chore: use existing accounts (#5060) Signed-off-by: Mariusz Jasuwienas --- local.env | 4 +--- tools/erc-repository-indexer/erc-contract-indexer/local.env | 4 ++-- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/local.env b/local.env index d0251d9dc..d053a0d3a 100644 --- a/local.env +++ b/local.env @@ -1,9 +1,8 @@ - # ECSDA Account ID OPERATOR_ID_A=0.0.2 # ECDSA DER Encoded Private Key -OPERATOR_KEY_A= 302e020100300506032b65700422042091132178e72057a1d7528025956fe39b0b847f200ab59b2fdd367017f3087137 +OPERATOR_KEY_A=302e020100300506032b65700422042091132178e72057a1d7528025956fe39b0b847f200ab59b2fdd367017f3087137 # ECDSA HEX Encoded Private Key PRIVATE_KEYS= @@ -16,4 +15,3 @@ PRIVATE_KEYS= RETRY_DELAY=3000 # ms MAX_RETRY=5 - diff --git a/tools/erc-repository-indexer/erc-contract-indexer/local.env b/tools/erc-repository-indexer/erc-contract-indexer/local.env index c4c7a90ce..5377edb78 100644 --- a/tools/erc-repository-indexer/erc-contract-indexer/local.env +++ b/tools/erc-repository-indexer/erc-contract-indexer/local.env @@ -1,5 +1,5 @@ HEDERA_NETWORK=local-node MIRROR_NODE_URL=http://127.0.0.1:5551 MIRROR_NODE_URL_WEB3=http://127.0.0.1:8545 -SDK_OPERATOR_ID=0.0.1022 -SDK_OPERATOR_KEY=302e020100300506032b657004220420a608e2130a0a3cb34f86e757303c862bee353d9ab77ba4387ec084f881d420d4 +SDK_OPERATOR_ID=0.0.2 +SDK_OPERATOR_KEY=302e020100300506032b65700422042091132178e72057a1d7528025956fe39b0b847f200ab59b2fdd367017f3087137 From 053ba61fe87df4ad3f5963462b5286e00f1b0702 Mon Sep 17 00:00:00 2001 From: Mariusz Jasuwienas Date: Wed, 29 Apr 2026 13:31:26 +0200 Subject: [PATCH 3/4] chore: use correct version - same as were in local node (#5060) Signed-off-by: Mariusz Jasuwienas --- .github/workflows/erc-registry-test.yml | 7 ++++--- .github/workflows/opcode-logger-testing.yml | 7 ++++--- .github/workflows/test-workflow.yml | 8 ++++---- 3 files changed, 12 insertions(+), 10 deletions(-) diff --git a/.github/workflows/erc-registry-test.yml b/.github/workflows/erc-registry-test.yml index 47cf82250..8083af227 100644 --- a/.github/workflows/erc-registry-test.yml +++ b/.github/workflows/erc-registry-test.yml @@ -50,11 +50,11 @@ jobs: run: | cat > .github/falcon.yml < .github/falcon.yml < .github/falcon.yml < Date: Wed, 29 Apr 2026 13:40:40 +0200 Subject: [PATCH 4/4] chore: use correct version - same as were in local node (#5060) Signed-off-by: Mariusz Jasuwienas --- .github/workflows/erc-registry-test.yml | 2 +- .github/workflows/migration-testing.yml | 4 ++-- .github/workflows/opcode-logger-testing.yml | 2 +- .github/workflows/test-workflow.yml | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/erc-registry-test.yml b/.github/workflows/erc-registry-test.yml index 8083af227..9d0a23b3f 100644 --- a/.github/workflows/erc-registry-test.yml +++ b/.github/workflows/erc-registry-test.yml @@ -69,7 +69,7 @@ jobs: --enable-ingress: true relayNode: --node-aliases: "node1" - --relay-version: "v0.75.0" + --relay-release: "v0.75.0" --values-file: ".github/relay-values.yml" EOF diff --git a/.github/workflows/migration-testing.yml b/.github/workflows/migration-testing.yml index 9cecaa634..5ce122177 100644 --- a/.github/workflows/migration-testing.yml +++ b/.github/workflows/migration-testing.yml @@ -97,7 +97,7 @@ jobs: --enable-ingress: true relayNode: --node-aliases: "node1" - --relay-version: "${{ inputs.initialRelayTag }}" + --relay-release: "${{ inputs.initialRelayTag }}" --values-file: ".github/relay-values.yml" EOF cat > .github/target.yml <