forked from vercel/turborepo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'DO_NOT_PUSH/main' into merge-turbo-tooling
- Loading branch information
Showing
86 changed files
with
5,618 additions
and
223 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
Setup | ||
$ . ${TESTDIR}/../setup.sh | ||
$ . ${TESTDIR}/setup.sh $(pwd) berry | ||
|
||
Populate cache | ||
$ ${TURBO} build --filter=a | ||
\xe2\x80\xa2 Packages in scope: a (esc) | ||
\xe2\x80\xa2 Running build in 1 packages (esc) | ||
\xe2\x80\xa2 Remote caching disabled (esc) | ||
a:build: cache miss, executing [0-9a-f]+ (re) | ||
a:build: building | ||
|
||
Tasks: 1 successful, 1 total | ||
Cached: 0 cached, 1 total | ||
Time:\s*[\.0-9]+m?s (re) | ||
|
||
$ ${TURBO} build --filter=b | ||
\xe2\x80\xa2 Packages in scope: b (esc) | ||
\xe2\x80\xa2 Running build in 1 packages (esc) | ||
\xe2\x80\xa2 Remote caching disabled (esc) | ||
b:build: cache miss, executing [0-9a-f]+ (re) | ||
b:build: building | ||
|
||
Tasks: 1 successful, 1 total | ||
Cached: 0 cached, 1 total | ||
Time:\s*[\.0-9]+m?s (re) | ||
|
||
|
||
Bump dependency for b and rebuild | ||
Only b should have a cache miss | ||
$ patch yarn.lock yarn-lock.patch | ||
patching file yarn.lock | ||
$ ${TURBO} build --filter=a | ||
\xe2\x80\xa2 Packages in scope: a (esc) | ||
\xe2\x80\xa2 Running build in 1 packages (esc) | ||
\xe2\x80\xa2 Remote caching disabled (esc) | ||
a:build: cache hit, replaying output [0-9a-f]+ (re) | ||
a:build: building | ||
|
||
Tasks: 1 successful, 1 total | ||
Cached: 1 cached, 1 total | ||
Time:\s*[\.0-9]+m?s >>> FULL TURBO (re) | ||
|
||
|
||
$ ${TURBO} build --filter=b | ||
\xe2\x80\xa2 Packages in scope: b (esc) | ||
\xe2\x80\xa2 Running build in 1 packages (esc) | ||
\xe2\x80\xa2 Remote caching disabled (esc) | ||
b:build: cache miss, executing [0-9a-f]+ (re) | ||
b:build: building | ||
|
||
Tasks: 1 successful, 1 total | ||
Cached: 0 cached, 1 total | ||
Time:\s*[\.0-9]+m?s (re) | ||
|
||
|
||
Bump of root workspace invalidates all packages | ||
$ patch yarn.lock turbo-bump.patch | ||
patching file yarn.lock | ||
$ ${TURBO} build --filter=a | ||
\xe2\x80\xa2 Packages in scope: a (esc) | ||
\xe2\x80\xa2 Running build in 1 packages (esc) | ||
\xe2\x80\xa2 Remote caching disabled (esc) | ||
a:build: cache miss, executing [0-9a-f]+ (re) | ||
a:build: building | ||
|
||
Tasks: 1 successful, 1 total | ||
Cached: 0 cached, 1 total | ||
Time:\s*[\.0-9]+m?s (re) | ||
|
||
$ ${TURBO} build --filter=b | ||
\xe2\x80\xa2 Packages in scope: b (esc) | ||
\xe2\x80\xa2 Running build in 1 packages (esc) | ||
\xe2\x80\xa2 Remote caching disabled (esc) | ||
b:build: cache miss, executing [0-9a-f]+ (re) | ||
b:build: building | ||
|
||
Tasks: 1 successful, 1 total | ||
Cached: 0 cached, 1 total | ||
Time:\s*[\.0-9]+m?s (re) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
nodeLinker: node-modules |
11 changes: 11 additions & 0 deletions
11
cli/integration_tests/lockfile_aware_caching/berry/package.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"name": "monorepo", | ||
"workspaces": [ | ||
"apps/**" | ||
], | ||
"packageManager": "[email protected]", | ||
"private": true, | ||
"dependencies": { | ||
"turbo": "^1.5.6" | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
cli/integration_tests/lockfile_aware_caching/berry/turbo-bump.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- berry/yarn.lock 2022-10-12 13:33:53.000000000 -0700 | ||
+++ berry/new 2022-10-12 14:05:17.000000000 -0700 | ||
@@ -86,7 +86,7 @@ | ||
linkType: hard | ||
|
||
"turbo@npm:^1.5.6": | ||
- version: 1.5.6 | ||
+ version: 1.5.7 | ||
resolution: "turbo@npm:1.5.6" | ||
dependencies: | ||
turbo-darwin-64: 1.5.6 |
13 changes: 13 additions & 0 deletions
13
cli/integration_tests/lockfile_aware_caching/berry/yarn-lock.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- yarn.lock 2022-10-12 10:36:16.000000000 -0700 | ||
+++ new.lock 2022-10-12 10:59:15.000000000 -0700 | ||
@@ -22,8 +22,8 @@ | ||
linkType: soft | ||
|
||
"function-bind@npm:^1.1.1": | ||
- version: 1.1.1 | ||
- resolution: "function-bind@npm:1.1.1" | ||
+ version: 1.1.2 | ||
+ resolution: "function-bind@npm:1.1.2" | ||
checksum: b32fbaebb3f8ec4969f033073b43f5c8befbb58f1a79e12f1d7490358150359ebd92f49e72ff0144f65f2c48ea2a605bff2d07965f548f6474fd8efd95bf361a | ||
languageName: node | ||
linkType: hard |
115 changes: 115 additions & 0 deletions
115
cli/integration_tests/lockfile_aware_caching/berry/yarn.lock
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,115 @@ | ||
# This file is generated by running "yarn install" inside your project. | ||
# Manual changes might be lost - proceed with caution! | ||
|
||
__metadata: | ||
version: 6 | ||
cacheKey: 8 | ||
|
||
"a@workspace:apps/a": | ||
version: 0.0.0-use.local | ||
resolution: "a@workspace:apps/a" | ||
dependencies: | ||
has-symbols: ^1.0.3 | ||
languageName: unknown | ||
linkType: soft | ||
|
||
"b@workspace:apps/b": | ||
version: 0.0.0-use.local | ||
resolution: "b@workspace:apps/b" | ||
dependencies: | ||
function-bind: ^1.1.1 | ||
languageName: unknown | ||
linkType: soft | ||
|
||
"function-bind@npm:^1.1.1": | ||
version: 1.1.1 | ||
resolution: "function-bind@npm:1.1.1" | ||
checksum: b32fbaebb3f8ec4969f033073b43f5c8befbb58f1a79e12f1d7490358150359ebd92f49e72ff0144f65f2c48ea2a605bff2d07965f548f6474fd8efd95bf361a | ||
languageName: node | ||
linkType: hard | ||
|
||
"has-symbols@npm:^1.0.3": | ||
version: 1.0.3 | ||
resolution: "has-symbols@npm:1.0.3" | ||
checksum: a054c40c631c0d5741a8285010a0777ea0c068f99ed43e5d6eb12972da223f8af553a455132fdb0801bdcfa0e0f443c0c03a68d8555aa529b3144b446c3f2410 | ||
languageName: node | ||
linkType: hard | ||
|
||
"monorepo@workspace:.": | ||
version: 0.0.0-use.local | ||
resolution: "monorepo@workspace:." | ||
dependencies: | ||
turbo: ^1.5.6 | ||
languageName: unknown | ||
linkType: soft | ||
|
||
"turbo-darwin-64@npm:1.5.6": | ||
version: 1.5.6 | ||
resolution: "turbo-darwin-64@npm:1.5.6" | ||
conditions: os=darwin & cpu=x64 | ||
languageName: node | ||
linkType: hard | ||
|
||
"turbo-darwin-arm64@npm:1.5.6": | ||
version: 1.5.6 | ||
resolution: "turbo-darwin-arm64@npm:1.5.6" | ||
conditions: os=darwin & cpu=arm64 | ||
languageName: node | ||
linkType: hard | ||
|
||
"turbo-linux-64@npm:1.5.6": | ||
version: 1.5.6 | ||
resolution: "turbo-linux-64@npm:1.5.6" | ||
conditions: os=linux & cpu=x64 | ||
languageName: node | ||
linkType: hard | ||
|
||
"turbo-linux-arm64@npm:1.5.6": | ||
version: 1.5.6 | ||
resolution: "turbo-linux-arm64@npm:1.5.6" | ||
conditions: os=linux & cpu=arm64 | ||
languageName: node | ||
linkType: hard | ||
|
||
"turbo-windows-64@npm:1.5.6": | ||
version: 1.5.6 | ||
resolution: "turbo-windows-64@npm:1.5.6" | ||
conditions: os=win32 & cpu=x64 | ||
languageName: node | ||
linkType: hard | ||
|
||
"turbo-windows-arm64@npm:1.5.6": | ||
version: 1.5.6 | ||
resolution: "turbo-windows-arm64@npm:1.5.6" | ||
conditions: os=win32 & cpu=arm64 | ||
languageName: node | ||
linkType: hard | ||
|
||
"turbo@npm:^1.5.6": | ||
version: 1.5.6 | ||
resolution: "turbo@npm:1.5.6" | ||
dependencies: | ||
turbo-darwin-64: 1.5.6 | ||
turbo-darwin-arm64: 1.5.6 | ||
turbo-linux-64: 1.5.6 | ||
turbo-linux-arm64: 1.5.6 | ||
turbo-windows-64: 1.5.6 | ||
turbo-windows-arm64: 1.5.6 | ||
dependenciesMeta: | ||
turbo-darwin-64: | ||
optional: true | ||
turbo-darwin-arm64: | ||
optional: true | ||
turbo-linux-64: | ||
optional: true | ||
turbo-linux-arm64: | ||
optional: true | ||
turbo-windows-64: | ||
optional: true | ||
turbo-windows-arm64: | ||
optional: true | ||
bin: | ||
turbo: bin/turbo | ||
checksum: 5a243f0113fb886c90e8d7b4e94b590acef9813b1cfb13330b3d62c2b09e89647b5aabbe3ecf80d5fe3d8c1ee74ad4eb81f25de30ef62eb1c8a15c23383bd943 | ||
languageName: node | ||
linkType: hard |
Oops, something went wrong.