Skip to content

contributing: buildup failing on Gitpod #24932

@lassiraa

Description

@lassiraa

Describe the bug

When launching a gitpod instance with aws-cdk, the buildup fails at the aws-cdk-lib package.

Expected Behavior

Successful buildup when starting up Gitpod.

Current Behavior

Error with following JS stacktrace:

<--- Last few GCs --->

[1947:0x51be1d0] 219838 ms: Mark-sweep (reduce) 4035.7 (4105.8) -> 4034.8 (4106.1) MB, 2600.4 / 0.0 ms (average mu = 0.081, current mu = 0.008) allocation failure scavenge might not succeed
[1947:0x51be1d0] 222069 ms: Mark-sweep (reduce) 4035.9 (4103.1) -> 4035.2 (4104.3) MB, 2024.8 / 0.0 ms (average mu = 0.086, current mu = 0.092) allocation failure scavenge might not succeed

<--- JS stacktrace --->

FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
1: 0xa3ad50 node::Abort() [/usr/bin/node]
2: 0x970199 node::FatalError(char const*, char const*) [/usr/bin/node]
3: 0xbba90e v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, bool) [/usr/bin/node]
4: 0xbbac87 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, bool) [/usr/bin/node]
5: 0xd76ea5 [/usr/bin/node]
6: 0xd77a2f [/usr/bin/node]
7: 0xd8586b v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [/usr/bin/node]
8: 0xd8942c v8::internal::Heap::AllocateRawWithRetryOrFailSlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [/usr/bin/node]
9: 0xd57b0b v8::internal::Factory::NewFillerObject(int, bool, v8::internal::AllocationType, v8::internal::AllocationOrigin) [/usr/bin/node]
10: 0x10a015f v8::internal::Runtime_AllocateInYoungGeneration(int, unsigned long*, v8::internal::Isolate*) [/usr/bin/node]
11: 0x1449379 [/usr/bin/node]
Aborted
Error: /workspace/aws-cdk/tools/@aws-cdk/cdk-build-tools/node_modules/jsii/bin/jsii --silence-warnings=reserved-word --add-deprecation-warnings --compress-assembly '--strip-deprecated /workspace/aws-cdk/deprecated_apis.txt' exited with error code 134
Build failed.!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error: last command failed. fix problem and resume by executing: /workspace/aws-cdk/scripts/foreach.sh
directory: /workspace/aws-cdk/packages/aws-cdk-lib

Reproduction Steps

Going to Contributing and starting up a Gitpod instance leads to the issue.

Possible Solution

The error is some sort of out of memory error, so could the issue be due to the limited amount of memory on the Gitpod instances, or perhaps something worse? I've tried using the 8 GB and 16 GB RAM instances with the same end results. Obviously the current builds are succeeding, so I am guessing it's something Gitpod specific in this case.

Additional Information/Context

No response

CDK CLI Version

Framework Version

No response

Node.js Version

14.21.3

OS

Ubuntu 22.04.2 LTS

Language

Typescript

Language Version

No response

Other information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    aws-cdk-libRelated to the aws-cdk-lib packagebugThis issue is a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions