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, }