Skip to content

Update version to be inline with  #360

Closed

Description

@ashcrow

Per #259, our version in RHCOS should be updated to follow $OCPMAJORMINORPATH.$RHELMAJOR.$DATE+$BUILD

Examples:

  • 400.7.20180901+001
  • 400.8.20180905+005
  • 410.8.20180915+001

Activity

  1. ashcrow commented on Oct 30, 2018

    @ashcrow
    MemberAuthor

    Looking at the pipeline output in v2 this looks like it's done. Does that sound accurate @cgwalters?

  2. ashcrow commented on Nov 7, 2018

    @ashcrow
    MemberAuthor

    Never mind, verified this morning this is NOT done.

  3. ashcrow commented on Jan 16, 2019

    @ashcrow
    MemberAuthor

    It looks like the treefile syntax doesn't support increment builds without the dot. Any objection to replacing the end + with a . like $OCPMAJORMINORPATH.$RHELMAJOR.$DATE.$BUILD?

    EG:

    -automatic_version_prefix: "47"
    +automatic_version_prefix: "400.7.<date:%Y%m%d>"

    Outputing: 400.7.20180116.1

  4. ashcrow commented on Jan 16, 2019

    @ashcrow
    MemberAuthor
  5. rfairley commented on Jan 16, 2019

    @rfairley

    Sorry should have checked back on this before - the recent addition to add the <date: tag in (coreos/rpm-ostree#1721) was constrained in maintaining the "always appending an increment" behaviour. Right now - this increment is always appended as .x with x being the build number.

    We could add in options to allow a plus sign to be appended (e.g. <increment_separator:+> somewhere in the prefix would mean +x gets appended instead of .x). To have zero padding, a <zero_padding:3> tag could be supported to pad the appended version number with zeroes to 3 digits (e.g. 00x).

    If these options would be good to have, the logic for them would fit in cleanly along with the current <date: tag.

    /cc @jlebon

  6. ashcrow commented on Jan 16, 2019

    @ashcrow
    MemberAuthor

    @rfairley thanks! Personally, I don't think it's worth updating rpm-ostree, getting new builds available for use, and then referencing them just for the + -> . but it is a fair conversation to have :-)

  7. jlebon commented on Jan 16, 2019

    @jlebon
    Member

    Are we planning to have more than 99 builds per day? That sounds unlikely. :)

    Otherwise, . vs + sounds kinda bikesheddy. 🏠 🖌️ I personally prefer dots, but if we feel strongly about it, sure, we could add a knob to change the separator.

  8. dustymabe commented on Jan 16, 2019

    @dustymabe
    Member

    It looks like the treefile syntax doesn't support increment builds without the dot. Any objection to replacing the end + with a .

    ehh. seems fine to me.

    one of the reasons we went with + I think was to try to comply with semver, but I don't think it really matters that much.

  9. rfairley commented on Jan 16, 2019

    @rfairley

    Alright - SGTM to leave it at dots :) . Just wanted to make sure we weren't limited in case there was a strong preference for +.

  10. ashcrow commented on Jan 16, 2019

    @ashcrow
    MemberAuthor

    OK perfect. I'll pick this back up with ..

  11. miabbott commented on Jan 29, 2019

    @miabbott
    Member

    Super late to the conversation here, but just wanted to ask this:

    one of the reasons we went with + I think was to try to comply with semver, but I don't think it really matters that much.

    My memory might be failing, but I thought we weren't trying to comply to semver?

  12. dustymabe commented on Jan 30, 2019

    @dustymabe
    Member

    from #259 i thought we were trying to keep our version string to comply with semver, but we weren't necessarily making the same guarantees that semver does regarding API etc...

    At this point let's go with . as suggested above.

  13. ashcrow commented on Jan 30, 2019

    @ashcrow
    MemberAuthor

    PR submitted

  14. ashcrow commented on Feb 27, 2019

    @ashcrow
    MemberAuthor

    This has been implemented in the v3 pipeline and is currently pumping out images.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions