-
Notifications
You must be signed in to change notification settings - Fork 27.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
improve turborepo caching #64493
improve turborepo caching #64493
Conversation
Failing test suitesCommit: 1c666c7
Expand output● create-next-app --app (App Router) › should create JavaScript project with --js flag
● create-next-app --app (App Router) › should create TypeScript project with --ts flag
● create-next-app --app (App Router) › should create project inside "src" directory with --src-dir flag
● create-next-app --app (App Router) › should create TailwindCSS project with --tailwind flag
Read more about building and testing Next.js in contributing.md.
Expand output● create-next-app --no-app (Pages Router) › should create JavaScript project with --js flag
● create-next-app --no-app (Pages Router) › should create TypeScript project with --ts flag
● create-next-app --no-app (Pages Router) › should create project inside "src" directory with --src-dir flag
● create-next-app --no-app (Pages Router) › should create TailwindCSS project with --tailwind flag
Read more about building and testing Next.js in contributing.md.
Expand output● Edge runtime code with imports › Edge API statically importing node.js module › throws unsupported module error in dev at runtime and highlights the faulty line
Read more about building and testing Next.js in contributing.md.
Expand output● middleware - development errors › when there is a compilation error after boot › logs the error correctly
Read more about building and testing Next.js in contributing.md. |
Stats from current PRDefault BuildGeneral
Client Bundles (main, webpack)
Legacy Client Bundles (polyfills)
Client Pages
Client Build Manifests
Rendered Page Sizes
Edge SSR bundle Size
Middleware size
Next Runtimes
build cache
Diff detailsDiff for middleware.jsDiff too large to display |
### What? There is a race condition in the `pull-build-cache` script. When the remote cache entry was removed between the dry run and the real run, it will run the command and caches whatever is in the native folder. Seems like there are some very old leftover files there which lead to an broken publish. This changes the command to fail when there are no files and empties the folder before running the script. This should lead to pull-build-cache to failing instead. Closes PACK-2957 Fixes #64468
What?
There is a race condition in the
pull-build-cache
script. When the remote cache entry was removed between the dry run and the real run, it will run the command and caches whatever is in the native folder.Seems like there are some very old leftover files there which lead to an broken publish.
This changes the command to fail when there are no files and empties the folder before running the script. This should lead to pull-build-cache to failing instead.
Closes PACK-2957
Fixes #64468