From 234f0de80e94800a7d2f281456ec536ec271c260 Mon Sep 17 00:00:00 2001 From: andrussal Date: Sun, 7 Dec 2025 08:17:16 +0100 Subject: [PATCH] Fix compose KZG default path --- .github/workflows/lint.yml | 5 +++-- testing-framework/assets/stack/scripts/run_nomos_executor.sh | 2 +- testing-framework/assets/stack/scripts/run_nomos_node.sh | 2 +- testing-framework/runners/compose/src/compose.rs | 2 +- 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 70857c7..68cc0c6 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -375,8 +375,9 @@ jobs: run: | mkdir -p "$TMPDIR" # Pre-flight: ensure KZG params exist where compose will mount them. - if [ ! -f testing-framework/assets/stack/kzgrs_test_params/proving_key.zkey ]; then - echo "KZG params missing at testing-framework/assets/stack/kzgrs_test_params/proving_key.zkey" >&2 + KZG_FILE=testing-framework/assets/stack/kzgrs_test_params/pol/proving_key.zkey + if [ ! -f "$KZG_FILE" ]; then + echo "KZG params missing at $KZG_FILE" >&2 ls -l testing-framework/assets/stack/kzgrs_test_params || true exit 1 fi diff --git a/testing-framework/assets/stack/scripts/run_nomos_executor.sh b/testing-framework/assets/stack/scripts/run_nomos_executor.sh index cbf62d8..982268f 100755 --- a/testing-framework/assets/stack/scripts/run_nomos_executor.sh +++ b/testing-framework/assets/stack/scripts/run_nomos_executor.sh @@ -7,7 +7,7 @@ export CFG_FILE_PATH="/config.yaml" \ CFG_HOST_IP=$(hostname -i) \ CFG_HOST_KIND="${CFG_HOST_KIND:-executor}" \ CFG_HOST_IDENTIFIER="${CFG_HOST_IDENTIFIER:-executor-$(hostname -i)}" \ - NOMOS_KZGRS_PARAMS_PATH="${NOMOS_KZGRS_PARAMS_PATH:-/opt/circuits/kzgrs_test_params/proving_key.zkey}" \ + NOMOS_KZGRS_PARAMS_PATH="${NOMOS_KZGRS_PARAMS_PATH:-/opt/circuits/kzgrs_test_params/pol/proving_key.zkey}" \ LOG_LEVEL="INFO" \ POL_PROOF_DEV_MODE="${POL_PROOF_DEV_MODE:-true}" diff --git a/testing-framework/assets/stack/scripts/run_nomos_node.sh b/testing-framework/assets/stack/scripts/run_nomos_node.sh index bf4954f..231e260 100755 --- a/testing-framework/assets/stack/scripts/run_nomos_node.sh +++ b/testing-framework/assets/stack/scripts/run_nomos_node.sh @@ -7,7 +7,7 @@ export CFG_FILE_PATH="/config.yaml" \ CFG_HOST_IP=$(hostname -i) \ CFG_HOST_KIND="${CFG_HOST_KIND:-validator}" \ CFG_HOST_IDENTIFIER="${CFG_HOST_IDENTIFIER:-validator-$(hostname -i)}" \ - NOMOS_KZGRS_PARAMS_PATH="${NOMOS_KZGRS_PARAMS_PATH:-/opt/circuits/kzgrs_test_params/proving_key.zkey}" \ + NOMOS_KZGRS_PARAMS_PATH="${NOMOS_KZGRS_PARAMS_PATH:-/opt/circuits/kzgrs_test_params/pol/proving_key.zkey}" \ LOG_LEVEL="INFO" \ POL_PROOF_DEV_MODE="${POL_PROOF_DEV_MODE:-true}" diff --git a/testing-framework/runners/compose/src/compose.rs b/testing-framework/runners/compose/src/compose.rs index 9b44cd7..d979354 100644 --- a/testing-framework/runners/compose/src/compose.rs +++ b/testing-framework/runners/compose/src/compose.rs @@ -526,7 +526,7 @@ fn base_environment(cfgsync_port: u16) -> Vec { let rust_log = std::env::var("RUST_LOG").unwrap_or_else(|_| "info".to_string()); let nomos_log_level = std::env::var("NOMOS_LOG_LEVEL").unwrap_or_else(|_| "info".to_string()); let kzg_path = std::env::var("NOMOS_KZGRS_PARAMS_PATH") - .unwrap_or_else(|_| String::from("/kzgrs_test_params/proving_key.zkey")); + .unwrap_or_else(|_| String::from("/kzgrs_test_params/pol/proving_key.zkey")); vec![ EnvEntry::new("POL_PROOF_DEV_MODE", pol_mode), EnvEntry::new("RUST_LOG", rust_log),