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

Discuss backporting HandleWrap#hasRef() in a Minor #108

Closed
Fishrock123 opened this issue May 19, 2016 · 8 comments
Closed

Discuss backporting HandleWrap#hasRef() in a Minor #108

Fishrock123 opened this issue May 19, 2016 · 8 comments

Comments

@Fishrock123
Copy link
Contributor

Bah, I assume this would have been much easier if I'd not mucked up the API.
It's possible we can squash it down into less commits for a backport.

I'd like to see this since it would be useful to have this information in LTS for tooling. It's far less desirable to have to float this patch or patch in _unrefed for APIs that don't have it (e.g. child_process, whereas net and timers have this.)

This will be even more prevalent if/once anything from AsyncWrap gets backported, or even with it's existing API. Specifically, there is no way to tell if a handle will or will not keep the process open without this.

It presents next-to zero risk as far as I can tell. Below is the full commit chain.

cc @thealphanerd

@MylesBorins
Copy link
Contributor

@Fishrock123 I'm up for landing these into staging next week and putting them into the rc to see if there are any problems

/cc @nodejs/lts @nodejs/ctc

@rvagg
Copy link
Member

rvagg commented May 20, 2016

It presents next-to zero risk as far as I can tell. Below is the full commit chain.

The risk that backporting seemly non-risky changes is directly proportional to the delta between the branches involved. Simply doing the backport puts us at risk of getting things wrong and then there's the surrounding structures which may have become important for the operation of a feature without noticing and they may not be present in the older branch.

I think we'd need to see a PR for it along with a CI run and then we can make a judgement on the code. If it's particularly difficult to backport just to have a discussion then that goes back to my above point about risk.

@jasnell
Copy link
Member

jasnell commented May 20, 2016

+1 to everything @rvagg said. As the delta between master and v4 grows, we
need to become more conservative about the things we cherry pick vs
backport using a reviewed PR and need to get CI/CITGM runs going more
often. Our intuition that things "shouldn't" break is not enough of a
guarantee.
On May 19, 2016 10:48 PM, "Rod Vagg" [email protected] wrote:

It presents next-to zero risk as far as I can tell. Below is the full
commit chain.

The risk that backporting seemly non-risky changes is directly
proportional to the delta between the branches involved. Simply doing
the backport puts us at risk of getting things wrong and then there's the
surrounding structures which may have become important for the operation of
a feature without noticing and they may not be present in the older branch.

I think we'd need to see a PR for it along with a CI run and then we can
make a judgement on the code. If it's particularly difficult to backport
just to have a discussion then that goes back to my above point about risk.


You are receiving this because you are on a team that was mentioned.
Reply to this email directly or view it on GitHub
#108 (comment)

@Fishrock123
Copy link
Contributor Author

Fishrock123 commented May 31, 2016

Well, I don't think I need this info on v4 anyways, so I'm willing to drop it.

@MylesBorins
Copy link
Contributor

@Fishrock123 with v6 coming up for LTS soon I think we should consider not landing this on v4. Thoughts?

@Fishrock123
Copy link
Contributor Author

¯_(ツ)_/¯

may be useful if all of async_wrap gets backported

@MylesBorins
Copy link
Contributor

@Fishrock123 do you still want to pursue this for v4?

@Fishrock123
Copy link
Contributor Author

nah

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

No branches or pull requests

4 participants