From b9c9a7dbaf5be35a60ae6a185cb8c5fa3fd904cc Mon Sep 17 00:00:00 2001 From: Nathan Hammond Date: Thu, 18 May 2023 18:20:43 +0800 Subject: [PATCH] Exclude Pipeline Definition from Global Hash (#4545) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The global hash does not need to include the pipeline so long as all material elements to the pipeline are present in the task hash. After #4529 that invariant became true. This PR does two things: - Removes `pipeline` from the global hash key inputs. - Adjusts the dry run JSON schema to move `rootPipeline` from `globalHashInputs` and instead attach it to a new root key, `pipeline`. This is a possibly-breaking change so I incremented the `runSummarySchemaVersion`. 🚨🚨🚨 This PR triggers a universal cache invalidation! The payoff is no longer breaking the cache any time `turbo.json` is updated. --------- Co-authored-by: Nathan Hammond --- cli/internal/fs/turbo_json.go | 11 +-- cli/internal/fs/turbo_json_test.go | 9 +- cli/internal/nodes/packagetask.go | 4 +- cli/internal/run/global_hash.go | 7 -- cli/internal/run/run.go | 2 - cli/internal/runsummary/format_text.go | 3 - cli/internal/runsummary/globalhash_summary.go | 4 - cli/internal/taskhash/taskhash.go | 2 +- .../composable_config/composing-add-keys.t | 16 ++-- .../composable_config/composing-add-tasks.t | 2 +- .../tests/composable_config/composing-cache.t | 8 +- .../composing-config-change.t | 6 +- .../composing-cross-workspace.t | 4 +- .../composing-missing-workspace-config-deps.t | 6 +- .../composing-missing-workspace-config.t | 12 +-- .../composing-omit-keys-deps.t | 6 +- .../composable_config/composing-omit-keys.t | 10 +-- .../composing-override-values-deps.t | 2 +- .../composing-override-values.t | 12 +-- .../composable_config/composing-persistent.t | 4 +- turborepo-tests/integration/tests/continue.t | 8 +- .../integration/tests/dry_json/monorepo.t | 58 +------------ .../tests/dry_json/single_package.t | 17 +--- .../tests/dry_json/single_package_no_config.t | 15 +--- .../tests/dry_json/single_package_with_deps.t | 30 +------ turborepo-tests/integration/tests/dry_run.t | 5 +- .../fixture-configs/1-baseline.json | 14 ++++ .../fixture-configs/2-update-pipeline.json | 14 ++++ .../fixture-configs/3-update-global-env.json | 14 ++++ .../fixture-configs/4-update-global-deps.json | 14 ++++ .../5-update-global-deps-materially.json | 14 ++++ .../6-update-passthrough-env.json | 15 ++++ .../fixture-configs/a-baseline.json | 14 ++++ .../fixture-configs/b-change-only-my-app.json | 14 ++++ .../fixture-configs/c-my-app-depends-on.json | 15 ++++ .../fixture-configs/d-depends-on-util.json | 19 +++++ .../e-depends-on-util-but-modified.json | 19 +++++ .../tests/edit_turbo_json/global.t | 32 +++++++ .../integration/tests/edit_turbo_json/task.t | 84 +++++++++++++++++++ .../integration/tests/errors-only.t | 4 +- .../integration/tests/excluded_inputs.t | 4 +- .../integration/tests/global_env.t | 8 +- .../tests/inference/has_workspaces.t | 10 +-- .../tests/inference/nested_workspaces.t | 16 ++-- .../tests/inference/no_workspaces.t | 6 +- .../integration/tests/log_prefix.t | 6 +- .../integration/tests/one_script_error.t | 14 ++-- .../persistent-6-topological-unimplemented.t | 2 +- .../tests/prune/composable-config.t | 2 +- turborepo-tests/integration/tests/run/force.t | 26 +++--- .../integration/tests/run_summary/discovery.t | 2 +- .../integration/tests/run_summary/error.t | 2 +- .../tests/single_package/dry-run.t | 3 +- .../tests/single_package/no-config.t | 7 +- .../tests/single_package/run-yarn.t | 4 +- .../integration/tests/single_package/run.t | 4 +- .../tests/single_package/with-deps-dry-run.t | 5 +- .../tests/single_package/with-deps-run.t | 12 +-- .../tests/task-dependencies/overwriting.t | 6 +- .../tests/task-dependencies/topological.t | 4 +- turborepo-tests/integration/tests/verbosity.t | 16 ++-- 61 files changed, 434 insertions(+), 274 deletions(-) create mode 100644 turborepo-tests/integration/tests/edit_turbo_json/fixture-configs/1-baseline.json create mode 100644 turborepo-tests/integration/tests/edit_turbo_json/fixture-configs/2-update-pipeline.json create mode 100644 turborepo-tests/integration/tests/edit_turbo_json/fixture-configs/3-update-global-env.json create mode 100644 turborepo-tests/integration/tests/edit_turbo_json/fixture-configs/4-update-global-deps.json create mode 100644 turborepo-tests/integration/tests/edit_turbo_json/fixture-configs/5-update-global-deps-materially.json create mode 100644 turborepo-tests/integration/tests/edit_turbo_json/fixture-configs/6-update-passthrough-env.json create mode 100644 turborepo-tests/integration/tests/edit_turbo_json/fixture-configs/a-baseline.json create mode 100644 turborepo-tests/integration/tests/edit_turbo_json/fixture-configs/b-change-only-my-app.json create mode 100644 turborepo-tests/integration/tests/edit_turbo_json/fixture-configs/c-my-app-depends-on.json create mode 100644 turborepo-tests/integration/tests/edit_turbo_json/fixture-configs/d-depends-on-util.json create mode 100644 turborepo-tests/integration/tests/edit_turbo_json/fixture-configs/e-depends-on-util-but-modified.json create mode 100644 turborepo-tests/integration/tests/edit_turbo_json/global.t create mode 100644 turborepo-tests/integration/tests/edit_turbo_json/task.t diff --git a/cli/internal/fs/turbo_json.go b/cli/internal/fs/turbo_json.go index 9887061cf3c9b..10336b4fa38ed 100644 --- a/cli/internal/fs/turbo_json.go +++ b/cli/internal/fs/turbo_json.go @@ -286,14 +286,9 @@ type TaskOutputs struct { } // Sort contents of task outputs -func (to TaskOutputs) Sort() TaskOutputs { - var inclusions []string - var exclusions []string - copy(inclusions, to.Inclusions) - copy(exclusions, to.Exclusions) - sort.Strings(inclusions) - sort.Strings(exclusions) - return TaskOutputs{Inclusions: inclusions, Exclusions: exclusions} +func (to *TaskOutputs) Sort() { + sort.Strings(to.Inclusions) + sort.Strings(to.Exclusions) } // readTurboConfig reads turbo.json from a provided path diff --git a/cli/internal/fs/turbo_json_test.go b/cli/internal/fs/turbo_json_test.go index 1d384d5a1c82b..068848f91a2e2 100644 --- a/cli/internal/fs/turbo_json_test.go +++ b/cli/internal/fs/turbo_json_test.go @@ -212,10 +212,11 @@ func Test_TaskOutputsSort(t *testing.T) { inclusions := []string{"foo/**", "bar"} exclusions := []string{"special-file", ".hidden/**"} taskOutputs := TaskOutputs{Inclusions: inclusions, Exclusions: exclusions} - sortedOutputs := taskOutputs.Sort() - assertIsSorted(t, sortedOutputs.Inclusions, "Inclusions") - assertIsSorted(t, sortedOutputs.Exclusions, "Exclusions") - assert.False(t, cmp.DeepEqual(taskOutputs, sortedOutputs)().Success()) + taskOutputs.Sort() + assertIsSorted(t, taskOutputs.Inclusions, "Inclusions") + assertIsSorted(t, taskOutputs.Exclusions, "Exclusions") + + assert.True(t, cmp.DeepEqual(taskOutputs, TaskOutputs{Inclusions: []string{"bar", "foo/**"}, Exclusions: []string{".hidden/**", "special-file"}})().Success()) } // Helpers diff --git a/cli/internal/nodes/packagetask.go b/cli/internal/nodes/packagetask.go index e2dcb27dabda1..e9654b82f4d69 100644 --- a/cli/internal/nodes/packagetask.go +++ b/cli/internal/nodes/packagetask.go @@ -38,8 +38,10 @@ func (pt *PackageTask) HashableOutputs() fs.TaskOutputs { inclusionOutputs := []string{fmt.Sprintf(".turbo/turbo-%v.log", pt.Task)} inclusionOutputs = append(inclusionOutputs, pt.TaskDefinition.Outputs.Inclusions...) - return fs.TaskOutputs{ + hashable := fs.TaskOutputs{ Inclusions: inclusionOutputs, Exclusions: pt.TaskDefinition.Outputs.Exclusions, } + hashable.Sort() + return hashable } diff --git a/cli/internal/run/global_hash.go b/cli/internal/run/global_hash.go index 531d6594f292f..4bba6d2473aae 100644 --- a/cli/internal/run/global_hash.go +++ b/cli/internal/run/global_hash.go @@ -28,7 +28,6 @@ type GlobalHashableInputs struct { rootExternalDepsHash string envVars env.DetailedMap globalCacheKey string - pipeline fs.PristinePipeline envVarPassthroughs []string envMode util.EnvMode frameworkInference bool @@ -39,7 +38,6 @@ type newGlobalHashable struct { rootExternalDepsHash string envVars env.EnvironmentVariablePairs globalCacheKey string - pipeline fs.PristinePipeline envVarPassthroughs []string envMode util.EnvMode frameworkInference bool @@ -54,7 +52,6 @@ func newGlobalHash(full GlobalHashableInputs) (string, error) { rootExternalDepsHash: full.rootExternalDepsHash, envVars: full.envVars.All.ToHashable(), globalCacheKey: full.globalCacheKey, - pipeline: full.pipeline, envVarPassthroughs: full.envVarPassthroughs, envMode: full.envMode, frameworkInference: full.frameworkInference, @@ -66,7 +63,6 @@ type oldGlobalHashable struct { rootExternalDepsHash string envVars env.EnvironmentVariablePairs globalCacheKey string - pipeline fs.PristinePipeline } // oldGlobalHash is a transformation of GlobalHashableInputs. @@ -79,7 +75,6 @@ func oldGlobalHash(full GlobalHashableInputs) (string, error) { rootExternalDepsHash: full.rootExternalDepsHash, envVars: full.envVars.All.ToHashable(), globalCacheKey: full.globalCacheKey, - pipeline: full.pipeline, }) } @@ -122,7 +117,6 @@ func calculateGlobalHashFromHashableInputs(full GlobalHashableInputs) (string, e func getGlobalHashInputs( rootpath turbopath.AbsoluteSystemPath, rootPackageJSON *fs.PackageJSON, - pipeline fs.Pipeline, envVarDependencies []string, globalFileDependencies []string, packageManager *packagemanager.PackageManager, @@ -190,7 +184,6 @@ func getGlobalHashInputs( rootExternalDepsHash: rootPackageJSON.ExternalDepsHash, envVars: globalHashableEnvVars, globalCacheKey: _globalCacheKey, - pipeline: pipeline.Pristine(), envVarPassthroughs: envVarPassthroughs, envMode: envMode, frameworkInference: frameworkInference, diff --git a/cli/internal/run/run.go b/cli/internal/run/run.go index 4017a341d9eab..b33cccaf42674 100644 --- a/cli/internal/run/run.go +++ b/cli/internal/run/run.go @@ -240,7 +240,6 @@ func (r *run) run(ctx gocontext.Context, targets []string, executionState *turbo globalHashInputs, err := getGlobalHashInputs( r.base.RepoRoot, rootPackageJSON, - pipeline, turboJSON.GlobalEnv, turboJSON.GlobalDeps, pkgDepGraph.PackageManager, @@ -372,7 +371,6 @@ func (r *run) run(ctx gocontext.Context, targets []string, executionState *turbo globalHashInputs.envVars, envVarPassthroughMap, globalHashInputs.globalCacheKey, - globalHashInputs.pipeline, ), rs.Opts.SynthesizeCommand(rs.Targets), ) diff --git a/cli/internal/runsummary/format_text.go b/cli/internal/runsummary/format_text.go index 28b163896ea51..b9666274d0bdb 100644 --- a/cli/internal/runsummary/format_text.go +++ b/cli/internal/runsummary/format_text.go @@ -42,9 +42,6 @@ func (rsm Meta) FormatAndPrintText(workspaceInfos workspace.Catalog) error { fmt.Fprintln(w1, util.Sprintf(" ${GREY}Global Files\t=\t%d${RESET}", fileCount)) fmt.Fprintln(w1, util.Sprintf(" ${GREY}External Dependencies Hash\t=\t%s${RESET}", summary.GlobalHashSummary.RootExternalDepsHash)) fmt.Fprintln(w1, util.Sprintf(" ${GREY}Global Cache Key\t=\t%s${RESET}", summary.GlobalHashSummary.GlobalCacheKey)) - if bytes, err := json.Marshal(summary.GlobalHashSummary.Pipeline); err == nil { - fmt.Fprintln(w1, util.Sprintf(" ${GREY}Root pipeline\t=\t%s${RESET}", bytes)) - } if err := w1.Flush(); err != nil { return err } diff --git a/cli/internal/runsummary/globalhash_summary.go b/cli/internal/runsummary/globalhash_summary.go index e24976d5f99cb..ecb982ffc03df 100644 --- a/cli/internal/runsummary/globalhash_summary.go +++ b/cli/internal/runsummary/globalhash_summary.go @@ -2,7 +2,6 @@ package runsummary import ( "github.com/vercel/turbo/cli/internal/env" - "github.com/vercel/turbo/cli/internal/fs" "github.com/vercel/turbo/cli/internal/turbopath" ) @@ -11,7 +10,6 @@ type GlobalHashSummary struct { GlobalCacheKey string `json:"rootKey"` GlobalFileHashMap map[turbopath.AnchoredUnixPath]string `json:"files"` RootExternalDepsHash string `json:"hashOfExternalDependencies"` - Pipeline fs.PristinePipeline `json:"rootPipeline"` // This is a private field because and not in JSON, because we'll add it to each task envVars env.EnvironmentVariablePairs @@ -25,7 +23,6 @@ func NewGlobalHashSummary( envVars env.DetailedMap, passthroughEnvVars env.EnvironmentVariableMap, globalCacheKey string, - pipeline fs.PristinePipeline, ) *GlobalHashSummary { return &GlobalHashSummary{ envVars: envVars.All.ToSecretHashable(), @@ -33,6 +30,5 @@ func NewGlobalHashSummary( GlobalFileHashMap: fileHashMap, RootExternalDepsHash: rootExternalDepsHash, GlobalCacheKey: globalCacheKey, - Pipeline: pipeline, } } diff --git a/cli/internal/taskhash/taskhash.go b/cli/internal/taskhash/taskhash.go index 054154b083d0b..bfee3b5e7aa40 100644 --- a/cli/internal/taskhash/taskhash.go +++ b/cli/internal/taskhash/taskhash.go @@ -289,7 +289,7 @@ func (th *Tracker) CalculateTaskHash(logger hclog.Logger, packageTask *nodes.Pac hashOfFiles: hashOfFiles, externalDepsHash: packageTask.Pkg.ExternalDepsHash, task: packageTask.Task, - outputs: outputs.Sort(), + outputs: outputs, passThruArgs: args, envMode: packageTask.EnvMode, passthroughEnv: packageTask.TaskDefinition.PassthroughEnv, diff --git a/turborepo-tests/integration/tests/composable_config/composing-add-keys.t b/turborepo-tests/integration/tests/composable_config/composing-add-keys.t index 5290d244caf98..8f037a79d6f81 100644 --- a/turborepo-tests/integration/tests/composable_config/composing-add-keys.t +++ b/turborepo-tests/integration/tests/composable_config/composing-add-keys.t @@ -15,13 +15,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 78349dfba4d58116 + add-keys:add-keys-underlying-task: cache miss, executing 0c509035f4552a61 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 c3b35d8aaef32d5b + add-keys:add-keys-task: cache miss, executing efedacb4cb107531 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 @@ -43,13 +43,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 output 78349dfba4d58116 + add-keys:add-keys-underlying-task: cache hit, replaying output 0c509035f4552a61 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 output c3b35d8aaef32d5b + add-keys:add-keys-task: cache hit, suppressing output efedacb4cb107531 Tasks: 2 successful, 2 total Cached: 2 cached, 2 total @@ -61,13 +61,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 1626b8684b31ff83 + add-keys:add-keys-underlying-task: cache miss, executing 7dd0b2907b19e446 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 da7c8429d1c793ba + add-keys:add-keys-task: cache miss, executing e2563a8d7a344f42 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 @@ -82,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 output 1626b8684b31ff83 + add-keys:add-keys-underlying-task: cache hit, replaying output 7dd0b2907b19e446 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 72e64a10a351980c + add-keys:add-keys-task: cache miss, executing 3ab6557cb6441554 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/composable_config/composing-add-tasks.t b/turborepo-tests/integration/tests/composable_config/composing-add-tasks.t index ef7e15b87762e..123566ddda7c9 100644 --- a/turborepo-tests/integration/tests/composable_config/composing-add-tasks.t +++ b/turborepo-tests/integration/tests/composable_config/composing-add-tasks.t @@ -6,7 +6,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 301e333fc0e306e9 + add-tasks:added-task: cache miss, executing 17ece6abfb90db13 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/composable_config/composing-cache.t b/turborepo-tests/integration/tests/composable_config/composing-cache.t index 5baa56cff530f..0849c7facec04 100644 --- a/turborepo-tests/integration/tests/composable_config/composing-cache.t +++ b/turborepo-tests/integration/tests/composable_config/composing-cache.t @@ -14,7 +14,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 26af2215a5ceec12 + cached:cached-task-1: cache miss, executing 502618642595f819 cached:cached-task-1: cached:cached-task-1: > cached-task-1 cached:cached-task-1: > echo 'cached-task-1' > out/foo.min.txt @@ -39,7 +39,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 90e566e56bf1dc12 + cached:cached-task-2: cache bypass, force executing 8ea803dc604a3dcb cached:cached-task-2: cached:cached-task-2: > cached-task-2 cached:cached-task-2: > echo 'cached-task-2' > out/foo.min.txt @@ -61,7 +61,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 a54ad1f951b3f194 + cached:cached-task-3: cache bypass, force executing a1b24869531dd8f2 cached:cached-task-3: cached:cached-task-3: > cached-task-3 cached:cached-task-3: > echo 'cached-task-3' > out/foo.min.txt @@ -85,7 +85,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 b200610f021ed0b8 + missing-workspace-config:cached-task-4: cache bypass, force executing a98fe7d15234488d 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/composable_config/composing-config-change.t b/turborepo-tests/integration/tests/composable_config/composing-config-change.t index 028760345eb94..11ad1a20308f4 100644 --- a/turborepo-tests/integration/tests/composable_config/composing-config-change.t +++ b/turborepo-tests/integration/tests/composable_config/composing-config-change.t @@ -4,13 +4,13 @@ Setup # 1. First run, check the hash $ ${TURBO} run config-change-task --filter=config-change --dry=json | jq .tasks[0].hash - "bbd88577648790db" + "ac8ef319babcdfdc" 2. Run again and assert task hash stays the same $ ${TURBO} run config-change-task --filter=config-change --dry=json | jq .tasks[0].hash - "bbd88577648790db" + "ac8ef319babcdfdc" 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 - "f0e74a964afd751f" + "b94c5e8c556d70cb" diff --git a/turborepo-tests/integration/tests/composable_config/composing-cross-workspace.t b/turborepo-tests/integration/tests/composable_config/composing-cross-workspace.t index 39e5c7335ff2e..32d3f817cd7bb 100644 --- a/turborepo-tests/integration/tests/composable_config/composing-cross-workspace.t +++ b/turborepo-tests/integration/tests/composable_config/composing-cross-workspace.t @@ -5,13 +5,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 8489d29bbcbbad66 + blank-pkg:cross-workspace-underlying-task: cache miss, executing 7e12345313b2d76f 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 b5f0e030cae7046a + cross-workspace:cross-workspace-task: cache miss, executing 8a2b15ea16852f5c cross-workspace:cross-workspace-task: cross-workspace:cross-workspace-task: > cross-workspace-task cross-workspace:cross-workspace-task: > echo "cross-workspace-task" diff --git a/turborepo-tests/integration/tests/composable_config/composing-missing-workspace-config-deps.t b/turborepo-tests/integration/tests/composable_config/composing-missing-workspace-config-deps.t index 1f252120cf600..5a999843196e8 100644 --- a/turborepo-tests/integration/tests/composable_config/composing-missing-workspace-config-deps.t +++ b/turborepo-tests/integration/tests/composable_config/composing-missing-workspace-config-deps.t @@ -16,14 +16,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 663ecc932e855517 + missing-workspace-config:missing-workspace-config-task-with-deps: cache miss, executing 3834b61108827b4d 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 f5b6890c769fbfc0 + missing-workspace-config:missing-workspace-config-underlying-task: cache miss, executing 90a40cdc23446a61 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" @@ -31,7 +31,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 9ed2e168d7105985 + blank-pkg:missing-workspace-config-underlying-topo-task: cache miss, executing e8425e7d05ed24f2 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/composable_config/composing-missing-workspace-config.t b/turborepo-tests/integration/tests/composable_config/composing-missing-workspace-config.t index 1b187f4cbddf0..92623d983984f 100644 --- a/turborepo-tests/integration/tests/composable_config/composing-missing-workspace-config.t +++ b/turborepo-tests/integration/tests/composable_config/composing-missing-workspace-config.t @@ -12,7 +12,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 05c61aea3d614094 + missing-workspace-config:missing-workspace-config-task: cache miss, executing 4f034f18433ab8f5 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 @@ -34,7 +34,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 output 05c61aea3d614094 + missing-workspace-config:missing-workspace-config-task: cache hit, suppressing output 4f034f18433ab8f5 Tasks: 1 successful, 1 total Cached: 1 cached, 1 total @@ -46,7 +46,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 95c3172b0e76df0c + missing-workspace-config:missing-workspace-config-task: cache miss, executing c681900aeabedb99 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 @@ -63,7 +63,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 output 95c3172b0e76df0c + missing-workspace-config:missing-workspace-config-task: cache hit, suppressing output c681900aeabedb99 Tasks: 1 successful, 1 total Cached: 1 cached, 1 total @@ -74,7 +74,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 dae96fa19e30c806 + missing-workspace-config:missing-workspace-config-task: cache miss, executing a5622bd339fc2cb7 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 @@ -90,7 +90,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 90119c5212ddbefe + missing-workspace-config:cached-task-4: cache bypass, force executing 3167edb20fb7efb2 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/composable_config/composing-omit-keys-deps.t b/turborepo-tests/integration/tests/composable_config/composing-omit-keys-deps.t index fb06c9f09ad45..c054eac3c3c14 100644 --- a/turborepo-tests/integration/tests/composable_config/composing-omit-keys-deps.t +++ b/turborepo-tests/integration/tests/composable_config/composing-omit-keys-deps.t @@ -16,14 +16,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 2964125aa804147b + omit-keys:omit-keys-task-with-deps: cache miss, executing ddf28501776cb1d3 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 bd4cb773a11bcef0 + omit-keys:omit-keys-underlying-task: cache miss, executing ebb5d462f2404fa6 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" @@ -31,7 +31,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 3f55273c022aa041 + blank-pkg:omit-keys-underlying-topo-task: cache miss, executing c994de7942e1e539 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/composable_config/composing-omit-keys.t b/turborepo-tests/integration/tests/composable_config/composing-omit-keys.t index bd2c7a348dde8..58708e64d8328 100644 --- a/turborepo-tests/integration/tests/composable_config/composing-omit-keys.t +++ b/turborepo-tests/integration/tests/composable_config/composing-omit-keys.t @@ -15,7 +15,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 2fe73e4bc4e0f517 + omit-keys:omit-keys-task: cache miss, executing a2565d6ab3dc964c 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 @@ -37,7 +37,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 output 2fe73e4bc4e0f517 + omit-keys:omit-keys-task: cache hit, suppressing output a2565d6ab3dc964c Tasks: 1 successful, 1 total Cached: 1 cached, 1 total @@ -49,7 +49,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 5039bd112be78dca + omit-keys:omit-keys-task: cache miss, executing 246262aae2ed96f9 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 @@ -66,7 +66,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 output 5039bd112be78dca + omit-keys:omit-keys-task: cache hit, suppressing output 246262aae2ed96f9 Tasks: 1 successful, 1 total Cached: 1 cached, 1 total @@ -77,7 +77,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 e14f331c81bc375b + omit-keys:omit-keys-task: cache miss, executing f021690cd30de8a7 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/composable_config/composing-override-values-deps.t b/turborepo-tests/integration/tests/composable_config/composing-override-values-deps.t index c8cc2c2da7219..8ac8a3b9b68d1 100644 --- a/turborepo-tests/integration/tests/composable_config/composing-override-values-deps.t +++ b/turborepo-tests/integration/tests/composable_config/composing-override-values-deps.t @@ -13,7 +13,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 79d527063be89252 + override-values:override-values-task-with-deps: cache miss, executing 28f22b2586a07b7e 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/composable_config/composing-override-values.t b/turborepo-tests/integration/tests/composable_config/composing-override-values.t index 6b9c30697eb68..daa4fa48343f2 100644 --- a/turborepo-tests/integration/tests/composable_config/composing-override-values.t +++ b/turborepo-tests/integration/tests/composable_config/composing-override-values.t @@ -12,7 +12,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 64b8a8ba99f9baa7 + override-values:override-values-task: cache miss, executing ed4bb32957412cba 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 @@ -34,7 +34,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 output 64b8a8ba99f9baa7 + override-values:override-values-task: cache hit, replaying output ed4bb32957412cba 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 @@ -50,7 +50,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 0f08526572c2a107 + override-values:override-values-task: cache miss, executing e6bf39bf6a8997cb 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 @@ -66,7 +66,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 output 0f08526572c2a107 + override-values:override-values-task: cache hit, replaying output e6bf39bf6a8997cb 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 @@ -81,7 +81,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 5d695a1fd2398949 + override-values:override-values-task: cache miss, executing 0ad5edcbedb5b38f 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 @@ -96,7 +96,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 output 5d695a1fd2398949 + override-values:override-values-task: cache hit, replaying output 0ad5edcbedb5b38f 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/composable_config/composing-persistent.t b/turborepo-tests/integration/tests/composable_config/composing-persistent.t index 614413395e55b..4fcf41f326b2b 100644 --- a/turborepo-tests/integration/tests/composable_config/composing-persistent.t +++ b/turborepo-tests/integration/tests/composable_config/composing-persistent.t @@ -23,13 +23,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 df57e68183799739 + persistent:persistent-task-2: cache miss, executing c23b14ae37a0cccd 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 f45c950ae9896d1a + persistent:persistent-task-2-parent: cache miss, executing 8a6be6fceecfa4ab persistent:persistent-task-2-parent: persistent:persistent-task-2-parent: > persistent-task-2-parent persistent:persistent-task-2-parent: > echo 'persistent-task-2-parent' diff --git a/turborepo-tests/integration/tests/continue.t b/turborepo-tests/integration/tests/continue.t index 7b946e17ac8a4..4e6c0b65ee1a6 100644 --- a/turborepo-tests/integration/tests/continue.t +++ b/turborepo-tests/integration/tests/continue.t @@ -6,7 +6,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 3494007308f52ad6 + some-lib:build: cache miss, executing 4f3ce9f63d9198ad 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 3494007308f52ad6 + some-lib:build: cache miss, executing 4f3ce9f63d9198ad 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 3494007308f52ad6 + some-lib:build: cache miss, executing 4f3ce9f63d9198ad 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 af6505fe5634a5f5 + other-app:build: cache miss, executing f62a6dcb11412833 other-app:build: other-app:build: > build other-app:build: > exit 3 diff --git a/turborepo-tests/integration/tests/dry_json/monorepo.t b/turborepo-tests/integration/tests/dry_json/monorepo.t index 939187ce3fb59..d8e6b502474d0 100644 --- a/turborepo-tests/integration/tests/dry_json/monorepo.t +++ b/turborepo-tests/integration/tests/dry_json/monorepo.t @@ -15,59 +15,7 @@ Setup "files": { "foo.txt": "eebae5f3ca7b5831e429e947b7d61edd0de69236" }, - "hashOfExternalDependencies": "ccab0b28617f1f56", - "rootPipeline": { - "//#something": { - "outputs": [], - "cache": true, - "dependsOn": [], - "inputs": [], - "outputMode": "full", - "env": [], - "persistent": false - }, - "build": { - "outputs": [], - "cache": true, - "dependsOn": [], - "inputs": [], - "outputMode": "full", - "env": [ - "NODE_ENV" - ], - "persistent": false - }, - "maybefails": { - "outputs": [], - "cache": true, - "dependsOn": [], - "inputs": [], - "outputMode": "full", - "env": [], - "persistent": false - }, - "my-app#build": { - "outputs": [ - "apple.json", - "banana.txt" - ], - "cache": true, - "dependsOn": [], - "inputs": [], - "outputMode": "full", - "env": [], - "persistent": false - }, - "something": { - "outputs": [], - "cache": true, - "dependsOn": [], - "inputs": [], - "outputMode": "full", - "env": [], - "persistent": false - } - } + "hashOfExternalDependencies": "ccab0b28617f1f56" } $ cat tmpjson.log | jq 'keys' @@ -90,7 +38,7 @@ Setup "taskId": "my-app#build", "task": "build", "package": "my-app", - "hash": "2f192ed93e20f940", + "hash": "bcfea334449257fe", "inputs": { "package.json": "6bcf57fd6ff30d1a6f40ad8d8d08e8b940fc7e3b" }, @@ -145,7 +93,7 @@ Setup "taskId": "util#build", "task": "build", "package": "util", - "hash": "af2ba2d52192ee45", + "hash": "e64dab76e045fbb4", "inputs": { "package.json": "4d57bb28c9967640d812981198a743b3188f713e" }, diff --git a/turborepo-tests/integration/tests/dry_json/single_package.t b/turborepo-tests/integration/tests/dry_json/single_package.t index e5a2ef9a2ab5a..23f88c5d4fef7 100644 --- a/turborepo-tests/integration/tests/dry_json/single_package.t +++ b/turborepo-tests/integration/tests/dry_json/single_package.t @@ -14,20 +14,7 @@ Setup "package.json": "185771929d92c3865ce06c863c07d357500d3364", "somefile.txt": "45b983be36b73c0788dc9cbcb76cbb80fc7bb057" }, - "hashOfExternalDependencies": "", - "rootPipeline": { - "//#build": { - "outputs": [ - "foo" - ], - "cache": true, - "dependsOn": [], - "inputs": [], - "outputMode": "full", - "env": [], - "persistent": false - } - } + "hashOfExternalDependencies": "" }, "envMode": "infer", "frameworkInference": true, @@ -35,7 +22,7 @@ Setup { "taskId": "build", "task": "build", - "hash": "dd4a9a7b508b0e38", + "hash": "6d6f6826cfa281cf", "inputs": { ".gitignore": "6f23ff6842b5526da43ab38f4a5bf3b0158eeb42", "package-lock.json": "8db0df575e6509336a6719094b63eb23d2c649c1", 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 88cb4ae5151a7..39f778d9c12b7 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 @@ -15,18 +15,7 @@ Setup "package-lock.json": "8db0df575e6509336a6719094b63eb23d2c649c1", "package.json": "185771929d92c3865ce06c863c07d357500d3364" }, - "hashOfExternalDependencies": "", - "rootPipeline": { - "//#build": { - "outputs": [], - "cache": false, - "dependsOn": [], - "inputs": [], - "outputMode": "full", - "env": [], - "persistent": false - } - } + "hashOfExternalDependencies": "" }, "envMode": "infer", "frameworkInference": true, @@ -34,7 +23,7 @@ Setup { "taskId": "build", "task": "build", - "hash": "5b5ae44052e3d624", + "hash": "fd2d83473c0700ad", "inputs": { ".gitignore": "6f23ff6842b5526da43ab38f4a5bf3b0158eeb42", "package-lock.json": "8db0df575e6509336a6719094b63eb23d2c649c1", 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 51181ed7db03e..864ee17014e59 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 @@ -13,31 +13,7 @@ Setup "package-lock.json": "8db0df575e6509336a6719094b63eb23d2c649c1", "package.json": "bc24e5c5b8bd13d419e0742ae3e92a2bf61c53d0" }, - "hashOfExternalDependencies": "", - "rootPipeline": { - "//#build": { - "outputs": [ - "foo" - ], - "cache": true, - "dependsOn": [], - "inputs": [], - "outputMode": "full", - "env": [], - "persistent": false - }, - "//#test": { - "outputs": [], - "cache": true, - "dependsOn": [ - "build" - ], - "inputs": [], - "outputMode": "full", - "env": [], - "persistent": false - } - } + "hashOfExternalDependencies": "" }, "envMode": "infer", "frameworkInference": true, @@ -45,7 +21,7 @@ Setup { "taskId": "build", "task": "build", - "hash": "8fc80cfff3b64237", + "hash": "9103ff5d43f221c4", "inputs": { ".gitignore": "6f23ff6842b5526da43ab38f4a5bf3b0158eeb42", "package-lock.json": "8db0df575e6509336a6719094b63eb23d2c649c1", @@ -97,7 +73,7 @@ Setup { "taskId": "test", "task": "test", - "hash": "c71366ccd6a86465", + "hash": "a404ed8a88a62f81", "inputs": { ".gitignore": "6f23ff6842b5526da43ab38f4a5bf3b0158eeb42", "package-lock.json": "8db0df575e6509336a6719094b63eb23d2c649c1", diff --git a/turborepo-tests/integration/tests/dry_run.t b/turborepo-tests/integration/tests/dry_run.t index e92a0f553122e..30dd880934e94 100644 --- a/turborepo-tests/integration/tests/dry_run.t +++ b/turborepo-tests/integration/tests/dry_run.t @@ -20,14 +20,13 @@ Setup Global Files = 1 External Dependencies Hash = ccab0b28617f1f56 Global Cache Key = Buffalo buffalo Buffalo buffalo buffalo buffalo Buffalo buffalo - Root pipeline = {"//#something":{"outputs":[],"cache":true,"dependsOn":[],"inputs":[],"outputMode":"full","env":[],"persistent":false},"build":{"outputs":[],"cache":true,"dependsOn":[],"inputs":[],"outputMode":"full","env":["NODE_ENV"],"persistent":false},"maybefails":{"outputs":[],"cache":true,"dependsOn":[],"inputs":[],"outputMode":"full","env":[],"persistent":false},"my-app#build":{"outputs":["apple.json","banana.txt"],"cache":true,"dependsOn":[],"inputs":[],"outputMode":"full","env":[],"persistent":false},"something":{"outputs":[],"cache":true,"dependsOn":[],"inputs":[],"outputMode":"full","env":[],"persistent":false}} # Part 3 are Tasks to Run, and we have to validate each task separately $ cat tmp-3.txt | grep "my-app#build" -A 15 my-app#build Task = build Package = my-app - Hash = 2f192ed93e20f940 + Hash = bcfea334449257fe Cached (Local) = false Cached (Remote) = false Directory = apps/my-app @@ -45,7 +44,7 @@ Setup util#build Task = build Package = util - Hash = af2ba2d52192ee45 + Hash = e64dab76e045fbb4 Cached (Local) = false Cached (Remote) = false Directory = packages/util diff --git a/turborepo-tests/integration/tests/edit_turbo_json/fixture-configs/1-baseline.json b/turborepo-tests/integration/tests/edit_turbo_json/fixture-configs/1-baseline.json new file mode 100644 index 0000000000000..9c9c4ee347ff4 --- /dev/null +++ b/turborepo-tests/integration/tests/edit_turbo_json/fixture-configs/1-baseline.json @@ -0,0 +1,14 @@ +{ + "$schema": "https://turbo.build/schema.json", + "globalDependencies": ["foo.txt"], + "globalEnv": ["SOME_ENV_VAR"], + "pipeline": { + "build": { + "env": ["NODE_ENV"], + "outputs": [] + }, + "my-app#build": { + "outputs": ["banana.txt", "apple.json"] + } + } +} diff --git a/turborepo-tests/integration/tests/edit_turbo_json/fixture-configs/2-update-pipeline.json b/turborepo-tests/integration/tests/edit_turbo_json/fixture-configs/2-update-pipeline.json new file mode 100644 index 0000000000000..d75c02b701257 --- /dev/null +++ b/turborepo-tests/integration/tests/edit_turbo_json/fixture-configs/2-update-pipeline.json @@ -0,0 +1,14 @@ +{ + "$schema": "https://turbo.build/schema.json", + "globalDependencies": ["foo.txt"], + "globalEnv": ["SOME_ENV_VAR"], + "pipeline": { + "build": { + "env": ["NODE_ENV", "NEW_ENV"], + "outputs": [] + }, + "my-app#build": { + "outputs": ["banana.txt", "apple.json"] + } + } +} diff --git a/turborepo-tests/integration/tests/edit_turbo_json/fixture-configs/3-update-global-env.json b/turborepo-tests/integration/tests/edit_turbo_json/fixture-configs/3-update-global-env.json new file mode 100644 index 0000000000000..4966c92b5f6b9 --- /dev/null +++ b/turborepo-tests/integration/tests/edit_turbo_json/fixture-configs/3-update-global-env.json @@ -0,0 +1,14 @@ +{ + "$schema": "https://turbo.build/schema.json", + "globalDependencies": ["foo.txt"], + "globalEnv": ["SOME_ENV_VAR", "NEW_ENV"], + "pipeline": { + "build": { + "env": ["NODE_ENV"], + "outputs": [] + }, + "my-app#build": { + "outputs": ["banana.txt", "apple.json"] + } + } +} diff --git a/turborepo-tests/integration/tests/edit_turbo_json/fixture-configs/4-update-global-deps.json b/turborepo-tests/integration/tests/edit_turbo_json/fixture-configs/4-update-global-deps.json new file mode 100644 index 0000000000000..eb0cad40ff0a4 --- /dev/null +++ b/turborepo-tests/integration/tests/edit_turbo_json/fixture-configs/4-update-global-deps.json @@ -0,0 +1,14 @@ +{ + "$schema": "https://turbo.build/schema.json", + "globalDependencies": ["foo*.txt"], + "globalEnv": ["SOME_ENV_VAR"], + "pipeline": { + "build": { + "env": ["NODE_ENV"], + "outputs": [] + }, + "my-app#build": { + "outputs": ["banana.txt", "apple.json"] + } + } +} diff --git a/turborepo-tests/integration/tests/edit_turbo_json/fixture-configs/5-update-global-deps-materially.json b/turborepo-tests/integration/tests/edit_turbo_json/fixture-configs/5-update-global-deps-materially.json new file mode 100644 index 0000000000000..7392198df3957 --- /dev/null +++ b/turborepo-tests/integration/tests/edit_turbo_json/fixture-configs/5-update-global-deps-materially.json @@ -0,0 +1,14 @@ +{ + "$schema": "https://turbo.build/schema.json", + "globalDependencies": ["foo.txt", "bar.txt"], + "globalEnv": ["SOME_ENV_VAR"], + "pipeline": { + "build": { + "env": ["NODE_ENV"], + "outputs": [] + }, + "my-app#build": { + "outputs": ["banana.txt", "apple.json"] + } + } +} diff --git a/turborepo-tests/integration/tests/edit_turbo_json/fixture-configs/6-update-passthrough-env.json b/turborepo-tests/integration/tests/edit_turbo_json/fixture-configs/6-update-passthrough-env.json new file mode 100644 index 0000000000000..81149ec3ebf69 --- /dev/null +++ b/turborepo-tests/integration/tests/edit_turbo_json/fixture-configs/6-update-passthrough-env.json @@ -0,0 +1,15 @@ +{ + "$schema": "https://turbo.build/schema.json", + "globalDependencies": ["foo.txt"], + "globalEnv": ["SOME_ENV_VAR"], + "experimentalGlobalPassThroughEnv": ["PASSTHROUGH"], + "pipeline": { + "build": { + "env": ["NODE_ENV"], + "outputs": [] + }, + "my-app#build": { + "outputs": ["banana.txt", "apple.json"] + } + } +} diff --git a/turborepo-tests/integration/tests/edit_turbo_json/fixture-configs/a-baseline.json b/turborepo-tests/integration/tests/edit_turbo_json/fixture-configs/a-baseline.json new file mode 100644 index 0000000000000..9c9c4ee347ff4 --- /dev/null +++ b/turborepo-tests/integration/tests/edit_turbo_json/fixture-configs/a-baseline.json @@ -0,0 +1,14 @@ +{ + "$schema": "https://turbo.build/schema.json", + "globalDependencies": ["foo.txt"], + "globalEnv": ["SOME_ENV_VAR"], + "pipeline": { + "build": { + "env": ["NODE_ENV"], + "outputs": [] + }, + "my-app#build": { + "outputs": ["banana.txt", "apple.json"] + } + } +} diff --git a/turborepo-tests/integration/tests/edit_turbo_json/fixture-configs/b-change-only-my-app.json b/turborepo-tests/integration/tests/edit_turbo_json/fixture-configs/b-change-only-my-app.json new file mode 100644 index 0000000000000..d14227552234b --- /dev/null +++ b/turborepo-tests/integration/tests/edit_turbo_json/fixture-configs/b-change-only-my-app.json @@ -0,0 +1,14 @@ +{ + "$schema": "https://turbo.build/schema.json", + "globalDependencies": ["foo.txt"], + "globalEnv": ["SOME_ENV_VAR"], + "pipeline": { + "build": { + "env": ["NODE_ENV"], + "outputs": [] + }, + "my-app#build": { + "outputs": ["apple.json"] + } + } +} diff --git a/turborepo-tests/integration/tests/edit_turbo_json/fixture-configs/c-my-app-depends-on.json b/turborepo-tests/integration/tests/edit_turbo_json/fixture-configs/c-my-app-depends-on.json new file mode 100644 index 0000000000000..6f3d11a73b231 --- /dev/null +++ b/turborepo-tests/integration/tests/edit_turbo_json/fixture-configs/c-my-app-depends-on.json @@ -0,0 +1,15 @@ +{ + "$schema": "https://turbo.build/schema.json", + "globalDependencies": ["foo.txt"], + "globalEnv": ["SOME_ENV_VAR"], + "pipeline": { + "build": { + "env": ["NODE_ENV"], + "outputs": [] + }, + "my-app#build": { + "dependsOn": ["^build"], + "outputs": ["banana.txt", "apple.json"] + } + } +} diff --git a/turborepo-tests/integration/tests/edit_turbo_json/fixture-configs/d-depends-on-util.json b/turborepo-tests/integration/tests/edit_turbo_json/fixture-configs/d-depends-on-util.json new file mode 100644 index 0000000000000..6de9c73c20174 --- /dev/null +++ b/turborepo-tests/integration/tests/edit_turbo_json/fixture-configs/d-depends-on-util.json @@ -0,0 +1,19 @@ +{ + "$schema": "https://turbo.build/schema.json", + "globalDependencies": ["foo.txt"], + "globalEnv": ["SOME_ENV_VAR"], + "pipeline": { + "build": { + "env": ["NODE_ENV"], + "outputs": [] + }, + "util#build": { + "env": ["NODE_ENV"], + "outputs": [] + }, + "my-app#build": { + "dependsOn": ["^build"], + "outputs": ["banana.txt", "apple.json"] + } + } +} diff --git a/turborepo-tests/integration/tests/edit_turbo_json/fixture-configs/e-depends-on-util-but-modified.json b/turborepo-tests/integration/tests/edit_turbo_json/fixture-configs/e-depends-on-util-but-modified.json new file mode 100644 index 0000000000000..7f8f9e34929d6 --- /dev/null +++ b/turborepo-tests/integration/tests/edit_turbo_json/fixture-configs/e-depends-on-util-but-modified.json @@ -0,0 +1,19 @@ +{ + "$schema": "https://turbo.build/schema.json", + "globalDependencies": ["foo.txt"], + "globalEnv": ["SOME_ENV_VAR"], + "pipeline": { + "build": { + "env": ["NODE_ENV"], + "outputs": [] + }, + "util#build": { + "env": ["NODE_ENV", "CASCADE"], + "outputs": [] + }, + "my-app#build": { + "dependsOn": ["^build"], + "outputs": ["banana.txt", "apple.json"] + } + } +} diff --git a/turborepo-tests/integration/tests/edit_turbo_json/global.t b/turborepo-tests/integration/tests/edit_turbo_json/global.t new file mode 100644 index 0000000000000..9bee2152bbb5b --- /dev/null +++ b/turborepo-tests/integration/tests/edit_turbo_json/global.t @@ -0,0 +1,32 @@ +Setup + $ . ${TESTDIR}/../../../helpers/setup.sh + $ . ${TESTDIR}/../_helpers/setup_monorepo.sh $(pwd) + +Baseline global hash + $ cp "$TESTDIR/fixture-configs/1-baseline.json" "$(pwd)/turbo.json" && git commit -am "no comment" --quiet + $ BASELINE=$(${TURBO} build -vv 2>&1 | "$TESTDIR/../_helpers/get-global-hash.sh") + +Update pipeline: global hash remains stable. + $ cp "$TESTDIR/fixture-configs/2-update-pipeline.json" "$(pwd)/turbo.json" && git commit -am "no comment" --quiet + $ UPDATE_PIPELINE=$(${TURBO} build -vv --experimental-env-mode=infer 2>&1 | "$TESTDIR/../_helpers/get-global-hash.sh") + $ test $BASELINE = $UPDATE_PIPELINE + +Update globalEnv: global hash changes. + $ cp "$TESTDIR/fixture-configs/3-update-global-env.json" "$(pwd)/turbo.json" && git commit -am "no comment" --quiet + $ NEW_GLOBAL_ENV=$(${TURBO} build -vv --experimental-env-mode=infer 2>&1 | "$TESTDIR/../_helpers/get-global-hash.sh") + $ test $BASELINE != $NEW_GLOBAL_ENV + +Update globalDeps in a non-material way: global hash remains stable. + $ cp "$TESTDIR/fixture-configs/4-update-global-deps.json" "$(pwd)/turbo.json" && git commit -am "no comment" --quiet + $ NEW_GLOBAL_DEPS=$(${TURBO} build -vv --experimental-env-mode=infer 2>&1 | "$TESTDIR/../_helpers/get-global-hash.sh") + $ test $BASELINE = $NEW_GLOBAL_DEPS + +Update globalDeps in a material way: global hash changes. + $ cp "$TESTDIR/fixture-configs/5-update-global-deps-materially.json" "$(pwd)/turbo.json" && git commit -am "no comment" --quiet + $ NEW_GLOBAL_DEPS=$(${TURBO} build -vv --experimental-env-mode=infer 2>&1 | "$TESTDIR/../_helpers/get-global-hash.sh") + $ test $BASELINE != $NEW_GLOBAL_DEPS + +Update passthroughEnv: global hash changes. + $ cp "$TESTDIR/fixture-configs/6-update-passthrough-env.json" "$(pwd)/turbo.json" && git commit -am "no comment" --quiet + $ NEW_GLOBAL_PASSTHROUGH=$(${TURBO} build -vv --experimental-env-mode=infer 2>&1 | "$TESTDIR/../_helpers/get-global-hash.sh") + $ test $BASELINE != $NEW_GLOBAL_PASSTHROUGH diff --git a/turborepo-tests/integration/tests/edit_turbo_json/task.t b/turborepo-tests/integration/tests/edit_turbo_json/task.t new file mode 100644 index 0000000000000..d5a94a92fc78d --- /dev/null +++ b/turborepo-tests/integration/tests/edit_turbo_json/task.t @@ -0,0 +1,84 @@ +Setup + $ . ${TESTDIR}/../../../helpers/setup.sh + $ . ${TESTDIR}/../_helpers/setup_monorepo.sh $(pwd) + +Baseline task hashes + $ cp "$TESTDIR/fixture-configs/a-baseline.json" "$(pwd)/turbo.json" && git commit -am "no comment" --quiet + $ ${TURBO} build --dry=json | jq -r '.tasks | sort_by(.taskId)[] | {taskId, hash}' + { + "taskId": "another#build", + "hash": "8d90a05aa60bd604" + } + { + "taskId": "my-app#build", + "hash": "bcfea334449257fe" + } + { + "taskId": "util#build", + "hash": "e64dab76e045fbb4" + } + +Change only my-app#build + $ cp "$TESTDIR/fixture-configs/b-change-only-my-app.json" "$(pwd)/turbo.json" && git commit -am "no comment" --quiet + $ ${TURBO} build --dry=json | jq -r '.tasks | sort_by(.taskId)[] | {taskId, hash}' + { + "taskId": "another#build", + "hash": "8d90a05aa60bd604" + } + { + "taskId": "my-app#build", + "hash": "943c0f8cc9e90a1e" + } + { + "taskId": "util#build", + "hash": "e64dab76e045fbb4" + } + +Change my-app#build dependsOn + $ cp "$TESTDIR/fixture-configs/c-my-app-depends-on.json" "$(pwd)/turbo.json" && git commit -am "no comment" --quiet + $ ${TURBO} build --dry=json | jq -r '.tasks | sort_by(.taskId)[] | {taskId, hash}' + { + "taskId": "another#build", + "hash": "8d90a05aa60bd604" + } + { + "taskId": "my-app#build", + "hash": "61dafe4314e0156a" + } + { + "taskId": "util#build", + "hash": "e64dab76e045fbb4" + } + +Non-materially modifying the dep graph does nothing. + $ cp "$TESTDIR/fixture-configs/d-depends-on-util.json" "$(pwd)/turbo.json" && git commit -am "no comment" --quiet + $ ${TURBO} build --dry=json | jq -r '.tasks | sort_by(.taskId)[] | {taskId, hash}' + { + "taskId": "another#build", + "hash": "8d90a05aa60bd604" + } + { + "taskId": "my-app#build", + "hash": "61dafe4314e0156a" + } + { + "taskId": "util#build", + "hash": "e64dab76e045fbb4" + } + + +Change util#build impacts itself and my-app + $ cp "$TESTDIR/fixture-configs/e-depends-on-util-but-modified.json" "$(pwd)/turbo.json" && git commit -am "no comment" --quiet + $ ${TURBO} build --dry=json | jq -r '.tasks | sort_by(.taskId)[] | {taskId, hash}' + { + "taskId": "another#build", + "hash": "8d90a05aa60bd604" + } + { + "taskId": "my-app#build", + "hash": "f976edb1e8ddf783" + } + { + "taskId": "util#build", + "hash": "1f378ad2e5831e1f" + } diff --git a/turborepo-tests/integration/tests/errors-only.t b/turborepo-tests/integration/tests/errors-only.t index 25233796dcdc6..243675fdd1783 100644 --- a/turborepo-tests/integration/tests/errors-only.t +++ b/turborepo-tests/integration/tests/errors-only.t @@ -38,7 +38,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 e66674cd52f90ec9 + app-a:builderror: cache miss, executing ff2e6f6b0277d9a2 app-a:builderror: app-a:builderror: > builderror app-a:builderror: > echo "error builderror app-a!" && exit 1 @@ -68,7 +68,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 de9a4f19fc30bada + app-a:builderror2: cache miss, executing 1c171a6910099738 app-a:builderror2: app-a:builderror2: > builderror2 app-a:builderror2: > echo "error builderror2 app-a!" && exit 1 diff --git a/turborepo-tests/integration/tests/excluded_inputs.t b/turborepo-tests/integration/tests/excluded_inputs.t index 27f797e9cc1e1..3cc1a8dfb9113 100644 --- a/turborepo-tests/integration/tests/excluded_inputs.t +++ b/turborepo-tests/integration/tests/excluded_inputs.t @@ -7,7 +7,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 8e831316c353dd67 + my-app:build: cache miss, executing 63c8d5406e5066b8 my-app:build: my-app:build: > build my-app:build: > echo 'building' @@ -24,7 +24,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 output 8e831316c353dd67 + my-app:build: cache hit, replaying output 63c8d5406e5066b8 my-app:build: my-app:build: > build my-app:build: > echo 'building' diff --git a/turborepo-tests/integration/tests/global_env.t b/turborepo-tests/integration/tests/global_env.t index 595114991146d..352fc713b6ed3 100644 --- a/turborepo-tests/integration/tests/global_env.t +++ b/turborepo-tests/integration/tests/global_env.t @@ -9,7 +9,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 af2ba2d52192ee45 + util:build: cache miss, executing e64dab76e045fbb4 Tasks: 1 successful, 1 total Cached: 0 cached, 1 total @@ -20,7 +20,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 output af2ba2d52192ee45 + util:build: cache hit, suppressing output e64dab76e045fbb4 Tasks: 1 successful, 1 total Cached: 1 cached, 1 total @@ -31,7 +31,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 17f686a212d7ddfa + util:build: cache miss, executing deb41a95a9c8ba92 Tasks: 1 successful, 1 total Cached: 0 cached, 1 total @@ -42,7 +42,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 533045e55589de0b + util:build: cache miss, executing b85993c7fe25dbfe Tasks: 1 successful, 1 total Cached: 0 cached, 1 total diff --git a/turborepo-tests/integration/tests/inference/has_workspaces.t b/turborepo-tests/integration/tests/inference/has_workspaces.t index 0e2f67ceb15d7..d95c5570be6c1 100644 --- a/turborepo-tests/integration/tests/inference/has_workspaces.t +++ b/turborepo-tests/integration/tests/inference/has_workspaces.t @@ -13,7 +13,7 @@ Setup [-0-9:.TWZ+]+ \[DEBUG] turbo: build tag: (go|rust) (re) [-0-9:.TWZ+]+ \[INFO] turbo: skipping turbod since we appear to be in a non-interactive context (re) [-0-9:.TWZ+]+ \[DEBUG] turbo: global hash env vars: vars=\["VERCEL_ANALYTICS_ID"] (re) - [-0-9:.TWZ+]+ \[DEBUG] turbo: global hash: value=c1fb8f74a026cdb8 (re) + [-0-9:.TWZ+]+ \[DEBUG] turbo: global hash: value=175a0104aab3eda4 (re) [-0-9:.TWZ+]+ \[DEBUG] turbo: local cache folder: path="" (re) \xe2\x80\xa2 Packages in scope: (esc) \xe2\x80\xa2 Running build in 0 packages (esc) @@ -37,7 +37,7 @@ Setup [-0-9:.TWZ+]+ \[INFO] turbo: skipping turbod since we appear to be in a non-interactive context (re) [-0-9:.TWZ+]+ \[DEBUG] turbo: Using apps/web as a basis for selecting packages (re) [-0-9:.TWZ+]+ \[DEBUG] turbo: global hash env vars: vars=\["VERCEL_ANALYTICS_ID"] (re) - [-0-9:.TWZ+]+ \[DEBUG] turbo: global hash: value=c1fb8f74a026cdb8 (re) + [-0-9:.TWZ+]+ \[DEBUG] turbo: global hash: value=175a0104aab3eda4 (re) [-0-9:.TWZ+]+ \[DEBUG] turbo: local cache folder: path="" (re) \xe2\x80\xa2 Packages in scope: (esc) \xe2\x80\xa2 Running build in 0 packages (esc) @@ -61,7 +61,7 @@ Setup [-0-9:.TWZ+]+ \[INFO] turbo: skipping turbod since we appear to be in a non-interactive context (re) [-0-9:.TWZ+]+ \[DEBUG] turbo: Using crates as a basis for selecting packages (re) [-0-9:.TWZ+]+ \[DEBUG] turbo: global hash env vars: vars=\["VERCEL_ANALYTICS_ID"] (re) - [-0-9:.TWZ+]+ \[DEBUG] turbo: global hash: value=c1fb8f74a026cdb8 (re) + [-0-9:.TWZ+]+ \[DEBUG] turbo: global hash: value=175a0104aab3eda4 (re) [-0-9:.TWZ+]+ \[DEBUG] turbo: local cache folder: path="" (re) \xe2\x80\xa2 Packages in scope: (esc) \xe2\x80\xa2 Running build in 0 packages (esc) @@ -85,7 +85,7 @@ Setup [-0-9:.TWZ+]+ \[INFO] turbo: skipping turbod since we appear to be in a non-interactive context (re) [-0-9:.TWZ+]+ \[DEBUG] turbo: Using crates/super-crate/tests/test-package as a basis for selecting packages (re) [-0-9:.TWZ+]+ \[DEBUG] turbo: global hash env vars: vars=\["VERCEL_ANALYTICS_ID"] (re) - [-0-9:.TWZ+]+ \[DEBUG] turbo: global hash: value=c1fb8f74a026cdb8 (re) + [-0-9:.TWZ+]+ \[DEBUG] turbo: global hash: value=175a0104aab3eda4 (re) [-0-9:.TWZ+]+ \[DEBUG] turbo: local cache folder: path="" (re) \xe2\x80\xa2 Packages in scope: (esc) \xe2\x80\xa2 Running build in 0 packages (esc) @@ -109,7 +109,7 @@ Setup [-0-9:.TWZ+]+ \[INFO] turbo: skipping turbod since we appear to be in a non-interactive context (re) [-0-9:.TWZ+]+ \[DEBUG] turbo: Using packages/ui-library/src as a basis for selecting packages (re) [-0-9:.TWZ+]+ \[DEBUG] turbo: global hash env vars: vars=\["VERCEL_ANALYTICS_ID"] (re) - [-0-9:.TWZ+]+ \[DEBUG] turbo: global hash: value=c1fb8f74a026cdb8 (re) + [-0-9:.TWZ+]+ \[DEBUG] turbo: global hash: value=175a0104aab3eda4 (re) [-0-9:.TWZ+]+ \[DEBUG] turbo: local cache folder: path="" (re) \xe2\x80\xa2 Packages in scope: (esc) \xe2\x80\xa2 Running build in 0 packages (esc) diff --git a/turborepo-tests/integration/tests/inference/nested_workspaces.t b/turborepo-tests/integration/tests/inference/nested_workspaces.t index 9e6c3971911fc..3d32bc0a17eb1 100644 --- a/turborepo-tests/integration/tests/inference/nested_workspaces.t +++ b/turborepo-tests/integration/tests/inference/nested_workspaces.t @@ -13,7 +13,7 @@ Setup [-0-9:.TWZ+]+ \[DEBUG] turbo: build tag: (go|rust) (re) [-0-9:.TWZ+]+ \[INFO] turbo: skipping turbod since we appear to be in a non-interactive context (re) [-0-9:.TWZ+]+ \[DEBUG] turbo: global hash env vars: vars=\["VERCEL_ANALYTICS_ID"] (re) - [-0-9:.TWZ+]+ \[DEBUG] turbo: global hash: value=c1fb8f74a026cdb8 (re) + [-0-9:.TWZ+]+ \[DEBUG] turbo: global hash: value=175a0104aab3eda4 (re) [-0-9:.TWZ+]+ \[DEBUG] turbo: local cache folder: path="" (re) \xe2\x80\xa2 Packages in scope: (esc) \xe2\x80\xa2 Running build in 0 packages (esc) @@ -37,7 +37,7 @@ Setup [-0-9:.TWZ+]+ \[INFO] turbo: skipping turbod since we appear to be in a non-interactive context (re) [-0-9:.TWZ+]+ \[DEBUG] turbo: Using apps as a basis for selecting packages (re) [-0-9:.TWZ+]+ \[DEBUG] turbo: global hash env vars: vars=\["VERCEL_ANALYTICS_ID"] (re) - [-0-9:.TWZ+]+ \[DEBUG] turbo: global hash: value=c1fb8f74a026cdb8 (re) + [-0-9:.TWZ+]+ \[DEBUG] turbo: global hash: value=175a0104aab3eda4 (re) [-0-9:.TWZ+]+ \[DEBUG] turbo: local cache folder: path="" (re) \xe2\x80\xa2 Packages in scope: (esc) \xe2\x80\xa2 Running build in 0 packages (esc) @@ -60,7 +60,7 @@ Setup [-0-9:.TWZ+]+ \[DEBUG] turbo: build tag: (go|rust) (re) [-0-9:.TWZ+]+ \[INFO] turbo: skipping turbod since we appear to be in a non-interactive context (re) [-0-9:.TWZ+]+ \[DEBUG] turbo: global hash env vars: vars=\["VERCEL_ANALYTICS_ID"] (re) - [-0-9:.TWZ+]+ \[DEBUG] turbo: global hash: value=c1fb8f74a026cdb8 (re) + [-0-9:.TWZ+]+ \[DEBUG] turbo: global hash: value=175a0104aab3eda4 (re) [-0-9:.TWZ+]+ \[DEBUG] turbo: local cache folder: path="" (re) \xe2\x80\xa2 Packages in scope: (esc) \xe2\x80\xa2 Running build in 0 packages (esc) @@ -84,7 +84,7 @@ Setup [-0-9:.TWZ+]+ \[INFO] turbo: skipping turbod since we appear to be in a non-interactive context (re) [-0-9:.TWZ+]+ \[DEBUG] turbo: Using apps as a basis for selecting packages (re) [-0-9:.TWZ+]+ \[DEBUG] turbo: global hash env vars: vars=\["VERCEL_ANALYTICS_ID"] (re) - [-0-9:.TWZ+]+ \[DEBUG] turbo: global hash: value=c1fb8f74a026cdb8 (re) + [-0-9:.TWZ+]+ \[DEBUG] turbo: global hash: value=175a0104aab3eda4 (re) [-0-9:.TWZ+]+ \[DEBUG] turbo: local cache folder: path="" (re) \xe2\x80\xa2 Packages in scope: (esc) \xe2\x80\xa2 Running build in 0 packages (esc) @@ -108,7 +108,7 @@ Setup [-0-9:.TWZ+]+ \[INFO] turbo: skipping turbod since we appear to be in a non-interactive context (re) [-0-9:.TWZ+]+ \[DEBUG] turbo: Using inner-no-turbo as a basis for selecting packages (re) [-0-9:.TWZ+]+ \[DEBUG] turbo: global hash env vars: vars=\["VERCEL_ANALYTICS_ID"] (re) - [-0-9:.TWZ+]+ \[DEBUG] turbo: global hash: value=c1fb8f74a026cdb8 (re) + [-0-9:.TWZ+]+ \[DEBUG] turbo: global hash: value=175a0104aab3eda4 (re) [-0-9:.TWZ+]+ \[DEBUG] turbo: local cache folder: path="" (re) \xe2\x80\xa2 Packages in scope: (esc) \xe2\x80\xa2 Running build in 0 packages (esc) @@ -132,7 +132,7 @@ Setup [-0-9:.TWZ+]+ \[INFO] turbo: skipping turbod since we appear to be in a non-interactive context (re) [-0-9:.TWZ+]+ \[DEBUG] turbo: Using inner-no-turbo/apps as a basis for selecting packages (re) [-0-9:.TWZ+]+ \[DEBUG] turbo: global hash env vars: vars=\["VERCEL_ANALYTICS_ID"] (re) - [-0-9:.TWZ+]+ \[DEBUG] turbo: global hash: value=c1fb8f74a026cdb8 (re) + [-0-9:.TWZ+]+ \[DEBUG] turbo: global hash: value=175a0104aab3eda4 (re) [-0-9:.TWZ+]+ \[DEBUG] turbo: local cache folder: path="" (re) \xe2\x80\xa2 Packages in scope: (esc) \xe2\x80\xa2 Running build in 0 packages (esc) @@ -185,7 +185,7 @@ Setup [-0-9:.TWZ+]+ \[DEBUG] turbo: build tag: (go|rust) (re) [-0-9:.TWZ+]+ \[INFO] turbo: skipping turbod since we appear to be in a non-interactive context (re) [-0-9:.TWZ+]+ \[DEBUG] turbo: global hash env vars: vars=\["VERCEL_ANALYTICS_ID"] (re) - [-0-9:.TWZ+]+ \[DEBUG] turbo: global hash: value=c1fb8f74a026cdb8 (re) + [-0-9:.TWZ+]+ \[DEBUG] turbo: global hash: value=175a0104aab3eda4 (re) [-0-9:.TWZ+]+ \[DEBUG] turbo: local cache folder: path="" (re) \xe2\x80\xa2 Packages in scope: (esc) \xe2\x80\xa2 Running build in 0 packages (esc) @@ -209,7 +209,7 @@ Setup [-0-9:.TWZ+]+ \[INFO] turbo: skipping turbod since we appear to be in a non-interactive context (re) [-0-9:.TWZ+]+ \[DEBUG] turbo: Using apps as a basis for selecting packages (re) [-0-9:.TWZ+]+ \[DEBUG] turbo: global hash env vars: vars=\["VERCEL_ANALYTICS_ID"] (re) - [-0-9:.TWZ+]+ \[DEBUG] turbo: global hash: value=c1fb8f74a026cdb8 (re) + [-0-9:.TWZ+]+ \[DEBUG] turbo: global hash: value=175a0104aab3eda4 (re) [-0-9:.TWZ+]+ \[DEBUG] turbo: local cache folder: path="" (re) \xe2\x80\xa2 Packages in scope: (esc) \xe2\x80\xa2 Running build in 0 packages (esc) diff --git a/turborepo-tests/integration/tests/inference/no_workspaces.t b/turborepo-tests/integration/tests/inference/no_workspaces.t index d76ae843979fa..80bc1710c916a 100644 --- a/turborepo-tests/integration/tests/inference/no_workspaces.t +++ b/turborepo-tests/integration/tests/inference/no_workspaces.t @@ -13,7 +13,7 @@ Setup [-0-9:.TWZ+]+ \[DEBUG] turbo: build tag: (go|rust) (re) [-0-9:.TWZ+]+ \[INFO] turbo: skipping turbod since we appear to be in a non-interactive context (re) [-0-9:.TWZ+]+ \[DEBUG] turbo: global hash env vars: vars=\["VERCEL_ANALYTICS_ID"] (re) - [-0-9:.TWZ+]+ \[DEBUG] turbo: global hash: value=4c73ae6c71119fad (re) + [-0-9:.TWZ+]+ \[DEBUG] turbo: global hash: value=e12c7d4a080058c0 (re) [-0-9:.TWZ+]+ \[DEBUG] turbo: local cache folder: path="" (re) \xe2\x80\xa2 Running build (esc) \xe2\x80\xa2 Remote caching disabled (esc) @@ -35,7 +35,7 @@ Setup [-0-9:.TWZ+]+ \[DEBUG] turbo: build tag: (go|rust) (re) [-0-9:.TWZ+]+ \[INFO] turbo: skipping turbod since we appear to be in a non-interactive context (re) [-0-9:.TWZ+]+ \[DEBUG] turbo: global hash env vars: vars=\["VERCEL_ANALYTICS_ID"] (re) - [-0-9:.TWZ+]+ \[DEBUG] turbo: global hash: value=96793eaf8b145bde (re) + [-0-9:.TWZ+]+ \[DEBUG] turbo: global hash: value=0c986dc83f45b3ab (re) [-0-9:.TWZ+]+ \[DEBUG] turbo: local cache folder: path="" (re) \xe2\x80\xa2 Running build (esc) \xe2\x80\xa2 Remote caching disabled (esc) @@ -57,7 +57,7 @@ Setup [-0-9:.TWZ+]+ \[DEBUG] turbo: build tag: (go|rust) (re) [-0-9:.TWZ+]+ \[INFO] turbo: skipping turbod since we appear to be in a non-interactive context (re) [-0-9:.TWZ+]+ \[DEBUG] turbo: global hash env vars: vars=\["VERCEL_ANALYTICS_ID"] (re) - [-0-9:.TWZ+]+ \[DEBUG] turbo: global hash: value=67527326c7931f8b (re) + [-0-9:.TWZ+]+ \[DEBUG] turbo: global hash: value=4a4d1a8eaea2c91a (re) [-0-9:.TWZ+]+ \[DEBUG] turbo: local cache folder: path="" (re) \xe2\x80\xa2 Running build (esc) \xe2\x80\xa2 Remote caching disabled (esc) diff --git a/turborepo-tests/integration/tests/log_prefix.t b/turborepo-tests/integration/tests/log_prefix.t index 0e54c92456d1f..2a5119d90b912 100644 --- a/turborepo-tests/integration/tests/log_prefix.t +++ b/turborepo-tests/integration/tests/log_prefix.t @@ -7,7 +7,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 af2fdb8283036b97 + cache miss, executing 07c1e9e57f0062bc \> build (re) \> echo 'build app-a' (re) @@ -31,7 +31,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 output af2fdb8283036b97 + cache hit, replaying output 07c1e9e57f0062bc \> build (re) \> echo 'build app-a' (re) @@ -47,7 +47,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 output af2fdb8283036b97 + app-a:build: cache hit, replaying output 07c1e9e57f0062bc app-a:build: app-a:build: > build app-a:build: > echo 'build app-a' diff --git a/turborepo-tests/integration/tests/one_script_error.t b/turborepo-tests/integration/tests/one_script_error.t index 0a9c018b18590..7c8fb0cf7aeae 100644 --- a/turborepo-tests/integration/tests/one_script_error.t +++ b/turborepo-tests/integration/tests/one_script_error.t @@ -8,13 +8,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 62ff444b3068c13b + my-app:okay: cache miss, executing 7c017182a798df5e 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 7ec8abd964436064 + my-app:error: cache miss, executing df79ae815d623d3d my-app:error: my-app:error: > error my-app:error: > exit 2 @@ -39,13 +39,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 output 62ff444b3068c13b + my-app:okay: cache hit, replaying output 7c017182a798df5e 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 7ec8abd964436064 + my-app:error: cache miss, executing df79ae815d623d3d my-app:error: my-app:error: > error my-app:error: > exit 2 @@ -70,13 +70,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 output 62ff444b3068c13b + my-app:okay: cache hit, replaying output 7c017182a798df5e 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 7ec8abd964436064 + my-app:error: cache miss, executing df79ae815d623d3d my-app:error: my-app:error: > error my-app:error: > exit 2 @@ -86,7 +86,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 6ec9a564c31e8f12 + my-app:okay2: cache miss, executing 297fcfdef7e143e3 my-app:okay2: my-app:okay2: > okay2 my-app:okay2: > echo 'working' diff --git a/turborepo-tests/integration/tests/persistent_dependencies/persistent-6-topological-unimplemented.t b/turborepo-tests/integration/tests/persistent_dependencies/persistent-6-topological-unimplemented.t index 6ed567144907e..5423eb05d2473 100644 --- a/turborepo-tests/integration/tests/persistent_dependencies/persistent-6-topological-unimplemented.t +++ b/turborepo-tests/integration/tests/persistent_dependencies/persistent-6-topological-unimplemented.t @@ -18,7 +18,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 e2f8c5f8eebbe922 + app-a:dev: cache miss, executing 056d3e4d1ff9579e app-a:dev: app-a:dev: > dev app-a:dev: > echo 'dev app-a' diff --git a/turborepo-tests/integration/tests/prune/composable-config.t b/turborepo-tests/integration/tests/prune/composable-config.t index 0324b7505d0e1..cbe878159bc4d 100644 --- a/turborepo-tests/integration/tests/prune/composable-config.t +++ b/turborepo-tests/integration/tests/prune/composable-config.t @@ -12,7 +12,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 89b0cf4ede0c4ae5 + docs:new-task: cache miss, executing 5104686e9b23f0ba docs:new-task: docs:new-task: > docs@ new-task .*out/apps/docs (re) docs:new-task: > echo 'running new task' diff --git a/turborepo-tests/integration/tests/run/force.t b/turborepo-tests/integration/tests/run/force.t index 4c76ebfae0582..e26893f231843 100644 --- a/turborepo-tests/integration/tests/run/force.t +++ b/turborepo-tests/integration/tests/run/force.t @@ -25,7 +25,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 2f192ed93e20f940 + my-app:build: cache miss, executing bcfea334449257fe Tasks: 1 successful, 1 total Cached: 0 cached, 1 total @@ -37,7 +37,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 2f192ed93e20f940 + my-app:build: cache bypass, force executing bcfea334449257fe Tasks: 1 successful, 1 total Cached: 0 cached, 1 total @@ -48,7 +48,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 2f192ed93e20f940 + my-app:build: cache bypass, force executing bcfea334449257fe Tasks: 1 successful, 1 total Cached: 0 cached, 1 total @@ -59,7 +59,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 output 2f192ed93e20f940 + my-app:build: cache hit, suppressing output bcfea334449257fe Tasks: 1 successful, 1 total Cached: 1 cached, 1 total @@ -70,7 +70,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 2f192ed93e20f940 + my-app:build: cache bypass, force executing bcfea334449257fe Tasks: 1 successful, 1 total Cached: 0 cached, 1 total @@ -82,7 +82,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 output 2f192ed93e20f940 + my-app:build: cache hit, suppressing output bcfea334449257fe Tasks: 1 successful, 1 total Cached: 1 cached, 1 total @@ -93,7 +93,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 2f192ed93e20f940 + my-app:build: cache bypass, force executing bcfea334449257fe Tasks: 1 successful, 1 total Cached: 0 cached, 1 total @@ -104,7 +104,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 output 2f192ed93e20f940 + my-app:build: cache hit, suppressing output bcfea334449257fe Tasks: 1 successful, 1 total Cached: 1 cached, 1 total @@ -115,7 +115,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 2f192ed93e20f940 + my-app:build: cache bypass, force executing bcfea334449257fe Tasks: 1 successful, 1 total Cached: 0 cached, 1 total @@ -127,7 +127,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 output 2f192ed93e20f940 + my-app:build: cache hit, suppressing output bcfea334449257fe Tasks: 1 successful, 1 total Cached: 1 cached, 1 total @@ -138,7 +138,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 2f192ed93e20f940 + my-app:build: cache bypass, force executing bcfea334449257fe Tasks: 1 successful, 1 total Cached: 0 cached, 1 total @@ -149,7 +149,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 output 2f192ed93e20f940 + my-app:build: cache hit, suppressing output bcfea334449257fe Tasks: 1 successful, 1 total Cached: 1 cached, 1 total @@ -160,7 +160,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 2f192ed93e20f940 + my-app:build: cache bypass, force executing bcfea334449257fe Tasks: 1 successful, 1 total Cached: 0 cached, 1 total diff --git a/turborepo-tests/integration/tests/run_summary/discovery.t b/turborepo-tests/integration/tests/run_summary/discovery.t index 8469667844718..66a9eba2c7056 100644 --- a/turborepo-tests/integration/tests/run_summary/discovery.t +++ b/turborepo-tests/integration/tests/run_summary/discovery.t @@ -7,7 +7,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 2f192ed93e20f940 + my-app:build: cache miss, executing bcfea334449257fe 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 9dd0446a319bb..e47229714180d 100644 --- a/turborepo-tests/integration/tests/run_summary/error.t +++ b/turborepo-tests/integration/tests/run_summary/error.t @@ -33,7 +33,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": "c11710f9379cb7ea", + "hash": "3dcdb90e962517fb", "inputs": { "package.json": "6bcf57fd6ff30d1a6f40ad8d8d08e8b940fc7e3b" }, diff --git a/turborepo-tests/integration/tests/single_package/dry-run.t b/turborepo-tests/integration/tests/single_package/dry-run.t index fc6ff0791bc7a..8dbb533378ca8 100644 --- a/turborepo-tests/integration/tests/single_package/dry-run.t +++ b/turborepo-tests/integration/tests/single_package/dry-run.t @@ -9,12 +9,11 @@ Check Global Files = 3 External Dependencies Hash = Global Cache Key = Buffalo buffalo Buffalo buffalo buffalo buffalo Buffalo buffalo - Root pipeline = {"//#build":{"outputs":["foo"],"cache":true,"dependsOn":[],"inputs":[],"outputMode":"full","env":[],"persistent":false}} Tasks to Run build Task = build - Hash = dd4a9a7b508b0e38 + Hash = 6d6f6826cfa281cf Cached (Local) = false Cached (Remote) = false Command = echo 'building' > foo diff --git a/turborepo-tests/integration/tests/single_package/no-config.t b/turborepo-tests/integration/tests/single_package/no-config.t index bb184da0c2fdb..746fea3ad34b3 100644 --- a/turborepo-tests/integration/tests/single_package/no-config.t +++ b/turborepo-tests/integration/tests/single_package/no-config.t @@ -11,12 +11,11 @@ Check Global Files = 2 External Dependencies Hash = Global Cache Key = Buffalo buffalo Buffalo buffalo buffalo buffalo Buffalo buffalo - Root pipeline = {"//#build":{"outputs":[],"cache":false,"dependsOn":[],"inputs":[],"outputMode":"full","env":[],"persistent":false}} Tasks to Run build Task = build - Hash = 5b5ae44052e3d624 + Hash = fd2d83473c0700ad Cached (Local) = false Cached (Remote) = false Command = echo 'building' > foo @@ -45,7 +44,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 5b5ae44052e3d624 + build: cache bypass, force executing fd2d83473c0700ad build: build: > build build: > echo 'building' > foo @@ -59,7 +58,7 @@ Run a second time, verify no caching because there is no config $ ${TURBO} run build --single-package \xe2\x80\xa2 Running build (esc) \xe2\x80\xa2 Remote caching disabled (esc) - build: cache bypass, force executing 5b5ae44052e3d624 + build: cache bypass, force executing fd2d83473c0700ad build: build: > build build: > echo 'building' > foo diff --git a/turborepo-tests/integration/tests/single_package/run-yarn.t b/turborepo-tests/integration/tests/single_package/run-yarn.t index 8eefb1189a524..5e7d70ba0e2e4 100644 --- a/turborepo-tests/integration/tests/single_package/run-yarn.t +++ b/turborepo-tests/integration/tests/single_package/run-yarn.t @@ -9,7 +9,7 @@ Check $ ${TURBO} run build \xe2\x80\xa2 Running build (esc) \xe2\x80\xa2 Remote caching disabled (esc) - build: cache miss, executing 13cea0f56e6c743e + build: cache miss, executing 5ec8b6fcacea7176 build: yarn run v1.22.17 build: warning package.json: No license field build: $ echo 'building' > foo @@ -23,7 +23,7 @@ Check $ ${TURBO} run build \xe2\x80\xa2 Running build (esc) \xe2\x80\xa2 Remote caching disabled (esc) - build: cache hit, replaying output 13cea0f56e6c743e + build: cache hit, replaying output 5ec8b6fcacea7176 build: yarn run v1.22.17 build: warning package.json: No license field build: $ echo 'building' > foo diff --git a/turborepo-tests/integration/tests/single_package/run.t b/turborepo-tests/integration/tests/single_package/run.t index e107fac55d13e..4ec30b3d480b6 100644 --- a/turborepo-tests/integration/tests/single_package/run.t +++ b/turborepo-tests/integration/tests/single_package/run.t @@ -6,7 +6,7 @@ Check $ ${TURBO} run build \xe2\x80\xa2 Running build (esc) \xe2\x80\xa2 Remote caching disabled (esc) - build: cache miss, executing dd4a9a7b508b0e38 + build: cache miss, executing 6d6f6826cfa281cf build: build: > build build: > echo 'building' > foo @@ -23,7 +23,7 @@ Run a second time, verify caching works because there is a config $ ${TURBO} run build --single-package \xe2\x80\xa2 Running build (esc) \xe2\x80\xa2 Remote caching disabled (esc) - build: cache hit, replaying output dd4a9a7b508b0e38 + build: cache hit, replaying output 6d6f6826cfa281cf build: build: > build build: > echo 'building' > foo diff --git a/turborepo-tests/integration/tests/single_package/with-deps-dry-run.t b/turborepo-tests/integration/tests/single_package/with-deps-dry-run.t index f0567c8e1b220..ebe6b874132d8 100644 --- a/turborepo-tests/integration/tests/single_package/with-deps-dry-run.t +++ b/turborepo-tests/integration/tests/single_package/with-deps-dry-run.t @@ -9,12 +9,11 @@ Check Global Files = 2 External Dependencies Hash = Global Cache Key = Buffalo buffalo Buffalo buffalo buffalo buffalo Buffalo buffalo - Root pipeline = {"//#build":{"outputs":["foo"],"cache":true,"dependsOn":[],"inputs":[],"outputMode":"full","env":[],"persistent":false},"//#test":{"outputs":[],"cache":true,"dependsOn":["build"],"inputs":[],"outputMode":"full","env":[],"persistent":false}} Tasks to Run build Task = build - Hash = 8fc80cfff3b64237 + Hash = 9103ff5d43f221c4 Cached (Local) = false Cached (Remote) = false Command = echo 'building' > foo @@ -30,7 +29,7 @@ Check Framework = test Task = test - Hash = c71366ccd6a86465 + Hash = a404ed8a88a62f81 Cached (Local) = false Cached (Remote) = false Command = [[ ( -f foo ) && $(cat foo) == 'building' ]] diff --git a/turborepo-tests/integration/tests/single_package/with-deps-run.t b/turborepo-tests/integration/tests/single_package/with-deps-run.t index a76ba66ad414c..9545e62856265 100644 --- a/turborepo-tests/integration/tests/single_package/with-deps-run.t +++ b/turborepo-tests/integration/tests/single_package/with-deps-run.t @@ -6,12 +6,12 @@ Check $ ${TURBO} run test \xe2\x80\xa2 Running test (esc) \xe2\x80\xa2 Remote caching disabled (esc) - build: cache miss, executing 8fc80cfff3b64237 + build: cache miss, executing 9103ff5d43f221c4 build: build: > build build: > echo 'building' > foo build: - test: cache miss, executing c71366ccd6a86465 + test: cache miss, executing a404ed8a88a62f81 test: test: > test test: > [[ ( -f foo ) && $(cat foo) == 'building' ]] @@ -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 output 8fc80cfff3b64237 + build: cache hit, replaying output 9103ff5d43f221c4 build: build: > build build: > echo 'building' > foo build: - test: cache hit, replaying output c71366ccd6a86465 + test: cache hit, replaying output a404ed8a88a62f81 test: test: > test test: > [[ ( -f foo ) && $(cat foo) == 'building' ]] @@ -44,8 +44,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 output 8fc80cfff3b64237 - test: cache hit, suppressing output c71366ccd6a86465 + build: cache hit, suppressing output 9103ff5d43f221c4 + test: cache hit, suppressing output a404ed8a88a62f81 Tasks: 2 successful, 2 total Cached: 2 cached, 2 total diff --git a/turborepo-tests/integration/tests/task-dependencies/overwriting.t b/turborepo-tests/integration/tests/task-dependencies/overwriting.t index 2da1c0a03df1c..09008cbcd8504 100644 --- a/turborepo-tests/integration/tests/task-dependencies/overwriting.t +++ b/turborepo-tests/integration/tests/task-dependencies/overwriting.t @@ -12,7 +12,7 @@ Test # workspace-a#generate ran $ cat tmp.log | grep "workspace-a:generate" - workspace-a:generate: cache miss, executing 38a94e8f72e48200 + workspace-a:generate: cache miss, executing 1abeb9925a3b61e3 workspace-a:generate: workspace-a:generate: > generate workspace-a:generate: > echo 'generate workspace-a' @@ -20,7 +20,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 cdf4f35b3e5ff342 + workspace-a:build: cache miss, executing c23e7e2e65e2ed1e workspace-a:build: workspace-a:build: > build workspace-a:build: > echo 'build workspace-a' @@ -33,7 +33,7 @@ workspace-b#generate DID NOT run workspace-b#build ran $ cat tmp.log | grep "workspace-b:build" - workspace-b:build: cache miss, executing 35d38d74bf7b33db + workspace-b:build: cache miss, executing 92219383021635c9 workspace-b:build: workspace-b:build: > build workspace-b:build: > echo 'build workspace-b' diff --git a/turborepo-tests/integration/tests/task-dependencies/topological.t b/turborepo-tests/integration/tests/task-dependencies/topological.t index 9c86deda037ef..62580bf5e4eef 100644 --- a/turborepo-tests/integration/tests/task-dependencies/topological.t +++ b/turborepo-tests/integration/tests/task-dependencies/topological.t @@ -7,13 +7,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 04c404a8edf3d3cb + util:build: cache miss, executing 1f5144a3eb2d834b util:build: util:build: > build util:build: > echo 'building' util:build: util:build: building - my-app:build: cache miss, executing 4f4f453dc15cbe8c + my-app:build: cache miss, executing 91f130f1e4fea924 my-app:build: my-app:build: > build my-app:build: > echo 'building' diff --git a/turborepo-tests/integration/tests/verbosity.t b/turborepo-tests/integration/tests/verbosity.t index 880afed0aee8e..6678b31006446 100644 --- a/turborepo-tests/integration/tests/verbosity.t +++ b/turborepo-tests/integration/tests/verbosity.t @@ -8,7 +8,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 af2ba2d52192ee45 + util:build: cache bypass, force executing e64dab76e045fbb4 util:build: util:build: > build util:build: > echo 'building' @@ -24,7 +24,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 af2ba2d52192ee45 + util:build: cache bypass, force executing e64dab76e045fbb4 util:build: util:build: > build util:build: > echo 'building' @@ -48,15 +48,15 @@ Verbosity level 2 [-0-9:.TWZ+]+ \[DEBUG] turbo: build tag: (go|rust) (re) [-0-9:.TWZ+]+ \[INFO] turbo: skipping turbod since we appear to be in a non-interactive context (re) [-0-9:.TWZ+]+ \[DEBUG] turbo: global hash env vars: vars=\["SOME_ENV_VAR", "VERCEL_ANALYTICS_ID"] (re) - [-0-9:.TWZ+]+ \[DEBUG] turbo: global hash: value=9278591ff41d3667 (re) + [-0-9:.TWZ+]+ \[DEBUG] turbo: global hash: value=715e1d42b761e66d (re) [-0-9:.TWZ+]+ |[DEBUG] turbo: local cache folder: path="" (re) \xe2\x80\xa2 Packages in scope: util (esc) \xe2\x80\xa2 Running build in 1 packages (esc) \xe2\x80\xa2 Remote caching disabled (esc) [-0-9:.TWZ+]+ \[DEBUG] turbo: task hash env vars for util:build: vars=\["NODE_ENV="] (re) [-0-9:.TWZ+]+ \[DEBUG] turbo.: start (re) - [-0-9:.TWZ+]+ \[DEBUG] turbo: task hash: value=af2ba2d52192ee45 (re) - util:build: cache bypass, force executing af2ba2d52192ee45 + [-0-9:.TWZ+]+ \[DEBUG] turbo: task hash: value=e64dab76e045fbb4 (re) + util:build: cache bypass, force executing e64dab76e045fbb4 util:build: util:build: > build util:build: > echo 'building' @@ -80,15 +80,15 @@ Verbosity level 2 [-0-9:.TWZ+]+ \[DEBUG] turbo: build tag: (go|rust) (re) [-0-9:.TWZ+]+ \[INFO] turbo: skipping turbod since we appear to be in a non-interactive context (re) [-0-9:.TWZ+]+ \[DEBUG] turbo: global hash env vars: vars=\["SOME_ENV_VAR", "VERCEL_ANALYTICS_ID"] (re) - [-0-9:.TWZ+]+ \[DEBUG] turbo: global hash: value=9278591ff41d3667 (re) + [-0-9:.TWZ+]+ \[DEBUG] turbo: global hash: value=715e1d42b761e66d (re) [-0-9:.TWZ+]+ \[DEBUG] turbo: local cache folder: path="" (re) \xe2\x80\xa2 Packages in scope: util (esc) \xe2\x80\xa2 Running build in 1 packages (esc) \xe2\x80\xa2 Remote caching disabled (esc) [-0-9:.TWZ+]+ \[DEBUG] turbo: task hash env vars for util:build: vars=\["NODE_ENV="] (re) [-0-9:.TWZ+]+ \[DEBUG] turbo.: start (re) - [-0-9:.TWZ+]+ \[DEBUG] turbo: task hash: value=af2ba2d52192ee45 (re) - util:build: cache bypass, force executing af2ba2d52192ee45 + [-0-9:.TWZ+]+ \[DEBUG] turbo: task hash: value=e64dab76e045fbb4 (re) + util:build: cache bypass, force executing e64dab76e045fbb4 util:build: util:build: > build util:build: > echo 'building'