6 Commits

Author SHA1 Message Date
JJ Kasper 1bf6c2f4b1 Fix flaky turbo cache pull with retries and graceful fallback (#89575)
- Add retry logic (3 attempts with 5s delay) for transient network
failures
- Don't fail the job when cache restoration fails - let workflow build
from source
- Add error handling for dry run failures and JSON parsing

This attempts to address transient failures seen here
https://github.com/vercel/next.js/actions/runs/21735816168/job/62700523424?pr=89574
2026-02-06 15:06:40 +00:00
JJ Kasper 6647a7706f Update more global turbo CLI usage (#76576)
Continues https://github.com/vercel/next.js/pull/76532 as it seems to be
alleviating the `npm` failures so replaces some more usage of global
`npm` installing the turbo CLI.

x-ref:
https://github.com/vercel/next.js/actions/runs/13554859494/job/37886841090#step:15:25
2025-02-27 01:01:38 +00:00
JJ Kasper 46d3066c98 Log stdio for pull-turbo-cache script (#66759)
Gives us more context when this fails as it is here
https://github.com/vercel/next.js/actions/runs/9469195858/job/26087290365#step:15:23
2024-06-11 10:30:56 -07:00
Tobias Koppers 2766ebc8d3 improve turborepo caching (#64493)
### 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
2024-04-15 12:42:28 +02:00
JJ Kasper 8997ab0812 Implement granular rust caching (#54582)
This fixes our caching for the docker builds as they were missing inputs
the other jobs had also enables caching the rust target cache which
improves build times when only changing our package and the lockfile
isn't invalidated.

Tested here https://github.com/vercel/next.js/actions/runs/5987764387
2023-08-26 18:54:14 -07:00
JJ Kasper bdc3a8e181 Move turbo outside of build for docker swc builds (#54035)
removes usage of turbo and uses the default node version inside the
image.
2023-08-14 17:37:45 -07:00