From 180f2a0af46d43f0324d9db4e5d1ad5b086b0402 Mon Sep 17 00:00:00 2001 From: wan9chi Date: Mon, 21 Sep 2026 18:35:32 +0800 Subject: [PATCH] refactor(cache): expose remote cache settings in plan snapshots Co-authored-by: GPT-6 --- Cargo.lock | 286 ++++++++++++++++++ Cargo.toml | 1 + crates/vt_graph/src/config/mod.rs | 7 +- crates/vt_plan/Cargo.toml | 1 + crates/vt_plan/src/cache_metadata.rs | 8 +- crates/vt_plan/src/lib.rs | 1 + crates/vt_plan/src/plan.rs | 2 + crates/vt_plan/src/remote_cache.rs | 22 ++ ...ery_tool_synthetic_task_in_user_task.jsonc | 3 +- .../additional_env/snapshots/task_graph.md | 2 + ...query___cache_enables_script_caching.jsonc | 3 +- ...ching_even_when_cache_tasks_is_false.jsonc | 3 +- ..._per_task_cache_true_enables_caching.jsonc | 3 +- .../snapshots/task_graph.md | 4 + .../query_echo_and_lint_with_extra_args.jsonc | 3 +- .../query_lint_and_echo_with_extra_args.jsonc | 3 +- .../query_normal_task_with_extra_args.jsonc | 3 +- .../query_synthetic_task_in_user_task.jsonc | 3 +- ...synthetic_task_in_user_task_with_cwd.jsonc | 3 +- ...ic_task_with_extra_args_in_user_task.jsonc | 3 +- .../cache_keys/snapshots/task_graph.md | 4 + .../snapshots/task_graph.md | 2 + .../snapshots/task_graph.md | 2 + ...query_another_task_cached_by_default.jsonc | 3 +- .../query_task_cached_by_default.jsonc | 3 +- .../snapshots/task_graph.md | 3 + .../cache_sharing/snapshots/task_graph.md | 3 + .../cache_subcommand/snapshots/task_graph.md | 1 + .../snapshots/task_graph.md | 3 + ...script_cached_when_global_cache_true.jsonc | 3 +- ...y_task_cached_when_global_cache_true.jsonc | 3 +- .../snapshots/task_graph.md | 2 + ..._should_put_synthetic_task_under_cwd.jsonc | 3 +- ..._should_not_affect_expanded_task_cwd.jsonc | 3 +- .../cd_in_scripts/snapshots/task_graph.md | 3 + .../snapshots/task_graph.md | 23 ++ .../conflict_test/snapshots/task_graph.md | 3 + .../cycle_dependency/snapshots/task_graph.md | 2 + .../snapshots/task_graph.md | 2 + .../snapshots/task_graph.md | 2 + .../snapshots/task_graph.md | 8 + .../snapshots/task_graph.md | 10 + ...extra_args_only_reach_requested_task.jsonc | 6 +- .../snapshots/task_graph.md | 2 + .../filter_workspace/snapshots/task_graph.md | 13 + .../snapshots/task_graph.md | 1 + .../snapshots/task_graph.md | 1 + ...d___cache_enables_inner_task_caching.jsonc | 3 +- ...opagates_to_nested_run_without_flags.jsonc | 3 +- ...es_not_propagate_into_nested___cache.jsonc | 3 +- .../snapshots/task_graph.md | 4 + .../nested_tasks/snapshots/task_graph.md | 2 + .../snapshots/task_graph.md | 3 + .../snapshots/task_graph.md | 10 + .../snapshots/task_graph.md | 1 + .../snapshots/task_graph.md | 5 + .../snapshots/task_graph.md | 1 + .../snapshots/task_graph.md | 1 + .../snapshots/task_graph.md | 8 + .../script_hooks/snapshots/task_graph.md | 6 + .../snapshots/task_graph.md | 3 + .../snapshots/task_graph.md | 4 + .../snapshots/task_graph.md | 2 + ...uery_shell_fallback_for_pipe_command.jsonc | 3 +- .../shell_fallback/snapshots/task_graph.md | 1 + ...does_not_affect_expanded_query_tasks.jsonc | 3 +- ..._not_affect_expanded_synthetic_cache.jsonc | 3 +- ..._untrackedEnv_inherited_by_synthetic.jsonc | 3 +- ...h_cache_true_enables_synthetic_cache.jsonc | 3 +- .../snapshots/task_graph.md | 5 + .../query_synthetic_in_subpackage.jsonc | 3 +- .../snapshots/task_graph.md | 2 + .../snapshots/query_array_cd.jsonc | 9 +- .../snapshots/query_array_shorthand.jsonc | 9 +- .../query_array_unbalanced_quotes.jsonc | 6 +- .../snapshots/query_array_with_and.jsonc | 9 +- .../snapshots/query_nested_vt_array.jsonc | 6 +- .../query_object_array_depends_on.jsonc | 12 +- .../snapshots/query_string_shorthand.jsonc | 3 +- .../snapshots/task_graph.md | 7 + .../snapshots/task_graph.md | 3 + .../vpr_shorthand/snapshots/task_graph.md | 2 + .../query_dev_filter_from_root.jsonc | 3 +- .../snapshots/query_dev_in_subpackage.jsonc | 3 +- .../snapshots/task_graph.md | 1 + .../snapshots/task_graph.md | 2 + .../snapshots/task_graph.md | 4 + .../snapshots/task_graph.md | 2 + .../snapshots/task_graph.md | 4 + .../snapshots/task_graph.md | 2 + .../snapshots/task_graph.md | 3 + 91 files changed, 599 insertions(+), 54 deletions(-) create mode 100644 crates/vt_plan/src/remote_cache.rs diff --git a/Cargo.lock b/Cargo.lock index 4d24824df..a90d9c480 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1018,6 +1018,17 @@ dependencies = [ "objc2", ] +[[package]] +name = "displaydoc" +version = "0.2.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c6232dd377dcc64799954cbd3a9bb882e9cdc1308ccd87b1c098f1fb2eaf82a8" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.6", +] + [[package]] name = "document-features" version = "0.2.12" @@ -1221,6 +1232,15 @@ version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "77ce24cb58228fbb8aa041425bb1050850ac19177686ea6e0f41a70416f56fdb" +[[package]] +name = "form_urlencoded" +version = "1.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cb4cb245038516f5f85277875cdaa4f7d2c9a0fa0468de06ed190163b1581fcf" +dependencies = [ + "percent-encoding", +] + [[package]] name = "fsevent-sys" version = "4.1.0" @@ -1710,6 +1730,89 @@ dependencies = [ "typenum", ] +[[package]] +name = "icu_collections" +version = "2.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fa68d21081c4a05d5a901a1c62add574c77048b6a1c67be3b50ce0b60d4ca513" +dependencies = [ + "displaydoc", + "potential_utf", + "utf8_iter", + "yoke", + "zerofrom", + "zerovec", +] + +[[package]] +name = "icu_locale_core" +version = "2.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d56e28588da92eee5c3201a6eff33fabdd49b62269c8938d4ff050ce4d900deb" +dependencies = [ + "displaydoc", + "litemap", + "tinystr", + "writeable", + "zerovec", +] + +[[package]] +name = "icu_normalizer" +version = "2.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "12f9cf5f235641ed274641dd81c3f28d870e276763d0797aeeab72317b1c646f" +dependencies = [ + "icu_collections", + "icu_normalizer_data", + "icu_properties", + "icu_provider", + "smallvec 1.15.1", + "zerovec", +] + +[[package]] +name = "icu_normalizer_data" +version = "2.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1563da1ed3e0b3bf3d74c9b85917ac9c56464d2f57242270c09c9e752f8021a0" + +[[package]] +name = "icu_properties" +version = "2.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7e7ca276ad3145661a65914e6daf131ca5120cd3dcee8f8f3214b8875184a148" +dependencies = [ + "displaydoc", + "icu_collections", + "icu_locale_core", + "icu_properties_data", + "icu_provider", + "zerotrie", + "zerovec", +] + +[[package]] +name = "icu_properties_data" +version = "2.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e590f038c1464a96894fd6d10127e90a8be4509f56ff7ecef851b15cee0b7caa" + +[[package]] +name = "icu_provider" +version = "2.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d27bbb9d3abbefac45d55f647c9de1d44aafcd1186eb91879afef17c396c3e73" +dependencies = [ + "displaydoc", + "icu_locale_core", + "writeable", + "yoke", + "zerofrom", + "zerotrie", + "zerovec", +] + [[package]] name = "id-arena" version = "2.3.0" @@ -1722,6 +1825,27 @@ version = "1.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b9e0384b61958566e926dc50660321d12159025e767c18e043daf26b70104c39" +[[package]] +name = "idna" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3b0875f23caa03898994f6ddc501886a45c7d3d62d04d2d90788d47be1b1e4de" +dependencies = [ + "idna_adapter", + "smallvec 1.15.1", + "utf8_iter", +] + +[[package]] +name = "idna_adapter" +version = "1.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cb68373c0d6620ef8105e855e7745e18b0d00d3bdb07fb532e434244cdb9a714" +dependencies = [ + "icu_normalizer", + "icu_properties", +] + [[package]] name = "indenter" version = "0.3.4" @@ -2015,6 +2139,12 @@ version = "0.12.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "32a66949e030da00e8c7d4434b251670a91556f4144941d37452769c25d58a53" +[[package]] +name = "litemap" +version = "0.8.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "47d9d19d1d6efa0109d2f65ff4c85cddd50bd572e5a00127ab10987290bcefae" + [[package]] name = "litrs" version = "1.0.0" @@ -2639,6 +2769,12 @@ version = "0.8.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "132dca9b868d927b35b5dd728167b2dee150eb1ad686008fc71ccb298b776fca" +[[package]] +name = "percent-encoding" +version = "2.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9b4f627cb1b25917193a259e49bdad08f671f8d9708acfd5fe0a8c1455d87220" + [[package]] name = "pest" version = "2.8.6" @@ -2844,6 +2980,15 @@ dependencies = [ "winreg", ] +[[package]] +name = "potential_utf" +version = "0.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d83eb9bc6d8e5cf568e7a1101d60ee05e81ed50ea106026f3d18deeb046d7661" +dependencies = [ + "zerovec", +] + [[package]] name = "powerfmt" version = "0.2.0" @@ -3593,6 +3738,12 @@ dependencies = [ "wasm-bindgen", ] +[[package]] +name = "stable_deref_trait" +version = "1.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6ce2be8dc25455e1f91df71bfa12ad37d7af1092ae736f3a6cd0e37bc7810596" + [[package]] name = "stackalloc" version = "1.2.1" @@ -3698,6 +3849,28 @@ dependencies = [ "unicode-ident", ] +[[package]] +name = "syn" +version = "3.0.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8593e8e72159ed2257d083c7a454a85cbf854f37a0966d8d483aff8c8a3ebcee" +dependencies = [ + "proc-macro2", + "quote", + "unicode-ident", +] + +[[package]] +name = "synstructure" +version = "0.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "901704edd0dfe137f1987838ee4f259e4e063c31371bdb423f7ae38ec6f77f02" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.6", +] + [[package]] name = "syscalls" version = "0.8.1" @@ -3902,6 +4075,16 @@ version = "0.1.8" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7694e1cfe791f8d31026952abf09c69ca6f6fa4e1a1229e18988f06a04a12dca" +[[package]] +name = "tinystr" +version = "0.8.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b1e27c91459209c2986af3dcf603a5a74a4368754ce37414f59acc971167f643" +dependencies = [ + "displaydoc", + "zerovec", +] + [[package]] name = "tokio" version = "1.49.0" @@ -4181,6 +4364,19 @@ version = "0.2.15" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b39abd59bf32521c7f2301b52d05a6a2c975b6003521cbd0c6dc1582f0a22104" +[[package]] +name = "url" +version = "2.5.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ff67a8a4397373c3ef660812acab3268222035010ab8680ec4215f38ba3d0eed" +dependencies = [ + "form_urlencoded", + "idna", + "percent-encoding", + "serde", + "serde_derive", +] + [[package]] name = "utf8-chars" version = "3.0.6" @@ -4190,6 +4386,12 @@ dependencies = [ "arrayvec", ] +[[package]] +name = "utf8_iter" +version = "1.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b6c140620e7ffbb22c2dee59cafe6084a59b5ffc27a8859a5f0d494b5d52b6be" + [[package]] name = "utf8parse" version = "0.2.2" @@ -4445,6 +4647,7 @@ dependencies = [ "tokio", "toml", "tracing", + "url", "vt", "vt_bin", "vt_glob", @@ -5076,6 +5279,12 @@ dependencies = [ "wasmparser", ] +[[package]] +name = "writeable" +version = "0.6.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3ad82d2a33cdc9674dc7465672f271e096168fcdbe0f799d9e6db8c5892679dc" + [[package]] name = "xattr" version = "1.6.1" @@ -5098,6 +5307,29 @@ version = "1.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "cfe53a6657fd280eaa890a3bc59152892ffa3e30101319d168b781ed6529b049" +[[package]] +name = "yoke" +version = "0.8.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "709fe23a0424b6a435d82152b1bd3fdfb0833487d5fa90d05d42762a9891fef5" +dependencies = [ + "stable_deref_trait", + "yoke-derive", + "zerofrom", +] + +[[package]] +name = "yoke-derive" +version = "0.8.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "33811428bee40dbceb6d545e95754741d17a6aef9a4849f0fd62e2ba4f412a78" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.6", + "synstructure", +] + [[package]] name = "zerocopy" version = "0.8.39" @@ -5118,6 +5350,60 @@ dependencies = [ "syn 2.0.117", ] +[[package]] +name = "zerofrom" +version = "0.1.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0ec05a11813ea801ff6d75110ad09cd0824ddba17dfe17128ea0d5f68e6c5272" +dependencies = [ + "zerofrom-derive", +] + +[[package]] +name = "zerofrom-derive" +version = "0.1.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f75b4683f6c7f45248d4d64056a24298c6281e0993356d7d1b4a1a962ef10d4a" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.6", + "synstructure", +] + +[[package]] +name = "zerotrie" +version = "0.2.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4ea269c3bd32f0a32c321907a2ae912ba6f4649bb0fc764a15627e99a7095a3f" +dependencies = [ + "displaydoc", + "yoke", + "zerofrom", +] + +[[package]] +name = "zerovec" +version = "0.11.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bb0464e17806c1d976d5cba29399c7f08e516e279e2ba493f63123b5fca67dd8" +dependencies = [ + "yoke", + "zerofrom", + "zerovec-derive", +] + +[[package]] +name = "zerovec-derive" +version = "0.11.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "34df6fc39dbd26ddc9c10e6a2984476e13acce22e64e4487636ef494369225da" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.6", +] + [[package]] name = "zmij" version = "1.0.20" diff --git a/Cargo.toml b/Cargo.toml index ed6420d86..35bc3a606 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -57,6 +57,7 @@ bytemuck = "1.23.0" cargo-platform = "=0.3.2" cc = "1.2.39" clap = "4.5.53" +url = "2.5.8" color-eyre = "0.6.5" compact_str = "0.9.0" constcat = "0.6.1" diff --git a/crates/vt_graph/src/config/mod.rs b/crates/vt_graph/src/config/mod.rs index 24d077121..2a3b9bb33 100644 --- a/crates/vt_graph/src/config/mod.rs +++ b/crates/vt_graph/src/config/mod.rs @@ -83,6 +83,7 @@ impl ResolvedTaskOptions { )?; Some(CacheConfig { + remote_cache: true, env_config: EnvConfig { fingerprinted_envs: enabled_cache_config .env @@ -100,11 +101,9 @@ impl ResolvedTaskOptions { } #[derive(Debug, Clone, Serialize)] -#[expect( - clippy::struct_field_names, - reason = "env_config, input_config, output_config are distinct config categories, not a naming smell" -)] pub struct CacheConfig { + /// Whether this task permits remote caching when local caching is enabled. + pub remote_cache: bool, pub env_config: EnvConfig, pub input_config: ResolvedGlobConfig, pub output_config: ResolvedGlobConfig, diff --git a/crates/vt_plan/Cargo.toml b/crates/vt_plan/Cargo.toml index 79ee3753f..77d802f48 100644 --- a/crates/vt_plan/Cargo.toml +++ b/crates/vt_plan/Cargo.toml @@ -24,6 +24,7 @@ sha2 = { workspace = true } shell-escape = { workspace = true } thiserror = { workspace = true } tracing = { workspace = true } +url = { workspace = true, features = ["serde"] } vt_glob = { workspace = true } vt_graph_ser = { workspace = true } vt_path = { workspace = true } diff --git a/crates/vt_plan/src/cache_metadata.rs b/crates/vt_plan/src/cache_metadata.rs index e28188ba7..d379f5b5a 100644 --- a/crates/vt_plan/src/cache_metadata.rs +++ b/crates/vt_plan/src/cache_metadata.rs @@ -7,8 +7,8 @@ use vt_path::RelativePathBuf; use vt_str::{self, Str}; use wincode::{SchemaRead, SchemaWrite}; -use crate::envs::EnvFingerprints; pub use crate::envs::EnvValueHash; +use crate::{envs::EnvFingerprints, remote_cache::RemoteCacheConfig}; /// Key to identify an execution across sessions. #[derive(Debug, SchemaWrite, SchemaRead, Serialize)] @@ -34,9 +34,8 @@ pub enum ExecutionCacheKey { ExecAPI(Arc<[Str]>), } -/// Cache information for a spawn execution. +/// Cache information available before a spawn execution. /// -/// It only contains information needed for hitting existing cache entries pre-execution. /// It doesn't contain any post-execution information like file fingerprints /// (which needs actual execution and is out of scope for planning). #[derive(Debug, Serialize)] @@ -55,6 +54,9 @@ pub struct CacheMetadata { /// Used at execution time to determine what output files to archive. pub output_config: ResolvedGlobConfig, + /// Remote cache access. `None` means local caching only. + pub remote_cache: Option, + /// The unfiltered env context for runner-aware APIs. This is the planning /// context's envs before spawn-env filtering, including command prefix envs /// from this command and enclosing nested `vp run` expansions. diff --git a/crates/vt_plan/src/lib.rs b/crates/vt_plan/src/lib.rs index 281efe5ab..9bb77e0e7 100644 --- a/crates/vt_plan/src/lib.rs +++ b/crates/vt_plan/src/lib.rs @@ -8,6 +8,7 @@ mod path_env; mod plan; pub mod plan_request; mod ps1_shim; +pub mod remote_cache; use std::{collections::BTreeMap, ffi::OsStr, fmt::Debug, sync::Arc}; diff --git a/crates/vt_plan/src/plan.rs b/crates/vt_plan/src/plan.rs index 06860b8fd..565cd1c16 100644 --- a/crates/vt_plan/src/plan.rs +++ b/crates/vt_plan/src/plan.rs @@ -672,6 +672,7 @@ fn plan_spawn_execution( execution_cache_key, input_config: cache_config.input_config.clone(), output_config: cache_config.output_config.clone(), + remote_cache: None, unfiltered_envs: Arc::clone(envs), }); } @@ -939,6 +940,7 @@ mod tests { fn parent_config(includes_auto: bool, positive_globs: &[&str]) -> CacheConfig { CacheConfig { + remote_cache: true, env_config: EnvConfig { fingerprinted_envs: FxHashSet::default(), untracked_env: FxHashSet::default(), diff --git a/crates/vt_plan/src/remote_cache.rs b/crates/vt_plan/src/remote_cache.rs new file mode 100644 index 000000000..62c0246d9 --- /dev/null +++ b/crates/vt_plan/src/remote_cache.rs @@ -0,0 +1,22 @@ +//! Remote cache settings carried by planned executions. + +use std::sync::Arc; + +use serde::Serialize; +use url::Url; + +/// Remote access requested by an invocation. Local cache policy is independent. +#[derive(Debug, Clone, Copy, PartialEq, Eq, Serialize)] +#[serde(rename_all = "kebab-case")] +pub enum RemoteCacheMode { + Off, + Read, + ReadWrite, +} + +/// Remote endpoint and access mode for a cacheable execution. +#[derive(Debug, Clone, Serialize)] +pub struct RemoteCacheConfig { + pub url: Arc, + pub mode: RemoteCacheMode, +} diff --git a/crates/vt_plan/tests/plan_snapshots/fixtures/additional_env/snapshots/query_tool_synthetic_task_in_user_task.jsonc b/crates/vt_plan/tests/plan_snapshots/fixtures/additional_env/snapshots/query_tool_synthetic_task_in_user_task.jsonc index 8d4e5a366..45748a3e1 100644 --- a/crates/vt_plan/tests/plan_snapshots/fixtures/additional_env/snapshots/query_tool_synthetic_task_in_user_task.jsonc +++ b/crates/vt_plan/tests/plan_snapshots/fixtures/additional_env/snapshots/query_tool_synthetic_task_in_user_task.jsonc @@ -65,7 +65,8 @@ "includes_auto": true, "positive_globs": [], "negative_globs": [] - } + }, + "remote_cache": null }, "spawn_command": { "program_path": "/vtt", diff --git a/crates/vt_plan/tests/plan_snapshots/fixtures/additional_env/snapshots/task_graph.md b/crates/vt_plan/tests/plan_snapshots/fixtures/additional_env/snapshots/task_graph.md index 6bddb6bfc..dd1de35d9 100644 --- a/crates/vt_plan/tests/plan_snapshots/fixtures/additional_env/snapshots/task_graph.md +++ b/crates/vt_plan/tests/plan_snapshots/fixtures/additional_env/snapshots/task_graph.md @@ -22,6 +22,7 @@ flowchart TD "resolved_options": { "cwd": "/", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ @@ -61,6 +62,7 @@ flowchart TD "resolved_options": { "cwd": "/", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ diff --git a/crates/vt_plan/tests/plan_snapshots/fixtures/cache_cli_override/snapshots/query___cache_enables_script_caching.jsonc b/crates/vt_plan/tests/plan_snapshots/fixtures/cache_cli_override/snapshots/query___cache_enables_script_caching.jsonc index d0e8eadbb..604871cc0 100644 --- a/crates/vt_plan/tests/plan_snapshots/fixtures/cache_cli_override/snapshots/query___cache_enables_script_caching.jsonc +++ b/crates/vt_plan/tests/plan_snapshots/fixtures/cache_cli_override/snapshots/query___cache_enables_script_caching.jsonc @@ -63,7 +63,8 @@ "includes_auto": true, "positive_globs": [], "negative_globs": [] - } + }, + "remote_cache": null }, "spawn_command": { "program_path": "/vtt", diff --git a/crates/vt_plan/tests/plan_snapshots/fixtures/cache_cli_override/snapshots/query___cache_enables_task_caching_even_when_cache_tasks_is_false.jsonc b/crates/vt_plan/tests/plan_snapshots/fixtures/cache_cli_override/snapshots/query___cache_enables_task_caching_even_when_cache_tasks_is_false.jsonc index a1034cfd0..3eb7fdcaa 100644 --- a/crates/vt_plan/tests/plan_snapshots/fixtures/cache_cli_override/snapshots/query___cache_enables_task_caching_even_when_cache_tasks_is_false.jsonc +++ b/crates/vt_plan/tests/plan_snapshots/fixtures/cache_cli_override/snapshots/query___cache_enables_task_caching_even_when_cache_tasks_is_false.jsonc @@ -63,7 +63,8 @@ "includes_auto": true, "positive_globs": [], "negative_globs": [] - } + }, + "remote_cache": null }, "spawn_command": { "program_path": "/vtt", diff --git a/crates/vt_plan/tests/plan_snapshots/fixtures/cache_cli_override/snapshots/query___cache_on_task_with_per_task_cache_true_enables_caching.jsonc b/crates/vt_plan/tests/plan_snapshots/fixtures/cache_cli_override/snapshots/query___cache_on_task_with_per_task_cache_true_enables_caching.jsonc index 81e45d45e..fc9b52e7c 100644 --- a/crates/vt_plan/tests/plan_snapshots/fixtures/cache_cli_override/snapshots/query___cache_on_task_with_per_task_cache_true_enables_caching.jsonc +++ b/crates/vt_plan/tests/plan_snapshots/fixtures/cache_cli_override/snapshots/query___cache_on_task_with_per_task_cache_true_enables_caching.jsonc @@ -63,7 +63,8 @@ "includes_auto": true, "positive_globs": [], "negative_globs": [] - } + }, + "remote_cache": null }, "spawn_command": { "program_path": "/vtt", diff --git a/crates/vt_plan/tests/plan_snapshots/fixtures/cache_cli_override/snapshots/task_graph.md b/crates/vt_plan/tests/plan_snapshots/fixtures/cache_cli_override/snapshots/task_graph.md index 0709d62fc..134cbbe5f 100644 --- a/crates/vt_plan/tests/plan_snapshots/fixtures/cache_cli_override/snapshots/task_graph.md +++ b/crates/vt_plan/tests/plan_snapshots/fixtures/cache_cli_override/snapshots/task_graph.md @@ -25,6 +25,7 @@ flowchart TD "resolved_options": { "cwd": "/", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ @@ -64,6 +65,7 @@ flowchart TD "resolved_options": { "cwd": "/", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ @@ -125,6 +127,7 @@ flowchart TD "resolved_options": { "cwd": "/", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ @@ -164,6 +167,7 @@ flowchart TD "resolved_options": { "cwd": "/", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ diff --git a/crates/vt_plan/tests/plan_snapshots/fixtures/cache_keys/snapshots/query_echo_and_lint_with_extra_args.jsonc b/crates/vt_plan/tests/plan_snapshots/fixtures/cache_keys/snapshots/query_echo_and_lint_with_extra_args.jsonc index 7845069e0..44c98daf7 100644 --- a/crates/vt_plan/tests/plan_snapshots/fixtures/cache_keys/snapshots/query_echo_and_lint_with_extra_args.jsonc +++ b/crates/vt_plan/tests/plan_snapshots/fixtures/cache_keys/snapshots/query_echo_and_lint_with_extra_args.jsonc @@ -91,7 +91,8 @@ "includes_auto": true, "positive_globs": [], "negative_globs": [] - } + }, + "remote_cache": null }, "spawn_command": { "program_path": "/vtt", diff --git a/crates/vt_plan/tests/plan_snapshots/fixtures/cache_keys/snapshots/query_lint_and_echo_with_extra_args.jsonc b/crates/vt_plan/tests/plan_snapshots/fixtures/cache_keys/snapshots/query_lint_and_echo_with_extra_args.jsonc index 9ccc47383..5df624b62 100644 --- a/crates/vt_plan/tests/plan_snapshots/fixtures/cache_keys/snapshots/query_lint_and_echo_with_extra_args.jsonc +++ b/crates/vt_plan/tests/plan_snapshots/fixtures/cache_keys/snapshots/query_lint_and_echo_with_extra_args.jsonc @@ -63,7 +63,8 @@ "includes_auto": true, "positive_globs": [], "negative_globs": [] - } + }, + "remote_cache": null }, "spawn_command": { "program_path": "/vtt", diff --git a/crates/vt_plan/tests/plan_snapshots/fixtures/cache_keys/snapshots/query_normal_task_with_extra_args.jsonc b/crates/vt_plan/tests/plan_snapshots/fixtures/cache_keys/snapshots/query_normal_task_with_extra_args.jsonc index 58992f1f8..219d071d1 100644 --- a/crates/vt_plan/tests/plan_snapshots/fixtures/cache_keys/snapshots/query_normal_task_with_extra_args.jsonc +++ b/crates/vt_plan/tests/plan_snapshots/fixtures/cache_keys/snapshots/query_normal_task_with_extra_args.jsonc @@ -65,7 +65,8 @@ "includes_auto": true, "positive_globs": [], "negative_globs": [] - } + }, + "remote_cache": null }, "spawn_command": { "program_path": "/vtt", diff --git a/crates/vt_plan/tests/plan_snapshots/fixtures/cache_keys/snapshots/query_synthetic_task_in_user_task.jsonc b/crates/vt_plan/tests/plan_snapshots/fixtures/cache_keys/snapshots/query_synthetic_task_in_user_task.jsonc index 6fd2f8177..06ccf6022 100644 --- a/crates/vt_plan/tests/plan_snapshots/fixtures/cache_keys/snapshots/query_synthetic_task_in_user_task.jsonc +++ b/crates/vt_plan/tests/plan_snapshots/fixtures/cache_keys/snapshots/query_synthetic_task_in_user_task.jsonc @@ -63,7 +63,8 @@ "includes_auto": true, "positive_globs": [], "negative_globs": [] - } + }, + "remote_cache": null }, "spawn_command": { "program_path": "/vtt", diff --git a/crates/vt_plan/tests/plan_snapshots/fixtures/cache_keys/snapshots/query_synthetic_task_in_user_task_with_cwd.jsonc b/crates/vt_plan/tests/plan_snapshots/fixtures/cache_keys/snapshots/query_synthetic_task_in_user_task_with_cwd.jsonc index 6fd2f8177..06ccf6022 100644 --- a/crates/vt_plan/tests/plan_snapshots/fixtures/cache_keys/snapshots/query_synthetic_task_in_user_task_with_cwd.jsonc +++ b/crates/vt_plan/tests/plan_snapshots/fixtures/cache_keys/snapshots/query_synthetic_task_in_user_task_with_cwd.jsonc @@ -63,7 +63,8 @@ "includes_auto": true, "positive_globs": [], "negative_globs": [] - } + }, + "remote_cache": null }, "spawn_command": { "program_path": "/vtt", diff --git a/crates/vt_plan/tests/plan_snapshots/fixtures/cache_keys/snapshots/query_synthetic_task_with_extra_args_in_user_task.jsonc b/crates/vt_plan/tests/plan_snapshots/fixtures/cache_keys/snapshots/query_synthetic_task_with_extra_args_in_user_task.jsonc index 4718c65b4..0c1b2ceb8 100644 --- a/crates/vt_plan/tests/plan_snapshots/fixtures/cache_keys/snapshots/query_synthetic_task_with_extra_args_in_user_task.jsonc +++ b/crates/vt_plan/tests/plan_snapshots/fixtures/cache_keys/snapshots/query_synthetic_task_with_extra_args_in_user_task.jsonc @@ -66,7 +66,8 @@ "includes_auto": true, "positive_globs": [], "negative_globs": [] - } + }, + "remote_cache": null }, "spawn_command": { "program_path": "/vtt", diff --git a/crates/vt_plan/tests/plan_snapshots/fixtures/cache_keys/snapshots/task_graph.md b/crates/vt_plan/tests/plan_snapshots/fixtures/cache_keys/snapshots/task_graph.md index d38a20fca..75291a957 100644 --- a/crates/vt_plan/tests/plan_snapshots/fixtures/cache_keys/snapshots/task_graph.md +++ b/crates/vt_plan/tests/plan_snapshots/fixtures/cache_keys/snapshots/task_graph.md @@ -24,6 +24,7 @@ flowchart TD "resolved_options": { "cwd": "/", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ @@ -63,6 +64,7 @@ flowchart TD "resolved_options": { "cwd": "/", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ @@ -102,6 +104,7 @@ flowchart TD "resolved_options": { "cwd": "/", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ @@ -141,6 +144,7 @@ flowchart TD "resolved_options": { "cwd": "/", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ diff --git a/crates/vt_plan/tests/plan_snapshots/fixtures/cache_scripts_default/snapshots/task_graph.md b/crates/vt_plan/tests/plan_snapshots/fixtures/cache_scripts_default/snapshots/task_graph.md index 8464f9660..fbee1e5a6 100644 --- a/crates/vt_plan/tests/plan_snapshots/fixtures/cache_scripts_default/snapshots/task_graph.md +++ b/crates/vt_plan/tests/plan_snapshots/fixtures/cache_scripts_default/snapshots/task_graph.md @@ -22,6 +22,7 @@ flowchart TD "resolved_options": { "cwd": "/", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ @@ -61,6 +62,7 @@ flowchart TD "resolved_options": { "cwd": "/", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ diff --git a/crates/vt_plan/tests/plan_snapshots/fixtures/cache_scripts_enabled/snapshots/task_graph.md b/crates/vt_plan/tests/plan_snapshots/fixtures/cache_scripts_enabled/snapshots/task_graph.md index 52193c9d4..3b34d3411 100644 --- a/crates/vt_plan/tests/plan_snapshots/fixtures/cache_scripts_enabled/snapshots/task_graph.md +++ b/crates/vt_plan/tests/plan_snapshots/fixtures/cache_scripts_enabled/snapshots/task_graph.md @@ -22,6 +22,7 @@ flowchart TD "resolved_options": { "cwd": "/", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ @@ -61,6 +62,7 @@ flowchart TD "resolved_options": { "cwd": "/", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ diff --git a/crates/vt_plan/tests/plan_snapshots/fixtures/cache_scripts_task_override/snapshots/query_another_task_cached_by_default.jsonc b/crates/vt_plan/tests/plan_snapshots/fixtures/cache_scripts_task_override/snapshots/query_another_task_cached_by_default.jsonc index dc4daf33f..8a6caba80 100644 --- a/crates/vt_plan/tests/plan_snapshots/fixtures/cache_scripts_task_override/snapshots/query_another_task_cached_by_default.jsonc +++ b/crates/vt_plan/tests/plan_snapshots/fixtures/cache_scripts_task_override/snapshots/query_another_task_cached_by_default.jsonc @@ -63,7 +63,8 @@ "includes_auto": true, "positive_globs": [], "negative_globs": [] - } + }, + "remote_cache": null }, "spawn_command": { "program_path": "/vtt", diff --git a/crates/vt_plan/tests/plan_snapshots/fixtures/cache_scripts_task_override/snapshots/query_task_cached_by_default.jsonc b/crates/vt_plan/tests/plan_snapshots/fixtures/cache_scripts_task_override/snapshots/query_task_cached_by_default.jsonc index 130a82e2f..f9fbaca53 100644 --- a/crates/vt_plan/tests/plan_snapshots/fixtures/cache_scripts_task_override/snapshots/query_task_cached_by_default.jsonc +++ b/crates/vt_plan/tests/plan_snapshots/fixtures/cache_scripts_task_override/snapshots/query_task_cached_by_default.jsonc @@ -63,7 +63,8 @@ "includes_auto": true, "positive_globs": [], "negative_globs": [] - } + }, + "remote_cache": null }, "spawn_command": { "program_path": "/vtt", diff --git a/crates/vt_plan/tests/plan_snapshots/fixtures/cache_scripts_task_override/snapshots/task_graph.md b/crates/vt_plan/tests/plan_snapshots/fixtures/cache_scripts_task_override/snapshots/task_graph.md index e8de0a07e..bd4680125 100644 --- a/crates/vt_plan/tests/plan_snapshots/fixtures/cache_scripts_task_override/snapshots/task_graph.md +++ b/crates/vt_plan/tests/plan_snapshots/fixtures/cache_scripts_task_override/snapshots/task_graph.md @@ -23,6 +23,7 @@ flowchart TD "resolved_options": { "cwd": "/", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ @@ -62,6 +63,7 @@ flowchart TD "resolved_options": { "cwd": "/", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ @@ -101,6 +103,7 @@ flowchart TD "resolved_options": { "cwd": "/", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ diff --git a/crates/vt_plan/tests/plan_snapshots/fixtures/cache_sharing/snapshots/task_graph.md b/crates/vt_plan/tests/plan_snapshots/fixtures/cache_sharing/snapshots/task_graph.md index e08947457..3fd3c274a 100644 --- a/crates/vt_plan/tests/plan_snapshots/fixtures/cache_sharing/snapshots/task_graph.md +++ b/crates/vt_plan/tests/plan_snapshots/fixtures/cache_sharing/snapshots/task_graph.md @@ -23,6 +23,7 @@ flowchart TD "resolved_options": { "cwd": "/", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ @@ -62,6 +63,7 @@ flowchart TD "resolved_options": { "cwd": "/", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ @@ -101,6 +103,7 @@ flowchart TD "resolved_options": { "cwd": "/", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ diff --git a/crates/vt_plan/tests/plan_snapshots/fixtures/cache_subcommand/snapshots/task_graph.md b/crates/vt_plan/tests/plan_snapshots/fixtures/cache_subcommand/snapshots/task_graph.md index 82e845142..3e4bddb7a 100644 --- a/crates/vt_plan/tests/plan_snapshots/fixtures/cache_subcommand/snapshots/task_graph.md +++ b/crates/vt_plan/tests/plan_snapshots/fixtures/cache_subcommand/snapshots/task_graph.md @@ -21,6 +21,7 @@ flowchart TD "resolved_options": { "cwd": "/", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ diff --git a/crates/vt_plan/tests/plan_snapshots/fixtures/cache_tasks_disabled/snapshots/task_graph.md b/crates/vt_plan/tests/plan_snapshots/fixtures/cache_tasks_disabled/snapshots/task_graph.md index 3fa32ca8d..03706fff6 100644 --- a/crates/vt_plan/tests/plan_snapshots/fixtures/cache_tasks_disabled/snapshots/task_graph.md +++ b/crates/vt_plan/tests/plan_snapshots/fixtures/cache_tasks_disabled/snapshots/task_graph.md @@ -23,6 +23,7 @@ flowchart TD "resolved_options": { "cwd": "/", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ @@ -62,6 +63,7 @@ flowchart TD "resolved_options": { "cwd": "/", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ @@ -101,6 +103,7 @@ flowchart TD "resolved_options": { "cwd": "/", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ diff --git a/crates/vt_plan/tests/plan_snapshots/fixtures/cache_true_no_force_enable/snapshots/query_script_cached_when_global_cache_true.jsonc b/crates/vt_plan/tests/plan_snapshots/fixtures/cache_true_no_force_enable/snapshots/query_script_cached_when_global_cache_true.jsonc index 84764d3a8..08de6d9bc 100644 --- a/crates/vt_plan/tests/plan_snapshots/fixtures/cache_true_no_force_enable/snapshots/query_script_cached_when_global_cache_true.jsonc +++ b/crates/vt_plan/tests/plan_snapshots/fixtures/cache_true_no_force_enable/snapshots/query_script_cached_when_global_cache_true.jsonc @@ -63,7 +63,8 @@ "includes_auto": true, "positive_globs": [], "negative_globs": [] - } + }, + "remote_cache": null }, "spawn_command": { "program_path": "/vtt", diff --git a/crates/vt_plan/tests/plan_snapshots/fixtures/cache_true_no_force_enable/snapshots/query_task_cached_when_global_cache_true.jsonc b/crates/vt_plan/tests/plan_snapshots/fixtures/cache_true_no_force_enable/snapshots/query_task_cached_when_global_cache_true.jsonc index f668adb9c..54514b545 100644 --- a/crates/vt_plan/tests/plan_snapshots/fixtures/cache_true_no_force_enable/snapshots/query_task_cached_when_global_cache_true.jsonc +++ b/crates/vt_plan/tests/plan_snapshots/fixtures/cache_true_no_force_enable/snapshots/query_task_cached_when_global_cache_true.jsonc @@ -63,7 +63,8 @@ "includes_auto": true, "positive_globs": [], "negative_globs": [] - } + }, + "remote_cache": null }, "spawn_command": { "program_path": "/vtt", diff --git a/crates/vt_plan/tests/plan_snapshots/fixtures/cache_true_no_force_enable/snapshots/task_graph.md b/crates/vt_plan/tests/plan_snapshots/fixtures/cache_true_no_force_enable/snapshots/task_graph.md index 71b021553..e6b4c1061 100644 --- a/crates/vt_plan/tests/plan_snapshots/fixtures/cache_true_no_force_enable/snapshots/task_graph.md +++ b/crates/vt_plan/tests/plan_snapshots/fixtures/cache_true_no_force_enable/snapshots/task_graph.md @@ -45,6 +45,7 @@ flowchart TD "resolved_options": { "cwd": "/", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ @@ -84,6 +85,7 @@ flowchart TD "resolved_options": { "cwd": "/", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ diff --git a/crates/vt_plan/tests/plan_snapshots/fixtures/cd_in_scripts/snapshots/query_cd_before_vt_lint_should_put_synthetic_task_under_cwd.jsonc b/crates/vt_plan/tests/plan_snapshots/fixtures/cd_in_scripts/snapshots/query_cd_before_vt_lint_should_put_synthetic_task_under_cwd.jsonc index 011cad7dd..026ca636c 100644 --- a/crates/vt_plan/tests/plan_snapshots/fixtures/cd_in_scripts/snapshots/query_cd_before_vt_lint_should_put_synthetic_task_under_cwd.jsonc +++ b/crates/vt_plan/tests/plan_snapshots/fixtures/cd_in_scripts/snapshots/query_cd_before_vt_lint_should_put_synthetic_task_under_cwd.jsonc @@ -63,7 +63,8 @@ "includes_auto": true, "positive_globs": [], "negative_globs": [] - } + }, + "remote_cache": null }, "spawn_command": { "program_path": "/vtt", diff --git a/crates/vt_plan/tests/plan_snapshots/fixtures/cd_in_scripts/snapshots/query_cd_before_vt_run_should_not_affect_expanded_task_cwd.jsonc b/crates/vt_plan/tests/plan_snapshots/fixtures/cd_in_scripts/snapshots/query_cd_before_vt_run_should_not_affect_expanded_task_cwd.jsonc index d4d4f3289..8944dc423 100644 --- a/crates/vt_plan/tests/plan_snapshots/fixtures/cd_in_scripts/snapshots/query_cd_before_vt_run_should_not_affect_expanded_task_cwd.jsonc +++ b/crates/vt_plan/tests/plan_snapshots/fixtures/cd_in_scripts/snapshots/query_cd_before_vt_run_should_not_affect_expanded_task_cwd.jsonc @@ -88,7 +88,8 @@ "includes_auto": true, "positive_globs": [], "negative_globs": [] - } + }, + "remote_cache": null }, "spawn_command": { "program_path": "/vtt", diff --git a/crates/vt_plan/tests/plan_snapshots/fixtures/cd_in_scripts/snapshots/task_graph.md b/crates/vt_plan/tests/plan_snapshots/fixtures/cd_in_scripts/snapshots/task_graph.md index ac5d0b951..79c3c2eeb 100644 --- a/crates/vt_plan/tests/plan_snapshots/fixtures/cd_in_scripts/snapshots/task_graph.md +++ b/crates/vt_plan/tests/plan_snapshots/fixtures/cd_in_scripts/snapshots/task_graph.md @@ -23,6 +23,7 @@ flowchart TD "resolved_options": { "cwd": "/", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ @@ -62,6 +63,7 @@ flowchart TD "resolved_options": { "cwd": "/", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ @@ -101,6 +103,7 @@ flowchart TD "resolved_options": { "cwd": "/", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ diff --git a/crates/vt_plan/tests/plan_snapshots/fixtures/comprehensive_task_graph/snapshots/task_graph.md b/crates/vt_plan/tests/plan_snapshots/fixtures/comprehensive_task_graph/snapshots/task_graph.md index 05a44ec06..e918344da 100644 --- a/crates/vt_plan/tests/plan_snapshots/fixtures/comprehensive_task_graph/snapshots/task_graph.md +++ b/crates/vt_plan/tests/plan_snapshots/fixtures/comprehensive_task_graph/snapshots/task_graph.md @@ -43,6 +43,7 @@ flowchart TD "resolved_options": { "cwd": "/packages/api", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ @@ -82,6 +83,7 @@ flowchart TD "resolved_options": { "cwd": "/packages/api", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ @@ -121,6 +123,7 @@ flowchart TD "resolved_options": { "cwd": "/packages/api", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ @@ -160,6 +163,7 @@ flowchart TD "resolved_options": { "cwd": "/packages/api", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ @@ -199,6 +203,7 @@ flowchart TD "resolved_options": { "cwd": "/packages/app", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ @@ -238,6 +243,7 @@ flowchart TD "resolved_options": { "cwd": "/packages/app", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ @@ -277,6 +283,7 @@ flowchart TD "resolved_options": { "cwd": "/packages/app", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ @@ -316,6 +323,7 @@ flowchart TD "resolved_options": { "cwd": "/packages/app", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ @@ -355,6 +363,7 @@ flowchart TD "resolved_options": { "cwd": "/packages/app", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ @@ -394,6 +403,7 @@ flowchart TD "resolved_options": { "cwd": "/packages/config", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ @@ -433,6 +443,7 @@ flowchart TD "resolved_options": { "cwd": "/packages/config", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ @@ -472,6 +483,7 @@ flowchart TD "resolved_options": { "cwd": "/packages/pkg#special", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ @@ -511,6 +523,7 @@ flowchart TD "resolved_options": { "cwd": "/packages/pkg#special", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ @@ -550,6 +563,7 @@ flowchart TD "resolved_options": { "cwd": "/packages/shared", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ @@ -589,6 +603,7 @@ flowchart TD "resolved_options": { "cwd": "/packages/shared", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ @@ -628,6 +643,7 @@ flowchart TD "resolved_options": { "cwd": "/packages/shared", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ @@ -667,6 +683,7 @@ flowchart TD "resolved_options": { "cwd": "/packages/shared", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ @@ -706,6 +723,7 @@ flowchart TD "resolved_options": { "cwd": "/packages/tools", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ @@ -745,6 +763,7 @@ flowchart TD "resolved_options": { "cwd": "/packages/tools", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ @@ -784,6 +803,7 @@ flowchart TD "resolved_options": { "cwd": "/packages/ui", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ @@ -823,6 +843,7 @@ flowchart TD "resolved_options": { "cwd": "/packages/ui", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ @@ -862,6 +883,7 @@ flowchart TD "resolved_options": { "cwd": "/packages/ui", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ @@ -901,6 +923,7 @@ flowchart TD "resolved_options": { "cwd": "/packages/ui", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ diff --git a/crates/vt_plan/tests/plan_snapshots/fixtures/conflict_test/snapshots/task_graph.md b/crates/vt_plan/tests/plan_snapshots/fixtures/conflict_test/snapshots/task_graph.md index 3aa5f911f..438080f2e 100644 --- a/crates/vt_plan/tests/plan_snapshots/fixtures/conflict_test/snapshots/task_graph.md +++ b/crates/vt_plan/tests/plan_snapshots/fixtures/conflict_test/snapshots/task_graph.md @@ -24,6 +24,7 @@ flowchart TD "resolved_options": { "cwd": "/packages/scope-a", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ @@ -63,6 +64,7 @@ flowchart TD "resolved_options": { "cwd": "/packages/scope-a-b", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ @@ -102,6 +104,7 @@ flowchart TD "resolved_options": { "cwd": "/packages/test-package", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ diff --git a/crates/vt_plan/tests/plan_snapshots/fixtures/cycle_dependency/snapshots/task_graph.md b/crates/vt_plan/tests/plan_snapshots/fixtures/cycle_dependency/snapshots/task_graph.md index ffc1aea24..663563d0c 100644 --- a/crates/vt_plan/tests/plan_snapshots/fixtures/cycle_dependency/snapshots/task_graph.md +++ b/crates/vt_plan/tests/plan_snapshots/fixtures/cycle_dependency/snapshots/task_graph.md @@ -24,6 +24,7 @@ flowchart TD "resolved_options": { "cwd": "/", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ @@ -63,6 +64,7 @@ flowchart TD "resolved_options": { "cwd": "/", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ diff --git a/crates/vt_plan/tests/plan_snapshots/fixtures/dependency_both_topo_and_explicit/snapshots/task_graph.md b/crates/vt_plan/tests/plan_snapshots/fixtures/dependency_both_topo_and_explicit/snapshots/task_graph.md index 7106003d3..ce5aa047b 100644 --- a/crates/vt_plan/tests/plan_snapshots/fixtures/dependency_both_topo_and_explicit/snapshots/task_graph.md +++ b/crates/vt_plan/tests/plan_snapshots/fixtures/dependency_both_topo_and_explicit/snapshots/task_graph.md @@ -23,6 +23,7 @@ flowchart TD "resolved_options": { "cwd": "/packages/a", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ @@ -62,6 +63,7 @@ flowchart TD "resolved_options": { "cwd": "/packages/b", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ diff --git a/crates/vt_plan/tests/plan_snapshots/fixtures/duplicate_package_names/snapshots/task_graph.md b/crates/vt_plan/tests/plan_snapshots/fixtures/duplicate_package_names/snapshots/task_graph.md index 0908cab0b..6ce5942d4 100644 --- a/crates/vt_plan/tests/plan_snapshots/fixtures/duplicate_package_names/snapshots/task_graph.md +++ b/crates/vt_plan/tests/plan_snapshots/fixtures/duplicate_package_names/snapshots/task_graph.md @@ -22,6 +22,7 @@ flowchart TD "resolved_options": { "cwd": "/packages/pkg-a", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ @@ -61,6 +62,7 @@ flowchart TD "resolved_options": { "cwd": "/packages/pkg-b", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ diff --git a/crates/vt_plan/tests/plan_snapshots/fixtures/empty_package_test/snapshots/task_graph.md b/crates/vt_plan/tests/plan_snapshots/fixtures/empty_package_test/snapshots/task_graph.md index 095d71a19..9ea4b56af 100644 --- a/crates/vt_plan/tests/plan_snapshots/fixtures/empty_package_test/snapshots/task_graph.md +++ b/crates/vt_plan/tests/plan_snapshots/fixtures/empty_package_test/snapshots/task_graph.md @@ -34,6 +34,7 @@ flowchart TD "resolved_options": { "cwd": "/packages/another-empty", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ @@ -95,6 +96,7 @@ flowchart TD "resolved_options": { "cwd": "/packages/another-empty", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ @@ -134,6 +136,7 @@ flowchart TD "resolved_options": { "cwd": "/packages/another-empty", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ @@ -173,6 +176,7 @@ flowchart TD "resolved_options": { "cwd": "/packages/empty-name", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ @@ -212,6 +216,7 @@ flowchart TD "resolved_options": { "cwd": "/packages/empty-name", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ @@ -251,6 +256,7 @@ flowchart TD "resolved_options": { "cwd": "/packages/empty-name", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ @@ -290,6 +296,7 @@ flowchart TD "resolved_options": { "cwd": "/packages/normal-package", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ @@ -329,6 +336,7 @@ flowchart TD "resolved_options": { "cwd": "/packages/normal-package", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ diff --git a/crates/vt_plan/tests/plan_snapshots/fixtures/explicit_deps_workspace/snapshots/task_graph.md b/crates/vt_plan/tests/plan_snapshots/fixtures/explicit_deps_workspace/snapshots/task_graph.md index e38f11608..2cfb33a46 100644 --- a/crates/vt_plan/tests/plan_snapshots/fixtures/explicit_deps_workspace/snapshots/task_graph.md +++ b/crates/vt_plan/tests/plan_snapshots/fixtures/explicit_deps_workspace/snapshots/task_graph.md @@ -37,6 +37,7 @@ flowchart TD "resolved_options": { "cwd": "/packages/app", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ @@ -98,6 +99,7 @@ flowchart TD "resolved_options": { "cwd": "/packages/app", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ @@ -137,6 +139,7 @@ flowchart TD "resolved_options": { "cwd": "/packages/app", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ @@ -176,6 +179,7 @@ flowchart TD "resolved_options": { "cwd": "/packages/core", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ @@ -215,6 +219,7 @@ flowchart TD "resolved_options": { "cwd": "/packages/core", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ @@ -254,6 +259,7 @@ flowchart TD "resolved_options": { "cwd": "/packages/core", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ @@ -293,6 +299,7 @@ flowchart TD "resolved_options": { "cwd": "/packages/core", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ @@ -332,6 +339,7 @@ flowchart TD "resolved_options": { "cwd": "/packages/utils", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ @@ -371,6 +379,7 @@ flowchart TD "resolved_options": { "cwd": "/packages/utils", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ @@ -410,6 +419,7 @@ flowchart TD "resolved_options": { "cwd": "/packages/utils", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ diff --git a/crates/vt_plan/tests/plan_snapshots/fixtures/extra_args_not_forwarded_to_depends_on/snapshots/query_extra_args_only_reach_requested_task.jsonc b/crates/vt_plan/tests/plan_snapshots/fixtures/extra_args_not_forwarded_to_depends_on/snapshots/query_extra_args_only_reach_requested_task.jsonc index 47c260eb1..28e005861 100644 --- a/crates/vt_plan/tests/plan_snapshots/fixtures/extra_args_not_forwarded_to_depends_on/snapshots/query_extra_args_only_reach_requested_task.jsonc +++ b/crates/vt_plan/tests/plan_snapshots/fixtures/extra_args_not_forwarded_to_depends_on/snapshots/query_extra_args_only_reach_requested_task.jsonc @@ -63,7 +63,8 @@ "includes_auto": true, "positive_globs": [], "negative_globs": [] - } + }, + "remote_cache": null }, "spawn_command": { "program_path": "/vtt", @@ -151,7 +152,8 @@ "includes_auto": true, "positive_globs": [], "negative_globs": [] - } + }, + "remote_cache": null }, "spawn_command": { "program_path": "/vtt", diff --git a/crates/vt_plan/tests/plan_snapshots/fixtures/extra_args_not_forwarded_to_depends_on/snapshots/task_graph.md b/crates/vt_plan/tests/plan_snapshots/fixtures/extra_args_not_forwarded_to_depends_on/snapshots/task_graph.md index 5f61403e1..05e6f657d 100644 --- a/crates/vt_plan/tests/plan_snapshots/fixtures/extra_args_not_forwarded_to_depends_on/snapshots/task_graph.md +++ b/crates/vt_plan/tests/plan_snapshots/fixtures/extra_args_not_forwarded_to_depends_on/snapshots/task_graph.md @@ -23,6 +23,7 @@ flowchart TD "resolved_options": { "cwd": "/", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ @@ -62,6 +63,7 @@ flowchart TD "resolved_options": { "cwd": "/", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ diff --git a/crates/vt_plan/tests/plan_snapshots/fixtures/filter_workspace/snapshots/task_graph.md b/crates/vt_plan/tests/plan_snapshots/fixtures/filter_workspace/snapshots/task_graph.md index 23067de0e..bf7308fe6 100644 --- a/crates/vt_plan/tests/plan_snapshots/fixtures/filter_workspace/snapshots/task_graph.md +++ b/crates/vt_plan/tests/plan_snapshots/fixtures/filter_workspace/snapshots/task_graph.md @@ -33,6 +33,7 @@ flowchart TD "resolved_options": { "cwd": "/", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ @@ -72,6 +73,7 @@ flowchart TD "resolved_options": { "cwd": "/packages/app", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ @@ -111,6 +113,7 @@ flowchart TD "resolved_options": { "cwd": "/packages/app", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ @@ -150,6 +153,7 @@ flowchart TD "resolved_options": { "cwd": "/packages/app", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ @@ -189,6 +193,7 @@ flowchart TD "resolved_options": { "cwd": "/packages/app", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ @@ -228,6 +233,7 @@ flowchart TD "resolved_options": { "cwd": "/packages/cli", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ @@ -267,6 +273,7 @@ flowchart TD "resolved_options": { "cwd": "/packages/cli", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ @@ -306,6 +313,7 @@ flowchart TD "resolved_options": { "cwd": "/packages/core", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ @@ -345,6 +353,7 @@ flowchart TD "resolved_options": { "cwd": "/packages/core", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ @@ -384,6 +393,7 @@ flowchart TD "resolved_options": { "cwd": "/packages/core", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ @@ -423,6 +433,7 @@ flowchart TD "resolved_options": { "cwd": "/packages/lib", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ @@ -462,6 +473,7 @@ flowchart TD "resolved_options": { "cwd": "/packages/lib", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ @@ -501,6 +513,7 @@ flowchart TD "resolved_options": { "cwd": "/packages/utils", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ diff --git a/crates/vt_plan/tests/plan_snapshots/fixtures/input_trailing_slash/snapshots/task_graph.md b/crates/vt_plan/tests/plan_snapshots/fixtures/input_trailing_slash/snapshots/task_graph.md index 0a59e2e64..e8ba0e819 100644 --- a/crates/vt_plan/tests/plan_snapshots/fixtures/input_trailing_slash/snapshots/task_graph.md +++ b/crates/vt_plan/tests/plan_snapshots/fixtures/input_trailing_slash/snapshots/task_graph.md @@ -21,6 +21,7 @@ flowchart TD "resolved_options": { "cwd": "/", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ diff --git a/crates/vt_plan/tests/plan_snapshots/fixtures/input_workspace_base/snapshots/task_graph.md b/crates/vt_plan/tests/plan_snapshots/fixtures/input_workspace_base/snapshots/task_graph.md index 9b24c886e..75ef90e4f 100644 --- a/crates/vt_plan/tests/plan_snapshots/fixtures/input_workspace_base/snapshots/task_graph.md +++ b/crates/vt_plan/tests/plan_snapshots/fixtures/input_workspace_base/snapshots/task_graph.md @@ -21,6 +21,7 @@ flowchart TD "resolved_options": { "cwd": "/packages/app", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ diff --git a/crates/vt_plan/tests/plan_snapshots/fixtures/nested_cache_override/snapshots/query_nested___cache_enables_inner_task_caching.jsonc b/crates/vt_plan/tests/plan_snapshots/fixtures/nested_cache_override/snapshots/query_nested___cache_enables_inner_task_caching.jsonc index 7b9bf4a9b..9f13cf8dd 100644 --- a/crates/vt_plan/tests/plan_snapshots/fixtures/nested_cache_override/snapshots/query_nested___cache_enables_inner_task_caching.jsonc +++ b/crates/vt_plan/tests/plan_snapshots/fixtures/nested_cache_override/snapshots/query_nested___cache_enables_inner_task_caching.jsonc @@ -88,7 +88,8 @@ "includes_auto": true, "positive_globs": [], "negative_globs": [] - } + }, + "remote_cache": null }, "spawn_command": { "program_path": "/vtt", diff --git a/crates/vt_plan/tests/plan_snapshots/fixtures/nested_cache_override/snapshots/query_outer___cache_propagates_to_nested_run_without_flags.jsonc b/crates/vt_plan/tests/plan_snapshots/fixtures/nested_cache_override/snapshots/query_outer___cache_propagates_to_nested_run_without_flags.jsonc index d83faa9c5..ef04c8b5e 100644 --- a/crates/vt_plan/tests/plan_snapshots/fixtures/nested_cache_override/snapshots/query_outer___cache_propagates_to_nested_run_without_flags.jsonc +++ b/crates/vt_plan/tests/plan_snapshots/fixtures/nested_cache_override/snapshots/query_outer___cache_propagates_to_nested_run_without_flags.jsonc @@ -88,7 +88,8 @@ "includes_auto": true, "positive_globs": [], "negative_globs": [] - } + }, + "remote_cache": null }, "spawn_command": { "program_path": "/vtt", diff --git a/crates/vt_plan/tests/plan_snapshots/fixtures/nested_cache_override/snapshots/query_outer___no_cache_does_not_propagate_into_nested___cache.jsonc b/crates/vt_plan/tests/plan_snapshots/fixtures/nested_cache_override/snapshots/query_outer___no_cache_does_not_propagate_into_nested___cache.jsonc index c24e06ce4..feddfd3a1 100644 --- a/crates/vt_plan/tests/plan_snapshots/fixtures/nested_cache_override/snapshots/query_outer___no_cache_does_not_propagate_into_nested___cache.jsonc +++ b/crates/vt_plan/tests/plan_snapshots/fixtures/nested_cache_override/snapshots/query_outer___no_cache_does_not_propagate_into_nested___cache.jsonc @@ -88,7 +88,8 @@ "includes_auto": true, "positive_globs": [], "negative_globs": [] - } + }, + "remote_cache": null }, "spawn_command": { "program_path": "/vtt", diff --git a/crates/vt_plan/tests/plan_snapshots/fixtures/nested_cache_override/snapshots/task_graph.md b/crates/vt_plan/tests/plan_snapshots/fixtures/nested_cache_override/snapshots/task_graph.md index ff8dd6598..3ee435e0e 100644 --- a/crates/vt_plan/tests/plan_snapshots/fixtures/nested_cache_override/snapshots/task_graph.md +++ b/crates/vt_plan/tests/plan_snapshots/fixtures/nested_cache_override/snapshots/task_graph.md @@ -24,6 +24,7 @@ flowchart TD "resolved_options": { "cwd": "/", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ @@ -63,6 +64,7 @@ flowchart TD "resolved_options": { "cwd": "/", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ @@ -102,6 +104,7 @@ flowchart TD "resolved_options": { "cwd": "/", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ @@ -141,6 +144,7 @@ flowchart TD "resolved_options": { "cwd": "/", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ diff --git a/crates/vt_plan/tests/plan_snapshots/fixtures/nested_tasks/snapshots/task_graph.md b/crates/vt_plan/tests/plan_snapshots/fixtures/nested_tasks/snapshots/task_graph.md index 399b9d95e..ce3539cb6 100644 --- a/crates/vt_plan/tests/plan_snapshots/fixtures/nested_tasks/snapshots/task_graph.md +++ b/crates/vt_plan/tests/plan_snapshots/fixtures/nested_tasks/snapshots/task_graph.md @@ -22,6 +22,7 @@ flowchart TD "resolved_options": { "cwd": "/", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ @@ -61,6 +62,7 @@ flowchart TD "resolved_options": { "cwd": "/", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ diff --git a/crates/vt_plan/tests/plan_snapshots/fixtures/object_depends_on_duplicate_fields/snapshots/task_graph.md b/crates/vt_plan/tests/plan_snapshots/fixtures/object_depends_on_duplicate_fields/snapshots/task_graph.md index c8645f770..47d8d55f6 100644 --- a/crates/vt_plan/tests/plan_snapshots/fixtures/object_depends_on_duplicate_fields/snapshots/task_graph.md +++ b/crates/vt_plan/tests/plan_snapshots/fixtures/object_depends_on_duplicate_fields/snapshots/task_graph.md @@ -25,6 +25,7 @@ flowchart TD "resolved_options": { "cwd": "/packages/a", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ @@ -64,6 +65,7 @@ flowchart TD "resolved_options": { "cwd": "/packages/a", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ @@ -103,6 +105,7 @@ flowchart TD "resolved_options": { "cwd": "/packages/b", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ diff --git a/crates/vt_plan/tests/plan_snapshots/fixtures/object_depends_on_global_graph/snapshots/task_graph.md b/crates/vt_plan/tests/plan_snapshots/fixtures/object_depends_on_global_graph/snapshots/task_graph.md index a889d36c3..bde6cc9c6 100644 --- a/crates/vt_plan/tests/plan_snapshots/fixtures/object_depends_on_global_graph/snapshots/task_graph.md +++ b/crates/vt_plan/tests/plan_snapshots/fixtures/object_depends_on_global_graph/snapshots/task_graph.md @@ -36,6 +36,7 @@ flowchart TD "resolved_options": { "cwd": "/packages/app", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ @@ -75,6 +76,7 @@ flowchart TD "resolved_options": { "cwd": "/packages/app", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ @@ -114,6 +116,7 @@ flowchart TD "resolved_options": { "cwd": "/packages/app", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ @@ -153,6 +156,7 @@ flowchart TD "resolved_options": { "cwd": "/packages/app", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ @@ -192,6 +196,7 @@ flowchart TD "resolved_options": { "cwd": "/packages/dev-a", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ @@ -231,6 +236,7 @@ flowchart TD "resolved_options": { "cwd": "/packages/dev-a", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ @@ -270,6 +276,7 @@ flowchart TD "resolved_options": { "cwd": "/packages/peer-a", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ @@ -309,6 +316,7 @@ flowchart TD "resolved_options": { "cwd": "/packages/prod-a", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ @@ -348,6 +356,7 @@ flowchart TD "resolved_options": { "cwd": "/packages/prod-missing-task", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ @@ -387,6 +396,7 @@ flowchart TD "resolved_options": { "cwd": "/packages/shared", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ diff --git a/crates/vt_plan/tests/plan_snapshots/fixtures/package_self_dependency/snapshots/task_graph.md b/crates/vt_plan/tests/plan_snapshots/fixtures/package_self_dependency/snapshots/task_graph.md index a2975e663..c33cbfa38 100644 --- a/crates/vt_plan/tests/plan_snapshots/fixtures/package_self_dependency/snapshots/task_graph.md +++ b/crates/vt_plan/tests/plan_snapshots/fixtures/package_self_dependency/snapshots/task_graph.md @@ -21,6 +21,7 @@ flowchart TD "resolved_options": { "cwd": "/packages/self-dep", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ diff --git a/crates/vt_plan/tests/plan_snapshots/fixtures/parallel_and_concurrency/snapshots/task_graph.md b/crates/vt_plan/tests/plan_snapshots/fixtures/parallel_and_concurrency/snapshots/task_graph.md index 2eaae24fb..7f5c8193b 100644 --- a/crates/vt_plan/tests/plan_snapshots/fixtures/parallel_and_concurrency/snapshots/task_graph.md +++ b/crates/vt_plan/tests/plan_snapshots/fixtures/parallel_and_concurrency/snapshots/task_graph.md @@ -25,6 +25,7 @@ flowchart TD "resolved_options": { "cwd": "/", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ @@ -64,6 +65,7 @@ flowchart TD "resolved_options": { "cwd": "/", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ @@ -103,6 +105,7 @@ flowchart TD "resolved_options": { "cwd": "/packages/a", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ @@ -142,6 +145,7 @@ flowchart TD "resolved_options": { "cwd": "/packages/b", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ @@ -181,6 +185,7 @@ flowchart TD "resolved_options": { "cwd": "/packages/c", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ diff --git a/crates/vt_plan/tests/plan_snapshots/fixtures/pnpm_workspace_packages_optional/snapshots/task_graph.md b/crates/vt_plan/tests/plan_snapshots/fixtures/pnpm_workspace_packages_optional/snapshots/task_graph.md index 7b4ff3be5..49605f895 100644 --- a/crates/vt_plan/tests/plan_snapshots/fixtures/pnpm_workspace_packages_optional/snapshots/task_graph.md +++ b/crates/vt_plan/tests/plan_snapshots/fixtures/pnpm_workspace_packages_optional/snapshots/task_graph.md @@ -21,6 +21,7 @@ flowchart TD "resolved_options": { "cwd": "/", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ diff --git a/crates/vt_plan/tests/plan_snapshots/fixtures/prefix_env_path_lookup/snapshots/task_graph.md b/crates/vt_plan/tests/plan_snapshots/fixtures/prefix_env_path_lookup/snapshots/task_graph.md index d9891a1dd..a698b3dff 100644 --- a/crates/vt_plan/tests/plan_snapshots/fixtures/prefix_env_path_lookup/snapshots/task_graph.md +++ b/crates/vt_plan/tests/plan_snapshots/fixtures/prefix_env_path_lookup/snapshots/task_graph.md @@ -21,6 +21,7 @@ flowchart TD "resolved_options": { "cwd": "/", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ diff --git a/crates/vt_plan/tests/plan_snapshots/fixtures/recursive_topological_workspace/snapshots/task_graph.md b/crates/vt_plan/tests/plan_snapshots/fixtures/recursive_topological_workspace/snapshots/task_graph.md index 0a7d7c918..492cc6234 100644 --- a/crates/vt_plan/tests/plan_snapshots/fixtures/recursive_topological_workspace/snapshots/task_graph.md +++ b/crates/vt_plan/tests/plan_snapshots/fixtures/recursive_topological_workspace/snapshots/task_graph.md @@ -28,6 +28,7 @@ flowchart TD "resolved_options": { "cwd": "/apps/web", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ @@ -67,6 +68,7 @@ flowchart TD "resolved_options": { "cwd": "/apps/web", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ @@ -106,6 +108,7 @@ flowchart TD "resolved_options": { "cwd": "/packages/app", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ @@ -145,6 +148,7 @@ flowchart TD "resolved_options": { "cwd": "/packages/app", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ @@ -184,6 +188,7 @@ flowchart TD "resolved_options": { "cwd": "/packages/core", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ @@ -223,6 +228,7 @@ flowchart TD "resolved_options": { "cwd": "/packages/core", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ @@ -262,6 +268,7 @@ flowchart TD "resolved_options": { "cwd": "/packages/utils", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ @@ -301,6 +308,7 @@ flowchart TD "resolved_options": { "cwd": "/packages/utils", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ diff --git a/crates/vt_plan/tests/plan_snapshots/fixtures/script_hooks/snapshots/task_graph.md b/crates/vt_plan/tests/plan_snapshots/fixtures/script_hooks/snapshots/task_graph.md index 36459e47e..20b089ac3 100644 --- a/crates/vt_plan/tests/plan_snapshots/fixtures/script_hooks/snapshots/task_graph.md +++ b/crates/vt_plan/tests/plan_snapshots/fixtures/script_hooks/snapshots/task_graph.md @@ -26,6 +26,7 @@ flowchart TD "resolved_options": { "cwd": "/", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ @@ -65,6 +66,7 @@ flowchart TD "resolved_options": { "cwd": "/", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ @@ -104,6 +106,7 @@ flowchart TD "resolved_options": { "cwd": "/", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ @@ -143,6 +146,7 @@ flowchart TD "resolved_options": { "cwd": "/", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ @@ -182,6 +186,7 @@ flowchart TD "resolved_options": { "cwd": "/", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ @@ -221,6 +226,7 @@ flowchart TD "resolved_options": { "cwd": "/", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ diff --git a/crates/vt_plan/tests/plan_snapshots/fixtures/script_hooks_disabled/snapshots/task_graph.md b/crates/vt_plan/tests/plan_snapshots/fixtures/script_hooks_disabled/snapshots/task_graph.md index 2a9daca4e..5c96c5b5f 100644 --- a/crates/vt_plan/tests/plan_snapshots/fixtures/script_hooks_disabled/snapshots/task_graph.md +++ b/crates/vt_plan/tests/plan_snapshots/fixtures/script_hooks_disabled/snapshots/task_graph.md @@ -23,6 +23,7 @@ flowchart TD "resolved_options": { "cwd": "/", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ @@ -62,6 +63,7 @@ flowchart TD "resolved_options": { "cwd": "/", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ @@ -101,6 +103,7 @@ flowchart TD "resolved_options": { "cwd": "/", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ diff --git a/crates/vt_plan/tests/plan_snapshots/fixtures/script_hooks_nested_run/snapshots/task_graph.md b/crates/vt_plan/tests/plan_snapshots/fixtures/script_hooks_nested_run/snapshots/task_graph.md index c5b8ba1ef..dbe7186ae 100644 --- a/crates/vt_plan/tests/plan_snapshots/fixtures/script_hooks_nested_run/snapshots/task_graph.md +++ b/crates/vt_plan/tests/plan_snapshots/fixtures/script_hooks_nested_run/snapshots/task_graph.md @@ -24,6 +24,7 @@ flowchart TD "resolved_options": { "cwd": "/", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ @@ -63,6 +64,7 @@ flowchart TD "resolved_options": { "cwd": "/", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ @@ -102,6 +104,7 @@ flowchart TD "resolved_options": { "cwd": "/", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ @@ -141,6 +144,7 @@ flowchart TD "resolved_options": { "cwd": "/", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ diff --git a/crates/vt_plan/tests/plan_snapshots/fixtures/script_hooks_task_no_hook/snapshots/task_graph.md b/crates/vt_plan/tests/plan_snapshots/fixtures/script_hooks_task_no_hook/snapshots/task_graph.md index 19b6bedff..8ab47e34f 100644 --- a/crates/vt_plan/tests/plan_snapshots/fixtures/script_hooks_task_no_hook/snapshots/task_graph.md +++ b/crates/vt_plan/tests/plan_snapshots/fixtures/script_hooks_task_no_hook/snapshots/task_graph.md @@ -22,6 +22,7 @@ flowchart TD "resolved_options": { "cwd": "/", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ @@ -61,6 +62,7 @@ flowchart TD "resolved_options": { "cwd": "/", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ diff --git a/crates/vt_plan/tests/plan_snapshots/fixtures/shell_fallback/snapshots/query_shell_fallback_for_pipe_command.jsonc b/crates/vt_plan/tests/plan_snapshots/fixtures/shell_fallback/snapshots/query_shell_fallback_for_pipe_command.jsonc index fbfe2473e..0ec13e88d 100644 --- a/crates/vt_plan/tests/plan_snapshots/fixtures/shell_fallback/snapshots/query_shell_fallback_for_pipe_command.jsonc +++ b/crates/vt_plan/tests/plan_snapshots/fixtures/shell_fallback/snapshots/query_shell_fallback_for_pipe_command.jsonc @@ -63,7 +63,8 @@ "includes_auto": true, "positive_globs": [], "negative_globs": [] - } + }, + "remote_cache": null }, "spawn_command": { "program_path": "", diff --git a/crates/vt_plan/tests/plan_snapshots/fixtures/shell_fallback/snapshots/task_graph.md b/crates/vt_plan/tests/plan_snapshots/fixtures/shell_fallback/snapshots/task_graph.md index 5bf34186e..a8cc9ca3f 100644 --- a/crates/vt_plan/tests/plan_snapshots/fixtures/shell_fallback/snapshots/task_graph.md +++ b/crates/vt_plan/tests/plan_snapshots/fixtures/shell_fallback/snapshots/task_graph.md @@ -21,6 +21,7 @@ flowchart TD "resolved_options": { "cwd": "/", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ diff --git a/crates/vt_plan/tests/plan_snapshots/fixtures/synthetic_cache_disabled/snapshots/query_parent_cache_false_does_not_affect_expanded_query_tasks.jsonc b/crates/vt_plan/tests/plan_snapshots/fixtures/synthetic_cache_disabled/snapshots/query_parent_cache_false_does_not_affect_expanded_query_tasks.jsonc index d97722ed3..100438292 100644 --- a/crates/vt_plan/tests/plan_snapshots/fixtures/synthetic_cache_disabled/snapshots/query_parent_cache_false_does_not_affect_expanded_query_tasks.jsonc +++ b/crates/vt_plan/tests/plan_snapshots/fixtures/synthetic_cache_disabled/snapshots/query_parent_cache_false_does_not_affect_expanded_query_tasks.jsonc @@ -88,7 +88,8 @@ "includes_auto": true, "positive_globs": [], "negative_globs": [] - } + }, + "remote_cache": null }, "spawn_command": { "program_path": "/vtt", diff --git a/crates/vt_plan/tests/plan_snapshots/fixtures/synthetic_cache_disabled/snapshots/query_script_cache_false_does_not_affect_expanded_synthetic_cache.jsonc b/crates/vt_plan/tests/plan_snapshots/fixtures/synthetic_cache_disabled/snapshots/query_script_cache_false_does_not_affect_expanded_synthetic_cache.jsonc index 4be96a06a..12f6bb53a 100644 --- a/crates/vt_plan/tests/plan_snapshots/fixtures/synthetic_cache_disabled/snapshots/query_script_cache_false_does_not_affect_expanded_synthetic_cache.jsonc +++ b/crates/vt_plan/tests/plan_snapshots/fixtures/synthetic_cache_disabled/snapshots/query_script_cache_false_does_not_affect_expanded_synthetic_cache.jsonc @@ -88,7 +88,8 @@ "includes_auto": true, "positive_globs": [], "negative_globs": [] - } + }, + "remote_cache": null }, "spawn_command": { "program_path": "/vtt", diff --git a/crates/vt_plan/tests/plan_snapshots/fixtures/synthetic_cache_disabled/snapshots/query_task_untrackedEnv_inherited_by_synthetic.jsonc b/crates/vt_plan/tests/plan_snapshots/fixtures/synthetic_cache_disabled/snapshots/query_task_untrackedEnv_inherited_by_synthetic.jsonc index c7bfd0dfe..f530dc30a 100644 --- a/crates/vt_plan/tests/plan_snapshots/fixtures/synthetic_cache_disabled/snapshots/query_task_untrackedEnv_inherited_by_synthetic.jsonc +++ b/crates/vt_plan/tests/plan_snapshots/fixtures/synthetic_cache_disabled/snapshots/query_task_untrackedEnv_inherited_by_synthetic.jsonc @@ -64,7 +64,8 @@ "includes_auto": true, "positive_globs": [], "negative_globs": [] - } + }, + "remote_cache": null }, "spawn_command": { "program_path": "/vtt", diff --git a/crates/vt_plan/tests/plan_snapshots/fixtures/synthetic_cache_disabled/snapshots/query_task_with_cache_true_enables_synthetic_cache.jsonc b/crates/vt_plan/tests/plan_snapshots/fixtures/synthetic_cache_disabled/snapshots/query_task_with_cache_true_enables_synthetic_cache.jsonc index ed0c74396..93e4bb4ab 100644 --- a/crates/vt_plan/tests/plan_snapshots/fixtures/synthetic_cache_disabled/snapshots/query_task_with_cache_true_enables_synthetic_cache.jsonc +++ b/crates/vt_plan/tests/plan_snapshots/fixtures/synthetic_cache_disabled/snapshots/query_task_with_cache_true_enables_synthetic_cache.jsonc @@ -63,7 +63,8 @@ "includes_auto": true, "positive_globs": [], "negative_globs": [] - } + }, + "remote_cache": null }, "spawn_command": { "program_path": "/vtt", diff --git a/crates/vt_plan/tests/plan_snapshots/fixtures/synthetic_cache_disabled/snapshots/task_graph.md b/crates/vt_plan/tests/plan_snapshots/fixtures/synthetic_cache_disabled/snapshots/task_graph.md index a281443e0..4bc59e0aa 100644 --- a/crates/vt_plan/tests/plan_snapshots/fixtures/synthetic_cache_disabled/snapshots/task_graph.md +++ b/crates/vt_plan/tests/plan_snapshots/fixtures/synthetic_cache_disabled/snapshots/task_graph.md @@ -27,6 +27,7 @@ flowchart TD "resolved_options": { "cwd": "/", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ @@ -66,6 +67,7 @@ flowchart TD "resolved_options": { "cwd": "/", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ @@ -127,6 +129,7 @@ flowchart TD "resolved_options": { "cwd": "/", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ @@ -166,6 +169,7 @@ flowchart TD "resolved_options": { "cwd": "/", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ @@ -206,6 +210,7 @@ flowchart TD "resolved_options": { "cwd": "/", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ diff --git a/crates/vt_plan/tests/plan_snapshots/fixtures/synthetic_in_subpackage/snapshots/query_synthetic_in_subpackage.jsonc b/crates/vt_plan/tests/plan_snapshots/fixtures/synthetic_in_subpackage/snapshots/query_synthetic_in_subpackage.jsonc index c1e99b334..4893f55aa 100644 --- a/crates/vt_plan/tests/plan_snapshots/fixtures/synthetic_in_subpackage/snapshots/query_synthetic_in_subpackage.jsonc +++ b/crates/vt_plan/tests/plan_snapshots/fixtures/synthetic_in_subpackage/snapshots/query_synthetic_in_subpackage.jsonc @@ -88,7 +88,8 @@ "includes_auto": true, "positive_globs": [], "negative_globs": [] - } + }, + "remote_cache": null }, "spawn_command": { "program_path": "/vtt", diff --git a/crates/vt_plan/tests/plan_snapshots/fixtures/synthetic_in_subpackage/snapshots/task_graph.md b/crates/vt_plan/tests/plan_snapshots/fixtures/synthetic_in_subpackage/snapshots/task_graph.md index 32338a1b9..f7a4de54b 100644 --- a/crates/vt_plan/tests/plan_snapshots/fixtures/synthetic_in_subpackage/snapshots/task_graph.md +++ b/crates/vt_plan/tests/plan_snapshots/fixtures/synthetic_in_subpackage/snapshots/task_graph.md @@ -22,6 +22,7 @@ flowchart TD "resolved_options": { "cwd": "/", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ @@ -61,6 +62,7 @@ flowchart TD "resolved_options": { "cwd": "/packages/a", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ diff --git a/crates/vt_plan/tests/plan_snapshots/fixtures/task_command_shorthands/snapshots/query_array_cd.jsonc b/crates/vt_plan/tests/plan_snapshots/fixtures/task_command_shorthands/snapshots/query_array_cd.jsonc index 927426548..d11cc707d 100644 --- a/crates/vt_plan/tests/plan_snapshots/fixtures/task_command_shorthands/snapshots/query_array_cd.jsonc +++ b/crates/vt_plan/tests/plan_snapshots/fixtures/task_command_shorthands/snapshots/query_array_cd.jsonc @@ -63,7 +63,8 @@ "includes_auto": true, "positive_globs": [], "negative_globs": [] - } + }, + "remote_cache": null }, "spawn_command": { "program_path": "/vtt", @@ -132,7 +133,8 @@ "includes_auto": true, "positive_globs": [], "negative_globs": [] - } + }, + "remote_cache": null }, "spawn_command": { "program_path": "/vtt", @@ -201,7 +203,8 @@ "includes_auto": true, "positive_globs": [], "negative_globs": [] - } + }, + "remote_cache": null }, "spawn_command": { "program_path": "/vtt", diff --git a/crates/vt_plan/tests/plan_snapshots/fixtures/task_command_shorthands/snapshots/query_array_shorthand.jsonc b/crates/vt_plan/tests/plan_snapshots/fixtures/task_command_shorthands/snapshots/query_array_shorthand.jsonc index ea2e126f7..f1cffb9ab 100644 --- a/crates/vt_plan/tests/plan_snapshots/fixtures/task_command_shorthands/snapshots/query_array_shorthand.jsonc +++ b/crates/vt_plan/tests/plan_snapshots/fixtures/task_command_shorthands/snapshots/query_array_shorthand.jsonc @@ -63,7 +63,8 @@ "includes_auto": true, "positive_globs": [], "negative_globs": [] - } + }, + "remote_cache": null }, "spawn_command": { "program_path": "/vtt", @@ -132,7 +133,8 @@ "includes_auto": true, "positive_globs": [], "negative_globs": [] - } + }, + "remote_cache": null }, "spawn_command": { "program_path": "/vtt", @@ -201,7 +203,8 @@ "includes_auto": true, "positive_globs": [], "negative_globs": [] - } + }, + "remote_cache": null }, "spawn_command": { "program_path": "/vtt", diff --git a/crates/vt_plan/tests/plan_snapshots/fixtures/task_command_shorthands/snapshots/query_array_unbalanced_quotes.jsonc b/crates/vt_plan/tests/plan_snapshots/fixtures/task_command_shorthands/snapshots/query_array_unbalanced_quotes.jsonc index 8911d6917..316592697 100644 --- a/crates/vt_plan/tests/plan_snapshots/fixtures/task_command_shorthands/snapshots/query_array_unbalanced_quotes.jsonc +++ b/crates/vt_plan/tests/plan_snapshots/fixtures/task_command_shorthands/snapshots/query_array_unbalanced_quotes.jsonc @@ -63,7 +63,8 @@ "includes_auto": true, "positive_globs": [], "negative_globs": [] - } + }, + "remote_cache": null }, "spawn_command": { "program_path": "", @@ -132,7 +133,8 @@ "includes_auto": true, "positive_globs": [], "negative_globs": [] - } + }, + "remote_cache": null }, "spawn_command": { "program_path": "", diff --git a/crates/vt_plan/tests/plan_snapshots/fixtures/task_command_shorthands/snapshots/query_array_with_and.jsonc b/crates/vt_plan/tests/plan_snapshots/fixtures/task_command_shorthands/snapshots/query_array_with_and.jsonc index 4a4592c9f..2b0f7a85d 100644 --- a/crates/vt_plan/tests/plan_snapshots/fixtures/task_command_shorthands/snapshots/query_array_with_and.jsonc +++ b/crates/vt_plan/tests/plan_snapshots/fixtures/task_command_shorthands/snapshots/query_array_with_and.jsonc @@ -63,7 +63,8 @@ "includes_auto": true, "positive_globs": [], "negative_globs": [] - } + }, + "remote_cache": null }, "spawn_command": { "program_path": "/vtt", @@ -132,7 +133,8 @@ "includes_auto": true, "positive_globs": [], "negative_globs": [] - } + }, + "remote_cache": null }, "spawn_command": { "program_path": "/vtt", @@ -201,7 +203,8 @@ "includes_auto": true, "positive_globs": [], "negative_globs": [] - } + }, + "remote_cache": null }, "spawn_command": { "program_path": "/vtt", diff --git a/crates/vt_plan/tests/plan_snapshots/fixtures/task_command_shorthands/snapshots/query_nested_vt_array.jsonc b/crates/vt_plan/tests/plan_snapshots/fixtures/task_command_shorthands/snapshots/query_nested_vt_array.jsonc index 165b8d50e..42d09c136 100644 --- a/crates/vt_plan/tests/plan_snapshots/fixtures/task_command_shorthands/snapshots/query_nested_vt_array.jsonc +++ b/crates/vt_plan/tests/plan_snapshots/fixtures/task_command_shorthands/snapshots/query_nested_vt_array.jsonc @@ -63,7 +63,8 @@ "includes_auto": true, "positive_globs": [], "negative_globs": [] - } + }, + "remote_cache": null }, "spawn_command": { "program_path": "/vtt", @@ -157,7 +158,8 @@ "includes_auto": true, "positive_globs": [], "negative_globs": [] - } + }, + "remote_cache": null }, "spawn_command": { "program_path": "/vtt", diff --git a/crates/vt_plan/tests/plan_snapshots/fixtures/task_command_shorthands/snapshots/query_object_array_depends_on.jsonc b/crates/vt_plan/tests/plan_snapshots/fixtures/task_command_shorthands/snapshots/query_object_array_depends_on.jsonc index d620b49d5..7013344d9 100644 --- a/crates/vt_plan/tests/plan_snapshots/fixtures/task_command_shorthands/snapshots/query_object_array_depends_on.jsonc +++ b/crates/vt_plan/tests/plan_snapshots/fixtures/task_command_shorthands/snapshots/query_object_array_depends_on.jsonc @@ -63,7 +63,8 @@ "includes_auto": true, "positive_globs": [], "negative_globs": [] - } + }, + "remote_cache": null }, "spawn_command": { "program_path": "/vtt", @@ -132,7 +133,8 @@ "includes_auto": true, "positive_globs": [], "negative_globs": [] - } + }, + "remote_cache": null }, "spawn_command": { "program_path": "/vtt", @@ -201,7 +203,8 @@ "includes_auto": true, "positive_globs": [], "negative_globs": [] - } + }, + "remote_cache": null }, "spawn_command": { "program_path": "/vtt", @@ -291,7 +294,8 @@ "includes_auto": true, "positive_globs": [], "negative_globs": [] - } + }, + "remote_cache": null }, "spawn_command": { "program_path": "/vtt", diff --git a/crates/vt_plan/tests/plan_snapshots/fixtures/task_command_shorthands/snapshots/query_string_shorthand.jsonc b/crates/vt_plan/tests/plan_snapshots/fixtures/task_command_shorthands/snapshots/query_string_shorthand.jsonc index 98e3d3fba..be1f6fbdd 100644 --- a/crates/vt_plan/tests/plan_snapshots/fixtures/task_command_shorthands/snapshots/query_string_shorthand.jsonc +++ b/crates/vt_plan/tests/plan_snapshots/fixtures/task_command_shorthands/snapshots/query_string_shorthand.jsonc @@ -63,7 +63,8 @@ "includes_auto": true, "positive_globs": [], "negative_globs": [] - } + }, + "remote_cache": null }, "spawn_command": { "program_path": "/vtt", diff --git a/crates/vt_plan/tests/plan_snapshots/fixtures/task_command_shorthands/snapshots/task_graph.md b/crates/vt_plan/tests/plan_snapshots/fixtures/task_command_shorthands/snapshots/task_graph.md index 60ac5b57b..a3cf83e08 100644 --- a/crates/vt_plan/tests/plan_snapshots/fixtures/task_command_shorthands/snapshots/task_graph.md +++ b/crates/vt_plan/tests/plan_snapshots/fixtures/task_command_shorthands/snapshots/task_graph.md @@ -30,6 +30,7 @@ flowchart TD "resolved_options": { "cwd": "/", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ @@ -71,6 +72,7 @@ flowchart TD "resolved_options": { "cwd": "/", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ @@ -111,6 +113,7 @@ flowchart TD "resolved_options": { "cwd": "/", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ @@ -151,6 +154,7 @@ flowchart TD "resolved_options": { "cwd": "/", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ @@ -191,6 +195,7 @@ flowchart TD "resolved_options": { "cwd": "/", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ @@ -232,6 +237,7 @@ flowchart TD "resolved_options": { "cwd": "/", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ @@ -271,6 +277,7 @@ flowchart TD "resolved_options": { "cwd": "/", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ diff --git a/crates/vt_plan/tests/plan_snapshots/fixtures/transitive_skip_intermediate/snapshots/task_graph.md b/crates/vt_plan/tests/plan_snapshots/fixtures/transitive_skip_intermediate/snapshots/task_graph.md index dcd37494b..fdf507294 100644 --- a/crates/vt_plan/tests/plan_snapshots/fixtures/transitive_skip_intermediate/snapshots/task_graph.md +++ b/crates/vt_plan/tests/plan_snapshots/fixtures/transitive_skip_intermediate/snapshots/task_graph.md @@ -23,6 +23,7 @@ flowchart TD "resolved_options": { "cwd": "/packages/bottom", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ @@ -62,6 +63,7 @@ flowchart TD "resolved_options": { "cwd": "/packages/middle", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ @@ -101,6 +103,7 @@ flowchart TD "resolved_options": { "cwd": "/packages/top", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ diff --git a/crates/vt_plan/tests/plan_snapshots/fixtures/vpr_shorthand/snapshots/task_graph.md b/crates/vt_plan/tests/plan_snapshots/fixtures/vpr_shorthand/snapshots/task_graph.md index 5c05ed175..b09baa301 100644 --- a/crates/vt_plan/tests/plan_snapshots/fixtures/vpr_shorthand/snapshots/task_graph.md +++ b/crates/vt_plan/tests/plan_snapshots/fixtures/vpr_shorthand/snapshots/task_graph.md @@ -22,6 +22,7 @@ flowchart TD "resolved_options": { "cwd": "/", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ @@ -61,6 +62,7 @@ flowchart TD "resolved_options": { "cwd": "/", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ diff --git a/crates/vt_plan/tests/plan_snapshots/fixtures/windows_cmd_shim_rewrite/snapshots/query_dev_filter_from_root.jsonc b/crates/vt_plan/tests/plan_snapshots/fixtures/windows_cmd_shim_rewrite/snapshots/query_dev_filter_from_root.jsonc index 6d993d7ec..10c0e45fc 100644 --- a/crates/vt_plan/tests/plan_snapshots/fixtures/windows_cmd_shim_rewrite/snapshots/query_dev_filter_from_root.jsonc +++ b/crates/vt_plan/tests/plan_snapshots/fixtures/windows_cmd_shim_rewrite/snapshots/query_dev_filter_from_root.jsonc @@ -63,7 +63,8 @@ "includes_auto": true, "positive_globs": [], "negative_globs": [] - } + }, + "remote_cache": null }, "spawn_command": { "program_path": "/packages/foo/node_modules/.bin/vite", diff --git a/crates/vt_plan/tests/plan_snapshots/fixtures/windows_cmd_shim_rewrite/snapshots/query_dev_in_subpackage.jsonc b/crates/vt_plan/tests/plan_snapshots/fixtures/windows_cmd_shim_rewrite/snapshots/query_dev_in_subpackage.jsonc index 8bc113cfa..23c1762cb 100644 --- a/crates/vt_plan/tests/plan_snapshots/fixtures/windows_cmd_shim_rewrite/snapshots/query_dev_in_subpackage.jsonc +++ b/crates/vt_plan/tests/plan_snapshots/fixtures/windows_cmd_shim_rewrite/snapshots/query_dev_in_subpackage.jsonc @@ -63,7 +63,8 @@ "includes_auto": true, "positive_globs": [], "negative_globs": [] - } + }, + "remote_cache": null }, "spawn_command": { "program_path": "/packages/foo/node_modules/.bin/vite", diff --git a/crates/vt_plan/tests/plan_snapshots/fixtures/windows_cmd_shim_rewrite/snapshots/task_graph.md b/crates/vt_plan/tests/plan_snapshots/fixtures/windows_cmd_shim_rewrite/snapshots/task_graph.md index 24743f10d..db410f30b 100644 --- a/crates/vt_plan/tests/plan_snapshots/fixtures/windows_cmd_shim_rewrite/snapshots/task_graph.md +++ b/crates/vt_plan/tests/plan_snapshots/fixtures/windows_cmd_shim_rewrite/snapshots/task_graph.md @@ -21,6 +21,7 @@ flowchart TD "resolved_options": { "cwd": "/packages/foo", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ diff --git a/crates/vt_plan/tests/plan_snapshots/fixtures/workspace_root_cd_no_skip/snapshots/task_graph.md b/crates/vt_plan/tests/plan_snapshots/fixtures/workspace_root_cd_no_skip/snapshots/task_graph.md index be88151cf..2225c45b6 100644 --- a/crates/vt_plan/tests/plan_snapshots/fixtures/workspace_root_cd_no_skip/snapshots/task_graph.md +++ b/crates/vt_plan/tests/plan_snapshots/fixtures/workspace_root_cd_no_skip/snapshots/task_graph.md @@ -22,6 +22,7 @@ flowchart TD "resolved_options": { "cwd": "/", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ @@ -61,6 +62,7 @@ flowchart TD "resolved_options": { "cwd": "/packages/a", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ diff --git a/crates/vt_plan/tests/plan_snapshots/fixtures/workspace_root_depends_on_passthrough/snapshots/task_graph.md b/crates/vt_plan/tests/plan_snapshots/fixtures/workspace_root_depends_on_passthrough/snapshots/task_graph.md index 431efd8e5..feb67f2cb 100644 --- a/crates/vt_plan/tests/plan_snapshots/fixtures/workspace_root_depends_on_passthrough/snapshots/task_graph.md +++ b/crates/vt_plan/tests/plan_snapshots/fixtures/workspace_root_depends_on_passthrough/snapshots/task_graph.md @@ -25,6 +25,7 @@ flowchart TD "resolved_options": { "cwd": "/", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ @@ -64,6 +65,7 @@ flowchart TD "resolved_options": { "cwd": "/", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ @@ -103,6 +105,7 @@ flowchart TD "resolved_options": { "cwd": "/packages/a", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ @@ -142,6 +145,7 @@ flowchart TD "resolved_options": { "cwd": "/packages/a", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ diff --git a/crates/vt_plan/tests/plan_snapshots/fixtures/workspace_root_multi_command/snapshots/task_graph.md b/crates/vt_plan/tests/plan_snapshots/fixtures/workspace_root_multi_command/snapshots/task_graph.md index 550c93254..e4fe94379 100644 --- a/crates/vt_plan/tests/plan_snapshots/fixtures/workspace_root_multi_command/snapshots/task_graph.md +++ b/crates/vt_plan/tests/plan_snapshots/fixtures/workspace_root_multi_command/snapshots/task_graph.md @@ -22,6 +22,7 @@ flowchart TD "resolved_options": { "cwd": "/", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ @@ -61,6 +62,7 @@ flowchart TD "resolved_options": { "cwd": "/packages/a", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ diff --git a/crates/vt_plan/tests/plan_snapshots/fixtures/workspace_root_mutual_recursion/snapshots/task_graph.md b/crates/vt_plan/tests/plan_snapshots/fixtures/workspace_root_mutual_recursion/snapshots/task_graph.md index d64962355..af5e1bc2f 100644 --- a/crates/vt_plan/tests/plan_snapshots/fixtures/workspace_root_mutual_recursion/snapshots/task_graph.md +++ b/crates/vt_plan/tests/plan_snapshots/fixtures/workspace_root_mutual_recursion/snapshots/task_graph.md @@ -24,6 +24,7 @@ flowchart TD "resolved_options": { "cwd": "/", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ @@ -63,6 +64,7 @@ flowchart TD "resolved_options": { "cwd": "/", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ @@ -102,6 +104,7 @@ flowchart TD "resolved_options": { "cwd": "/packages/a", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ @@ -141,6 +144,7 @@ flowchart TD "resolved_options": { "cwd": "/packages/a", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ diff --git a/crates/vt_plan/tests/plan_snapshots/fixtures/workspace_root_no_package_json/snapshots/task_graph.md b/crates/vt_plan/tests/plan_snapshots/fixtures/workspace_root_no_package_json/snapshots/task_graph.md index f04e05493..f41c76b3d 100644 --- a/crates/vt_plan/tests/plan_snapshots/fixtures/workspace_root_no_package_json/snapshots/task_graph.md +++ b/crates/vt_plan/tests/plan_snapshots/fixtures/workspace_root_no_package_json/snapshots/task_graph.md @@ -22,6 +22,7 @@ flowchart TD "resolved_options": { "cwd": "/", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ @@ -61,6 +62,7 @@ flowchart TD "resolved_options": { "cwd": "/packages/pkg-a", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ diff --git a/crates/vt_plan/tests/plan_snapshots/fixtures/workspace_root_self_reference/snapshots/task_graph.md b/crates/vt_plan/tests/plan_snapshots/fixtures/workspace_root_self_reference/snapshots/task_graph.md index ea93658c0..e2cd85536 100644 --- a/crates/vt_plan/tests/plan_snapshots/fixtures/workspace_root_self_reference/snapshots/task_graph.md +++ b/crates/vt_plan/tests/plan_snapshots/fixtures/workspace_root_self_reference/snapshots/task_graph.md @@ -23,6 +23,7 @@ flowchart TD "resolved_options": { "cwd": "/", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ @@ -62,6 +63,7 @@ flowchart TD "resolved_options": { "cwd": "/packages/a", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [ @@ -101,6 +103,7 @@ flowchart TD "resolved_options": { "cwd": "/packages/b", "cache_config": { + "remote_cache": true, "env_config": { "fingerprinted_envs": [], "untracked_env": [