From fc79ebcc8fef1c3b6ea41effc863c8b241e1b4e6 Mon Sep 17 00:00:00 2001 From: Sean McGinnis Date: Mon, 18 Mar 2019 13:41:11 -0500 Subject: [PATCH] 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 --- openstack_releases/cmds/validate.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/openstack_releases/cmds/validate.py b/openstack_releases/cmds/validate.py index 31b92448f1..47ec762327 100644 --- a/openstack_releases/cmds/validate.py +++ b/openstack_releases/cmds/validate.py @@ -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,)