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

possible mistaken commit in v20.x branch webstreams #53143

Closed
Waldenesque opened this issue May 24, 2024 · 4 comments
Closed

possible mistaken commit in v20.x branch webstreams #53143

Waldenesque opened this issue May 24, 2024 · 4 comments

Comments

@Waldenesque
Copy link

Version

version 20.13.0 and higher

Platform

all

Subsystem

webstreams

What steps will reproduce the bug?

No response

How often does it reproduce? Is there a required condition?

No response

What is the expected behavior? Why is that the expected behavior?

No response

What do you see instead?

I was curious about the freshness of the webstreams code in v20 versus main, so I looked at the commit history of the following folder:

https://github.com/nodejs/node/tree/main/lib/internal/webstreams

I noticed something odd about the following commits:

4d3923a
8e82451
66556f5

It appears there was an initial fix attempt that had some problem, then a revert, and finally a correct fix. These three commits seem identical in main branch and v22.x branch, while v21.x branch includes three equivalent commits in the same chronological order on slightly different dates. However v20.x branch looks different.

https://github.com/nodejs/node/tree/v20.x/lib/internal/webstreams

It appears the broken initial fix attempt never made it into v20.x branch in the first place. The first relevant commit seems to be the final correct fix. However a little over a month later, the older revert commit seems to have been applied over top of the correct fix. I'm guessing this was an accidental mistake?

If so, it looks like the mistaken revert modified a couple of test files, and also incorrectly removed a couple of "port.unref();" lines from the "transfer.js" file. If the commit notes listed in CHANGELOG_V20.md are correct, this presumably broken transfer.js file shipped in Node version 20.13.0, and is still broken in the current v20.14.0-proposal branch scheduled to ship this coming Tuesday 2024-05-28.

https://github.com/nodejs/node/tree/v20.14.0-proposal/lib/internal/webstreams

I don't know anything about the specifics of any of this stuff, so hopefully I'm not wasting someone's time by writing this. However it looks fishy enough to me that I thought it was worth reporting.

Thanks for your time.

Additional information

No response

@RedYetiDev
Copy link
Member

@tsctx
@mcollina
@jasnell

(Original commit authors)

@climba03003
Copy link
Contributor

climba03003 commented May 25, 2024

The same revert PR is being deployed in two different version.
f2dfe0fa80 which is 20.12.0
8d20b641a2 which is 20.13.0

The proper fix d0a6f35 is deployed in 20.12.0

I think it is accidentally included the Revert in 20.13.0 since 20.12.0 is correctly excluded it.

@marco-ippolito
Copy link
Member

marco-ippolito commented May 25, 2024

I guess we can just revert "the revert commit" 8d20b641a2 that shouldnt have landed?
#53144

marco-ippolito added a commit that referenced this issue May 27, 2024
This reverts commit 8d20b64.

PR-URL: #53144
Fixes: #53143
Reviewed-By: Matteo Collina <[email protected]>
Reviewed-By: Rafael Gonzaga <[email protected]>
@marco-ippolito
Copy link
Member

Fixed in v20.14.0

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

No branches or pull requests

4 participants