Skip to content

ERR_WORKER_OUT_OF_MEMORY during an upgrade 3.797.0 -> 3.840.0 #7187

@moltar

Description

@moltar

Checkboxes for prior research

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

  1. Use @aws-sdk/client-quicksight
  2. 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.

Metadata

Metadata

Assignees

Labels

closed-for-stalenessguidanceGeneral information and guidance, answers to FAQs, or recommended best practices/resources.p3This is a minor priority issuethird-partyThis issue is related to third-party libraries or applications.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions