Skip to content
This repository has been archived by the owner on Nov 20, 2023. It is now read-only.

fix(ci): Increase stack size in errors #319

Merged
merged 1 commit into from
Oct 1, 2021

Conversation

lobsterkatie
Copy link
Member

@lobsterkatie lobsterkatie commented Oct 1, 2021

By default, node limits stacktraces to 10 lines. That's often not enough to tell what's gone wrong, especially when dealing with async code (which can add many frames just handling its own asynciness). For example, when trying to release this plugin, I ran into this:

image

What's wrong? How do I fix it? No way to know.

Fortunately, node allows you to increase that limit, and since version 8, has further allowed you to specify global options via the NODE_OPTIONS environment variable. This PR does both, for all ci processes where we own the code that's being run.

Before:

image

After:

image

@lobsterkatie lobsterkatie force-pushed the kmclb-longer-stacktraces-in-ci branch 2 times, most recently from ae502d0 to 3532c04 Compare October 1, 2021 18:40
@getsentry getsentry deleted a comment from codecov-commenter Oct 1, 2021
@lobsterkatie lobsterkatie merged commit 0ba8b0d into master Oct 1, 2021
@lobsterkatie lobsterkatie deleted the kmclb-longer-stacktraces-in-ci branch October 1, 2021 19:39
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants