You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are currently generating the version number using the next major OpenShift release (4.0) and the build ID from Jenkins. This works well as long as we never have to restart the pipeline from scratch.
A proposed way of making the version number more resilient is to retrieve the version number from the previous build (by way of metadata, hopefully) and increment the version.
We can still maintain the 4.0.XXXX format using this method.
I'm fine with using dates like shown above, but I'm not a big fan of the secondary .. This looks to me like $MAJOR.$MINOR.$PATH.$SOMETHING. The latter item seems to not be inline with semantic versioning for patch. If we need the extra numbers maybe we should look at using it as build metadata.
Glancing at the semver spec, it seems like the date would fall in to the 'build metadata' category. So we would probably want to choose either the build ID or the date.
I guess we could combine the build ID + date, but that would get rather verbose, i.e 4.0.1+5722.20180905 (or 4.0.1+20180905.5722)
As a general note, even if we want to adopt the three-dotted format, we are not semver-sioning here. Semver guarantees apply to a clear and precise API:
[...] you first need to declare a public API. This may consist of documentation or be enforced by the code itself. Regardless, it is important that this API be clear and precise. Once you identify your public API, you communicate changes to it with specific increments to your version number.
An OS image is an aggregate of multiple projects' API and ABI which are mostly outside of our control and we don't clearly define as a whole.
Thus, we are pretty free to mix build-date, openshift release-tag and incremental OS version label as we prefer, as long as we communicate that there is no semver meaning attached to the resulting string.
As a general note, even if we want to adopt the three-dotted format, we are not semver-sioning here.
That's fine, I think. I was just referencing the spec as guidelines for creating a reasonable version string.
Thus, we are pretty free to mix build-date, openshift release-tag and incremental OS version label as we prefer, as long as we communicate that there is no semver meaning attached to the resulting string.
Yup, we should definitely communicate this clearly.
It is a good guideline, counterpoint is that if you have something that quacks like a semver then people assume it indeed is semver and get very angry about breakages (see docker 1.x series and yy.mm renumbering).
It just feels odd to have a leading number that won't really change that much.
There are also quite a lot of projects with a leading major that's been the same for years; Linux kernel to name one prominent one. And, for users going from 47 to 48 it'll be a big change. But then indeed we'll hopefully be on 48 for quite a while. But even then, after say 2-3 years, I wouldn't be surprised if one of the components changed.
I don't understand under what operations the MINOR and PATCH would be rev'd versus BUILD. How would that translate to our tooling? And I still don't like having a full date in the version, it's really verbose.
Not to mention that AFAICS #1 doesn't have any obvious way to distinguish between maipo/ootpa, but that to me is quite important.
Those questions are why I am proposing (and voting for) #4 - and have already made implementation moves towards it.
@cgwalters proposal 2 does separate maipo/oopta through $RHELMAJOR
OK but for the people including #1 in their vote - do you think $RHELMAJOR isn't important, or that we would distinguish between these in some other way? If the latter, once we move to pivoting the images, the oscontainer name will be in the rpm-ostree status but still, it's...kind of important right?
I think noting maipo versus ootpa is a nice to have, but since ootpa is where we are going I don't see a hard requirement to call it out.
I think this is where my thinking was. But if @cgwalters feels that the maipo/oopta distinction is worth calling out, I'll edit my response to be #2 as my preference.
OK but for the people including #1 in their vote - do you think $RHELMAJOR isn't important,
A lot of the discussion that we had about this was before we (I?) even considered $RHELMAJOR much at all. So I think it was a combination of hadn't considered it much and it's not that important. My thinking was that we could easily derive $RHELMAJOR from the OCP version since there should be a single clear OCP version where we cut over. i.e. there would never be a 4.0.1 based on maipo AND a 4.0.1 based on ootpa.
That being said, #2 was a close 2nd in my vote and includes the $RHELMAJOR, so if you feel strongly I can lean towards that.
My thinking was that we could easily derive $RHELMAJOR from the OCP version since there should be a single clear OCP version where we cut over. i.e. there would never be a 4.0.1 based on maipo AND a 4.0.1 based on ootpa.
I would like to offer some customers the option of trying out newer content. I can't say for sure whether or not that would really happen. But even if it didn't - during development I am doubtful there's going to be some sort of hard cutover, and we want it to be immediately obvious which OS major version people are testing.
And even all of that aside, it still feels extremely weird to me to have the idea that the whole OS could change in a huge way from 4.0 to 4.1, but then maybe not much at all from 4.1 to 4.2 - given that the version number we're talking about here is for our builds which are definitely operating system-focused (as opposed to higher level OpenShift versions).
Activity
miabbott commentedon Aug 30, 2018
This came out of the discussion in #150 (comment)
dustymabe commentedon Aug 30, 2018
adding a date to our version in FAH has worked well for us (gives a lot of context). Maybe something we should consider
miabbott commentedon Aug 30, 2018
So that could look something like
4.0.20180830.4833Kinda looks long for a version string, but I do like the context it provides.
ashcrow commentedon Aug 30, 2018
I'm fine with using dates like shown above, but I'm not a big fan of the secondary
.. This looks to me like$MAJOR.$MINOR.$PATH.$SOMETHING. The latter item seems to not be inline with semantic versioning for patch. If we need the extra numbers maybe we should look at using it as build metadata.ashcrow commentedon Sep 5, 2018
What about
$MAJOR.$MINOR.$PATCH+BUILDDATA? Example:4.0.1+5722.dustymabe commentedon Sep 5, 2018
LGTM.. bonus points if you could put a date in there somewhere
miabbott commentedon Sep 5, 2018
Glancing at the semver spec, it seems like the date would fall in to the 'build metadata' category. So we would probably want to choose either the build ID or the date.
I guess we could combine the build ID + date, but that would get rather verbose, i.e
4.0.1+5722.20180905(or4.0.1+20180905.5722)ashcrow commentedon Sep 5, 2018
I'm 👍 with either of date after or before. I like it a little slightly more after but 👍 😄.
dustymabe commentedon Sep 5, 2018
if getting too verbose we could go with the year/month model other distros are using:
4.0.1+1809.5722. I personally like the full date, though :)dustymabe commentedon Sep 5, 2018
I prefer the date before because incrementally it makes more sense:
ashcrow commentedon Sep 5, 2018
I like the full date as well. I'm fine with it coming before.
lucab commentedon Sep 6, 2018
As a general note, even if we want to adopt the three-dotted format, we are not semver-sioning here. Semver guarantees apply to a clear and precise API:
An OS image is an aggregate of multiple projects' API and ABI which are mostly outside of our control and we don't clearly define as a whole.
Thus, we are pretty free to mix build-date, openshift release-tag and incremental OS version label as we prefer, as long as we communicate that there is no semver meaning attached to the resulting string.
miabbott commentedon Sep 6, 2018
That's fine, I think. I was just referencing the spec as guidelines for creating a reasonable version string.
Yup, we should definitely communicate this clearly.
ashcrow commentedon Sep 19, 2018
👍. True we would not be strict semver but I agree with @miabbott that's it's a good guideline.
If we don't have any strong disenters to this proposal by this Friday noon EDT let's accept the version pattern.
lucab commentedon Sep 19, 2018
It is a good guideline, counterpoint is that if you have something that quacks like a semver then people assume it indeed is semver and get very angry about breakages (see docker 1.x series and yy.mm renumbering).
16 remaining items
[-]make OS version number less fragile[/-][+]Change version numbering scheme[/+]cgwalters commentedon Oct 1, 2018
There are also quite a lot of projects with a leading major that's been the same for years; Linux kernel to name one prominent one. And, for users going from
47to48it'll be a big change. But then indeed we'll hopefully be on48for quite a while. But even then, after say 2-3 years, I wouldn't be surprised if one of the components changed.ashcrow commentedon Oct 1, 2018
Folks: Please respond to this issue with your favorite scheme as proposed.
Reminder: If we do not have a consensus by Oct 5th noon EDT we will run with the version scheme with the most acceptance
dustymabe commentedon Oct 1, 2018
Top choice
#1. Close 2nd is#2.miabbott commentedon Oct 1, 2018
Same here
cgwalters commentedon Oct 1, 2018
I don't understand under what operations the
MINORandPATCHwould be rev'd versusBUILD. How would that translate to our tooling? And I still don't like having a full date in the version, it's really verbose.Not to mention that AFAICS
#1doesn't have any obvious way to distinguish between maipo/ootpa, but that to me is quite important.Those questions are why I am proposing (and voting for)
#4- and have already made implementation moves towards it.ashcrow commentedon Oct 1, 2018
I also prefer 1 and 2.
I think noting maipo versus ootpa is a nice to have, but since ootpa is where we are going I don't see a hard requirement to call it out.
ashcrow commentedon Oct 1, 2018
@cgwalters proposal 2 does separate maipo/oopta through
$RHELMAJORcgwalters commentedon Oct 1, 2018
OK but for the people including
#1in their vote - do you think$RHELMAJORisn't important, or that we would distinguish between these in some other way? If the latter, once we move to pivoting the images, the oscontainer name will be in therpm-ostree statusbut still, it's...kind of important right?cgwalters commentedon Oct 1, 2018
(Or if the answer is "I didn't consider maipo vs ootpa", please do and edit your vote)
miabbott commentedon Oct 1, 2018
I think this is where my thinking was. But if @cgwalters feels that the maipo/oopta distinction is worth calling out, I'll edit my response to be
#2as my preference.dustymabe commentedon Oct 1, 2018
A lot of the discussion that we had about this was before we (I?) even considered $RHELMAJOR much at all. So I think it was a combination of hadn't considered it much and it's not that important. My thinking was that we could easily derive $RHELMAJOR from the OCP version since there should be a single clear OCP version where we cut over. i.e. there would never be a 4.0.1 based on maipo AND a 4.0.1 based on ootpa.
That being said,
#2was a close 2nd in my vote and includes the $RHELMAJOR, so if you feel strongly I can lean towards that.cgwalters commentedon Oct 1, 2018
I would like to offer some customers the option of trying out newer content. I can't say for sure whether or not that would really happen. But even if it didn't - during development I am doubtful there's going to be some sort of hard cutover, and we want it to be immediately obvious which OS major version people are testing.
And even all of that aside, it still feels extremely weird to me to have the idea that the whole OS could change in a huge way from
4.0to4.1, but then maybe not much at all from4.1to4.2- given that the version number we're talking about here is for our builds which are definitely operating system-focused (as opposed to higher level OpenShift versions).ashcrow commentedon Oct 15, 2018
Based on the conversation it looks like the best consensus we have is to go with option 2:
$OCPMAJORMINORPATH.$RHELMAJOR.$DATE+$BUILD: Example:401.7.20180905+001I'll create a new issue to implement this.