mpv icon indicating copy to clipboard operation
mpv copied to clipboard

A versioning scheme and releases

Open dubhater opened this issue 13 years ago • 12 comments

So this has come up on IRC a few times. I only just thought to make an issue about it.

This looks relevant and sane: http://semver.org/

Let the bikeshedding begin!

dubhater avatar Jul 23 '13 13:07 dubhater

Yeah, suggestioins welcome, especially about the branching schema.

ghost avatar Jul 23 '13 13:07 ghost

I would like to see first real release before we continue working on lua and libmpv, because some changes might introduce bugs and there were already lots of changes. As I said before, a proper page with future plans would be nice.

giselher avatar Jul 23 '13 13:07 giselher

Idea 1: I think we should release every 3 Months with an incrementing number like systemd. We should only make a stable branch if bugs are reported and then we can push patch releases.

  • Major release every 3 Month.
  • Patch releases at least a week after the first bugs are reported. We can push further releases if necessary.
                          rel 1.1
 rel1-stable: rel 1 / ---- •    rel 2 ( no bugs reported)
 master:  ------ • /--------------- • ---------------------------- • \----
 rel3-stable:                                                  rel 3  \---- • ------- •
                                                                            rel 3.1   rel 3.2

Idea 2: If branching releases is too complicated or generates too many branches then we could just release faster like every month or 2 months.

giselher avatar Jul 24 '13 13:07 giselher

Well, I like idea 1.

ghost avatar Jul 26 '13 18:07 ghost

So, I could just pick a random git commit and declare it as release. I'll do so every 2 months. If there are significant bugs, I'll make a branch starting from the release commit, and cherry-pick fixes.

I'd number each release with a single integer (1, 2, 3, ...). If there are bug fixes, I'd release them as 1.1 (first bugfix), 1.2 (second bugfix), etc. (like giselher said)

Sounds ok? Or does someone have alternative suggestions?

ghost avatar Aug 04 '13 21:08 ghost

Not sure about random, I suppose you should get what appears to be the most stable, or at least close to that. I do know that pretty much everything is pretty stable, but there are sometimes regressions, bugs, etc. And if you're in the middle of implementing something big, I suppose you may want to either get the commit that comes before it or wait until you're done.

LabMem765 avatar Aug 04 '13 22:08 LabMem765

Big things would happen in separate branches anyway.

@wm4: Sounds good.

dubhater avatar Aug 05 '13 05:08 dubhater

Big things would happen in separate branches anyway.

Sometimes I just push somewhat "risky" changes to master. But in the end, they have to be tested "somehow". It's also true that larger changes are developed in branches, but even then often issues pop up after merge, because branches are virtually never tested by anyone other than the developer.

This is actually the main reason why I think having releases would be good: it'd be easier to declare certain commits as stable, and I could include bug fixes to them too.

Noe that I would drop support for all older releases when making a new one. Is that ok?

ghost avatar Aug 05 '13 16:08 ghost

Noe that I would drop support for all older releases when making a new one. Is that ok?

Sounds like the best solution, because most will never use an older version of a video player if there is a new release.

giselher avatar Aug 06 '13 04:08 giselher

I'll release v0.1 tomorrow, using whatever is in master.

Starting with 0.1 on request by ChrisK2. We will switch to v1 numbering once milestone 1 is completed: https://github.com/mpv-player/mpv/issues?milestone=1&state=open

(A bit arbitrary, but whatever.)

ghost avatar Aug 06 '13 21:08 ghost

PS: "tomorrow" means 24h from now.

ghost avatar Aug 06 '13 21:08 ghost

Well, I think we can consider this done now.

ghost avatar Aug 14 '13 10:08 ghost