From 0c265869aa921bc1c03cc779ec6487422698b330 Mon Sep 17 00:00:00 2001 From: Sean McGinnis Date: Mon, 19 Oct 2020 10:36:42 -0500 Subject: [PATCH] init-series: Skip unrelease comment for trailing Cycle trailing deliverables are often not released by the time we initialize the next series. We add a comment to deliverable files during their creation to note if they were not released in the last cycle to help highlight orphaned deliverables. This can be misleading for cycle trailing deliverables, since usually they do end up being released, but after we've created the file and included the comment. To make this comment more useful, this removes its inclusion for trailing projects. Change-Id: I010dadc2ca9026248e7f9dfc89d257afdf97be72 Signed-off-by: Sean McGinnis --- openstack_releases/cmds/init_series.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/openstack_releases/cmds/init_series.py b/openstack_releases/cmds/init_series.py index 7a5a2faac2..8d04cad071 100644 --- a/openstack_releases/cmds/init_series.py +++ b/openstack_releases/cmds/init_series.py @@ -75,7 +75,8 @@ def main(): with open(outfilename, 'w', encoding='utf-8') as f: print('{} created'.format(outfilename)) f.write(yamlutils.dumps(raw_data)) - if not deliv.is_released and not deliv.branches: + if (not deliv.is_released and not deliv.branches and + deliv.type != 'trailing'): # There were no releases for the deliverable in the # previous series, add a comment in the file. f.write(warn)