Skip to content

fix: Stop using EBADF workaround for Node 24.16.0+#7152

Merged
arcanis merged 1 commit into
yarnpkg:masterfrom
trstinc:narrow-ebadf-gate-for-24
Jun 1, 2026
Merged

fix: Stop using EBADF workaround for Node 24.16.0+#7152
arcanis merged 1 commit into
yarnpkg:masterfrom
trstinc:narrow-ebadf-gate-for-24

Conversation

@MJDSys

@MJDSys MJDSys commented May 26, 2026

Copy link
Copy Markdown
Contributor

What's the problem this PR addresses?

Node backported nodejs/node#62835 restoring fs patchability, so we can now disable the same EBADF workaround for it.

This follows the same pattern as #7133.

...

How did you fix it?

Changed the condition to only enable the workaround for node 24.15.x, as it is the only release with the issue.

I tested the adjusted version works on 24.16.0.

...

Checklist

  • I will check that all automated PR checks pass before the PR gets reviewed.

Node 24.16.0 backported nodejs/node#62835,
so it can now disable the EBADF workaround to avoid similar breakage.

This works similar to PR yarnpkg#7133.
@MJDSys

MJDSys commented May 26, 2026

Copy link
Copy Markdown
Contributor Author

The integration test failure looks unrelated to this change? I also tried running the test suite locally in the node:26.2.0 docker image and that test passed for me.

Let me know if a change is needed for the test though.

@arcanis arcanis merged commit 87ac2d7 into yarnpkg:master Jun 1, 2026
26 of 27 checks passed
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.

3 participants