Rethink Versioning Of MRTK: Allow users to know risk of ingesting packages
While working on a solution to package MRTK in NuGet, versioning has come up a lot.
There's 2 major points to bring up for this discussion:
-
We should document versioning in a more formal way; that way our community and consumers can all easily reference and understand what a particular version means.
-
I believe our version should follow a different paradigm than currently.
The current version, from #1858 , should be [product].[month].[revision]. I propose we move to [product].[release].[revision].
Defining the terms as below:
[product]: Our canonical product name. We have agreed on yearly releases and using year as the nomenclature. For MRTK, the first product name will be 2018. We also tie these to milestones
[release]: A version release that adds new features. May be a breaking change, if documented, from a previous release on the same [product]. May also just add new features
[revision]: Intended not to be a breaking change nor add or remove functionality. This would be bug fix releases or patching. Same as [patch] in SemVer
The important difference here is that we are encoding the usability of the package in the versioning, which closer aligns to the intent of SemVer. We are sacrificing the [major].[minor] granularity and collapsing them into a [release] version. This lets customers know that there is an inherent risk in upgrading from 18.1 to 18.2, for example. When using [month] instead of [release] we lose the ability to convey this information in order to communicate a time. I believe that we should avoid this, as release times are encapsulated with package and distribution information.
I would love to hear you thoughts on this. I've discussed heavily with @davidkline-ms in person (and somewhat heatedly) to arrive to a small revision to our plan that would have a big impact. This also means that if we release at a cadence that is not monthly, our versioning still supports that.
I'm a fan of using risk as the primary factor in version revving.
I don't mind conveying a risk via versioning. I do believe that risk should be well documented for each release. However, making it very clear that there are breaking changed to the reader is very important. Making the realeas a value starting at 00 and incrementing by 10. However when there is a breaking change the one's position would contain a value other than 0. I would like to see somthing 2018.21.1005 like for any release that has a breaking change
Just a thought.
(and somewhat heatedly)
C'mon... it didn't get that warm :)
Haha, I think we've already changed it 4 times 😅
Haha, I think we've already changed it 4 times 😅
I think that's what @ryzngard meant by "somewhat heatedly" :)
I would like to see somthing 2018.21.1005 like for any release that has a breaking change
I think this follows a similar pattern, but the breaking change value is indicated by the second number and not in the third.
Example: 2018.3.1 > 2018.3.2 = not breaking 2018.3.1 > 2018.4.0 = potentially breaking, check release notes.
Similar, 2018.3.1 > 2019.0.0 = potentially breaking, but also signifies what Unity version we PLAN on targeting. The release notes will ultimately tell what version was tested.
Haha, I think we've already changed it 4 times 😅
Yea... I know 😒 but I think this is a change that can be done without breaking the current scheme. It's a forward only momentum change.