From e9acfb071f4aa9d89ee7a4e3e7d286cbb604fd55 Mon Sep 17 00:00:00 2001 From: nicholaslyang Date: Wed, 15 May 2024 16:36:10 -0400 Subject: [PATCH] Update tests --- crates/turborepo-lib/src/cli/mod.rs | 17 ++++++- crates/turborepo-lib/src/hash/proto.capnp | 4 +- crates/turborepo-lib/src/run/global_hash.rs | 2 +- crates/turborepo-lib/src/run/mod.rs | 10 ++--- crates/turborepo-lib/src/run/summary/mod.rs | 2 +- .../src/run/summary/task_factory.rs | 7 +-- .../integration/tests/dry-json/monorepo.t | 10 ++--- .../tests/dry-json/single-package-no-config.t | 8 ++-- .../tests/dry-json/single-package-with-deps.t | 12 ++--- .../tests/dry-json/single-package.t | 8 ++-- turborepo-tests/integration/tests/dry-run.t | 6 +-- .../integration/tests/edit-turbo-json/task.t | 30 ++++++------- .../integration/tests/global-deps.t | 4 +- .../integration/tests/global-env.t | 10 ++--- turborepo-tests/integration/tests/no-args.t | 2 +- .../6-topological-unimplemented.t | 2 +- .../integration/tests/pkg-inference.t | 2 +- .../tests/prune/composable-config.t | 2 +- .../excluded-inputs/excluded-inputs.t | 4 +- .../tests/run-logging/errors-only.t | 4 +- .../tests/run-logging/log-order-github.t | 8 ++-- .../tests/run-logging/log-prefix.t | 6 +-- .../integration/tests/run-logging/verbosity.t | 4 +- .../integration/tests/run-summary/discovery.t | 2 +- .../integration/tests/run-summary/error.t | 4 +- .../tests/run-summary/strict-env.t | 8 ++-- .../integration/tests/run/continue.t | 8 ++-- turborepo-tests/integration/tests/run/force.t | 26 +++++------ .../integration/tests/run/gitignored-inputs.t | 4 +- .../integration/tests/run/one-script-error.t | 14 +++--- .../tests/run/single-package/dry-run.t | 4 +- .../tests/run/single-package/no-config.t | 8 ++-- .../tests/run/single-package/run-yarn.t | 4 +- .../tests/run/single-package/run.t | 4 +- .../run/single-package/with-deps-dry-run.t | 6 +-- .../tests/run/single-package/with-deps-run.t | 12 ++--- .../tests/strict-env-vars/usage-infer.t | 44 ------------------- .../tests/task-dependencies/overwriting.t | 6 +-- .../{root-worksapce.t => root-workspace.t} | 4 +- .../tests/task-dependencies/topological.t | 4 +- .../integration/tests/turbo-help.t | 4 +- .../tests/workspace-configs/add-keys.t | 17 +++---- .../tests/workspace-configs/add-tasks.t | 2 +- .../tests/workspace-configs/cache.t | 8 ++-- .../tests/workspace-configs/config-change.t | 6 +-- .../tests/workspace-configs/cross-workspace.t | 6 +-- .../missing-workspace-config-deps.t | 6 +-- .../missing-workspace-config.t | 12 ++--- .../tests/workspace-configs/omit-keys-deps.t | 6 +-- .../tests/workspace-configs/omit-keys.t | 10 ++--- .../workspace-configs/override-values-deps.t | 2 +- .../tests/workspace-configs/override-values.t | 12 ++--- .../tests/workspace-configs/persistent.t | 4 +- 53 files changed, 193 insertions(+), 228 deletions(-) delete mode 100644 turborepo-tests/integration/tests/strict-env-vars/usage-infer.t rename turborepo-tests/integration/tests/task-dependencies/{root-worksapce.t => root-workspace.t} (86%) diff --git a/crates/turborepo-lib/src/cli/mod.rs b/crates/turborepo-lib/src/cli/mod.rs index 70fb0702e92e6..f2e43093ee3e3 100644 --- a/crates/turborepo-lib/src/cli/mod.rs +++ b/crates/turborepo-lib/src/cli/mod.rs @@ -676,7 +676,7 @@ pub struct ExecutionArgs { /// Environment variable mode. /// Use "loose" to pass the entire existing environment. /// Use "strict" to use an allowlist specified in turbo.json. - #[clap(long = "env-mode", default_value = "strict", num_args = 0..=1, default_missing_value = "infer")] + #[clap(long = "env-mode", default_value = "strict", num_args = 0..=1, default_missing_value = "strict")] pub env_mode: EnvMode, /// Use the given selector to specify package(s) to act as /// entry points. The syntax mirrors pnpm's syntax, and @@ -1445,6 +1445,21 @@ mod test { } ; "framework_inference: flag set to false" )] + #[test_case::test_case( + &["turbo", "run", "build", "--env-mode"], + Args { + command: Some(Command::Run { + execution_args: Box::new(ExecutionArgs { + tasks: vec!["build".to_string()], + env_mode: EnvMode::Strict, + ..get_default_execution_args() + }), + run_args: Box::new(get_default_run_args()) + }), + ..Args::default() + } ; + "env_mode: not fully-specified" + )] #[test_case::test_case( &["turbo", "run", "build"], Args { diff --git a/crates/turborepo-lib/src/hash/proto.capnp b/crates/turborepo-lib/src/hash/proto.capnp index 11500f4a1973d..299f3357e578e 100644 --- a/crates/turborepo-lib/src/hash/proto.capnp +++ b/crates/turborepo-lib/src/hash/proto.capnp @@ -45,8 +45,8 @@ struct GlobalHashable { enum EnvMode { - loose @1; - strict @2; + loose @0; + strict @1; } struct Entry { diff --git a/crates/turborepo-lib/src/run/global_hash.rs b/crates/turborepo-lib/src/run/global_hash.rs index af94ff64794f2..0d3d6aa5a32bf 100644 --- a/crates/turborepo-lib/src/run/global_hash.rs +++ b/crates/turborepo-lib/src/run/global_hash.rs @@ -19,7 +19,7 @@ use crate::{ static DEFAULT_ENV_VARS: [&str; 1] = ["VERCEL_ANALYTICS_ID"]; -const GLOBAL_CACHE_KEY: &str = "HEY STELLLLLLLAAAAAAAAAAAAA"; +const GLOBAL_CACHE_KEY: &str = "I can’t see ya, but I know you’re here"; #[derive(Debug, Error)] pub enum Error { diff --git a/crates/turborepo-lib/src/run/mod.rs b/crates/turborepo-lib/src/run/mod.rs index 17e3cdd7013a2..56654570a1378 100644 --- a/crates/turborepo-lib/src/run/mod.rs +++ b/crates/turborepo-lib/src/run/mod.rs @@ -166,15 +166,13 @@ impl Run { is_monorepo.then(|| get_external_deps_hash(&root_workspace.transitive_dependencies)); let global_hash_inputs = { - let (env_mode, pass_through_env) = match self.opts.run_opts.env_mode { + let env_mode = self.opts.run_opts.env_mode; + let pass_through_env = match env_mode { EnvMode::Loose => { // Remove the passthroughs from hash consideration if we're explicitly loose. - (EnvMode::Loose, None) + None } - env_mode => ( - env_mode, - self.root_turbo_json.global_pass_through_env.as_deref(), - ), + EnvMode::Strict => self.root_turbo_json.global_pass_through_env.as_deref(), }; get_global_hash_inputs( diff --git a/crates/turborepo-lib/src/run/summary/mod.rs b/crates/turborepo-lib/src/run/summary/mod.rs index a531ff2851f6c..95101cfbf9f89 100644 --- a/crates/turborepo-lib/src/run/summary/mod.rs +++ b/crates/turborepo-lib/src/run/summary/mod.rs @@ -279,7 +279,7 @@ impl RunTracker { run_opts, packages, global_hash_summary, - global_env_mode.into(), + global_env_mode, task_factory, ) .await?; diff --git a/crates/turborepo-lib/src/run/summary/task_factory.rs b/crates/turborepo-lib/src/run/summary/task_factory.rs index f881e9d2395dc..cb608e47cc7be 100644 --- a/crates/turborepo-lib/src/run/summary/task_factory.rs +++ b/crates/turborepo-lib/src/run/summary/task_factory.rs @@ -175,12 +175,7 @@ impl<'a> TaskSummaryFactory<'a> { framework, dependencies, dependents, - // TODO: this is some very messy code that appears in a few places - // we should attempt to calculate this once and reuse it - env_mode: match self.global_env_mode { - cli::EnvMode::Strict => EnvMode::Strict, - cli::EnvMode::Loose => EnvMode::Loose, - }, + env_mode: self.global_env_mode.into(), environment_variables: TaskEnvVarSummary::new( task_definition, env_vars, diff --git a/turborepo-tests/integration/tests/dry-json/monorepo.t b/turborepo-tests/integration/tests/dry-json/monorepo.t index 137ce9b1429dd..0712a087017fe 100644 --- a/turborepo-tests/integration/tests/dry-json/monorepo.t +++ b/turborepo-tests/integration/tests/dry-json/monorepo.t @@ -10,7 +10,7 @@ Setup $ cat tmpjson.log | jq .globalCacheInputs { - "rootKey": "HEY STELLLLLLLAAAAAAAAAAAAA", + "rootKey": "I can\xe2\x80\x99t see ya, but I know you\xe2\x80\x99re here", (esc) "files": { "foo.txt": "eebae5f3ca7b5831e429e947b7d61edd0de69236" }, @@ -50,7 +50,7 @@ Setup "taskId": "my-app#build", "task": "build", "package": "my-app", - "hash": "f5b905676d8a275c", + "hash": "dea27cc2fbbcfe2c", "inputs": { ".env.local": "e69de29bb2d1d6434b8b29ae775ad8c2e48c5391", "package.json": "1746e0db2361085b5953a6a3beab08c24af5bc08" @@ -92,7 +92,7 @@ Setup }, "expandedOutputs": [], "framework": "", - "envMode": "loose", + "envMode": "strict", "environmentVariables": { "specified": { "env": [], @@ -113,7 +113,7 @@ Setup "taskId": "util#build", "task": "build", "package": "util", - "hash": "1ce33e04f265f95c", + "hash": "e09943c27ed0a75d", "inputs": { "package.json": "e755064fd7893809d10fc067bb409c7ae516327f" }, @@ -148,7 +148,7 @@ Setup }, "expandedOutputs": [], "framework": "", - "envMode": "loose", + "envMode": "strict", "environmentVariables": { "specified": { "env": [ diff --git a/turborepo-tests/integration/tests/dry-json/single-package-no-config.t b/turborepo-tests/integration/tests/dry-json/single-package-no-config.t index 2b1deb817b705..da6f16b1744c2 100644 --- a/turborepo-tests/integration/tests/dry-json/single-package-no-config.t +++ b/turborepo-tests/integration/tests/dry-json/single-package-no-config.t @@ -10,7 +10,7 @@ Setup "turboVersion": "[a-z0-9\.-]+", (re) "monorepo": false, "globalCacheInputs": { - "rootKey": "HEY STELLLLLLLAAAAAAAAAAAAA", + "rootKey": "I can\xe2\x80\x99t see ya, but I know you\xe2\x80\x99re here", (esc) "files": { "package-lock.json": "1c117cce37347befafe3a9cba1b8a609b3600021", "package.json": "8606ff4b95a5330740d8d9d0948faeada64f1f32" @@ -27,13 +27,13 @@ Setup "passthrough": null } }, - "envMode": "infer", + "envMode": "strict", "frameworkInference": true, "tasks": [ { "taskId": "build", "task": "build", - "hash": "bfac661137d88079", + "hash": "64c6a531cb00bb47", "inputs": { ".gitignore": "03b541460c1b836f96f9c0a941ceb48e91a9fd83", "package-lock.json": "1c117cce37347befafe3a9cba1b8a609b3600021", @@ -68,7 +68,7 @@ Setup }, "expandedOutputs": [], "framework": "", - "envMode": "loose", + "envMode": "strict", "environmentVariables": { "specified": { "env": [], diff --git a/turborepo-tests/integration/tests/dry-json/single-package-with-deps.t b/turborepo-tests/integration/tests/dry-json/single-package-with-deps.t index 35d0edd676973..8f1abd6a202c4 100644 --- a/turborepo-tests/integration/tests/dry-json/single-package-with-deps.t +++ b/turborepo-tests/integration/tests/dry-json/single-package-with-deps.t @@ -8,7 +8,7 @@ Setup "turboVersion": "[a-z0-9\.-]+", (re) "monorepo": false, "globalCacheInputs": { - "rootKey": "HEY STELLLLLLLAAAAAAAAAAAAA", + "rootKey": "I can\xe2\x80\x99t see ya, but I know you\xe2\x80\x99re here", (esc) "files": { "package-lock.json": "1c117cce37347befafe3a9cba1b8a609b3600021", "package.json": "8606ff4b95a5330740d8d9d0948faeada64f1f32", @@ -26,13 +26,13 @@ Setup "passthrough": null } }, - "envMode": "infer", + "envMode": "strict", "frameworkInference": true, "tasks": [ { "taskId": "build", "task": "build", - "hash": "45fcb56a23295f63", + "hash": "90cc7d5743fac83f", "inputs": { ".gitignore": "03b541460c1b836f96f9c0a941ceb48e91a9fd83", "package-lock.json": "1c117cce37347befafe3a9cba1b8a609b3600021", @@ -74,7 +74,7 @@ Setup }, "expandedOutputs": [], "framework": "", - "envMode": "loose", + "envMode": "strict", "environmentVariables": { "specified": { "env": [], @@ -89,7 +89,7 @@ Setup { "taskId": "test", "task": "test", - "hash": "314a0e5a10072ae2", + "hash": "a9ebf97b334e0690", "inputs": { ".gitignore": "03b541460c1b836f96f9c0a941ceb48e91a9fd83", "package-lock.json": "1c117cce37347befafe3a9cba1b8a609b3600021", @@ -129,7 +129,7 @@ Setup }, "expandedOutputs": [], "framework": "", - "envMode": "loose", + "envMode": "strict", "environmentVariables": { "specified": { "env": [], diff --git a/turborepo-tests/integration/tests/dry-json/single-package.t b/turborepo-tests/integration/tests/dry-json/single-package.t index a56c44dcc8790..816df96dfe153 100644 --- a/turborepo-tests/integration/tests/dry-json/single-package.t +++ b/turborepo-tests/integration/tests/dry-json/single-package.t @@ -8,7 +8,7 @@ Setup "turboVersion": "[a-z0-9\.-]+", (re) "monorepo": false, "globalCacheInputs": { - "rootKey": "HEY STELLLLLLLAAAAAAAAAAAAA", + "rootKey": "I can\xe2\x80\x99t see ya, but I know you\xe2\x80\x99re here", (esc) "files": { "package-lock.json": "1c117cce37347befafe3a9cba1b8a609b3600021", "package.json": "8606ff4b95a5330740d8d9d0948faeada64f1f32", @@ -26,13 +26,13 @@ Setup "passthrough": null } }, - "envMode": "infer", + "envMode": "strict", "frameworkInference": true, "tasks": [ { "taskId": "build", "task": "build", - "hash": "45fcb56a23295f63", + "hash": "90cc7d5743fac83f", "inputs": { ".gitignore": "03b541460c1b836f96f9c0a941ceb48e91a9fd83", "package-lock.json": "1c117cce37347befafe3a9cba1b8a609b3600021", @@ -72,7 +72,7 @@ Setup }, "expandedOutputs": [], "framework": "", - "envMode": "loose", + "envMode": "strict", "environmentVariables": { "specified": { "env": [], diff --git a/turborepo-tests/integration/tests/dry-run.t b/turborepo-tests/integration/tests/dry-run.t index ce23fb4aadd52..1530efb8d2b91 100644 --- a/turborepo-tests/integration/tests/dry-run.t +++ b/turborepo-tests/integration/tests/dry-run.t @@ -18,7 +18,7 @@ Setup Global Hash Inputs Global Files = 1 External Dependencies Hash = 459c029558afe716 - Global Cache Key = HEY STELLLLLLLAAAAAAAAAAAAA + Global Cache Key = I can\xe2\x80\x99t see ya, but I know you\xe2\x80\x99re here (esc) Global .env Files Considered = 0 Global Env Vars = SOME_ENV_VAR Global Env Vars Values = @@ -31,7 +31,7 @@ Setup my-app#build Task = build\s* (re) Package = my-app\s* (re) - Hash = f5b905676d8a275c\s* (re) + Hash = dea27cc2fbbcfe2c Cached \(Local\) = false\s* (re) Cached \(Remote\) = false\s* (re) Directory = apps(\/|\\)my-app\s* (re) @@ -52,7 +52,7 @@ Setup util#build Task = build\s* (re) Package = util\s* (re) - Hash = 1ce33e04f265f95c\s* (re) + Hash = e09943c27ed0a75d Cached \(Local\) = false\s* (re) Cached \(Remote\) = false\s* (re) Directory = packages(\/|\\)util\s* (re) diff --git a/turborepo-tests/integration/tests/edit-turbo-json/task.t b/turborepo-tests/integration/tests/edit-turbo-json/task.t index 9d4f0a5e46f36..1ba0762b98808 100644 --- a/turborepo-tests/integration/tests/edit-turbo-json/task.t +++ b/turborepo-tests/integration/tests/edit-turbo-json/task.t @@ -6,15 +6,15 @@ Baseline task hashes $ ${TURBO} build --dry=json | jq -r '.tasks | sort_by(.taskId)[] | {taskId, hash}' { "taskId": "another#build", - "hash": "02f55362198a6c3d" + "hash": "39902e236d45b17a" } { "taskId": "my-app#build", - "hash": "8a8944ef32696847" + "hash": "8f74c4a19d54432c" } { "taskId": "util#build", - "hash": "1ce33e04f265f95c" + "hash": "e09943c27ed0a75d" } Change only my-app#build @@ -22,15 +22,15 @@ Change only my-app#build $ ${TURBO} build --dry=json | jq -r '.tasks | sort_by(.taskId)[] | {taskId, hash}' { "taskId": "another#build", - "hash": "02f55362198a6c3d" + "hash": "39902e236d45b17a" } { "taskId": "my-app#build", - "hash": "83bb5352c916557e" + "hash": "c741bcbd31d15d60" } { "taskId": "util#build", - "hash": "1ce33e04f265f95c" + "hash": "e09943c27ed0a75d" } Change my-app#build dependsOn @@ -38,15 +38,15 @@ Change my-app#build dependsOn $ ${TURBO} build --dry=json | jq -r '.tasks | sort_by(.taskId)[] | {taskId, hash}' { "taskId": "another#build", - "hash": "02f55362198a6c3d" + "hash": "39902e236d45b17a" } { "taskId": "my-app#build", - "hash": "346838a5f9d9a530" + "hash": "6553128bdbc1036d" } { "taskId": "util#build", - "hash": "1ce33e04f265f95c" + "hash": "e09943c27ed0a75d" } Non-materially modifying the dep graph does nothing. @@ -54,15 +54,15 @@ Non-materially modifying the dep graph does nothing. $ ${TURBO} build --dry=json | jq -r '.tasks | sort_by(.taskId)[] | {taskId, hash}' { "taskId": "another#build", - "hash": "02f55362198a6c3d" + "hash": "39902e236d45b17a" } { "taskId": "my-app#build", - "hash": "346838a5f9d9a530" + "hash": "6553128bdbc1036d" } { "taskId": "util#build", - "hash": "1ce33e04f265f95c" + "hash": "e09943c27ed0a75d" } @@ -71,13 +71,13 @@ Change util#build impacts itself and my-app $ ${TURBO} build --dry=json | jq -r '.tasks | sort_by(.taskId)[] | {taskId, hash}' { "taskId": "another#build", - "hash": "02f55362198a6c3d" + "hash": "39902e236d45b17a" } { "taskId": "my-app#build", - "hash": "b15e1a917912cd09" + "hash": "fa0fd889b37b9c1b" } { "taskId": "util#build", - "hash": "2ee29eb57d7f69b3" + "hash": "b781fbdbf3ba6a42" } diff --git a/turborepo-tests/integration/tests/global-deps.t b/turborepo-tests/integration/tests/global-deps.t index 6b01cf8d9a93d..75596e648191b 100644 --- a/turborepo-tests/integration/tests/global-deps.t +++ b/turborepo-tests/integration/tests/global-deps.t @@ -6,7 +6,7 @@ Run a build \xe2\x80\xa2 Packages in scope: my-app (esc) \xe2\x80\xa2 Running build in 1 packages (esc) \xe2\x80\xa2 Remote caching disabled (esc) - my-app:build: cache miss, executing 81165ceb4ed0e31f + my-app:build: cache miss, executing 4dd187491a8e9350 Tasks: 1 successful, 1 total Cached: 0 cached, 1 total @@ -18,7 +18,7 @@ Run a build \xe2\x80\xa2 Packages in scope: my-app (esc) \xe2\x80\xa2 Running build in 1 packages (esc) \xe2\x80\xa2 Remote caching disabled (esc) - my-app:build: cache miss, executing 7bc88ba3e84628fd + my-app:build: cache miss, executing 0ba77ba531e887b6 Tasks: 1 successful, 1 total Cached: 0 cached, 1 total diff --git a/turborepo-tests/integration/tests/global-env.t b/turborepo-tests/integration/tests/global-env.t index ed1c90c47c95e..54b5e73c60025 100644 --- a/turborepo-tests/integration/tests/global-env.t +++ b/turborepo-tests/integration/tests/global-env.t @@ -8,7 +8,7 @@ Setup \xe2\x80\xa2 Packages in scope: util (esc) \xe2\x80\xa2 Running build in 1 packages (esc) \xe2\x80\xa2 Remote caching disabled (esc) - util:build: cache miss, executing 1ce33e04f265f95c + util:build: cache miss, executing e09943c27ed0a75d Tasks: 1 successful, 1 total Cached: 0 cached, 1 total @@ -19,7 +19,7 @@ Setup \xe2\x80\xa2 Packages in scope: util (esc) \xe2\x80\xa2 Running build in 1 packages (esc) \xe2\x80\xa2 Remote caching disabled (esc) - util:build: cache hit, suppressing logs 1ce33e04f265f95c + util:build: cache hit, suppressing logs e09943c27ed0a75d Tasks: 1 successful, 1 total Cached: 1 cached, 1 total @@ -30,7 +30,7 @@ Setup \xe2\x80\xa2 Packages in scope: util (esc) \xe2\x80\xa2 Running build in 1 packages (esc) \xe2\x80\xa2 Remote caching disabled (esc) - util:build: cache miss, executing 70278c4ec3fb5ac9 + util:build: cache miss, executing e6d215bd0e04445d Tasks: 1 successful, 1 total Cached: 0 cached, 1 total @@ -41,7 +41,7 @@ Setup \xe2\x80\xa2 Packages in scope: util (esc) \xe2\x80\xa2 Running build in 1 packages (esc) \xe2\x80\xa2 Remote caching disabled (esc) - util:build: cache hit, suppressing logs 1ce33e04f265f95c + util:build: cache hit, suppressing logs e09943c27ed0a75d Tasks: 1 successful, 1 total Cached: 1 cached, 1 total @@ -52,7 +52,7 @@ Setup \xe2\x80\xa2 Packages in scope: util (esc) \xe2\x80\xa2 Running build in 1 packages (esc) \xe2\x80\xa2 Remote caching disabled (esc) - util:build: cache miss, executing 8b12fdc0e2d94c8d + util:build: cache miss, executing f046d9ba285790de Tasks: 1 successful, 1 total Cached: 0 cached, 1 total diff --git a/turborepo-tests/integration/tests/no-args.t b/turborepo-tests/integration/tests/no-args.t index b58c3f46a4a22..5800aa1128069 100644 --- a/turborepo-tests/integration/tests/no-args.t +++ b/turborepo-tests/integration/tests/no-args.t @@ -77,7 +77,7 @@ Make sure exit code is 2 when no args are passed --global-deps Specify glob of global filesystem dependencies to be hashed. Useful for .env and files --env-mode [] - Environment variable mode. Use "loose" to pass the entire existing environment. Use "strict" to use an allowlist specified in turbo.json. Use "infer" to defer to existence of "passThroughEnv" or "globalPassThroughEnv" in turbo.json. (default infer) [default: infer] [possible values: infer, loose, strict] + Environment variable mode. Use "loose" to pass the entire existing environment. Use "strict" to use an allowlist specified in turbo.json [default: strict] [possible values: loose, strict] -F, --filter Use the given selector to specify package(s) to act as entry points. The syntax mirrors pnpm's syntax, and additional documentation and examples can be found in turbo's documentation https://turbo.build/repo/docs/reference/command-line-reference/run#--filter --ignore diff --git a/turborepo-tests/integration/tests/persistent-dependencies/6-topological-unimplemented.t b/turborepo-tests/integration/tests/persistent-dependencies/6-topological-unimplemented.t index 062a3bd1d275a..ce98c3666fe7b 100644 --- a/turborepo-tests/integration/tests/persistent-dependencies/6-topological-unimplemented.t +++ b/turborepo-tests/integration/tests/persistent-dependencies/6-topological-unimplemented.t @@ -17,7 +17,7 @@ \xe2\x80\xa2 Packages in scope: app-a, pkg-a (esc) \xe2\x80\xa2 Running dev in 2 packages (esc) \xe2\x80\xa2 Remote caching disabled (esc) - app-a:dev: cache miss, executing 6ae3691e15cf83ab + app-a:dev: cache miss, executing 97835a4c9c3d1c42 app-a:dev: app-a:dev: > dev app-a:dev: > echo dev-app-a diff --git a/turborepo-tests/integration/tests/pkg-inference.t b/turborepo-tests/integration/tests/pkg-inference.t index c9efbf81bc33c..5a4af6dc19a85 100644 --- a/turborepo-tests/integration/tests/pkg-inference.t +++ b/turborepo-tests/integration/tests/pkg-inference.t @@ -6,7 +6,7 @@ Setup \xe2\x80\xa2 Packages in scope: util (esc) \xe2\x80\xa2 Running build in 1 packages (esc) \xe2\x80\xa2 Remote caching disabled (esc) - util:build: cache miss, executing 1ce33e04f265f95c + util:build: cache miss, executing e09943c27ed0a75d util:build: util:build: > build util:build: > echo building diff --git a/turborepo-tests/integration/tests/prune/composable-config.t b/turborepo-tests/integration/tests/prune/composable-config.t index ca8d88fd19080..4988ba0917f28 100644 --- a/turborepo-tests/integration/tests/prune/composable-config.t +++ b/turborepo-tests/integration/tests/prune/composable-config.t @@ -11,7 +11,7 @@ Make sure that the internal util package is part of the prune output \xe2\x80\xa2 Packages in scope: docs, shared, util (esc) \xe2\x80\xa2 Running new-task in 3 packages (esc) \xe2\x80\xa2 Remote caching disabled (esc) - docs:new-task: cache miss, executing caf7e46550cd3151 + docs:new-task: cache miss, executing ddd86161ccada9c4 docs:new-task: docs:new-task: > docs@ new-task .*out(\/|\\)apps(\/|\\)docs (re) docs:new-task: > echo building diff --git a/turborepo-tests/integration/tests/run-caching/excluded-inputs/excluded-inputs.t b/turborepo-tests/integration/tests/run-caching/excluded-inputs/excluded-inputs.t index 732fe6757aed7..6b10a99218b14 100644 --- a/turborepo-tests/integration/tests/run-caching/excluded-inputs/excluded-inputs.t +++ b/turborepo-tests/integration/tests/run-caching/excluded-inputs/excluded-inputs.t @@ -9,7 +9,7 @@ Running build for my-app succeeds \xe2\x80\xa2 Packages in scope: my-app (esc) \xe2\x80\xa2 Running build in 1 packages (esc) \xe2\x80\xa2 Remote caching disabled (esc) - my-app:build: cache miss, executing 2fa14ad1b3e50ac8 + my-app:build: cache miss, executing c7c1a62f2eb0bc91 my-app:build: my-app:build: > build my-app:build: > echo building @@ -26,7 +26,7 @@ Update exluded file and try again \xe2\x80\xa2 Packages in scope: my-app (esc) \xe2\x80\xa2 Running build in 1 packages (esc) \xe2\x80\xa2 Remote caching disabled (esc) - my-app:build: cache hit, replaying logs 2fa14ad1b3e50ac8 + my-app:build: cache hit, replaying logs c7c1a62f2eb0bc91 my-app:build: my-app:build: > build my-app:build: > echo building diff --git a/turborepo-tests/integration/tests/run-logging/errors-only.t b/turborepo-tests/integration/tests/run-logging/errors-only.t index b0beab295e067..ed1208649ecd5 100644 --- a/turborepo-tests/integration/tests/run-logging/errors-only.t +++ b/turborepo-tests/integration/tests/run-logging/errors-only.t @@ -37,7 +37,7 @@ Setup \xe2\x80\xa2 Packages in scope: app-a (esc) \xe2\x80\xa2 Running builderror in 1 packages (esc) \xe2\x80\xa2 Remote caching disabled (esc) - app-a:builderror: cache miss, executing 63f09c22afb626a8 + app-a:builderror: cache miss, executing 1da6f0a01cdeec30 app-a:builderror: app-a:builderror: > builderror app-a:builderror: > echo error-builderror-app-a && exit 1 @@ -67,7 +67,7 @@ Setup \xe2\x80\xa2 Packages in scope: app-a (esc) \xe2\x80\xa2 Running builderror2 in 1 packages (esc) \xe2\x80\xa2 Remote caching disabled (esc) - app-a:builderror2: cache miss, executing 7303c469d075d34c + app-a:builderror2: cache miss, executing 432a3179a586f316 app-a:builderror2: app-a:builderror2: > builderror2 app-a:builderror2: > echo error-builderror2-app-a && exit 1 diff --git a/turborepo-tests/integration/tests/run-logging/log-order-github.t b/turborepo-tests/integration/tests/run-logging/log-order-github.t index 96c17cfb3977a..4818661b974a9 100644 --- a/turborepo-tests/integration/tests/run-logging/log-order-github.t +++ b/turborepo-tests/integration/tests/run-logging/log-order-github.t @@ -9,7 +9,7 @@ because otherwise prysk interprets them as multiline commands \xe2\x80\xa2 Running build in 2 packages (esc) \xe2\x80\xa2 Remote caching disabled (esc) ::group::my-app:build - cache bypass, force executing c1d33a8183d8cf0b + cache bypass, force executing 7727324039284236 >\sbuild (re) \>\secho building && sleep 1 && echo done (re) @@ -18,7 +18,7 @@ because otherwise prysk interprets them as multiline commands done ::endgroup:: ::group::util:build - cache bypass, force executing ff1050c513839636 + cache bypass, force executing a7dd27708069cde0 >\sbuild (re) \>\ssleep 0.5 && echo building && sleep 1 && echo completed (re) @@ -37,7 +37,7 @@ because otherwise prysk interprets them as multiline commands \xe2\x80\xa2 Running build in 1 packages (esc) \xe2\x80\xa2 Remote caching disabled (esc) ::group::util:build - util:build: cache bypass, force executing ff1050c513839636 + util:build: cache bypass, force executing a7dd27708069cde0 util:build: util:build: > build util:build: > sleep 0.5 && echo building && sleep 1 && echo completed @@ -57,7 +57,7 @@ Verify that errors are grouped properly \xe2\x80\xa2 Running fail in 2 packages (esc) \xe2\x80\xa2 Remote caching disabled (esc) \x1b[;31mutil:fail\x1b[;0m (esc) - cache miss, executing 122cca10fdcda4f0 + cache miss, executing 38275ed800694fd2 \> fail (re) \> echo failing; exit 1 (re) diff --git a/turborepo-tests/integration/tests/run-logging/log-prefix.t b/turborepo-tests/integration/tests/run-logging/log-prefix.t index caa6e1c5a3ced..a00a7cef05581 100644 --- a/turborepo-tests/integration/tests/run-logging/log-prefix.t +++ b/turborepo-tests/integration/tests/run-logging/log-prefix.t @@ -6,7 +6,7 @@ Setup \xe2\x80\xa2 Packages in scope: app-a (esc) \xe2\x80\xa2 Running build in 1 packages (esc) \xe2\x80\xa2 Remote caching disabled (esc) - cache miss, executing 6b91fee8d61438d4 + cache miss, executing 876205c5f2ac2495 \> build (re) \> echo build-app-a (re) @@ -30,7 +30,7 @@ Setup \xe2\x80\xa2 Packages in scope: app-a (esc) \xe2\x80\xa2 Running build in 1 packages (esc) \xe2\x80\xa2 Remote caching disabled (esc) - cache hit, replaying logs 6b91fee8d61438d4 + cache hit, replaying logs 876205c5f2ac2495 \> build (re) \> echo build-app-a (re) @@ -46,7 +46,7 @@ Setup \xe2\x80\xa2 Packages in scope: app-a (esc) \xe2\x80\xa2 Running build in 1 packages (esc) \xe2\x80\xa2 Remote caching disabled (esc) - app-a:build: cache hit, replaying logs 6b91fee8d61438d4 + app-a:build: cache hit, replaying logs 876205c5f2ac2495 app-a:build: app-a:build: > build app-a:build: > echo build-app-a diff --git a/turborepo-tests/integration/tests/run-logging/verbosity.t b/turborepo-tests/integration/tests/run-logging/verbosity.t index 65fccf862d684..f73db028e0e8a 100644 --- a/turborepo-tests/integration/tests/run-logging/verbosity.t +++ b/turborepo-tests/integration/tests/run-logging/verbosity.t @@ -6,7 +6,7 @@ Verbosity level 1 \xe2\x80\xa2 Packages in scope: util (esc) \xe2\x80\xa2 Running build in 1 packages (esc) \xe2\x80\xa2 Remote caching disabled (esc) - util:build: cache bypass, force executing 1ce33e04f265f95c + util:build: cache bypass, force executing e09943c27ed0a75d util:build: util:build: > build util:build: > echo building @@ -21,7 +21,7 @@ Verbosity level 1 \xe2\x80\xa2 Packages in scope: util (esc) \xe2\x80\xa2 Running build in 1 packages (esc) \xe2\x80\xa2 Remote caching disabled (esc) - util:build: cache bypass, force executing 1ce33e04f265f95c + util:build: cache bypass, force executing e09943c27ed0a75d util:build: util:build: > build util:build: > echo building diff --git a/turborepo-tests/integration/tests/run-summary/discovery.t b/turborepo-tests/integration/tests/run-summary/discovery.t index 43847dfe85a09..2736702d8f371 100644 --- a/turborepo-tests/integration/tests/run-summary/discovery.t +++ b/turborepo-tests/integration/tests/run-summary/discovery.t @@ -6,7 +6,7 @@ Setup \xe2\x80\xa2 Packages in scope: my-app (esc) \xe2\x80\xa2 Running build in 1 packages (esc) \xe2\x80\xa2 Remote caching disabled (esc) - my-app:build: cache miss, executing f5b905676d8a275c + my-app:build: cache miss, executing dea27cc2fbbcfe2c my-app:build: my-app:build: > build my-app:build: > echo building diff --git a/turborepo-tests/integration/tests/run-summary/error.t b/turborepo-tests/integration/tests/run-summary/error.t index e1309285ac870..34c335b1acce5 100644 --- a/turborepo-tests/integration/tests/run-summary/error.t +++ b/turborepo-tests/integration/tests/run-summary/error.t @@ -32,7 +32,7 @@ Validate that we got a full task summary for the failed task with an error in .e "taskId": "my-app#maybefails", "task": "maybefails", "package": "my-app", - "hash": "9626dfcd1fbbdc68", + "hash": "103177870ad592bd", "inputs": { ".env.local": "e69de29bb2d1d6434b8b29ae775ad8c2e48c5391", "package.json": "1746e0db2361085b5953a6a3beab08c24af5bc08" @@ -66,7 +66,7 @@ Validate that we got a full task summary for the failed task with an error in .e }, "expandedOutputs": [], "framework": "", - "envMode": "loose", + "envMode": "strict", "environmentVariables": { "specified": { "env": [], diff --git a/turborepo-tests/integration/tests/run-summary/strict-env.t b/turborepo-tests/integration/tests/run-summary/strict-env.t index bb4cba1621bce..9a2522b8889ad 100644 --- a/turborepo-tests/integration/tests/run-summary/strict-env.t +++ b/turborepo-tests/integration/tests/run-summary/strict-env.t @@ -13,9 +13,9 @@ Run as `infer` $ rm -rf .turbo/runs $ ${TURBO} run build --summarize > /dev/null $ cat .turbo/runs/*.json | jq -r '.envMode' - infer + strict $ cat .turbo/runs/*.json | jq -r '.tasks[0].envMode' - loose + strict $ cat .turbo/runs/*.json | jq -r '.tasks[0].environmentVariables | {passthrough, globalPassthrough}' { "passthrough": null, @@ -141,7 +141,7 @@ Task passthrough specified empty array + infer $ ${TESTDIR}/../../../helpers/replace_turbo_json.sh $(pwd) "strict_env_vars/task_pt-empty.json" $ ${TURBO} run build --summarize > /dev/null $ cat .turbo/runs/*.json | jq -r '.envMode' - infer + strict $ cat .turbo/runs/*.json | jq -r '.tasks[0].envMode' strict $ cat .turbo/runs/*.json | jq -r '.tasks[0].environmentVariables | {passthrough, globalPassthrough}' @@ -155,7 +155,7 @@ Task passthrough specified value + infer $ ${TESTDIR}/../../../helpers/replace_turbo_json.sh $(pwd) "strict_env_vars/task_pt.json" $ ${TURBO} run build --summarize > /dev/null $ cat .turbo/runs/*.json | jq -r '.envMode' - infer + strict $ cat .turbo/runs/*.json | jq -r '.tasks[0].envMode' strict $ cat .turbo/runs/*.json | jq -r '.tasks[0].environmentVariables | {passthrough, globalPassthrough}' diff --git a/turborepo-tests/integration/tests/run/continue.t b/turborepo-tests/integration/tests/run/continue.t index 102a4322514c8..ce6ed3587e52f 100644 --- a/turborepo-tests/integration/tests/run/continue.t +++ b/turborepo-tests/integration/tests/run/continue.t @@ -5,7 +5,7 @@ Run without --continue \xe2\x80\xa2 Packages in scope: my-app, other-app, some-lib (esc) \xe2\x80\xa2 Running build in 3 packages (esc) \xe2\x80\xa2 Remote caching disabled (esc) - some-lib:build: cache miss, executing 768adc25648baff5 + some-lib:build: cache miss, executing 1dd4e409589f7ed7 some-lib:build: some-lib:build: > build some-lib:build: > exit 2 @@ -31,7 +31,7 @@ Run without --continue, and with only errors. \xe2\x80\xa2 Packages in scope: my-app, other-app, some-lib (esc) \xe2\x80\xa2 Running build in 3 packages (esc) \xe2\x80\xa2 Remote caching disabled (esc) - some-lib:build: cache miss, executing 768adc25648baff5 + some-lib:build: cache miss, executing 1dd4e409589f7ed7 some-lib:build: some-lib:build: > build some-lib:build: > exit 2 @@ -56,7 +56,7 @@ Run with --continue \xe2\x80\xa2 Packages in scope: my-app, other-app, some-lib (esc) \xe2\x80\xa2 Running build in 3 packages (esc) \xe2\x80\xa2 Remote caching disabled (esc) - some-lib:build: cache miss, executing 768adc25648baff5 + some-lib:build: cache miss, executing 1dd4e409589f7ed7 some-lib:build: some-lib:build: > build some-lib:build: > exit 2 @@ -66,7 +66,7 @@ Run with --continue some-lib:build: npm ERR! in workspace: some-lib some-lib:build: npm ERR! at location: (.*)(\/|\\)apps(\/|\\)some-lib (re) some-lib:build: command finished with error, but continuing... - other-app:build: cache miss, executing a40a9e67334d0ae6 + other-app:build: cache miss, executing 31791045ed09bca5 other-app:build: other-app:build: > build other-app:build: > exit 3 diff --git a/turborepo-tests/integration/tests/run/force.t b/turborepo-tests/integration/tests/run/force.t index ea7c24fb95ef6..7f3e7780d3c27 100644 --- a/turborepo-tests/integration/tests/run/force.t +++ b/turborepo-tests/integration/tests/run/force.t @@ -24,7 +24,7 @@ baseline to generate cache \xe2\x80\xa2 Packages in scope: my-app (esc) \xe2\x80\xa2 Running build in 1 packages (esc) \xe2\x80\xa2 Remote caching disabled (esc) - my-app:build: cache miss, executing f5b905676d8a275c + my-app:build: cache miss, executing dea27cc2fbbcfe2c Tasks: 1 successful, 1 total Cached: 0 cached, 1 total @@ -36,7 +36,7 @@ baseline to generate cache \xe2\x80\xa2 Packages in scope: my-app (esc) \xe2\x80\xa2 Running build in 1 packages (esc) \xe2\x80\xa2 Remote caching disabled (esc) - my-app:build: cache bypass, force executing f5b905676d8a275c + my-app:build: cache bypass, force executing dea27cc2fbbcfe2c Tasks: 1 successful, 1 total Cached: 0 cached, 1 total @@ -47,7 +47,7 @@ baseline to generate cache \xe2\x80\xa2 Packages in scope: my-app (esc) \xe2\x80\xa2 Running build in 1 packages (esc) \xe2\x80\xa2 Remote caching disabled (esc) - my-app:build: cache bypass, force executing f5b905676d8a275c + my-app:build: cache bypass, force executing dea27cc2fbbcfe2c Tasks: 1 successful, 1 total Cached: 0 cached, 1 total @@ -58,7 +58,7 @@ baseline to generate cache \xe2\x80\xa2 Packages in scope: my-app (esc) \xe2\x80\xa2 Running build in 1 packages (esc) \xe2\x80\xa2 Remote caching disabled (esc) - my-app:build: cache hit, suppressing logs f5b905676d8a275c + my-app:build: cache hit, suppressing logs dea27cc2fbbcfe2c Tasks: 1 successful, 1 total Cached: 1 cached, 1 total @@ -69,7 +69,7 @@ baseline to generate cache \xe2\x80\xa2 Packages in scope: my-app (esc) \xe2\x80\xa2 Running build in 1 packages (esc) \xe2\x80\xa2 Remote caching disabled (esc) - my-app:build: cache bypass, force executing f5b905676d8a275c + my-app:build: cache bypass, force executing dea27cc2fbbcfe2c Tasks: 1 successful, 1 total Cached: 0 cached, 1 total @@ -81,7 +81,7 @@ baseline to generate cache \xe2\x80\xa2 Packages in scope: my-app (esc) \xe2\x80\xa2 Running build in 1 packages (esc) \xe2\x80\xa2 Remote caching disabled (esc) - my-app:build: cache hit, suppressing logs f5b905676d8a275c + my-app:build: cache hit, suppressing logs dea27cc2fbbcfe2c Tasks: 1 successful, 1 total Cached: 1 cached, 1 total @@ -92,7 +92,7 @@ baseline to generate cache \xe2\x80\xa2 Packages in scope: my-app (esc) \xe2\x80\xa2 Running build in 1 packages (esc) \xe2\x80\xa2 Remote caching disabled (esc) - my-app:build: cache bypass, force executing f5b905676d8a275c + my-app:build: cache bypass, force executing dea27cc2fbbcfe2c Tasks: 1 successful, 1 total Cached: 0 cached, 1 total @@ -103,7 +103,7 @@ baseline to generate cache \xe2\x80\xa2 Packages in scope: my-app (esc) \xe2\x80\xa2 Running build in 1 packages (esc) \xe2\x80\xa2 Remote caching disabled (esc) - my-app:build: cache hit, suppressing logs f5b905676d8a275c + my-app:build: cache hit, suppressing logs dea27cc2fbbcfe2c Tasks: 1 successful, 1 total Cached: 1 cached, 1 total @@ -114,7 +114,7 @@ baseline to generate cache \xe2\x80\xa2 Packages in scope: my-app (esc) \xe2\x80\xa2 Running build in 1 packages (esc) \xe2\x80\xa2 Remote caching disabled (esc) - my-app:build: cache bypass, force executing f5b905676d8a275c + my-app:build: cache bypass, force executing dea27cc2fbbcfe2c Tasks: 1 successful, 1 total Cached: 0 cached, 1 total @@ -126,7 +126,7 @@ baseline to generate cache \xe2\x80\xa2 Packages in scope: my-app (esc) \xe2\x80\xa2 Running build in 1 packages (esc) \xe2\x80\xa2 Remote caching disabled (esc) - my-app:build: cache hit, suppressing logs f5b905676d8a275c + my-app:build: cache hit, suppressing logs dea27cc2fbbcfe2c Tasks: 1 successful, 1 total Cached: 1 cached, 1 total @@ -137,7 +137,7 @@ baseline to generate cache \xe2\x80\xa2 Packages in scope: my-app (esc) \xe2\x80\xa2 Running build in 1 packages (esc) \xe2\x80\xa2 Remote caching disabled (esc) - my-app:build: cache bypass, force executing f5b905676d8a275c + my-app:build: cache bypass, force executing dea27cc2fbbcfe2c Tasks: 1 successful, 1 total Cached: 0 cached, 1 total @@ -148,7 +148,7 @@ baseline to generate cache \xe2\x80\xa2 Packages in scope: my-app (esc) \xe2\x80\xa2 Running build in 1 packages (esc) \xe2\x80\xa2 Remote caching disabled (esc) - my-app:build: cache hit, suppressing logs f5b905676d8a275c + my-app:build: cache hit, suppressing logs dea27cc2fbbcfe2c Tasks: 1 successful, 1 total Cached: 1 cached, 1 total @@ -159,7 +159,7 @@ baseline to generate cache \xe2\x80\xa2 Packages in scope: my-app (esc) \xe2\x80\xa2 Running build in 1 packages (esc) \xe2\x80\xa2 Remote caching disabled (esc) - my-app:build: cache bypass, force executing f5b905676d8a275c + my-app:build: cache bypass, force executing dea27cc2fbbcfe2c Tasks: 1 successful, 1 total Cached: 0 cached, 1 total diff --git a/turborepo-tests/integration/tests/run/gitignored-inputs.t b/turborepo-tests/integration/tests/run/gitignored-inputs.t index b9cc43db657e9..3e995a4884bcb 100644 --- a/turborepo-tests/integration/tests/run/gitignored-inputs.t +++ b/turborepo-tests/integration/tests/run/gitignored-inputs.t @@ -16,7 +16,7 @@ Some helper functions to parse the summary file Just run the util package, it's simpler $ ${TURBO} run build --filter=util --output-logs=hash-only --summarize | grep "util:build: cache" - util:build: cache miss, executing 2f6ab59379ddcb93 + util:build: cache miss, executing dffa41f35e6b8025 $ FIRST=$(/bin/ls .turbo/runs/*.json | head -n1) $ echo $(getSummaryTaskId $FIRST "util#build") | jq -r '.inputs."internal.txt"' @@ -30,7 +30,7 @@ Change the content of internal.txt Hash does not change, because it is gitignored $ ${TURBO} run build --filter=util --output-logs=hash-only --summarize | grep "util:build: cache" - util:build: cache miss, executing a26c95f27f26f89c + util:build: cache miss, executing 9bddb3872b360f91 The internal.txt hash should be different from the one before $ SECOND=$(/bin/ls .turbo/runs/*.json | head -n1) diff --git a/turborepo-tests/integration/tests/run/one-script-error.t b/turborepo-tests/integration/tests/run/one-script-error.t index e4c7c1db63e4a..63e4250f937b3 100644 --- a/turborepo-tests/integration/tests/run/one-script-error.t +++ b/turborepo-tests/integration/tests/run/one-script-error.t @@ -7,13 +7,13 @@ Note that npm reports any failed script as exit code 1, even though we "exit 2" \xe2\x80\xa2 Packages in scope: my-app (esc) \xe2\x80\xa2 Running error in 1 packages (esc) \xe2\x80\xa2 Remote caching disabled (esc) - my-app:okay: cache miss, executing ffe52e38e68be53e + my-app:okay: cache miss, executing 60081aaddedc751b my-app:okay: my-app:okay: > okay my-app:okay: > echo working my-app:okay: my-app:okay: working - my-app:error: cache miss, executing 8d3be716599fe376 + my-app:error: cache miss, executing a56db94cef498f96 my-app:error: my-app:error: > error my-app:error: > exit 2 @@ -38,13 +38,13 @@ Make sure error isn't cached \xe2\x80\xa2 Packages in scope: my-app (esc) \xe2\x80\xa2 Running error in 1 packages (esc) \xe2\x80\xa2 Remote caching disabled (esc) - my-app:okay: cache hit, replaying logs ffe52e38e68be53e + my-app:okay: cache hit, replaying logs 60081aaddedc751b my-app:okay: my-app:okay: > okay my-app:okay: > echo working my-app:okay: my-app:okay: working - my-app:error: cache miss, executing 8d3be716599fe376 + my-app:error: cache miss, executing a56db94cef498f96 my-app:error: my-app:error: > error my-app:error: > exit 2 @@ -69,13 +69,13 @@ Make sure error code isn't swallowed with continue \xe2\x80\xa2 Packages in scope: my-app (esc) \xe2\x80\xa2 Running okay2 in 1 packages (esc) \xe2\x80\xa2 Remote caching disabled (esc) - my-app:okay: cache hit, replaying logs ffe52e38e68be53e + my-app:okay: cache hit, replaying logs 60081aaddedc751b my-app:okay: my-app:okay: > okay my-app:okay: > echo working my-app:okay: my-app:okay: working - my-app:error: cache miss, executing 8d3be716599fe376 + my-app:error: cache miss, executing a56db94cef498f96 my-app:error: my-app:error: > error my-app:error: > exit 2 @@ -85,7 +85,7 @@ Make sure error code isn't swallowed with continue my-app:error: npm ERR! in workspace: my-app my-app:error: npm ERR! at location: .*apps(\/|\\)my-app (re) my-app:error: command finished with error, but continuing... - my-app:okay2: cache miss, executing 13c728e793c08f30 + my-app:okay2: cache miss, executing f812a944fbfe6220 my-app:okay2: my-app:okay2: > okay2 my-app:okay2: > echo working diff --git a/turborepo-tests/integration/tests/run/single-package/dry-run.t b/turborepo-tests/integration/tests/run/single-package/dry-run.t index 3a90872232b13..fb677b807f996 100644 --- a/turborepo-tests/integration/tests/run/single-package/dry-run.t +++ b/turborepo-tests/integration/tests/run/single-package/dry-run.t @@ -7,7 +7,7 @@ Check Global Hash Inputs Global Files = 3 External Dependencies Hash = - Global Cache Key = HEY STELLLLLLLAAAAAAAAAAAAA + Global Cache Key = I can\xe2\x80\x99t see ya, but I know you\xe2\x80\x99re here (esc) Global .env Files Considered = 0 Global Env Vars = Global Env Vars Values = @@ -18,7 +18,7 @@ Check Tasks to Run build Task = build\s* (re) - Hash = 45fcb56a23295f63 + Hash = 90cc7d5743fac83f Cached \(Local\) = false\s* (re) Cached \(Remote\) = false\s* (re) Command = echo building > foo.txt\s* (re) diff --git a/turborepo-tests/integration/tests/run/single-package/no-config.t b/turborepo-tests/integration/tests/run/single-package/no-config.t index b96092f9cfc74..3ac247cce5231 100644 --- a/turborepo-tests/integration/tests/run/single-package/no-config.t +++ b/turborepo-tests/integration/tests/run/single-package/no-config.t @@ -9,7 +9,7 @@ Check Global Hash Inputs Global Files = 2\s* (re) External Dependencies Hash =\s* (re) - Global Cache Key = HEY STELLLLLLLAAAAAAAAAAAAA\s* (re) + Global Cache Key = I can\xe2\x80\x99t see ya, but I know you\xe2\x80\x99re here (esc) Global .env Files Considered = 0\s* (re) Global Env Vars =\s* (re) Global Env Vars Values =\s* (re) @@ -20,7 +20,7 @@ Check Tasks to Run build Task = build\s* (re) - Hash = bfac661137d88079 + Hash = 64c6a531cb00bb47 Cached \(Local\) = false\s* (re) Cached \(Remote\) = false\s* (re) Command = echo building > foo.txt\s* (re) @@ -52,7 +52,7 @@ Run real once $ ${TURBO} run build \xe2\x80\xa2 Running build (esc) \xe2\x80\xa2 Remote caching disabled (esc) - build: cache bypass, force executing bfac661137d88079 + build: cache bypass, force executing 64c6a531cb00bb47 build: build: > build build: > echo building > foo.txt @@ -66,7 +66,7 @@ Run a second time, verify no caching because there is no config $ ${TURBO} run build \xe2\x80\xa2 Running build (esc) \xe2\x80\xa2 Remote caching disabled (esc) - build: cache bypass, force executing bfac661137d88079 + build: cache bypass, force executing 64c6a531cb00bb47 build: build: > build build: > echo building > foo.txt diff --git a/turborepo-tests/integration/tests/run/single-package/run-yarn.t b/turborepo-tests/integration/tests/run/single-package/run-yarn.t index 8e457e1ba021f..690367779a0ca 100644 --- a/turborepo-tests/integration/tests/run/single-package/run-yarn.t +++ b/turborepo-tests/integration/tests/run/single-package/run-yarn.t @@ -5,7 +5,7 @@ Check $ ${TURBO} run build \xe2\x80\xa2 Running build (esc) \xe2\x80\xa2 Remote caching disabled (esc) - build: cache miss, executing c1d6153f4a6d83b5 + build: cache miss, executing e12268e5b9e277ed build: yarn run v1.22.17 build: warning package.json: No license field build: $ echo building > foo.txt @@ -18,7 +18,7 @@ Check $ ${TURBO} run build \xe2\x80\xa2 Running build (esc) \xe2\x80\xa2 Remote caching disabled (esc) - build: cache hit, replaying logs c1d6153f4a6d83b5 + build: cache hit, replaying logs e12268e5b9e277ed build: yarn run v1.22.17 build: warning package.json: No license field build: $ echo building > foo.txt diff --git a/turborepo-tests/integration/tests/run/single-package/run.t b/turborepo-tests/integration/tests/run/single-package/run.t index de4290a16e20f..474491e346b1c 100644 --- a/turborepo-tests/integration/tests/run/single-package/run.t +++ b/turborepo-tests/integration/tests/run/single-package/run.t @@ -5,7 +5,7 @@ Check $ ${TURBO} run build \xe2\x80\xa2 Running build (esc) \xe2\x80\xa2 Remote caching disabled (esc) - build: cache miss, executing 45fcb56a23295f63 + build: cache miss, executing 90cc7d5743fac83f build: build: > build build: > echo building > foo.txt @@ -22,7 +22,7 @@ Run a second time, verify caching works because there is a config $ ${TURBO} run build \xe2\x80\xa2 Running build (esc) \xe2\x80\xa2 Remote caching disabled (esc) - build: cache hit, replaying logs 45fcb56a23295f63 + build: cache hit, replaying logs 90cc7d5743fac83f build: build: > build build: > echo building > foo.txt diff --git a/turborepo-tests/integration/tests/run/single-package/with-deps-dry-run.t b/turborepo-tests/integration/tests/run/single-package/with-deps-dry-run.t index eda313d048e60..11f5ec447cac4 100644 --- a/turborepo-tests/integration/tests/run/single-package/with-deps-dry-run.t +++ b/turborepo-tests/integration/tests/run/single-package/with-deps-dry-run.t @@ -7,7 +7,7 @@ Check Global Hash Inputs Global Files = 3 External Dependencies Hash = - Global Cache Key = HEY STELLLLLLLAAAAAAAAAAAAA + Global Cache Key = I can\xe2\x80\x99t see ya, but I know you\xe2\x80\x99re here (esc) Global .env Files Considered = 0 Global Env Vars = Global Env Vars Values = @@ -18,7 +18,7 @@ Check Tasks to Run build Task = build\s* (re) - Hash = 45fcb56a23295f63 + Hash = 90cc7d5743fac83f Cached \(Local\) = false\s* (re) Cached \(Remote\) = false\s* (re) Command = echo building > foo.txt\s* (re) @@ -37,7 +37,7 @@ Check Framework =\s* (re) test Task = test\s* (re) - Hash = 314a0e5a10072ae2 + Hash = a9ebf97b334e0690 Cached \(Local\) = false\s* (re) Cached \(Remote\) = false\s* (re) Command = cat foo.txt\s* (re) diff --git a/turborepo-tests/integration/tests/run/single-package/with-deps-run.t b/turborepo-tests/integration/tests/run/single-package/with-deps-run.t index 2440a21185470..710b34d17a9fa 100644 --- a/turborepo-tests/integration/tests/run/single-package/with-deps-run.t +++ b/turborepo-tests/integration/tests/run/single-package/with-deps-run.t @@ -5,12 +5,12 @@ Check $ ${TURBO} run test \xe2\x80\xa2 Running test (esc) \xe2\x80\xa2 Remote caching disabled (esc) - build: cache miss, executing 45fcb56a23295f63 + build: cache miss, executing 90cc7d5743fac83f build: build: > build build: > echo building > foo.txt build: - test: cache miss, executing 314a0e5a10072ae2 + test: cache miss, executing a9ebf97b334e0690 test: test: > test test: > cat foo.txt @@ -25,12 +25,12 @@ Run a second time, verify caching works because there is a config $ ${TURBO} run test \xe2\x80\xa2 Running test (esc) \xe2\x80\xa2 Remote caching disabled (esc) - build: cache hit, replaying logs 45fcb56a23295f63 + build: cache hit, replaying logs 90cc7d5743fac83f build: build: > build build: > echo building > foo.txt build: - test: cache hit, replaying logs 314a0e5a10072ae2 + test: cache hit, replaying logs a9ebf97b334e0690 test: test: > test test: > cat foo.txt @@ -45,8 +45,8 @@ Run with --output-logs=hash-only $ ${TURBO} run test --output-logs=hash-only \xe2\x80\xa2 Running test (esc) \xe2\x80\xa2 Remote caching disabled (esc) - build: cache hit, suppressing logs 45fcb56a23295f63 - test: cache hit, suppressing logs 314a0e5a10072ae2 + build: cache hit, suppressing logs 90cc7d5743fac83f + test: cache hit, suppressing logs a9ebf97b334e0690 Tasks: 2 successful, 2 total Cached: 2 cached, 2 total diff --git a/turborepo-tests/integration/tests/strict-env-vars/usage-infer.t b/turborepo-tests/integration/tests/strict-env-vars/usage-infer.t deleted file mode 100644 index f9dcb5180115f..0000000000000 --- a/turborepo-tests/integration/tests/strict-env-vars/usage-infer.t +++ /dev/null @@ -1,44 +0,0 @@ -Setup - $ . ${TESTDIR}/../../../helpers/setup_integration_test.sh strict_env_vars - -With --env-mode=infer - -Set the env vars - $ export GLOBAL_VAR_PT=higlobalpt - $ export GLOBAL_VAR_DEP=higlobaldep - $ export LOCAL_VAR_PT=hilocalpt - $ export LOCAL_VAR_DEP=hilocaldep - $ export OTHER_VAR=hiother - -Set the output file with the right path separator for the OS - $ if [[ "$OSTYPE" == "msys" ]]; then OUTPUT="apps\\my-app\\out.txt"; else OUTPUT="apps/my-app/out.txt"; fi - -Conditionally set these vars if they aren't already there for the purpose of the test. -The test doesn't care about the values, it just checks that the var is available to the task -so we just have to make sure the parent process has them set. In Github CI, for example SHELL -isn't already set. - $ export SYSTEMROOT="${SYSTEMROOT:=hisysroot}" - $ export PATH="${PATH:=hipath}" - -Inferred mode as loose because no pass through configs, all vars are available - $ ${TURBO} build -vv --env-mode=infer > /dev/null 2>&1 - $ cat "$OUTPUT" - globalpt: 'higlobalpt', localpt: 'hilocalpt', globaldep: 'higlobaldep', localdep: 'hilocaldep', other: 'hiother', sysroot set: 'yes', path set: 'yes' - -Inferred mode as strict, because global pass through config, no vars available - $ ${TESTDIR}/../../../helpers/replace_turbo_json.sh $(pwd) "strict_env_vars/global_pt-empty.json" - $ ${TURBO} build -vv --env-mode=infer > /dev/null 2>&1 - $ cat "$OUTPUT" - globalpt: '', localpt: '', globaldep: '', localdep: '', other: '', sysroot set: 'yes', path set: 'yes' - -Inferred mode as strict, because task pass through config, no vars available - $ ${TESTDIR}/../../../helpers/replace_turbo_json.sh $(pwd) "strict_env_vars/task_pt-empty.json" - $ ${TURBO} build -vv --env-mode=infer > /dev/null 2>&1 - $ cat "$OUTPUT" - globalpt: '', localpt: '', globaldep: '', localdep: '', other: '', sysroot set: 'yes', path set: 'yes' - -Inferred mode as strict, with declared deps and pass through. all declared available, other is not available - $ ${TESTDIR}/../../../helpers/replace_turbo_json.sh $(pwd) "strict_env_vars/all.json" - $ ${TURBO} build -vv --env-mode=infer > /dev/null 2>&1 - $ cat "$OUTPUT" - globalpt: 'higlobalpt', localpt: 'hilocalpt', globaldep: 'higlobaldep', localdep: 'hilocaldep', other: '', sysroot set: 'yes', path set: 'yes' diff --git a/turborepo-tests/integration/tests/task-dependencies/overwriting.t b/turborepo-tests/integration/tests/task-dependencies/overwriting.t index 963551aad0ace..c390d60421633 100644 --- a/turborepo-tests/integration/tests/task-dependencies/overwriting.t +++ b/turborepo-tests/integration/tests/task-dependencies/overwriting.t @@ -11,7 +11,7 @@ Test # workspace-a#generate ran $ cat tmp.log | grep "workspace-a:generate" - workspace-a:generate: cache miss, executing b876a84c09681ba1 + workspace-a:generate: cache miss, executing fcb7e12d96f4af12 workspace-a:generate: workspace-a:generate: > generate workspace-a:generate: > echo generate-workspace-a @@ -19,7 +19,7 @@ Test workspace-a:generate: generate-workspace-a workspace-a#build ran $ cat tmp.log | grep "workspace-a:build" - workspace-a:build: cache miss, executing 264da930a689be4e + workspace-a:build: cache miss, executing 5b44d28ebc0672bb workspace-a:build: workspace-a:build: > build workspace-a:build: > echo build-workspace-a @@ -32,7 +32,7 @@ workspace-b#generate DID NOT run workspace-b#build ran $ cat tmp.log | grep "workspace-b:build" - workspace-b:build: cache miss, executing 36137fdec800ec2e + workspace-b:build: cache miss, executing e4c450285346e321 workspace-b:build: workspace-b:build: > build workspace-b:build: > echo build-workspace-b diff --git a/turborepo-tests/integration/tests/task-dependencies/root-worksapce.t b/turborepo-tests/integration/tests/task-dependencies/root-workspace.t similarity index 86% rename from turborepo-tests/integration/tests/task-dependencies/root-worksapce.t rename to turborepo-tests/integration/tests/task-dependencies/root-workspace.t index e59b98213a0be..06cfff9fea676 100644 --- a/turborepo-tests/integration/tests/task-dependencies/root-worksapce.t +++ b/turborepo-tests/integration/tests/task-dependencies/root-workspace.t @@ -5,13 +5,13 @@ This tests asserts that root tasks can depend on workspace#task \xe2\x80\xa2 Packages in scope: //, lib-a (esc) \xe2\x80\xa2 Running mytask in 2 packages (esc) \xe2\x80\xa2 Remote caching disabled (esc) - lib-a:build: cache miss, executing 5f3e63ff10e1a66a + lib-a:build: cache miss, executing 18f658ca64fa503f lib-a:build: lib-a:build: > build lib-a:build: > echo build-lib-a lib-a:build: lib-a:build: build-lib-a - //:mytask: cache miss, executing 8546b6a2ce1f1d1f + //:mytask: cache miss, executing 6c73f115abf728f5 //:mytask: //:mytask: > mytask //:mytask: > echo root-mytask diff --git a/turborepo-tests/integration/tests/task-dependencies/topological.t b/turborepo-tests/integration/tests/task-dependencies/topological.t index ff70327105e2c..1f999dd8a1c01 100644 --- a/turborepo-tests/integration/tests/task-dependencies/topological.t +++ b/turborepo-tests/integration/tests/task-dependencies/topological.t @@ -6,13 +6,13 @@ Check my-app#build output \xe2\x80\xa2 Packages in scope: //, my-app, util (esc) \xe2\x80\xa2 Running build in 3 packages (esc) \xe2\x80\xa2 Remote caching disabled (esc) - util:build: cache miss, executing d8a403c3594c01e7 + util:build: cache miss, executing 6eada9ec94009128 util:build: util:build: > build util:build: > echo building util:build: util:build: building - my-app:build: cache miss, executing 6f5a797f7b88130e + my-app:build: cache miss, executing 077c062fa59fb755 my-app:build: my-app:build: > build my-app:build: > echo building diff --git a/turborepo-tests/integration/tests/turbo-help.t b/turborepo-tests/integration/tests/turbo-help.t index 4cf84423c213a..7e3cc2014cfa5 100644 --- a/turborepo-tests/integration/tests/turbo-help.t +++ b/turborepo-tests/integration/tests/turbo-help.t @@ -77,7 +77,7 @@ Test help flag --global-deps Specify glob of global filesystem dependencies to be hashed. Useful for .env and files --env-mode [] - Environment variable mode. Use "loose" to pass the entire existing environment. Use "strict" to use an allowlist specified in turbo.json. Use "infer" to defer to existence of "passThroughEnv" or "globalPassThroughEnv" in turbo.json. (default infer) [default: infer] [possible values: infer, loose, strict] + Environment variable mode. Use "loose" to pass the entire existing environment. Use "strict" to use an allowlist specified in turbo.json [default: strict] [possible values: loose, strict] -F, --filter Use the given selector to specify package(s) to act as entry points. The syntax mirrors pnpm's syntax, and additional documentation and examples can be found in turbo's documentation https://turbo.build/repo/docs/reference/command-line-reference/run#--filter --ignore @@ -173,7 +173,7 @@ Test help flag --global-deps Specify glob of global filesystem dependencies to be hashed. Useful for .env and files --env-mode [] - Environment variable mode. Use "loose" to pass the entire existing environment. Use "strict" to use an allowlist specified in turbo.json. Use "infer" to defer to existence of "passThroughEnv" or "globalPassThroughEnv" in turbo.json. (default infer) [default: infer] [possible values: infer, loose, strict] + Environment variable mode. Use "loose" to pass the entire existing environment. Use "strict" to use an allowlist specified in turbo.json [default: strict] [possible values: loose, strict] -F, --filter Use the given selector to specify package(s) to act as entry points. The syntax mirrors pnpm's syntax, and additional documentation and examples can be found in turbo's documentation https://turbo.build/repo/docs/reference/command-line-reference/run#--filter --ignore diff --git a/turborepo-tests/integration/tests/workspace-configs/add-keys.t b/turborepo-tests/integration/tests/workspace-configs/add-keys.t index 4e7510d245ee4..6c4fc7b18b157 100644 --- a/turborepo-tests/integration/tests/workspace-configs/add-keys.t +++ b/turborepo-tests/integration/tests/workspace-configs/add-keys.t @@ -14,13 +14,13 @@ Setup \xe2\x80\xa2 Packages in scope: add-keys (esc) \xe2\x80\xa2 Running add-keys-task in 1 packages (esc) \xe2\x80\xa2 Remote caching disabled (esc) - add-keys:add-keys-underlying-task: cache miss, executing d25daf30e7a100a5 + add-keys:add-keys-underlying-task: cache miss, executing 243437d673ef9a25 add-keys:add-keys-underlying-task: add-keys:add-keys-underlying-task: > add-keys-underlying-task add-keys:add-keys-underlying-task: > echo running-add-keys-underlying-task add-keys:add-keys-underlying-task: add-keys:add-keys-underlying-task: running-add-keys-underlying-task - add-keys:add-keys-task: cache miss, executing 4c7146b3c1c06bb2 + add-keys:add-keys-task: cache miss, executing 0ce4793e19dfb1ef add-keys:add-keys-task: add-keys:add-keys-task: > add-keys-task add-keys:add-keys-task: > echo running-add-keys-task > out/foo.min.txt @@ -42,31 +42,32 @@ Setup \xe2\x80\xa2 Packages in scope: add-keys (esc) \xe2\x80\xa2 Running add-keys-task in 1 packages (esc) \xe2\x80\xa2 Remote caching disabled (esc) - add-keys:add-keys-underlying-task: cache hit, replaying logs d25daf30e7a100a5 + add-keys:add-keys-underlying-task: cache hit, replaying logs 243437d673ef9a25 add-keys:add-keys-underlying-task: add-keys:add-keys-underlying-task: > add-keys-underlying-task add-keys:add-keys-underlying-task: > echo running-add-keys-underlying-task add-keys:add-keys-underlying-task: add-keys:add-keys-underlying-task: running-add-keys-underlying-task - add-keys:add-keys-task: cache hit, suppressing logs 4c7146b3c1c06bb2 + add-keys:add-keys-task: cache hit, suppressing logs 0ce4793e19dfb1ef Tasks: 2 successful, 2 total Cached: 2 cached, 2 total Time:\s*[\.0-9]+m?s >>> FULL TURBO (re) + # 3. Change input file and assert cache miss $ echo "more text" >> $TARGET_DIR/apps/add-keys/src/foo.txt $ ${TURBO} run add-keys-task --filter=add-keys \xe2\x80\xa2 Packages in scope: add-keys (esc) \xe2\x80\xa2 Running add-keys-task in 1 packages (esc) \xe2\x80\xa2 Remote caching disabled (esc) - add-keys:add-keys-underlying-task: cache miss, executing 9ef1856ccb467daf + add-keys:add-keys-underlying-task: cache miss, executing bc56fb48204b5c0e add-keys:add-keys-underlying-task: add-keys:add-keys-underlying-task: > add-keys-underlying-task add-keys:add-keys-underlying-task: > echo running-add-keys-underlying-task add-keys:add-keys-underlying-task: add-keys:add-keys-underlying-task: running-add-keys-underlying-task - add-keys:add-keys-task: cache miss, executing 512794a64d2a1f5e + add-keys:add-keys-task: cache miss, executing b6f75766909d3f07 add-keys:add-keys-task: add-keys:add-keys-task: > add-keys-task add-keys:add-keys-task: > echo running-add-keys-task > out/foo.min.txt @@ -81,13 +82,13 @@ Setup \xe2\x80\xa2 Packages in scope: add-keys (esc) \xe2\x80\xa2 Running add-keys-task in 1 packages (esc) \xe2\x80\xa2 Remote caching disabled (esc) - add-keys:add-keys-underlying-task: cache hit, replaying logs 9ef1856ccb467daf + add-keys:add-keys-underlying-task: cache hit, replaying logs bc56fb48204b5c0e add-keys:add-keys-underlying-task: add-keys:add-keys-underlying-task: > add-keys-underlying-task add-keys:add-keys-underlying-task: > echo running-add-keys-underlying-task add-keys:add-keys-underlying-task: add-keys:add-keys-underlying-task: running-add-keys-underlying-task - add-keys:add-keys-task: cache miss, executing 69c0f4c312f9c15e + add-keys:add-keys-task: cache miss, executing 1db8f97b8aa60450 add-keys:add-keys-task: add-keys:add-keys-task: > add-keys-task add-keys:add-keys-task: > echo running-add-keys-task > out/foo.min.txt diff --git a/turborepo-tests/integration/tests/workspace-configs/add-tasks.t b/turborepo-tests/integration/tests/workspace-configs/add-tasks.t index 8728b21349f9e..a1409d1bafda7 100644 --- a/turborepo-tests/integration/tests/workspace-configs/add-tasks.t +++ b/turborepo-tests/integration/tests/workspace-configs/add-tasks.t @@ -5,7 +5,7 @@ Setup \xe2\x80\xa2 Packages in scope: add-tasks (esc) \xe2\x80\xa2 Running added-task in 1 packages (esc) \xe2\x80\xa2 Remote caching disabled (esc) - add-tasks:added-task: cache miss, executing 79780b288549784d + add-tasks:added-task: cache miss, executing 753ffcae0e39d3bc add-tasks:added-task: add-tasks:added-task: > added-task add-tasks:added-task: > echo running-added-task > out/foo.min.txt diff --git a/turborepo-tests/integration/tests/workspace-configs/cache.t b/turborepo-tests/integration/tests/workspace-configs/cache.t index 4fdc1a837d28f..c32c7db194324 100644 --- a/turborepo-tests/integration/tests/workspace-configs/cache.t +++ b/turborepo-tests/integration/tests/workspace-configs/cache.t @@ -13,7 +13,7 @@ This test covers: \xe2\x80\xa2 Packages in scope: cached (esc) \xe2\x80\xa2 Running cached-task-1 in 1 packages (esc) \xe2\x80\xa2 Remote caching disabled (esc) - cached:cached-task-1: cache miss, executing 21346f9dc1d8f091 + cached:cached-task-1: cache miss, executing c1b2a62a95e8c904 cached:cached-task-1: cached:cached-task-1: > cached-task-1 cached:cached-task-1: > echo cached-task-1 > out/foo.min.txt @@ -38,7 +38,7 @@ This test covers: \xe2\x80\xa2 Packages in scope: cached (esc) \xe2\x80\xa2 Running cached-task-2 in 1 packages (esc) \xe2\x80\xa2 Remote caching disabled (esc) - cached:cached-task-2: cache bypass, force executing bf7e4ca31119a2ca + cached:cached-task-2: cache bypass, force executing d844c7824e921da4 cached:cached-task-2: cached:cached-task-2: > cached-task-2 cached:cached-task-2: > echo cached-task-2 > out/foo.min.txt @@ -60,7 +60,7 @@ no `cache` config in root, cache:false in workspace \xe2\x80\xa2 Packages in scope: cached (esc) \xe2\x80\xa2 Running cached-task-3 in 1 packages (esc) \xe2\x80\xa2 Remote caching disabled (esc) - cached:cached-task-3: cache bypass, force executing 5a6c15882980e64c + cached:cached-task-3: cache bypass, force executing 5cbaed11249dc83c cached:cached-task-3: cached:cached-task-3: > cached-task-3 cached:cached-task-3: > echo cached-task-3 > out/foo.min.txt @@ -84,7 +84,7 @@ we already have a workspace that doesn't have a config \xe2\x80\xa2 Packages in scope: missing-workspace-config (esc) \xe2\x80\xa2 Running cached-task-4 in 1 packages (esc) \xe2\x80\xa2 Remote caching disabled (esc) - missing-workspace-config:cached-task-4: cache bypass, force executing 0876b71b756eb6da + missing-workspace-config:cached-task-4: cache bypass, force executing 9bef71dffac8eaef missing-workspace-config:cached-task-4: missing-workspace-config:cached-task-4: > cached-task-4 missing-workspace-config:cached-task-4: > echo cached-task-4 > out/foo.min.txt diff --git a/turborepo-tests/integration/tests/workspace-configs/config-change.t b/turborepo-tests/integration/tests/workspace-configs/config-change.t index 4312c38045cb6..cc73091c8665d 100644 --- a/turborepo-tests/integration/tests/workspace-configs/config-change.t +++ b/turborepo-tests/integration/tests/workspace-configs/config-change.t @@ -3,13 +3,13 @@ Setup # 1. First run, check the hash $ ${TURBO} run config-change-task --filter=config-change --dry=json | jq .tasks[0].hash - "58fafdfda3030039" + "8192b3035e032c1e" 2. Run again and assert task hash stays the same $ ${TURBO} run config-change-task --filter=config-change --dry=json | jq .tasks[0].hash - "58fafdfda3030039" + "8192b3035e032c1e" 3. Change turbo.json and assert that hash changes $ cp $TARGET_DIR/apps/config-change/turbo-changed.json $TARGET_DIR/apps/config-change/turbo.json $ ${TURBO} run config-change-task --filter=config-change --dry=json | jq .tasks[0].hash - "5c193e0718f3a05b" + "a4ff8c1a9c676a7c" diff --git a/turborepo-tests/integration/tests/workspace-configs/cross-workspace.t b/turborepo-tests/integration/tests/workspace-configs/cross-workspace.t index 9b2592839bad4..53e654f5e0ba6 100644 --- a/turborepo-tests/integration/tests/workspace-configs/cross-workspace.t +++ b/turborepo-tests/integration/tests/workspace-configs/cross-workspace.t @@ -4,13 +4,13 @@ Setup \xe2\x80\xa2 Packages in scope: cross-workspace (esc) \xe2\x80\xa2 Running cross-workspace-task in 1 packages (esc) \xe2\x80\xa2 Remote caching disabled (esc) - blank-pkg:cross-workspace-underlying-task: cache miss, executing 13256295c40d6836 + blank-pkg:cross-workspace-underlying-task: cache miss, executing 446c0a2da148bc48 blank-pkg:cross-workspace-underlying-task: blank-pkg:cross-workspace-underlying-task: > cross-workspace-underlying-task blank-pkg:cross-workspace-underlying-task: > echo cross-workspace-underlying-task from blank-pkg blank-pkg:cross-workspace-underlying-task: blank-pkg:cross-workspace-underlying-task: cross-workspace-underlying-task from blank-pkg - cross-workspace:cross-workspace-task: cache miss, executing f386c2eceecb7035 + cross-workspace:cross-workspace-task: cache miss, executing 3628b3c560bb0e61 cross-workspace:cross-workspace-task: cross-workspace:cross-workspace-task: > cross-workspace-task cross-workspace:cross-workspace-task: > echo cross-workspace-task @@ -20,4 +20,4 @@ Setup Tasks: 2 successful, 2 total Cached: 0 cached, 2 total Time:\s*[\.0-9]+m?s (re) - + \ No newline at end of file diff --git a/turborepo-tests/integration/tests/workspace-configs/missing-workspace-config-deps.t b/turborepo-tests/integration/tests/workspace-configs/missing-workspace-config-deps.t index 1ae76b8d680f5..7710fef62d2be 100644 --- a/turborepo-tests/integration/tests/workspace-configs/missing-workspace-config-deps.t +++ b/turborepo-tests/integration/tests/workspace-configs/missing-workspace-config-deps.t @@ -15,14 +15,14 @@ Setup \xe2\x80\xa2 Remote caching disabled (esc) $ cat tmp.log | grep "missing-workspace-config:missing-workspace-config-task-with-deps" - missing-workspace-config:missing-workspace-config-task-with-deps: cache miss, executing cb5a7b7c7ef29b91 + missing-workspace-config:missing-workspace-config-task-with-deps: cache miss, executing 11cf2be986f81679 missing-workspace-config:missing-workspace-config-task-with-deps: missing-workspace-config:missing-workspace-config-task-with-deps: > missing-workspace-config-task-with-deps missing-workspace-config:missing-workspace-config-task-with-deps: > echo running-missing-workspace-config-task-with-deps > out/foo.min.txt missing-workspace-config:missing-workspace-config-task-with-deps: $ cat tmp.log | grep "missing-workspace-config:missing-workspace-config-underlying-task" - missing-workspace-config:missing-workspace-config-underlying-task: cache miss, executing 26878c99d9f1f2ad + missing-workspace-config:missing-workspace-config-underlying-task: cache miss, executing 2078a4d3acfb180f missing-workspace-config:missing-workspace-config-underlying-task: missing-workspace-config:missing-workspace-config-underlying-task: > missing-workspace-config-underlying-task missing-workspace-config:missing-workspace-config-underlying-task: > echo running-missing-workspace-config-underlying-task @@ -30,7 +30,7 @@ Setup missing-workspace-config:missing-workspace-config-underlying-task: running-missing-workspace-config-underlying-task $ cat tmp.log | grep "blank-pkg:missing-workspace-config-underlying-topo-task" - blank-pkg:missing-workspace-config-underlying-topo-task: cache miss, executing 86d7535cfbce352a + blank-pkg:missing-workspace-config-underlying-topo-task: cache miss, executing 643075e52f8d0334 blank-pkg:missing-workspace-config-underlying-topo-task: blank-pkg:missing-workspace-config-underlying-topo-task: > missing-workspace-config-underlying-topo-task blank-pkg:missing-workspace-config-underlying-topo-task: > echo missing-workspace-config-underlying-topo-task from blank-pkg diff --git a/turborepo-tests/integration/tests/workspace-configs/missing-workspace-config.t b/turborepo-tests/integration/tests/workspace-configs/missing-workspace-config.t index b5ae828184324..235fcd6e5e889 100644 --- a/turborepo-tests/integration/tests/workspace-configs/missing-workspace-config.t +++ b/turborepo-tests/integration/tests/workspace-configs/missing-workspace-config.t @@ -11,7 +11,7 @@ Setup \xe2\x80\xa2 Packages in scope: missing-workspace-config (esc) \xe2\x80\xa2 Running missing-workspace-config-task in 1 packages (esc) \xe2\x80\xa2 Remote caching disabled (esc) - missing-workspace-config:missing-workspace-config-task: cache miss, executing fa2b3189d6b42055 + missing-workspace-config:missing-workspace-config-task: cache miss, executing 33148ad4fa9dd10b missing-workspace-config:missing-workspace-config-task: missing-workspace-config:missing-workspace-config-task: > missing-workspace-config-task missing-workspace-config:missing-workspace-config-task: > echo running-missing-workspace-config-task > out/foo.min.txt @@ -33,7 +33,7 @@ Setup \xe2\x80\xa2 Packages in scope: missing-workspace-config (esc) \xe2\x80\xa2 Running missing-workspace-config-task in 1 packages (esc) \xe2\x80\xa2 Remote caching disabled (esc) - missing-workspace-config:missing-workspace-config-task: cache hit, suppressing logs fa2b3189d6b42055 + missing-workspace-config:missing-workspace-config-task: cache hit, suppressing logs 33148ad4fa9dd10b Tasks: 1 successful, 1 total Cached: 1 cached, 1 total @@ -45,7 +45,7 @@ Setup \xe2\x80\xa2 Packages in scope: missing-workspace-config (esc) \xe2\x80\xa2 Running missing-workspace-config-task in 1 packages (esc) \xe2\x80\xa2 Remote caching disabled (esc) - missing-workspace-config:missing-workspace-config-task: cache miss, executing 2fcb67955fb2c7b7 + missing-workspace-config:missing-workspace-config-task: cache miss, executing c13ca33fb347baa0 missing-workspace-config:missing-workspace-config-task: missing-workspace-config:missing-workspace-config-task: > missing-workspace-config-task missing-workspace-config:missing-workspace-config-task: > echo running-missing-workspace-config-task > out/foo.min.txt @@ -62,7 +62,7 @@ Setup \xe2\x80\xa2 Packages in scope: missing-workspace-config (esc) \xe2\x80\xa2 Running missing-workspace-config-task in 1 packages (esc) \xe2\x80\xa2 Remote caching disabled (esc) - missing-workspace-config:missing-workspace-config-task: cache hit, suppressing logs 2fcb67955fb2c7b7 + missing-workspace-config:missing-workspace-config-task: cache hit, suppressing logs c13ca33fb347baa0 Tasks: 1 successful, 1 total Cached: 1 cached, 1 total @@ -73,7 +73,7 @@ Setup \xe2\x80\xa2 Packages in scope: missing-workspace-config (esc) \xe2\x80\xa2 Running missing-workspace-config-task in 1 packages (esc) \xe2\x80\xa2 Remote caching disabled (esc) - missing-workspace-config:missing-workspace-config-task: cache miss, executing 3ad30dba93a44cfc + missing-workspace-config:missing-workspace-config-task: cache miss, executing 61cbbfa582a356e5 missing-workspace-config:missing-workspace-config-task: missing-workspace-config:missing-workspace-config-task: > missing-workspace-config-task missing-workspace-config:missing-workspace-config-task: > echo running-missing-workspace-config-task > out/foo.min.txt @@ -89,7 +89,7 @@ Setup \xe2\x80\xa2 Packages in scope: missing-workspace-config (esc) \xe2\x80\xa2 Running cached-task-4 in 1 packages (esc) \xe2\x80\xa2 Remote caching disabled (esc) - missing-workspace-config:cached-task-4: cache bypass, force executing a3402b79e54983c6 + missing-workspace-config:cached-task-4: cache bypass, force executing 87b4da5214927c4f missing-workspace-config:cached-task-4: missing-workspace-config:cached-task-4: > cached-task-4 missing-workspace-config:cached-task-4: > echo cached-task-4 > out/foo.min.txt diff --git a/turborepo-tests/integration/tests/workspace-configs/omit-keys-deps.t b/turborepo-tests/integration/tests/workspace-configs/omit-keys-deps.t index d44e5307fa1c0..7825cbe1050bb 100644 --- a/turborepo-tests/integration/tests/workspace-configs/omit-keys-deps.t +++ b/turborepo-tests/integration/tests/workspace-configs/omit-keys-deps.t @@ -15,14 +15,14 @@ Setup \xe2\x80\xa2 Running omit-keys-task-with-deps in 1 packages (esc) $ cat tmp.log | grep "omit-keys:omit-keys-task-with-deps" - omit-keys:omit-keys-task-with-deps: cache miss, executing 9a01368558ebb03f + omit-keys:omit-keys-task-with-deps: cache miss, executing 85f5df28f43909ba omit-keys:omit-keys-task-with-deps: omit-keys:omit-keys-task-with-deps: > omit-keys-task-with-deps omit-keys:omit-keys-task-with-deps: > echo running-omit-keys-task-with-deps > out/foo.min.txt omit-keys:omit-keys-task-with-deps: $ cat tmp.log | grep "omit-keys:omit-keys-underlying-task" - omit-keys:omit-keys-underlying-task: cache miss, executing a2db581d4cbbd3d6 + omit-keys:omit-keys-underlying-task: cache miss, executing 3e41633e8c128bdc omit-keys:omit-keys-underlying-task: omit-keys:omit-keys-underlying-task: > omit-keys-underlying-task omit-keys:omit-keys-underlying-task: > echo running-omit-keys-underlying-task @@ -30,7 +30,7 @@ Setup omit-keys:omit-keys-underlying-task: running-omit-keys-underlying-task $ cat tmp.log | grep "blank-pkg:omit-keys-underlying-topo-task" - blank-pkg:omit-keys-underlying-topo-task: cache miss, executing e14022a5380dbf76 + blank-pkg:omit-keys-underlying-topo-task: cache miss, executing 00ddd39d30ce6bb5 blank-pkg:omit-keys-underlying-topo-task: blank-pkg:omit-keys-underlying-topo-task: > omit-keys-underlying-topo-task blank-pkg:omit-keys-underlying-topo-task: > echo omit-keys-underlying-topo-task from blank-pkg diff --git a/turborepo-tests/integration/tests/workspace-configs/omit-keys.t b/turborepo-tests/integration/tests/workspace-configs/omit-keys.t index d5d50a159713a..e8753af9e5a0a 100644 --- a/turborepo-tests/integration/tests/workspace-configs/omit-keys.t +++ b/turborepo-tests/integration/tests/workspace-configs/omit-keys.t @@ -14,7 +14,7 @@ Setup \xe2\x80\xa2 Packages in scope: omit-keys (esc) \xe2\x80\xa2 Running omit-keys-task in 1 packages (esc) \xe2\x80\xa2 Remote caching disabled (esc) - omit-keys:omit-keys-task: cache miss, executing 0e2764d66f4e31cb + omit-keys:omit-keys-task: cache miss, executing af019890f20b2aaf omit-keys:omit-keys-task: omit-keys:omit-keys-task: > omit-keys-task omit-keys:omit-keys-task: > echo running-omit-keys-task > out/foo.min.txt @@ -36,7 +36,7 @@ Setup \xe2\x80\xa2 Packages in scope: omit-keys (esc) \xe2\x80\xa2 Running omit-keys-task in 1 packages (esc) \xe2\x80\xa2 Remote caching disabled (esc) - omit-keys:omit-keys-task: cache hit, suppressing logs 0e2764d66f4e31cb + omit-keys:omit-keys-task: cache hit, suppressing logs af019890f20b2aaf Tasks: 1 successful, 1 total Cached: 1 cached, 1 total @@ -48,7 +48,7 @@ Setup \xe2\x80\xa2 Packages in scope: omit-keys (esc) \xe2\x80\xa2 Running omit-keys-task in 1 packages (esc) \xe2\x80\xa2 Remote caching disabled (esc) - omit-keys:omit-keys-task: cache miss, executing 610b5c185bcefc0c + omit-keys:omit-keys-task: cache miss, executing 1db614b3ab7a3017 omit-keys:omit-keys-task: omit-keys:omit-keys-task: > omit-keys-task omit-keys:omit-keys-task: > echo running-omit-keys-task > out/foo.min.txt @@ -65,7 +65,7 @@ Setup \xe2\x80\xa2 Packages in scope: omit-keys (esc) \xe2\x80\xa2 Running omit-keys-task in 1 packages (esc) \xe2\x80\xa2 Remote caching disabled (esc) - omit-keys:omit-keys-task: cache hit, suppressing logs 610b5c185bcefc0c + omit-keys:omit-keys-task: cache hit, suppressing logs 1db614b3ab7a3017 Tasks: 1 successful, 1 total Cached: 1 cached, 1 total @@ -76,7 +76,7 @@ Setup \xe2\x80\xa2 Packages in scope: omit-keys (esc) \xe2\x80\xa2 Running omit-keys-task in 1 packages (esc) \xe2\x80\xa2 Remote caching disabled (esc) - omit-keys:omit-keys-task: cache miss, executing f4229f7e07a5c9b1 + omit-keys:omit-keys-task: cache miss, executing 953c1985ccb0392c omit-keys:omit-keys-task: omit-keys:omit-keys-task: > omit-keys-task omit-keys:omit-keys-task: > echo running-omit-keys-task > out/foo.min.txt diff --git a/turborepo-tests/integration/tests/workspace-configs/override-values-deps.t b/turborepo-tests/integration/tests/workspace-configs/override-values-deps.t index c7639a7102b24..da2d584489505 100644 --- a/turborepo-tests/integration/tests/workspace-configs/override-values-deps.t +++ b/turborepo-tests/integration/tests/workspace-configs/override-values-deps.t @@ -12,7 +12,7 @@ Setup \xe2\x80\xa2 Packages in scope: override-values (esc) \xe2\x80\xa2 Running override-values-task-with-deps in 1 packages (esc) \xe2\x80\xa2 Remote caching disabled (esc) - override-values:override-values-task-with-deps: cache miss, executing e80ec3c530793663 + override-values:override-values-task-with-deps: cache miss, executing ebc33f740d6e8565 override-values:override-values-task-with-deps: override-values:override-values-task-with-deps: > override-values-task-with-deps override-values:override-values-task-with-deps: > echo running-override-values-task-with-deps > out/foo.min.txt diff --git a/turborepo-tests/integration/tests/workspace-configs/override-values.t b/turborepo-tests/integration/tests/workspace-configs/override-values.t index a3a6527c44656..a14cf9a796abe 100644 --- a/turborepo-tests/integration/tests/workspace-configs/override-values.t +++ b/turborepo-tests/integration/tests/workspace-configs/override-values.t @@ -11,7 +11,7 @@ Setup \xe2\x80\xa2 Packages in scope: override-values (esc) \xe2\x80\xa2 Running override-values-task in 1 packages (esc) \xe2\x80\xa2 Remote caching disabled (esc) - override-values:override-values-task: cache miss, executing 87924bee003e84fe + override-values:override-values-task: cache miss, executing 34b9a2d85053f0da override-values:override-values-task: override-values:override-values-task: > override-values-task override-values:override-values-task: > echo running-override-values-task > lib/bar.min.txt @@ -33,7 +33,7 @@ Setup \xe2\x80\xa2 Packages in scope: override-values (esc) \xe2\x80\xa2 Running override-values-task in 1 packages (esc) \xe2\x80\xa2 Remote caching disabled (esc) - override-values:override-values-task: cache hit, replaying logs 87924bee003e84fe + override-values:override-values-task: cache hit, replaying logs 34b9a2d85053f0da override-values:override-values-task: override-values:override-values-task: > override-values-task override-values:override-values-task: > echo running-override-values-task > lib/bar.min.txt @@ -49,7 +49,7 @@ Setup \xe2\x80\xa2 Packages in scope: override-values (esc) \xe2\x80\xa2 Running override-values-task in 1 packages (esc) \xe2\x80\xa2 Remote caching disabled (esc) - override-values:override-values-task: cache miss, executing f4a52702cd7910e3 + override-values:override-values-task: cache miss, executing e0e475c6290f7dab override-values:override-values-task: override-values:override-values-task: > override-values-task override-values:override-values-task: > echo running-override-values-task > lib/bar.min.txt @@ -65,7 +65,7 @@ Setup \xe2\x80\xa2 Packages in scope: override-values (esc) \xe2\x80\xa2 Running override-values-task in 1 packages (esc) \xe2\x80\xa2 Remote caching disabled (esc) - override-values:override-values-task: cache hit, replaying logs f4a52702cd7910e3 + override-values:override-values-task: cache hit, replaying logs e0e475c6290f7dab override-values:override-values-task: override-values:override-values-task: > override-values-task override-values:override-values-task: > echo running-override-values-task > lib/bar.min.txt @@ -80,7 +80,7 @@ Setup \xe2\x80\xa2 Packages in scope: override-values (esc) \xe2\x80\xa2 Running override-values-task in 1 packages (esc) \xe2\x80\xa2 Remote caching disabled (esc) - override-values:override-values-task: cache miss, executing d0863c55324d2752 + override-values:override-values-task: cache miss, executing 0afc17b6ab79a86a override-values:override-values-task: override-values:override-values-task: > override-values-task override-values:override-values-task: > echo running-override-values-task > lib/bar.min.txt @@ -95,7 +95,7 @@ Setup \xe2\x80\xa2 Packages in scope: override-values (esc) \xe2\x80\xa2 Running override-values-task in 1 packages (esc) \xe2\x80\xa2 Remote caching disabled (esc) - override-values:override-values-task: cache hit, replaying logs d0863c55324d2752 + override-values:override-values-task: cache hit, replaying logs 0afc17b6ab79a86a override-values:override-values-task: override-values:override-values-task: > override-values-task override-values:override-values-task: > echo running-override-values-task > lib/bar.min.txt diff --git a/turborepo-tests/integration/tests/workspace-configs/persistent.t b/turborepo-tests/integration/tests/workspace-configs/persistent.t index 6b7db5b88ffd0..431db3ed2be38 100644 --- a/turborepo-tests/integration/tests/workspace-configs/persistent.t +++ b/turborepo-tests/integration/tests/workspace-configs/persistent.t @@ -30,13 +30,13 @@ This test covers: \xe2\x80\xa2 Packages in scope: persistent (esc) \xe2\x80\xa2 Running persistent-task-2-parent in 1 packages (esc) \xe2\x80\xa2 Remote caching disabled (esc) - persistent:persistent-task-2: cache miss, executing 37375b286d724c01 + persistent:persistent-task-2: cache miss, executing 13743ed03a808fea persistent:persistent-task-2: persistent:persistent-task-2: > persistent-task-2 persistent:persistent-task-2: > echo persistent-task-2 persistent:persistent-task-2: persistent:persistent-task-2: persistent-task-2 - persistent:persistent-task-2-parent: cache miss, executing dfc8c20283d7826a + persistent:persistent-task-2-parent: cache miss, executing fbb5aaf886963ea0 persistent:persistent-task-2-parent: persistent:persistent-task-2-parent: > persistent-task-2-parent persistent:persistent-task-2-parent: > echo persistent-task-2-parent