diff --git a/pants.toml b/pants.toml index 474b1f31288b..08c5170d813f 100644 --- a/pants.toml +++ b/pants.toml @@ -68,8 +68,9 @@ unmatched_build_file_globs = "error" # NB: Users must still set `--remote-cache-{read,write}` to enable the remote cache. remote_store_address = "grpcs://cache.toolchain.com:443" remote_auth_plugin = "toolchain.pants.auth.plugin:toolchain_auth_plugin" -# TODO: See https://github.com/pantsbuild/pants/issues/16096. -remote_cache_eager_fetch = true +# TODO: May cause tests which experience missing digests to hang. +# See https://github.com/pantsbuild/pants/issues/16096. +remote_cache_eager_fetch = false [anonymous-telemetry] enabled = true diff --git a/src/rust/engine/src/context.rs b/src/rust/engine/src/context.rs index a20b333f0659..47de81a01085 100644 --- a/src/rust/engine/src/context.rs +++ b/src/rust/engine/src/context.rs @@ -751,6 +751,8 @@ impl Context { if let Some(new_level) = maybe_new_level { workunit.increment_counter(Metric::BacktrackAttempts, 1); let description = &root.process.description; + // TODO: This message should likely be at `info`, or eventually, debug. + // see https://github.com/pantsbuild/pants/issues/15867 log::warn!( "Making attempt {new_level} to backtrack and retry `{description}`, due to \ missing digest {digest:?}." diff --git a/src/rust/engine/src/nodes.rs b/src/rust/engine/src/nodes.rs index 17e5db6bbae9..cf51c6022205 100644 --- a/src/rust/engine/src/nodes.rs +++ b/src/rust/engine/src/nodes.rs @@ -468,6 +468,19 @@ impl ExecuteProcess { } } + if backtrack_level > 0 { + // TODO: This message is symmetrical to the "Making attempt {} to backtrack and retry {}" + // message in `context.rs`, but both of them are effectively debug output. They should be + // quieted down as part of https://github.com/pantsbuild/pants/issues/15867 once all bugs + // have been shaken out. + log::info!( + "On backtrack attempt {} for `{}`, produced: {:?}", + backtrack_level, + request.description, + res.output_directory.digests() + ); + } + Ok(ProcessResult { result: res, backtrack_level,