debug: play with hostname

This commit is contained in:
Daniil Polyakov 2026-04-08 00:09:28 +03:00
parent 90d65dfc41
commit 9af0102aef
2 changed files with 12 additions and 5 deletions

View File

@ -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()

View File

@ -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