From 9af0102aefa57f3779a00617c9eb8fd8fbd827a4 Mon Sep 17 00:00:00 2001 From: Daniil Polyakov Date: Wed, 8 Apr 2026 00:09:28 +0300 Subject: [PATCH] debug: play with hostname --- .github/workflows/ci.yml | 6 +++--- bedrock/scripts/run_logos_blockchain_node.sh | 11 +++++++++-- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 045a5c26..23e32e1c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -124,7 +124,7 @@ jobs: run: rustup install - name: Install nextest - run: cargo install --locked cargo-nextest + run: cargo install --locked cargo-nextest --version 0.9.132 - name: Run tests env: @@ -152,7 +152,7 @@ jobs: run: rustup install - name: Install nextest - run: cargo install --locked cargo-nextest + run: cargo install --locked cargo-nextest --version 0.9.132 - name: Run tests env: @@ -193,7 +193,7 @@ jobs: env: RISC0_DEV_MODE: "1" RUST_LOG: "debug" - run: cargo nextest run -p integration_tests indexer -- indexer_test_run + run: cargo nextest run -p integration_tests -E 'test(indexer_test_run)' --test-threads=1 - name: Debug Docker state on failure if: failure() diff --git a/bedrock/scripts/run_logos_blockchain_node.sh b/bedrock/scripts/run_logos_blockchain_node.sh index e318ab4a..f2175b00 100755 --- a/bedrock/scripts/run_logos_blockchain_node.sh +++ b/bedrock/scripts/run_logos_blockchain_node.sh @@ -2,10 +2,17 @@ set -e +# `hostname -i` may return multiple addresses (IPv4 + IPv6) on newer runners. +# cfgsync expects a single, stable host identifier, so pick the first IPv4. +HOST_IP="$(hostname -i | tr ' ' '\n' | grep -E '^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+$' | head -n1)" +if [ -z "$HOST_IP" ]; then + HOST_IP="$(hostname -i | awk '{print $1}')" +fi + export CFG_FILE_PATH="/config.yaml" \ CFG_SERVER_ADDR="http://cfgsync:4400" \ - CFG_HOST_IP=$(hostname -i) \ - CFG_HOST_IDENTIFIER="validator-$(hostname -i)" \ + CFG_HOST_IP="$HOST_IP" \ + CFG_HOST_IDENTIFIER="validator-$HOST_IP" \ LOG_LEVEL="INFO" \ POL_PROOF_DEV_MODE=true