node icon indicating copy to clipboard operation
node copied to clipboard

Initial Release

Open mikeal opened this issue 12 years ago • 97 comments

In the TC meeting today we came up with a vision for the first release.

First, a few assumptions we've internalized that probably need to be stated for this to make sense.

  • Node is pretty damn stable already. There are huge companies with it in production, 100K+ modules, etc. It is already far more stable that its pre-1.0 release tag suggests.
  • Releasing more frequently leads to a more stable product, not a less stable product.
  • The entire ecosystem uses semver while node uses a confusing even/odd release structure.

If people disagree with any of those assumptions then they certainly won't agree with anything the TC determined for the initial release.

So, first release of io.js:

  • January 13th (Fedor's Birthday!) target date.
  • Will be 1.0-alpha1, with alpha releases continuing until 1.0.0.
  • Switching to semver.
  • We will be taking new v8 releases as fast as possible moving forward.
  • Trying to get to a weekly release cycle. Which version number is incremented each week is determined by the changes and whether or not they are breaking. Again, following semver.

Some questions still left open:

  • Are there any changes other than dep upgrades and fixes required for 1.0?
  • Is build confident we can have enough automation in place to hit this date.
  • Is the plan to have the installer install an iojs binary and an alias to node?

mikeal avatar Dec 02 '14 22:12 mikeal

I'd rather nobody try to put a binary at the name io. It's bad enough that ImageMagick takes names like convert (because, you know, nobody's ever going to convert anything that isn't an image).

In other news, what is this? Was this being discussed on the Node mailing list / Google group or something? I just heard about it now via someone submitting a link to this issue on Hacker News.

This would be some kind of project that automatically rebuilds the core Node components for every V8 release? Is it going to be developing the core modules itself without pushing back upstream? What about the modules that don't touch or have anything to do with V8 like url?

stuartpb avatar Dec 03 '14 09:12 stuartpb

@creationix https://github.com/iojs/io.js/issues/9

If you are interested in the libuv.js approach we can poke more at it.

defunctzombie avatar Dec 03 '14 17:12 defunctzombie

@creationix, @rvagg and the rest discussed a wrapper library for V8, as you are asking about, in one of the TC meeting videos (I apologize for not having the link), in the context of making an API abstraction across multiple js engines. I'm paraphrasing here, but as I understand, he said his experience from nan, specifically of working with user's of nan to get their addons working, was that the range and variety of V8 usage was so wide and varied, he didn't see creating a V8 subset API as useful (which is what a wrapper would necessarily be), since the addons he was seeing would still be reaching past it into unportable V8 direct usage. Having coded for years against lua's C API, I'm somewhat aghast at the, shall we say, "breadth" of the V8 API, but there doesn't seem to be a concrete plan to wrap that, other than to make sure every iojs core release is coupled (if necessary) with a nan release that covers that new release (and it's V8), with nan major number incrementing as necessary, when V8 changes sufficiently that nan can't cover it over with its current abstractions.

I hope I didn't misrepresent anything there, but that's the impression I have from watching the TC meeting.

sam-github avatar Dec 03 '14 18:12 sam-github

Finally!

Semver + fast release cycles will be awesome.

How will it work regarding deciding what features to add? Will there be discussions on issues/prs so that everybody can give their opinion or will there be a board? What's th idea going forward? I saw about the Open Governance but just globally I mean.

The other question is once there're features that are different in io.js vs node.js. What will you do with packages fragmentation at that point? Any thoughts?

Thanks!

mgonto avatar Dec 03 '14 18:12 mgonto

As someone who needs to instrument node/iojs, a weekly release cycle is scary to me unless we are doing a train type system akin to Firefox/Chrome where there is lag time between leveling up the release. Alpha out for x days/weeks, Beta for x days/weeks then finally a GA. This gives those of us who need to keep up with changes a real chance to do so.

This allows for other folks to run automated tests against these alphas/betas, and folks to actually try out the release before it goes live. Nightlies aren't enough when you are talking a weekly cycle since a change could go in on tuesday, and release on thursday for instance. Folks like me would have wednesday to notice that something broke, fix it, and then release it so we are ahead of the game.

This needs to apply to everything excepting perhaps security fixes. Patch versions that are just bug fixes can slightly change behavior in ways that will affect projects that instrument node. We are extremely defensive, as we have to be, but there are many possibilities for us to run into weird issues due to reliance on edge cases.

My proposal would be at least 1 week, preferably 2 weeks, from Alpha to Release of every release. Having a full week allows us to react and push a regular release instead of having to react with hotfixes all the time.

I anticipate being told that we should just track the repo more carefully ourselves. But if iojs takes off like node did, we are talking at least 1-3 new PRs every day for us to track, plus all old PRs that are actively being worked on. I consider that load to be unreasonable, even if we were to have a full time core dev on our team as they would spend 100% of their time evaluating new commits on PRs for threat to the agent. These numbers don't even consider libuv or v8, just the core repo.

wraithan avatar Dec 03 '14 18:12 wraithan

Apparently, package managers have a way to mark a package as "conflicting" with another.

This would prevent people from having both installed on the same system, I could see someone wanting to do this. CI would be an example of this... I would want to test any modules I build against both nodejs and iojs to ensure compatibility.

An alternate approach would be to have a compatibility package. Have the base iojs package and an iojs-compat that simply aliases nodejs to iojs and let that package conflict with nodejs. That gives you the flexibility of an easy migration path for users while also making it possible to have the two packages co-exist on a machine.

ptinsley avatar Dec 03 '14 19:12 ptinsley

@ptinsley what is the exact workflow of that feature? Does it literally uninstall the previous package before installing the new one that conflicts?

mikeal avatar Dec 03 '14 19:12 mikeal

I'm all in favor of consistent, frequent releases, but a 1-week cycle seems a little too aggressive. With Chrome's 6-week cycle, four channels ("stable", "beta", "dev" and "canary") gives you 18 weeks to vet new code before it's released. 18 weeks might be too long, but with a 1-week cycle, you'd either need a lot more channels, or you'd have a lot less time to vet new code.

nonsensery avatar Dec 03 '14 20:12 nonsensery

A new release does not mean you have to upgrade. Everyone has different risk profiles and having releases lets those with a higher risk tolerance to test them out quicker.

defunctzombie avatar Dec 03 '14 20:12 defunctzombie

@mikeal @ptinsley for rpm specfiles conficts will cause rpm install to error out and state the conflicting package. This only happens if the conflicting package has also been installed as an rpm, and it can be over-ridden with --nodeps. I definitely agree that users need to be able to evaluate and transition gradually with both binaries installed for comparison. My preference would be to use a name that's not already taken (ie. iojs) and let users to set an alias or use a tool like nvm or n to manage it. Those tools already change the node symlink to point to one of several binaries on your system. I'm assuming nvm, n et al will be updated to support pulling from the iojs repo.

darrenderidder avatar Dec 03 '14 20:12 darrenderidder

@mikeal On deb based systems, yes, that's how it works. (cant talk for the others)

@defunctzombie I'm not sure that helps @wraithan at all, because people will upgrade.

SomeoneWeird avatar Dec 03 '14 21:12 SomeoneWeird

Re: making sure all 100k npm modules work on io.js, that's a bit of a dangerous promise. As the code base diverges, I doubt that will be the case. I doubt that's even true right now: last I checked, fibers only works on NodeJS 0.11.10, not 0.11.9 or 0.11.11 or 0.11.12. I haven't quite tested it with io.js yet, but just figured I'd voice my concern.

vkarpov15 avatar Dec 03 '14 21:12 vkarpov15

With n it looks like you can just export N_MIRROR=http://iojs.org/dist to start pulling from the new repo when it goes online. But I guess n still needs to be updated to look for either node / iojs as the target of the symlink.

darrenderidder avatar Dec 03 '14 21:12 darrenderidder

We can work out how to stage this in a responsible way, the goal though should be: nightly builds, weekly usable releases (the stability standing of which we can figure out later).

mikeal avatar Dec 03 '14 21:12 mikeal

@mikeal By saying it that way, you are closing off discussion. Is there a better place if you don't want us to discuss that sort of release detail here? That detail is VERY important when you start a thread declaring weekly releases, at least to folks like myself.

wraithan avatar Dec 03 '14 22:12 wraithan

@wraithan I think @mikeal is being very fair here. We may all feel that a weekly release cycle is impossible, but we would need to first give them a chance. There are more details to be worked out.

iojs needs support and confidence to get off the ground.

nmn avatar Dec 03 '14 22:12 nmn

@wraithan there is definitely going to be a discussion about that but I think it should start once we have at lease one release up :) I think that weekly cycles for alpha releases to get to 1.0 is a pretty good idea, after that we take take what we've learned and roll it in to a better plan. I don't mean to end discussion, I just don't think we can have a very informed discussion until we have releases and a build process that enables us to get stuff out fast.

mikeal avatar Dec 03 '14 22:12 mikeal

We deploy in scenarios where upgrades usually mean putting someone on a plane. So I'm all for rapid releases but I think there should also be something like an LTS build that contains all the fixes but takes a conservative approach to including new / unstable features.

darrenderidder avatar Dec 03 '14 22:12 darrenderidder

@darrenderidder perhaps this is something automation can also help with. /cc @rvagg

mikeal avatar Dec 03 '14 22:12 mikeal

LTS is definitely something that's been discussed by the TC (previously in node-forward form) and something that a lot of us want. Even if it ends up being too difficult for the TC here, we at NodeSource would certainly be interested in investing in helping maintain a regular series of LTS releases--a significant portion of our customers are on the RHEL release cycle where they are used to getting platform support for (literally) decades. Many of them are only now just making the transition from RHEL5 to RHEL6, which is still ancient. So they want stability and assurance and we're up for that. Either way, it's on my personal agenda and NodeSource's agenda so we'll make sure there is some form of LTS in the long run.

As @mikeal said in response to @wraithan:

I think it should start once we have at lease one release up

So let's not get too ahead of ourselves, we need to ship something and then refine the process from there, for all we know, semver + regular releases + V8-crazy for a user-facing project like this may be a total failure and we need to adapt.

The title of this issue is Initial Release, let's aim for that!

rvagg avatar Dec 03 '14 23:12 rvagg