-
Notifications
You must be signed in to change notification settings - Fork 634
Description
Checkboxes for prior research
- I've gone through Developer Guide and API reference
- I've checked AWS Forums and StackOverflow.
- I've searched for previous similar issues and didn't find any solution.
Describe the bug
I'm upgrading AWS SDK using Renovate, and currently, it had raised a PR to upgrade:
@aws-sdk/client-quicksight
@aws-sdk/client-sts
@aws-sdk/util-arn-parser
All deps are fixed versions, and are being upgraded from 3.797.0
to 3.840.0
.
And now I am getting the following error during builds:
Error [ERR_WORKER_OUT_OF_MEMORY]: Worker terminated due to reaching memory limit: JS heap out of memory
at [kOnExit] (node:internal/worker:314:26)
at Worker.<computed>.onexit (node:internal/worker:230:20)
Emitted 'error' event on Worker instance at:
at [kOnExit] (node:internal/worker:314:12)
at Worker.<computed>.onexit (node:internal/worker:230:20) {
code: 'ERR_WORKER_OUT_OF_MEMORY'
}
The building is done with tsup
, which wraps esbuild
under the hood.
I know that QuickSight types are insanely complex, so it could be due to that. However, given that esbuild
is an extremely popular tool within the AWS CDK community, I think this should be explored further.
This issue is definitely very isolated, as other Renovate PRs get built and merged easily, and the mainline branch builds just fine under the same conditions; it's only this upgrade PR that is failing.
I'm more than happy to give you more context for debugging this; just let me know what you'd like to see.
Thanks.
Regression Issue
- Select this option if this issue appears to be a regression.
SDK version number
@aws-sdk/[email protected]
Which JavaScript Runtime is this issue in?
Node.js
Details of the browser/Node.js/ReactNative version
22.16.0
Reproduction Steps
- Use @aws-sdk/client-quicksight
- Try to bundle it with
tsup
, even if only types.
Observed Behavior
Build fails.
Expected Behavior
Build succeeds.
Possible Solution
N/A
Additional Information/Context
The build runs inside CodeBuild BUILD_GENERAL1_LARGE
environment.