Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update workspaces list max buffer to 5 MB #176

Merged
merged 2 commits into from
Oct 11, 2022

Conversation

pastelsky
Copy link
Contributor

@pastelsky pastelsky commented Oct 11, 2022

On very large workspaces, the output of yarn workspaces info might not fit in the default buffer of 200 KB. This increases it to 5MB — which shouldn't have any inadvertent side effects.

Test plan

Manually tested

@airamare01 airamare01 requested a review from a team October 11, 2022 11:51
@pastelsky pastelsky changed the title Update workspaces list max buffer to 1 MB Update workspaces list max buffer to 5 MB Oct 11, 2022
@varungandhi-src
Copy link
Contributor

I don't see any problems with this, but curious about where you got the number of 200KB from? I see a 1MiB limit here with Node v18.10: https://nodejs.org/api/child_process.html

@varungandhi-src varungandhi-src merged commit 8d62999 into sourcegraph:main Oct 11, 2022
@pastelsky
Copy link
Contributor Author

Perhaps the limit changed?
I was using this as reference-
nodejs/node#4236

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants