From 87816c2eb71033160040d8284664d76ae8d5b5cb Mon Sep 17 00:00:00 2001 From: andrussal Date: Mon, 8 Dec 2025 03:49:58 +0100 Subject: [PATCH] Compose: align KZG path to pol/proving_key.zkey everywhere --- .github/workflows/lint.yml | 2 +- .../assets/stack/scripts/run_nomos_executor.sh | 2 +- testing-framework/assets/stack/scripts/run_nomos_node.sh | 2 +- testing-framework/core/src/scenario/cfgsync.rs | 6 +++--- testing-framework/runners/compose/src/compose.rs | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index d18c175..c20abfd 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -373,7 +373,7 @@ jobs: NOMOS_TESTNET_IMAGE: ${{ env.NOMOS_TESTNET_IMAGE }} COMPOSE_RUNNER_HOST: "127.0.0.1" NOMOS_TIME_BACKEND: "monotonic" - NOMOS_KZGRS_PARAMS_PATH: "/kzgrs_test_params/kzgrs_test_params" + NOMOS_KZGRS_PARAMS_PATH: "/kzgrs_test_params/pol/proving_key.zkey" RUST_BACKTRACE: "1" NOMOS_TESTS_TRACING: "true" RUST_LOG: "info" diff --git a/testing-framework/assets/stack/scripts/run_nomos_executor.sh b/testing-framework/assets/stack/scripts/run_nomos_executor.sh index 46f98d9..4b510a1 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:-/kzgrs_test_params/kzgrs_test_params}" \ + NOMOS_KZGRS_PARAMS_PATH="${NOMOS_KZGRS_PARAMS_PATH:-/kzgrs_test_params/pol/proving_key.zkey}" \ NOMOS_TIME_BACKEND="${NOMOS_TIME_BACKEND:-monotonic}" \ 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 2d95189..36ccb22 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:-/kzgrs_test_params/kzgrs_test_params}" \ + NOMOS_KZGRS_PARAMS_PATH="${NOMOS_KZGRS_PARAMS_PATH:-/kzgrs_test_params/pol/proving_key.zkey}" \ NOMOS_TIME_BACKEND="${NOMOS_TIME_BACKEND:-monotonic}" \ LOG_LEVEL="INFO" \ POL_PROOF_DEV_MODE="${POL_PROOF_DEV_MODE:-true}" diff --git a/testing-framework/core/src/scenario/cfgsync.rs b/testing-framework/core/src/scenario/cfgsync.rs index 7c9f98f..9fa1bb5 100644 --- a/testing-framework/core/src/scenario/cfgsync.rs +++ b/testing-framework/core/src/scenario/cfgsync.rs @@ -90,9 +90,9 @@ pub fn apply_topology_overrides( cfg.old_blobs_check_interval = da.old_blobs_check_interval; cfg.blobs_validity_duration = da.blobs_validity_duration; cfg.global_params_path = if use_kzg_mount { - // Compose mounts the bundle at /kzgrs_test_params; the raw KZG params file is - // at the root. - "/kzgrs_test_params/kzgrs_test_params".into() + // Compose mounts the bundle at /kzgrs_test_params; the proving key lives under + // pol/. + "/kzgrs_test_params/pol/proving_key.zkey".into() } else { da.global_params_path.clone() }; diff --git a/testing-framework/runners/compose/src/compose.rs b/testing-framework/runners/compose/src/compose.rs index 9113132..99f4d1b 100644 --- a/testing-framework/runners/compose/src/compose.rs +++ b/testing-framework/runners/compose/src/compose.rs @@ -527,7 +527,7 @@ fn base_environment(cfgsync_port: u16) -> Vec { let nomos_log_level = std::env::var("NOMOS_LOG_LEVEL").unwrap_or_else(|_| "info".to_string()); let time_backend = std::env::var("NOMOS_TIME_BACKEND").unwrap_or_else(|_| "monotonic".into()); let kzg_path = std::env::var("NOMOS_KZGRS_PARAMS_PATH") - .unwrap_or_else(|_| String::from("/kzgrs_test_params/kzgrs_test_params")); + .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),