From 714b85f324179c2d52f21d6ebace84d9d8937764 Mon Sep 17 00:00:00 2001 From: Freddie Ridell Date: Mon, 16 Mar 2026 23:18:34 +0000 Subject: [PATCH] docs: add help text to TimeoutConfig struct and fields --- crates/bough-cli/src/config.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/crates/bough-cli/src/config.rs b/crates/bough-cli/src/config.rs index 467d01ad..11c374ad 100644 --- a/crates/bough-cli/src/config.rs +++ b/crates/bough-cli/src/config.rs @@ -275,11 +275,17 @@ pub struct PhaseOverrides { pub timeout: Option, } +/// Timeout limits for a phase command. At least one of `absolute` or `relative` +/// must be set when the timeout section is present. #[derive(Facet, Debug, Clone)] pub struct TimeoutConfig { + /// Hard cap in seconds. The command is killed after this duration regardless + /// of anything else. #[facet(default)] pub absolute: Option, + /// Multiplier applied to the baseline test duration. E.g. `3.0` means + /// "allow up to 3× the unmutated test time". #[facet(default)] pub relative: Option, } -- knotmirror 0.0.1