You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The bazel scheduler assumes all build actions take 1 CPU and 250MB of RAM by default. This leads to Bazel over-scheduling memory or CPU hungry build actions.
In our case, we have several Vite build actions that are running in parallel, many with --max-old-space-size=16384. When we're unlucky, enough of these will be scheduled in parallel and Bazel will OOM crash with:
What is the current behavior?
The bazel scheduler assumes all build actions take 1 CPU and 250MB of RAM by default. This leads to Bazel over-scheduling memory or CPU hungry build actions.
In our case, we have several Vite build actions that are running in parallel, many with
--max-old-space-size=16384
. When we're unlucky, enough of these will be scheduled in parallel and Bazel will OOM crash with:Describe the feature
In our repo, we're currently bundling several large Vite applications in parallel. The bundling step is the most memory intensive part of our build.
Similar to aspect-build/rules_ts#569, we'd like the ability to specify
resource_set
or similar in rules_js build actions. e.g.,There's maybe an opportunity here to couple
resource_set
and--max-old-space-size
, as you're likely bumping these together.The text was updated successfully, but these errors were encountered: