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

fix(core): prevent max buffer issues with bunlock files #25985

Merged

Conversation

Jordan-Hall
Copy link
Contributor

@Jordan-Hall Jordan-Hall commented May 23, 2024

Fixes #25978 #25965

Copy link

vercel bot commented May 23, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Updated (UTC)
nx-dev ⬜️ Ignored (Inspect) Visit Preview May 27, 2024 2:30pm

@@ -98,7 +100,9 @@ export const createDependencies: CreateDependencies = (
const lockFileContents =
packageManager !== 'bun'
? readFileSync(lockFilePath).toString()
: execSync(`bun ${lockFilePath}`).toString();
: execSync(`bun ${lockFilePath}`, {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested using the following code snip https://gist.github.com/Jordan-Hall/fb5f5d1e09ebc5d90c67cf1d745e05c8.

This worked using NX own package.json and bun.lockb file. Happy to add test but not sure where

@Jordan-Hall
Copy link
Contributor Author

@FrozenPandaz I'm not sure why CI failing on this one. Not touched that section :/

@benpsnyder
Copy link
Contributor

@FrozenPandaz I'm not sure why CI failing on this one. Not touched that section :/

@Jordan-Hall maybe try rebasing and formatting?
@FrozenPandaz if you can get this one in too I'll be able to test all our repos thoroughly tonight

@Jordan-Hall Jordan-Hall force-pushed the fix/25978-max-buffer-limit-issue branch from 3d66b14 to 3c087fc Compare May 27, 2024 14:27
@Jordan-Hall
Copy link
Contributor Author

@FrozenPandaz I'm not sure why CI failing on this one. Not touched that section :/

@Jordan-Hall maybe try rebasing and formatting? @FrozenPandaz if you can get this one in too I'll be able to test all our repos thoroughly tonight

I've rebased again its nothing to do with linting from looks of it but cypress legacy e2e test... If you can test now without this fix. It works when using bun runtime bunx --bun nx.... The max buffer is a node execSync issue and not a bun execSync issue

@jaysoo
Copy link
Member

jaysoo commented May 27, 2024

@FrozenPandaz I'm not sure why CI failing on this one. Not touched that section :/

@Jordan-Hall maybe try rebasing and formatting? @FrozenPandaz if you can get this one in too I'll be able to test all our repos thoroughly tonight

I've rebased again its nothing to do with linting from looks of it but cypress legacy e2e test... If you can test now without this fix. It works when using bun runtime bunx --bun nx.... The max buffer is a node execSync issue and not a bun execSync issue

Strange indeed. We'll take a look.

@Jordan-Hall
Copy link
Contributor Author

Thank you. I'm having a nightmare with CI recently :(

@jaysoo
Copy link
Member

jaysoo commented May 27, 2024

Thank you. I'm having a nightmare with CI recently :(

I know, we're investigating CI issues for forks. It has regressed since we atomized our tests.

@FrozenPandaz
Copy link
Collaborator

FrozenPandaz commented May 27, 2024

The failing test is unrelated. Thank you for your contribution! LGTM 🎉

@FrozenPandaz FrozenPandaz merged commit ed1f7a6 into nrwl:master May 27, 2024
5 of 7 checks passed
FrozenPandaz pushed a commit that referenced this pull request May 28, 2024
@cskiwi
Copy link

cskiwi commented Jun 1, 2024

The error is still happening for me, (nx 19.1.1 and bun 1.1.10)

@Jordan-Hall
Copy link
Contributor Author

The error is still happening for me, (nx 19.1.1 and bun 1.1.10)

The fix was is in 19.2 I believe

@cskiwi
Copy link

cskiwi commented Jun 1, 2024

The error is still happening for me, (nx 19.1.1 and bun 1.1.10)

The fix was is in 19.2 I believe

From the changelog it should have been in 19.1.1? https://github.com/nrwl/nx/releases/tag/19.1.1
Ah, it's in both changelogs.

However I updated to 19.2.0-beta.5 and the issue is there.
Update: correction, it seems to be another error now. investigating...

@Jordan-Hall
Copy link
Contributor Author

Jordan-Hall commented Jun 1, 2024

Please go to the issue that's open and share errors message please. I think it's a different error

#26053

Copy link

github-actions bot commented Jun 7, 2024

This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 7, 2024
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.

When using Bun and building in containers, respect the yarn.lock file
5 participants