Skip to content

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

Closed

Description

@Fishrock123

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

Activity

  1. MylesBorins commented on May 19, 2016

    @MylesBorins
    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

  2. rvagg commented on May 20, 2016

    @rvagg
    Member

    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.

  3. jasnell commented on May 20, 2016

    @jasnell
    Member

    +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" notifications@github.com 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)

  4. Fishrock123 commented on May 31, 2016

    @Fishrock123
    ContributorAuthor

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

  5. MylesBorins commented on Aug 30, 2016

    @MylesBorins
    Contributor

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

  6. Fishrock123 commented on Sep 4, 2016

    @Fishrock123
    ContributorAuthor

    ¯_(ツ)_/¯

    may be useful if all of async_wrap gets backported

  7. MylesBorins commented on Nov 14, 2016

    @MylesBorins
    Contributor

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

  8. Fishrock123 commented on Nov 15, 2016

    @Fishrock123
    ContributorAuthor

    nah

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions