diff --git a/crates/turborepo-lib/src/config/mod.rs b/crates/turborepo-lib/src/config/mod.rs index 1c35949bbef33..0e1ae724956e8 100644 --- a/crates/turborepo-lib/src/config/mod.rs +++ b/crates/turborepo-lib/src/config/mod.rs @@ -14,6 +14,7 @@ use miette::{Diagnostic, NamedSource, SourceSpan}; use serde::Deserialize; use struct_iterable::Iterable; use thiserror::Error; +use tracing::debug; use turbo_json::TurboJsonReader; use turbopath::{AbsoluteSystemPath, AbsoluteSystemPathBuf}; use turborepo_errors::TURBO_SITE; @@ -329,6 +330,15 @@ impl ConfigurationOptions { } pub fn daemon(&self) -> Option { + // hardcode to off in CI + if turborepo_ci::is_ci() { + if Some(true) == self.daemon { + debug!("Ignoring daemon setting and disabling the daemon because we're in CI"); + } + + return Some(false); + } + self.daemon } diff --git a/docs/repo-docs/reference/configuration.mdx b/docs/repo-docs/reference/configuration.mdx index ab49e577a302a..e441112d01f99 100644 --- a/docs/repo-docs/reference/configuration.mdx +++ b/docs/repo-docs/reference/configuration.mdx @@ -141,6 +141,10 @@ Turborepo runs a background process to pre-calculate some expensive operations. } ``` + + When running in a CI environment the daemon is always disabled regardless of this setting. + + ### `envMode` Default: `"strict"`