Are there any drawbacks to the Major.Minor.YMDD.Build version strategy?

Posted by Chu on Programmers See other posts from Programmers or by Chu
Published on 2011-07-07T14:40:47Z Indexed on 2012/11/04 11:23 UTC
Read the original article Hit count: 275

Filed under:

I'm trying to come up with a good version strategy to fit our specific needs. We've proposed settling on this and I wanted to ask the question to see if anyone's experience would suggest avoiding this or altering it in any way.

Here's our proposal:

Versions are released in this format: MAJOR.MINOR.YMDD.BN. Here it is broken out:

  • MAJOR & MINOR are typical; we'll increase MINOR when we feel code and new feature sets warrants it; once every few months most likely. MAJOR will increase ~yearly.
  • YMDD: Y will be the last digit of the current year, so "1" for 2011, "2" for 2012, etc. A non-padded month will be used to keep the number smaller (9 instead of 09 for example). DD of course is the day, padded with a zero for days under 10.
  • BN: BN is the build number and increases by one anytime we make a change to a branch of the code represented by the build, for example:

If were to make a build today, our release would be version 5.0.1707.1. I release to QA today and 3 days from now QA finds that a change broke the save functionality on a page. Instead of me changing our current development code, I'd go back to the code that I used to create version 5.0.1707.1, make the fix there, then increase the BN portion of the version and would then re-release 5.0.1707.2 back to QA. In short, anytime a change is made to a branched version that isn't the active dev branch, we'd use the original version number and increase only the BN portion (even if the change happened 3 days, 3 weeks or 3 months from the initial release of that version).

Anytime we make a new release from our Active dev branch, we'd come up with a new version based on the M/D of the release using the outlined strategy. We do this once every 2-3 weeks.

Are there holes or pitfalls with this? If so, what are they?

Thanks

EDIT

To clarify one point that I didn't get out very well - Oct/Nov/Dec will be two digits, it's only the year that won't be. So 9 for Sept, 10 for Oct, 11 for Nov, etc.

© Programmers or respective owner

Related posts about versioning