mirror of
https://github.com/logos-blockchain/lssa.git
synced 2026-04-11 21:53:48 +00:00
debug: play with hostname
This commit is contained in:
parent
90d65dfc41
commit
9af0102aef
6
.github/workflows/ci.yml
vendored
6
.github/workflows/ci.yml
vendored
@ -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()
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user