From c697129ea6fd139badad90326fc2bd048143a707 Mon Sep 17 00:00:00 2001 From: andrussal Date: Sun, 7 Dec 2025 04:14:30 +0100 Subject: [PATCH] Compose: force INFO logs for runner and nodes in CI --- .github/workflows/lint.yml | 3 ++- testing-framework/runners/compose/src/compose.rs | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index b065cde..9975ad3 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -369,8 +369,9 @@ jobs: COMPOSE_RUNNER_HOST: "127.0.0.1" RUST_BACKTRACE: "1" NOMOS_TESTS_TRACING: "true" - NOMOS_LOG_DIR: "${{ github.workspace }}/.tmp/compose-logs" + RUST_LOG: "info" NOMOS_LOG_LEVEL: "info" + NOMOS_LOG_DIR: "${{ github.workspace }}/.tmp/compose-logs" run: | mkdir -p "$TMPDIR" cargo run -p runner-examples --bin compose_runner -- --nocapture diff --git a/testing-framework/runners/compose/src/compose.rs b/testing-framework/runners/compose/src/compose.rs index 327f415..266e6b9 100644 --- a/testing-framework/runners/compose/src/compose.rs +++ b/testing-framework/runners/compose/src/compose.rs @@ -522,8 +522,12 @@ fn build_nodes( fn base_environment(cfgsync_port: u16) -> Vec { let pol_mode = std::env::var("POL_PROOF_DEV_MODE").unwrap_or_else(|_| "true".to_string()); + 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()); vec![ EnvEntry::new("POL_PROOF_DEV_MODE", pol_mode), + EnvEntry::new("RUST_LOG", rust_log), + EnvEntry::new("NOMOS_LOG_LEVEL", nomos_log_level), EnvEntry::new( "CFG_SERVER_ADDR", format!("http://host.docker.internal:{cfgsync_port}"),