Skip to content

Change version numbering scheme #259

Closed

Description

@miabbott

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.

Activity

  1. miabbott commented on Aug 30, 2018

    @miabbott
    MemberAuthor

    This came out of the discussion in #150 (comment)

  2. dustymabe commented on Aug 30, 2018

    @dustymabe
    Member

    adding a date to our version in FAH has worked well for us (gives a lot of context). Maybe something we should consider

  3. miabbott commented on Aug 30, 2018

    @miabbott
    MemberAuthor

    So that could look something like 4.0.20180830.4833

    Kinda looks long for a version string, but I do like the context it provides.

  4. ashcrow commented on Aug 30, 2018

    @ashcrow
    Member

    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.

  5. ashcrow commented on Sep 5, 2018

    @ashcrow
    Member

    What about $MAJOR.$MINOR.$PATCH+BUILDDATA? Example: 4.0.1+5722.

  6. dustymabe commented on Sep 5, 2018

    @dustymabe
    Member

    What about $MAJOR.$MINOR.$PATXH+BUILDDATA? Example: 4.0.1+5722.

    LGTM.. bonus points if you could put a date in there somewhere

  7. miabbott commented on Sep 5, 2018

    @miabbott
    MemberAuthor

    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)

  8. ashcrow commented on Sep 5, 2018

    @ashcrow
    Member

    I'm 👍 with either of date after or before. I like it a little slightly more after but 👍 😄.

  9. dustymabe commented on Sep 5, 2018

    @dustymabe
    Member

    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 :)

  10. dustymabe commented on Sep 5, 2018

    @dustymabe
    Member

    I'm +1 with either of date after or before. I like it a little slightly more after but +1 smile.

    I prefer the date before because incrementally it makes more sense:

    4.0.1+20180905.001
    4.0.1+20180905.002
    
  11. ashcrow commented on Sep 5, 2018

    @ashcrow
    Member

    I like the full date as well. I'm fine with it coming before.

  12. lucab commented on Sep 6, 2018

    @lucab

    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.

  13. miabbott commented on Sep 6, 2018

    @miabbott
    MemberAuthor

    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.

  14. ashcrow commented on Sep 19, 2018

    @ashcrow
    Member

    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.

    👍. 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.

  15. lucab commented on Sep 19, 2018

    @lucab

    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. 16 remaining items

  17. changed the title [-]make OS version number less fragile[/-] [+]Change version numbering scheme[/+] on Oct 1, 2018
  18. cgwalters commented on Oct 1, 2018

    @cgwalters
    Member

    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.

  19. ashcrow commented on Oct 1, 2018

    @ashcrow
    Member

    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

  20. dustymabe commented on Oct 1, 2018

    @dustymabe
    Member

    Top choice #1. Close 2nd is #2.

  21. miabbott commented on Oct 1, 2018

    @miabbott
    MemberAuthor

    Top choice #1. Close 2nd is #2.

    Same here

  22. cgwalters commented on Oct 1, 2018

    @cgwalters
    Member

    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.

  23. ashcrow commented on Oct 1, 2018

    @ashcrow
    Member

    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.

  24. ashcrow commented on Oct 1, 2018

    @ashcrow
    Member

    @cgwalters proposal 2 does separate maipo/oopta through $RHELMAJOR

  25. cgwalters commented on Oct 1, 2018

    @cgwalters
    Member

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

  26. cgwalters commented on Oct 1, 2018

    @cgwalters
    Member

    (Or if the answer is "I didn't consider maipo vs ootpa", please do and edit your vote)

  27. miabbott commented on Oct 1, 2018

    @miabbott
    MemberAuthor

    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.

  28. dustymabe commented on Oct 1, 2018

    @dustymabe
    Member

    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.

  29. cgwalters commented on Oct 1, 2018

    @cgwalters
    Member

    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).

  30. ashcrow commented on Oct 15, 2018

    @ashcrow
    Member

    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+001

    I'll create a new issue to implement this.

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

Metadata

Metadata

Assignees

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