From 22e89285cae00dab336a5e90e275c5f005936299 Mon Sep 17 00:00:00 2001 From: andrussal Date: Fri, 5 Dec 2025 02:40:01 +0100 Subject: [PATCH] Create recovery dir for local validator/executor temp runs --- testing-framework/core/src/nodes/executor.rs | 3 +++ testing-framework/core/src/nodes/validator.rs | 3 +++ 2 files changed, 6 insertions(+) diff --git a/testing-framework/core/src/nodes/executor.rs b/testing-framework/core/src/nodes/executor.rs index 1088626..08d7b28 100644 --- a/testing-framework/core/src/nodes/executor.rs +++ b/testing-framework/core/src/nodes/executor.rs @@ -146,6 +146,9 @@ impl Executor { let config_path = dir.path().join("executor.yaml"); let file = std::fs::File::create(&config_path).unwrap(); + // Ensure recovery directory exists so services that persist state do not fail. + let _ = std::fs::create_dir_all(dir.path().join("recovery")); + if !*IS_DEBUG_TRACING { if let Ok(env_dir) = std::env::var("NOMOS_LOG_DIR") { let log_dir = PathBuf::from(env_dir); diff --git a/testing-framework/core/src/nodes/validator.rs b/testing-framework/core/src/nodes/validator.rs index 14d571f..f7264e3 100644 --- a/testing-framework/core/src/nodes/validator.rs +++ b/testing-framework/core/src/nodes/validator.rs @@ -173,6 +173,9 @@ impl Validator { let config_path = dir.path().join("validator.yaml"); let file = std::fs::File::create(&config_path).unwrap(); + // Ensure recovery directory exists so services that persist state do not fail. + let _ = std::fs::create_dir_all(dir.path().join("recovery")); + if !*IS_DEBUG_TRACING { if let Ok(env_dir) = std::env::var("NOMOS_LOG_DIR") { let log_dir = PathBuf::from(env_dir);