From 3021ebe674d8defb1c3c633487d7c86ef8428b8e Mon Sep 17 00:00:00 2001 From: Ghanshyam Mann Date: Thu, 22 Jun 2023 15:33:52 -0500 Subject: [PATCH] Fix the tag to be used for setting election config When we start the election configuration for dates and other deadlines, we use the dummy tag generated with election month and which gets updated once governance release the actual tag of semver. It is confusing that initial tag generated by setup_election_config cmd is actual tag or just a placeholder. Governance repo has switched to semver type tag since 2018 - https://github.com/openstack/governance/tags?after=oct-2017-elections Election repo started the below process since 2019: 1. Add placeholder/dummy tag in election config (election month tag generated by script) - https://review.opendev.org/c/openstack/election/+/661673 2. On email_deadline, release a new tag of governance repo - https://review.opendev.org/c/openstack/releases/+/680691 3. Update the released tag in election config - https://review.opendev.org/c/openstack/election/+/681274 This commit does not change the existing process and make the placeholder tag more clear so that we know that we need to release a new tag in governance at the email_deadline and update here. Change-Id: Id8d5e4689ad2374a197e63e7fb41c6b5c265ff5c --- openstack_election/cmds/setup_election_config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openstack_election/cmds/setup_election_config.py b/openstack_election/cmds/setup_election_config.py index ac732375..e25f2be0 100755 --- a/openstack_election/cmds/setup_election_config.py +++ b/openstack_election/cmds/setup_election_config.py @@ -270,7 +270,7 @@ def main(): configuration = OrderedDict( release=args.release, election_type=args.type.lower(), - tag=args.date.strftime('%b-%Y-elections').lower(), + tag='to-be-released', tc_seats=int(args.tc_seats), timeframe=OrderedDict(name=timeframe_name, start=iso_fmt(timeframe_start),