From 131bd356cc82f2677b127d96de1ccd77f294bcb0 Mon Sep 17 00:00:00 2001 From: Doug Hellmann Date: Fri, 17 Aug 2018 11:37:45 -0400 Subject: [PATCH] have list-changes show information about other deliverables in the series We had a few teams "forget" about one or more of their deliverables during rocky. Let's update the list-changes output to show the other deliverables owned by a team in a series, along with their latest version, as a way to prompt the release team to remind the project team to release those other things. Change-Id: I79c8c0ee591d557c07c46282da1f7ab14ec6290c Signed-off-by: Doug Hellmann --- openstack_releases/cmds/list_changes.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/openstack_releases/cmds/list_changes.py b/openstack_releases/cmds/list_changes.py index 2bf1d8c950..a41a0e654f 100644 --- a/openstack_releases/cmds/list_changes.py +++ b/openstack_releases/cmds/list_changes.py @@ -247,6 +247,11 @@ def main(): for r in governance.get_repositories(team_data) ) + all_deliverables = deliverable.Deliverables( + './deliverables', + False, + ) + # Remove any inherited PAGER environment variable to avoid # blocking the output waiting for input. os.environ['PAGER'] = '' @@ -290,6 +295,17 @@ def main(): print(('no deliverable %r found for team %r, ' 'cannot report on governance status') % (deliv.name, team_name)) + if not deliv.is_independent: + # Show other deliverables owned by the team and + # included in this series. + team_deliv_in_series = all_deliverables.get_deliverables( + team.name, deliv.series) + if team_deliv_in_series: + print('Other {} deliverables in {}:'.format( + team.name, deliv.series)) + for d in team_deliv_in_series: + print(' {} ({})'.format(d.name, d.latest_release or None)) + print() else: print('no team %r found, cannot report on governance status' % team_name)