Skip to content

Commit

Permalink
chore(turborepo): Bump global cache key (#6156)
Browse files Browse the repository at this point in the history
Co-authored-by: nicholaslyang <Nicholas Yang>
  • Loading branch information
NicholasLYang authored Oct 12, 2023
1 parent 1b620e6 commit 485232e
Show file tree
Hide file tree
Showing 43 changed files with 165 additions and 165 deletions.
6 changes: 3 additions & 3 deletions turborepo-tests/integration/tests/dry_json/monorepo.t
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Setup

$ cat tmpjson.log | jq .globalCacheInputs
{
"rootKey": "You don't understand! I coulda had class. I coulda been a contender. I could've been somebody, instead of a bum, which is what I am.",
"rootKey": "HEY STELLLLLLLAAAAAAAAAAAAA",
"files": {
"foo.txt": "eebae5f3ca7b5831e429e947b7d61edd0de69236"
},
Expand Down Expand Up @@ -51,7 +51,7 @@ Setup
"taskId": "my-app#build",
"task": "build",
"package": "my-app",
"hash": "0cd306aa8e337d8a",
"hash": "b42768856d16033a",
"inputs": {
".env.local": "e69de29bb2d1d6434b8b29ae775ad8c2e48c5391",
"package.json": "6bcf57fd6ff30d1a6f40ad8d8d08e8b940fc7e3b"
Expand Down Expand Up @@ -113,7 +113,7 @@ Setup
"taskId": "util#build",
"task": "build",
"package": "util",
"hash": "12af4a2f5c5af4e1",
"hash": "9b9969f14caa05a4",
"inputs": {
"package.json": "4d57bb28c9967640d812981198a743b3188f713e"
},
Expand Down
4 changes: 2 additions & 2 deletions turborepo-tests/integration/tests/dry_json/single_package.t
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Setup
"turboVersion": "[a-z0-9\.-]+", (re)
"monorepo": false,
"globalCacheInputs": {
"rootKey": "You don't understand! I coulda had class. I coulda been a contender. I could've been somebody, instead of a bum, which is what I am.",
"rootKey": "HEY STELLLLLLLAAAAAAAAAAAAA",
"files": {
"package-lock.json": "1c117cce37347befafe3a9cba1b8a609b3600021",
"package.json": "185771929d92c3865ce06c863c07d357500d3364",
Expand All @@ -33,7 +33,7 @@ Setup
{
"taskId": "build",
"task": "build",
"hash": "f9360c1870434eb2",
"hash": "414559dcbbf03c41",
"inputs": {
".gitignore": "6f23ff6842b5526da43ab38f4a5bf3b0158eeb42",
"package-lock.json": "1c117cce37347befafe3a9cba1b8a609b3600021",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Setup
"turboVersion": "[a-z0-9\.-]+", (re)
"monorepo": false,
"globalCacheInputs": {
"rootKey": "You don't understand! I coulda had class. I coulda been a contender. I could've been somebody, instead of a bum, which is what I am.",
"rootKey": "HEY STELLLLLLLAAAAAAAAAAAAA",
"files": {
"package-lock.json": "1c117cce37347befafe3a9cba1b8a609b3600021",
"package.json": "185771929d92c3865ce06c863c07d357500d3364"
Expand All @@ -34,7 +34,7 @@ Setup
{
"taskId": "build",
"task": "build",
"hash": "3f02bc73f1ab0cce",
"hash": "c58c190da9fcd80a",
"inputs": {
".gitignore": "6f23ff6842b5526da43ab38f4a5bf3b0158eeb42",
"package-lock.json": "1c117cce37347befafe3a9cba1b8a609b3600021",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Setup
"turboVersion": "[a-z0-9\.-]+", (re)
"monorepo": false,
"globalCacheInputs": {
"rootKey": "You don't understand! I coulda had class. I coulda been a contender. I could've been somebody, instead of a bum, which is what I am.",
"rootKey": "HEY STELLLLLLLAAAAAAAAAAAAA",
"files": {
"package-lock.json": "1c117cce37347befafe3a9cba1b8a609b3600021",
"package.json": "bc24e5c5b8bd13d419e0742ae3e92a2bf61c53d0"
Expand All @@ -32,7 +32,7 @@ Setup
{
"taskId": "build",
"task": "build",
"hash": "cd720138f792fbca",
"hash": "cb6df6cef2cfd596",
"inputs": {
".gitignore": "6f23ff6842b5526da43ab38f4a5bf3b0158eeb42",
"package-lock.json": "1c117cce37347befafe3a9cba1b8a609b3600021",
Expand Down Expand Up @@ -87,7 +87,7 @@ Setup
{
"taskId": "test",
"task": "test",
"hash": "118e4fe7f2e841be",
"hash": "af35177522814c73",
"inputs": {
".gitignore": "6f23ff6842b5526da43ab38f4a5bf3b0158eeb42",
"package-lock.json": "1c117cce37347befafe3a9cba1b8a609b3600021",
Expand Down
6 changes: 3 additions & 3 deletions turborepo-tests/integration/tests/dry_run.t
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Setup
Global Hash Inputs
Global Files = 1
External Dependencies Hash = 459c029558afe716
Global Cache Key = You don't understand! I coulda had class. I coulda been a contender. I could've been somebody, instead of a bum, which is what I am.
Global Cache Key = HEY STELLLLLLLAAAAAAAAAAAAA
Global .env Files Considered = 0
Global Env Vars = SOME_ENV_VAR
Global Env Vars Values =
Expand All @@ -32,7 +32,7 @@ Setup
my-app#build
Task = build
Package = my-app
Hash = 0cd306aa8e337d8a
Hash = b42768856d16033a
Cached (Local) = false
Cached (Remote) = false
Directory = apps/my-app
Expand All @@ -53,7 +53,7 @@ Setup
util#build
Task = build
Package = util
Hash = 12af4a2f5c5af4e1
Hash = 9b9969f14caa05a4
Cached (Local) = false
Cached (Remote) = false
Directory = packages/util
Expand Down
30 changes: 15 additions & 15 deletions turborepo-tests/integration/tests/edit_turbo_json/task.t
Original file line number Diff line number Diff line change
Expand Up @@ -7,63 +7,63 @@ Baseline task hashes
$ ${TURBO} build --dry=json | jq -r '.tasks | sort_by(.taskId)[] | {taskId, hash}'
{
"taskId": "another#build",
"hash": "9b840a9eeed635db"
"hash": "02f55362198a6c3d"
}
{
"taskId": "my-app#build",
"hash": "4ffefafd578043d5"
"hash": "90ff09567a6b2356"
}
{
"taskId": "util#build",
"hash": "12af4a2f5c5af4e1"
"hash": "9b9969f14caa05a4"
}

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": "9b840a9eeed635db"
"hash": "02f55362198a6c3d"
}
{
"taskId": "my-app#build",
"hash": "b412269dc6ab1fb0"
"hash": "6c0ac038b6e27281"
}
{
"taskId": "util#build",
"hash": "12af4a2f5c5af4e1"
"hash": "9b9969f14caa05a4"
}

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": "9b840a9eeed635db"
"hash": "02f55362198a6c3d"
}
{
"taskId": "my-app#build",
"hash": "523d9c8f471c12dd"
"hash": "bcaf2a39bbcbcb58"
}
{
"taskId": "util#build",
"hash": "12af4a2f5c5af4e1"
"hash": "9b9969f14caa05a4"
}

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": "9b840a9eeed635db"
"hash": "02f55362198a6c3d"
}
{
"taskId": "my-app#build",
"hash": "523d9c8f471c12dd"
"hash": "bcaf2a39bbcbcb58"
}
{
"taskId": "util#build",
"hash": "12af4a2f5c5af4e1"
"hash": "9b9969f14caa05a4"
}


Expand All @@ -72,13 +72,13 @@ Change util#build impacts itself and my-app
$ ${TURBO} build --dry=json | jq -r '.tasks | sort_by(.taskId)[] | {taskId, hash}'
{
"taskId": "another#build",
"hash": "9b840a9eeed635db"
"hash": "02f55362198a6c3d"
}
{
"taskId": "my-app#build",
"hash": "d053492baf0266c1"
"hash": "807226804bff5475"
}
{
"taskId": "util#build",
"hash": "1e36d9d1795aa2fd"
"hash": "0e5f606c75e19ed2"
}
10 changes: 5 additions & 5 deletions turborepo-tests/integration/tests/global_env.t
Original file line number Diff line number Diff line change
Expand Up @@ -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 12af4a2f5c5af4e1
util:build: cache miss, executing 9b9969f14caa05a4

Tasks: 1 successful, 1 total
Cached: 0 cached, 1 total
Expand All @@ -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 logs 12af4a2f5c5af4e1
util:build: cache hit, suppressing logs 9b9969f14caa05a4

Tasks: 1 successful, 1 total
Cached: 1 cached, 1 total
Expand All @@ -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 88a994f496fbd799
util:build: cache miss, executing 5a9a176fe972e778

Tasks: 1 successful, 1 total
Cached: 0 cached, 1 total
Expand All @@ -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 hit, suppressing logs 12af4a2f5c5af4e1
util:build: cache hit, suppressing logs 9b9969f14caa05a4

Tasks: 1 successful, 1 total
Cached: 1 cached, 1 total
Expand All @@ -53,7 +53,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 a3f5173f89d3014c
util:build: cache miss, executing 4313993b24558b7b

Tasks: 1 successful, 1 total
Cached: 0 cached, 1 total
Expand Down
10 changes: 5 additions & 5 deletions turborepo-tests/integration/tests/inference/has_workspaces.t
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Setup
[-0-9:.TWZ+]+ \[DEBUG] turbo: Filtered packages: cherryPickedPackages=map\[] walkedDependencies=map\[] walkedDependents=map\[] walkedDependentsDependencies=map\[] (re)
[-0-9:.TWZ+]+ \[DEBUG] turbo: filtered packages: packages=map\[] (re)
[-0-9:.TWZ+]+ \[DEBUG] turbo: global hash env vars: vars=\[] (re)
[-0-9:.TWZ+]+ \[DEBUG] turbo: global hash: value=3334211b4e6cde03 (re)
[-0-9:.TWZ+]+ \[DEBUG] turbo: global hash: value=00437efdb7e230f5 (re)
[-0-9:.TWZ+]+ \[DEBUG] turbo: global hash matches between Rust and Go (re)
[-0-9:.TWZ+]+ \[DEBUG] turbo: local cache folder: path="" (re)
\xe2\x80\xa2 Packages in scope: (esc)
Expand Down Expand Up @@ -60,7 +60,7 @@ Setup
[-0-9:.TWZ+]+ \[DEBUG] turbo: Filtered packages: cherryPickedPackages=map\[] walkedDependencies=map\[] walkedDependents=map\[] walkedDependentsDependencies=map\[] (re)
[-0-9:.TWZ+]+ \[DEBUG] turbo: filtered packages: packages=map\[] (re)
[-0-9:.TWZ+]+ \[DEBUG] turbo: global hash env vars: vars=\[] (re)
[-0-9:.TWZ+]+ \[DEBUG] turbo: global hash: value=3334211b4e6cde03 (re)
[-0-9:.TWZ+]+ \[DEBUG] turbo: global hash: value=00437efdb7e230f5 (re)
[-0-9:.TWZ+]+ \[DEBUG] turbo: global hash matches between Rust and Go (re)
[-0-9:.TWZ+]+ \[DEBUG] turbo: local cache folder: path="" (re)
\xe2\x80\xa2 Packages in scope: (esc)
Expand Down Expand Up @@ -96,7 +96,7 @@ Setup
[-0-9:.TWZ+]+ \[DEBUG] turbo: Filtered packages: cherryPickedPackages=map\[] walkedDependencies=map\[] walkedDependents=map\[] walkedDependentsDependencies=map\[] (re)
[-0-9:.TWZ+]+ \[DEBUG] turbo: filtered packages: packages=map\[] (re)
[-0-9:.TWZ+]+ \[DEBUG] turbo: global hash env vars: vars=\[] (re)
[-0-9:.TWZ+]+ \[DEBUG] turbo: global hash: value=3334211b4e6cde03 (re)
[-0-9:.TWZ+]+ \[DEBUG] turbo: global hash: value=00437efdb7e230f5 (re)
[-0-9:.TWZ+]+ \[DEBUG] turbo: global hash matches between Rust and Go (re)
[-0-9:.TWZ+]+ \[DEBUG] turbo: local cache folder: path="" (re)
\xe2\x80\xa2 Packages in scope: (esc)
Expand Down Expand Up @@ -132,7 +132,7 @@ Setup
[-0-9:.TWZ+]+ \[DEBUG] turbo: Filtered packages: cherryPickedPackages=map\[] walkedDependencies=map\[] walkedDependents=map\[] walkedDependentsDependencies=map\[] (re)
[-0-9:.TWZ+]+ \[DEBUG] turbo: filtered packages: packages=map\[] (re)
[-0-9:.TWZ+]+ \[DEBUG] turbo: global hash env vars: vars=\[] (re)
[-0-9:.TWZ+]+ \[DEBUG] turbo: global hash: value=3334211b4e6cde03 (re)
[-0-9:.TWZ+]+ \[DEBUG] turbo: global hash: value=00437efdb7e230f5 (re)
[-0-9:.TWZ+]+ \[DEBUG] turbo: global hash matches between Rust and Go (re)
[-0-9:.TWZ+]+ \[DEBUG] turbo: local cache folder: path="" (re)
\xe2\x80\xa2 Packages in scope: (esc)
Expand Down Expand Up @@ -168,7 +168,7 @@ Setup
[-0-9:.TWZ+]+ \[DEBUG] turbo: Filtered packages: cherryPickedPackages=map\[] walkedDependencies=map\[] walkedDependents=map\[] walkedDependentsDependencies=map\[] (re)
[-0-9:.TWZ+]+ \[DEBUG] turbo: filtered packages: packages=map\[] (re)
[-0-9:.TWZ+]+ \[DEBUG] turbo: global hash env vars: vars=\[] (re)
[-0-9:.TWZ+]+ \[DEBUG] turbo: global hash: value=3334211b4e6cde03 (re)
[-0-9:.TWZ+]+ \[DEBUG] turbo: global hash: value=00437efdb7e230f5 (re)
[-0-9:.TWZ+]+ \[DEBUG] turbo: global hash matches between Rust and Go (re)
[-0-9:.TWZ+]+ \[DEBUG] turbo: local cache folder: path="" (re)
\xe2\x80\xa2 Packages in scope: (esc)
Expand Down
12 changes: 6 additions & 6 deletions turborepo-tests/integration/tests/inference/nested_workspaces.t
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Setup
[-0-9:.TWZ+]+ \[DEBUG] turbo: Filtered packages: cherryPickedPackages=map\[] walkedDependencies=map\[] walkedDependents=map\[] walkedDependentsDependencies=map\[] (re)
[-0-9:.TWZ+]+ \[DEBUG] turbo: filtered packages: packages=map\[] (re)
[-0-9:.TWZ+]+ \[DEBUG] turbo: global hash env vars: vars=\[] (re)
[-0-9:.TWZ+]+ \[DEBUG] turbo: global hash: value=3334211b4e6cde03 (re)
[-0-9:.TWZ+]+ \[DEBUG] turbo: global hash: value=00437efdb7e230f5 (re)
[-0-9:.TWZ+]+ \[DEBUG] turbo: global hash matches between Rust and Go (re)
[-0-9:.TWZ+]+ \[DEBUG] turbo: local cache folder: path="" (re)
\xe2\x80\xa2 Packages in scope: (esc)
Expand Down Expand Up @@ -59,7 +59,7 @@ Setup
[-0-9:.TWZ+]+ \[DEBUG] turbo: Filtered packages: cherryPickedPackages=map\[] walkedDependencies=map\[] walkedDependents=map\[] walkedDependentsDependencies=map\[] (re)
[-0-9:.TWZ+]+ \[DEBUG] turbo: filtered packages: packages=map\[] (re)
[-0-9:.TWZ+]+ \[DEBUG] turbo: global hash env vars: vars=\[] (re)
[-0-9:.TWZ+]+ \[DEBUG] turbo: global hash: value=3334211b4e6cde03 (re)
[-0-9:.TWZ+]+ \[DEBUG] turbo: global hash: value=00437efdb7e230f5 (re)
[-0-9:.TWZ+]+ \[DEBUG] turbo: global hash matches between Rust and Go (re)
[-0-9:.TWZ+]+ \[DEBUG] turbo: local cache folder: path="" (re)
\xe2\x80\xa2 Packages in scope: (esc)
Expand Down Expand Up @@ -94,7 +94,7 @@ Setup
[-0-9:.TWZ+]+ \[DEBUG] turbo: Filtered packages: cherryPickedPackages=map\[] walkedDependencies=map\[] walkedDependents=map\[] walkedDependentsDependencies=map\[] (re)
[-0-9:.TWZ+]+ \[DEBUG] turbo: filtered packages: packages=map\[] (re)
[-0-9:.TWZ+]+ \[DEBUG] turbo: global hash env vars: vars=\[] (re)
[-0-9:.TWZ+]+ \[DEBUG] turbo: global hash: value=3334211b4e6cde03 (re)
[-0-9:.TWZ+]+ \[DEBUG] turbo: global hash: value=00437efdb7e230f5 (re)
[-0-9:.TWZ+]+ \[DEBUG] turbo: global hash matches between Rust and Go (re)
[-0-9:.TWZ+]+ \[DEBUG] turbo: local cache folder: path="" (re)
\xe2\x80\xa2 Packages in scope: (esc)
Expand Down Expand Up @@ -130,7 +130,7 @@ Setup
[-0-9:.TWZ+]+ \[DEBUG] turbo: Filtered packages: cherryPickedPackages=map\[] walkedDependencies=map\[] walkedDependents=map\[] walkedDependentsDependencies=map\[] (re)
[-0-9:.TWZ+]+ \[DEBUG] turbo: filtered packages: packages=map\[] (re)
[-0-9:.TWZ+]+ \[DEBUG] turbo: global hash env vars: vars=\[] (re)
[-0-9:.TWZ+]+ \[DEBUG] turbo: global hash: value=3334211b4e6cde03 (re)
[-0-9:.TWZ+]+ \[DEBUG] turbo: global hash: value=00437efdb7e230f5 (re)
[-0-9:.TWZ+]+ \[DEBUG] turbo: global hash matches between Rust and Go (re)
[-0-9:.TWZ+]+ \[DEBUG] turbo: local cache folder: path="" (re)
\xe2\x80\xa2 Packages in scope: (esc)
Expand Down Expand Up @@ -207,7 +207,7 @@ Locate a repository with no turbo.json. We'll get the right root and inference d
[-0-9:.TWZ+]+ \[DEBUG] turbo: Filtered packages: cherryPickedPackages=map\[] walkedDependencies=map\[] walkedDependents=map\[] walkedDependentsDependencies=map\[] (re)
[-0-9:.TWZ+]+ \[DEBUG] turbo: filtered packages: packages=map\[] (re)
[-0-9:.TWZ+]+ \[DEBUG] turbo: global hash env vars: vars=\[] (re)
[-0-9:.TWZ+]+ \[DEBUG] turbo: global hash: value=3334211b4e6cde03 (re)
[-0-9:.TWZ+]+ \[DEBUG] turbo: global hash: value=00437efdb7e230f5 (re)
[-0-9:.TWZ+]+ \[DEBUG] turbo: global hash matches between Rust and Go (re)
[-0-9:.TWZ+]+ \[DEBUG] turbo: local cache folder: path="" (re)
\xe2\x80\xa2 Packages in scope: (esc)
Expand Down Expand Up @@ -243,7 +243,7 @@ Locate a repository with no turbo.json. We'll get the right root and inference d
[-0-9:.TWZ+]+ \[DEBUG] turbo: Filtered packages: cherryPickedPackages=map\[] walkedDependencies=map\[] walkedDependents=map\[] walkedDependentsDependencies=map\[] (re)
[-0-9:.TWZ+]+ \[DEBUG] turbo: filtered packages: packages=map\[] (re)
[-0-9:.TWZ+]+ \[DEBUG] turbo: global hash env vars: vars=\[] (re)
[-0-9:.TWZ+]+ \[DEBUG] turbo: global hash: value=3334211b4e6cde03 (re)
[-0-9:.TWZ+]+ \[DEBUG] turbo: global hash: value=00437efdb7e230f5 (re)
[-0-9:.TWZ+]+ \[DEBUG] turbo: global hash matches between Rust and Go (re)
[-0-9:.TWZ+]+ \[DEBUG] turbo: local cache folder: path="" (re)
\xe2\x80\xa2 Packages in scope: (esc)
Expand Down
Loading

0 comments on commit 485232e

Please sign in to comment.