Skip to content

codecov exits with status code 4 if NODE_OPTIONS is set #475

@gclements-chwy

Description

@gclements-chwy

Describe the bug

The pkg node module has an issue where if NODE_OPTIONS is set to --max-old-space-size=8192 (it doesn't need to be 8192, the issues mentioned below use 4096) the application will exit with status 4. It's literally this line in the pkg code:

https://github.com/vercel/pkg/blob/5.3.3/prelude/bootstrap.js#L1789

No error messages are printed. The app built with pkg just exits. This issue: vercel/pkg#1194 and this one: vercel/pkg#1217 mention the problem with no resolution.

To Reproduce
In a shell:

export NODE_OPTIONS=--max-old-space-size=8192 ./codecov echo $? 

The output from the echo will be 4.

Expected behavior

Program just runs

Screenshots

N/A

Additional context

The circleci orb should unset NODE_OPTIONS before invoking codecov

Metadata

Metadata

Assignees

No one assigned

    Labels

    UpstreamThe issue occurs in a dependency and is not directly fixablebugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions