Allow first release in cycle to be RC

This cycle we changed cycle-with-milestones to cycle-with-rc and no
longer require that projects do any beta releases prior to the RC. This
updates our release version validation check to allow for the first
release of the cycle to be an RC release.

Change-Id: Idf12bb22d35ebecf0c64a29b14d239e4a2d4b996
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
This commit is contained in:
Sean McGinnis 2019-03-18 13:41:11 -05:00
parent 4a5f0b239a
commit fc79ebcc8f
No known key found for this signature in database
GPG Key ID: CE7EE4BFAF8D70C8

View File

@ -247,7 +247,10 @@ def validate_series_first(deliv, context):
versionstr = releases[0].version
patchlevel = versionstr.rpartition('.')[-1]
if not (patchlevel == '0' or patchlevel.startswith('0b')):
# Make sure first release of a series is more than just a bugfix bump so
# there is room for a stable release in the previous cycle
if not (patchlevel == '0' or
patchlevel.startswith('0b') or patchlevel.startswith('0rc')):
context.error(
'Initial releases in a series must increment at '
'least the minor version or be beta versions. %r' % (versionstr,)