vercel / next.js

The React Framework
https://nextjs.org
MIT License
122.59k stars 26.23k forks source link

Next-build: intercept failure of a worker thread and exit with status 1 #67154

Open deh-code opened 4 days ago

deh-code commented 4 days ago

What?

If process run out of heap memory during next.js build process, it exits with error code 0, resulting in a "silent failure".

Why?

Looks like the build tasks are delegated to workers instantiated inside packages/next/src/build/webpack-build/index.ts

How?

Intercept failure of a worker and exit with code 1

Closes NEXT- Fixes #67097

ijjk commented 4 days ago

Allow CI Workflow Run

Note: this should only be enabled once the PR is ready to go and can only be enabled by a maintainer

ijjk commented 4 days ago

Allow CI Workflow Run

Note: this should only be enabled once the PR is ready to go and can only be enabled by a maintainer

ijjk commented 4 days ago

Allow CI Workflow Run

Note: this should only be enabled once the PR is ready to go and can only be enabled by a maintainer