Skip to content

Commit

Permalink
chore: bump hashes in integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-olszewski committed May 17, 2024
1 parent 6844139 commit c1cf131
Show file tree
Hide file tree
Showing 43 changed files with 153 additions and 145 deletions.
7 changes: 4 additions & 3 deletions turborepo-tests/integration/tests/dry-json/monorepo.t
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ Setup
"configured": [],
"inferred": [],
"passthrough": null
}
},
"engines": null
}

$ cat tmpjson.log | jq 'keys'
Expand All @@ -50,7 +51,7 @@ Setup
"taskId": "my-app#build",
"task": "build",
"package": "my-app",
"hash": "f5b905676d8a275c",
"hash": "c5f364965f3eb824",
"inputs": {
".env.local": "e69de29bb2d1d6434b8b29ae775ad8c2e48c5391",
"package.json": "1746e0db2361085b5953a6a3beab08c24af5bc08"
Expand Down Expand Up @@ -113,7 +114,7 @@ Setup
"taskId": "util#build",
"task": "build",
"package": "util",
"hash": "1ce33e04f265f95c",
"hash": "c17d7e03417c9cc5",
"inputs": {
"package.json": "e755064fd7893809d10fc067bb409c7ae516327f"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,16 @@ Setup
"configured": [],
"inferred": [],
"passthrough": null
}
},
"engines": null
},
"envMode": "infer",
"frameworkInference": true,
"tasks": [
{
"taskId": "build",
"task": "build",
"hash": "bfac661137d88079",
"hash": "aa960bf5035db480",
"inputs": {
".gitignore": "03b541460c1b836f96f9c0a941ceb48e91a9fd83",
"package-lock.json": "1c117cce37347befafe3a9cba1b8a609b3600021",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,16 @@ Setup
"configured": [],
"inferred": [],
"passthrough": null
}
},
"engines": null
},
"envMode": "infer",
"frameworkInference": true,
"tasks": [
{
"taskId": "build",
"task": "build",
"hash": "45fcb56a23295f63",
"hash": "f5a769f642668286",
"inputs": {
".gitignore": "03b541460c1b836f96f9c0a941ceb48e91a9fd83",
"package-lock.json": "1c117cce37347befafe3a9cba1b8a609b3600021",
Expand Down Expand Up @@ -89,7 +90,7 @@ Setup
{
"taskId": "test",
"task": "test",
"hash": "314a0e5a10072ae2",
"hash": "789ae95d8dad0b20",
"inputs": {
".gitignore": "03b541460c1b836f96f9c0a941ceb48e91a9fd83",
"package-lock.json": "1c117cce37347befafe3a9cba1b8a609b3600021",
Expand Down
5 changes: 3 additions & 2 deletions turborepo-tests/integration/tests/dry-json/single-package.t
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,16 @@ Setup
"configured": [],
"inferred": [],
"passthrough": null
}
},
"engines": null
},
"envMode": "infer",
"frameworkInference": true,
"tasks": [
{
"taskId": "build",
"task": "build",
"hash": "45fcb56a23295f63",
"hash": "f5a769f642668286",
"inputs": {
".gitignore": "03b541460c1b836f96f9c0a941ceb48e91a9fd83",
"package-lock.json": "1c117cce37347befafe3a9cba1b8a609b3600021",
Expand Down
5 changes: 3 additions & 2 deletions turborepo-tests/integration/tests/dry-run.t
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,14 @@ Setup
Inferred Global Env Vars Values =
Global Passed Through Env Vars =
Global Passed Through Env Vars Values =
Engines Values =

# Part 3 are Tasks to Run, and we have to validate each task separately
$ cat tmp-3.txt | grep "my-app#build" -A 18
my-app#build
Task = build\s* (re)
Package = my-app\s* (re)
Hash = f5b905676d8a275c\s* (re)
Hash = c5f364965f3eb824
Cached \(Local\) = false\s* (re)
Cached \(Remote\) = false\s* (re)
Directory = apps(\/|\\)my-app\s* (re)
Expand All @@ -52,7 +53,7 @@ Setup
util#build
Task = build\s* (re)
Package = util\s* (re)
Hash = 1ce33e04f265f95c\s* (re)
Hash = c17d7e03417c9cc5
Cached \(Local\) = false\s* (re)
Cached \(Remote\) = false\s* (re)
Directory = packages(\/|\\)util\s* (re)
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 @@ -6,63 +6,63 @@ Baseline task hashes
$ ${TURBO} build --dry=json | jq -r '.tasks | sort_by(.taskId)[] | {taskId, hash}'
{
"taskId": "another#build",
"hash": "02f55362198a6c3d"
"hash": "47d71cb155585389"
}
{
"taskId": "my-app#build",
"hash": "8a8944ef32696847"
"hash": "537b855631808e54"
}
{
"taskId": "util#build",
"hash": "1ce33e04f265f95c"
"hash": "c17d7e03417c9cc5"
}

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": "02f55362198a6c3d"
"hash": "47d71cb155585389"
}
{
"taskId": "my-app#build",
"hash": "83bb5352c916557e"
"hash": "7905794121961b87"
}
{
"taskId": "util#build",
"hash": "1ce33e04f265f95c"
"hash": "c17d7e03417c9cc5"
}

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": "02f55362198a6c3d"
"hash": "47d71cb155585389"
}
{
"taskId": "my-app#build",
"hash": "346838a5f9d9a530"
"hash": "663f3a84ba6dd4a9"
}
{
"taskId": "util#build",
"hash": "1ce33e04f265f95c"
"hash": "c17d7e03417c9cc5"
}

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": "02f55362198a6c3d"
"hash": "47d71cb155585389"
}
{
"taskId": "my-app#build",
"hash": "346838a5f9d9a530"
"hash": "663f3a84ba6dd4a9"
}
{
"taskId": "util#build",
"hash": "1ce33e04f265f95c"
"hash": "c17d7e03417c9cc5"
}


Expand All @@ -71,13 +71,13 @@ Change util#build impacts itself and my-app
$ ${TURBO} build --dry=json | jq -r '.tasks | sort_by(.taskId)[] | {taskId, hash}'
{
"taskId": "another#build",
"hash": "02f55362198a6c3d"
"hash": "47d71cb155585389"
}
{
"taskId": "my-app#build",
"hash": "b15e1a917912cd09"
"hash": "dc66be417c7f6b54"
}
{
"taskId": "util#build",
"hash": "2ee29eb57d7f69b3"
"hash": "b255b340a1c39c0f"
}
4 changes: 2 additions & 2 deletions turborepo-tests/integration/tests/global-deps.t
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Run a build
\xe2\x80\xa2 Packages in scope: my-app (esc)
\xe2\x80\xa2 Running build in 1 packages (esc)
\xe2\x80\xa2 Remote caching disabled (esc)
my-app:build: cache miss, executing 81165ceb4ed0e31f
my-app:build: cache miss, executing 1bf3d23dc5db6398

Tasks: 1 successful, 1 total
Cached: 0 cached, 1 total
Expand All @@ -18,7 +18,7 @@ Run a build
\xe2\x80\xa2 Packages in scope: my-app (esc)
\xe2\x80\xa2 Running build in 1 packages (esc)
\xe2\x80\xa2 Remote caching disabled (esc)
my-app:build: cache miss, executing 7bc88ba3e84628fd
my-app:build: cache miss, executing f17b5033b5cd55cf

Tasks: 1 successful, 1 total
Cached: 0 cached, 1 total
Expand Down
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 @@ -8,7 +8,7 @@ Setup
\xe2\x80\xa2 Packages in scope: util (esc)
\xe2\x80\xa2 Running build in 1 packages (esc)
\xe2\x80\xa2 Remote caching disabled (esc)
util:build: cache miss, executing 1ce33e04f265f95c
util:build: cache miss, executing c17d7e03417c9cc5

Tasks: 1 successful, 1 total
Cached: 0 cached, 1 total
Expand All @@ -19,7 +19,7 @@ Setup
\xe2\x80\xa2 Packages in scope: util (esc)
\xe2\x80\xa2 Running build in 1 packages (esc)
\xe2\x80\xa2 Remote caching disabled (esc)
util:build: cache hit, suppressing logs 1ce33e04f265f95c
util:build: cache hit, suppressing logs c17d7e03417c9cc5

Tasks: 1 successful, 1 total
Cached: 1 cached, 1 total
Expand All @@ -30,7 +30,7 @@ Setup
\xe2\x80\xa2 Packages in scope: util (esc)
\xe2\x80\xa2 Running build in 1 packages (esc)
\xe2\x80\xa2 Remote caching disabled (esc)
util:build: cache miss, executing 70278c4ec3fb5ac9
util:build: cache miss, executing 2f70b26690c7fdbf

Tasks: 1 successful, 1 total
Cached: 0 cached, 1 total
Expand All @@ -41,7 +41,7 @@ Setup
\xe2\x80\xa2 Packages in scope: util (esc)
\xe2\x80\xa2 Running build in 1 packages (esc)
\xe2\x80\xa2 Remote caching disabled (esc)
util:build: cache hit, suppressing logs 1ce33e04f265f95c
util:build: cache hit, suppressing logs c17d7e03417c9cc5

Tasks: 1 successful, 1 total
Cached: 1 cached, 1 total
Expand All @@ -52,7 +52,7 @@ Setup
\xe2\x80\xa2 Packages in scope: util (esc)
\xe2\x80\xa2 Running build in 1 packages (esc)
\xe2\x80\xa2 Remote caching disabled (esc)
util:build: cache miss, executing 8b12fdc0e2d94c8d
util:build: cache miss, executing 6bf7886e966f5b7a

Tasks: 1 successful, 1 total
Cached: 0 cached, 1 total
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
\xe2\x80\xa2 Packages in scope: app-a, pkg-a (esc)
\xe2\x80\xa2 Running dev in 2 packages (esc)
\xe2\x80\xa2 Remote caching disabled (esc)
app-a:dev: cache miss, executing 6ae3691e15cf83ab
app-a:dev: cache miss, executing bc08611fdffd87b3
app-a:dev:
app-a:dev: > dev
app-a:dev: > echo dev-app-a
Expand Down
2 changes: 1 addition & 1 deletion turborepo-tests/integration/tests/pkg-inference.t
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Setup
\xe2\x80\xa2 Packages in scope: util (esc)
\xe2\x80\xa2 Running build in 1 packages (esc)
\xe2\x80\xa2 Remote caching disabled (esc)
util:build: cache miss, executing 1ce33e04f265f95c
util:build: cache miss, executing c17d7e03417c9cc5
util:build:
util:build: > build
util:build: > echo building
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Make sure that the internal util package is part of the prune output
\xe2\x80\xa2 Packages in scope: docs, shared, util (esc)
\xe2\x80\xa2 Running new-task in 3 packages (esc)
\xe2\x80\xa2 Remote caching disabled (esc)
docs:new-task: cache miss, executing caf7e46550cd3151
docs:new-task: cache miss, executing 75cd8f33898c41ff
docs:new-task:
docs:new-task: > docs@ new-task .*out(\/|\\)apps(\/|\\)docs (re)
docs:new-task: > echo building
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Running build for my-app succeeds
\xe2\x80\xa2 Packages in scope: my-app (esc)
\xe2\x80\xa2 Running build in 1 packages (esc)
\xe2\x80\xa2 Remote caching disabled (esc)
my-app:build: cache miss, executing 2fa14ad1b3e50ac8
my-app:build: cache miss, executing 0d41fb44fcbc9b47
my-app:build:
my-app:build: > build
my-app:build: > echo building
Expand All @@ -26,7 +26,7 @@ Update exluded file and try again
\xe2\x80\xa2 Packages in scope: my-app (esc)
\xe2\x80\xa2 Running build in 1 packages (esc)
\xe2\x80\xa2 Remote caching disabled (esc)
my-app:build: cache hit, replaying logs 2fa14ad1b3e50ac8
my-app:build: cache hit, replaying logs 0d41fb44fcbc9b47
my-app:build:
my-app:build: > build
my-app:build: > echo building
Expand Down
4 changes: 2 additions & 2 deletions turborepo-tests/integration/tests/run-logging/errors-only.t
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Setup
\xe2\x80\xa2 Packages in scope: app-a (esc)
\xe2\x80\xa2 Running builderror in 1 packages (esc)
\xe2\x80\xa2 Remote caching disabled (esc)
app-a:builderror: cache miss, executing 63f09c22afb626a8
app-a:builderror: cache miss, executing d5ade47d56add00d
app-a:builderror:
app-a:builderror: > builderror
app-a:builderror: > echo error-builderror-app-a && exit 1
Expand Down Expand Up @@ -67,7 +67,7 @@ Setup
\xe2\x80\xa2 Packages in scope: app-a (esc)
\xe2\x80\xa2 Running builderror2 in 1 packages (esc)
\xe2\x80\xa2 Remote caching disabled (esc)
app-a:builderror2: cache miss, executing 7303c469d075d34c
app-a:builderror2: cache miss, executing b67f19c9dc19c698
app-a:builderror2:
app-a:builderror2: > builderror2
app-a:builderror2: > echo error-builderror2-app-a && exit 1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ because otherwise prysk interprets them as multiline commands
\xe2\x80\xa2 Running build in 2 packages (esc)
\xe2\x80\xa2 Remote caching disabled (esc)
::group::my-app:build
cache bypass, force executing c1d33a8183d8cf0b
cache bypass, force executing 953b964a5955cba4

>\sbuild (re)
\>\secho building && sleep 1 && echo done (re)
Expand All @@ -18,7 +18,7 @@ because otherwise prysk interprets them as multiline commands
done
::endgroup::
::group::util:build
cache bypass, force executing ff1050c513839636
cache bypass, force executing 29aa744b83f826e4

>\sbuild (re)
\>\ssleep 0.5 && echo building && sleep 1 && echo completed (re)
Expand All @@ -37,7 +37,7 @@ because otherwise prysk interprets them as multiline commands
\xe2\x80\xa2 Running build in 1 packages (esc)
\xe2\x80\xa2 Remote caching disabled (esc)
::group::util:build
util:build: cache bypass, force executing ff1050c513839636
util:build: cache bypass, force executing 29aa744b83f826e4
util:build:
util:build: > build
util:build: > sleep 0.5 && echo building && sleep 1 && echo completed
Expand All @@ -57,7 +57,7 @@ Verify that errors are grouped properly
\xe2\x80\xa2 Running fail in 2 packages (esc)
\xe2\x80\xa2 Remote caching disabled (esc)
\x1b[;31mutil:fail\x1b[;0m (esc)
cache miss, executing 122cca10fdcda4f0
cache miss, executing dd36f46f36596c83

\> fail (re)
\> echo failing; exit 1 (re)
Expand Down
Loading

0 comments on commit c1cf131

Please sign in to comment.