Remove references to TC tags
The TC tags framework is discontinued [1], so all references to TC tags will be invalidated once TC passes the change. This patch removes these references to avoid breaking the releases repo. [1] http://lists.openstack.org/pipermail/openstack-discuss/2022-February/027214.html Change-Id: Idf5cddc7d1a535e1a9bcc2c2922cf23c3a8d539b
This commit is contained in:
parent
909d616cf4
commit
50a5af421e
@ -289,10 +289,7 @@ def main():
|
||||
if team_deliv:
|
||||
print('found deliverable %s' % deliv.name)
|
||||
for rn, repo in sorted(team_deliv.repositories.items()):
|
||||
print('\nrepo %s\ntags:' % repo.name)
|
||||
for t in repo.tags:
|
||||
print(' %s' % t)
|
||||
print('')
|
||||
print('\nrepo %s' % repo.name)
|
||||
if stable_branch:
|
||||
print('Deliverable is on stable branch')
|
||||
else:
|
||||
|
@ -74,12 +74,6 @@ def main():
|
||||
default=False,
|
||||
help='Show last release date (in verbose mode)',
|
||||
)
|
||||
parser.add_argument(
|
||||
'--show-tags',
|
||||
action='store_true',
|
||||
default=False,
|
||||
help='Show tags associated with deliverable (in verbose mode)',
|
||||
)
|
||||
model = parser.add_mutually_exclusive_group()
|
||||
model.add_argument(
|
||||
'--model',
|
||||
@ -106,12 +100,6 @@ def main():
|
||||
choices=sorted(deliverable_schema.release_types),
|
||||
help='deliverable type, such as "library" or "service"',
|
||||
)
|
||||
parser.add_argument(
|
||||
'--tag',
|
||||
default=[],
|
||||
action='append',
|
||||
help='look for one more more tags on the deliverable or team',
|
||||
)
|
||||
parser.add_argument(
|
||||
'--deliverables-dir',
|
||||
default=openstack_releases.deliverable_dir,
|
||||
@ -185,8 +173,6 @@ def main():
|
||||
verbose_template += ' {type:15}'
|
||||
if not args.model:
|
||||
verbose_template += ' {model:15}'
|
||||
if args.show_tags:
|
||||
verbose_template += ' {tags}'
|
||||
|
||||
if args.forced:
|
||||
args.all_releases = True
|
||||
@ -250,17 +236,6 @@ def main():
|
||||
continue
|
||||
if args.missing_rc and deliv.is_released and 'rc' in deliv.latest_release:
|
||||
continue
|
||||
if args.tag:
|
||||
tags = deliv.tags
|
||||
ignore = False
|
||||
for t in args.tag:
|
||||
if t not in tags:
|
||||
ignore = True
|
||||
break
|
||||
if ignore:
|
||||
continue
|
||||
|
||||
tag_str = '(' + ', '.join(deliv.tags) + ')'
|
||||
|
||||
if args.missing_final and deliv.latest_release:
|
||||
if not ('rc' in deliv.latest_release or
|
||||
@ -321,7 +296,6 @@ def main():
|
||||
team=deliv.team,
|
||||
type=deliv.type,
|
||||
model=deliv.model,
|
||||
tags=tag_str,
|
||||
))
|
||||
elif args.verbose:
|
||||
print(verbose_template.format(
|
||||
@ -331,7 +305,6 @@ def main():
|
||||
team=deliv.team,
|
||||
type=deliv.type,
|
||||
model=deliv.model,
|
||||
tags=tag_str,
|
||||
))
|
||||
elif args.repos:
|
||||
if args.group_key and cur_group != deliv_group:
|
||||
|
@ -21,7 +21,6 @@ import os
|
||||
import os.path
|
||||
import weakref
|
||||
|
||||
from openstack_governance import governance
|
||||
import pbr.version
|
||||
|
||||
from openstack_releases import series_status
|
||||
@ -573,18 +572,6 @@ class Deliverable(object):
|
||||
return b['location']
|
||||
return None
|
||||
|
||||
@property
|
||||
def tags(self):
|
||||
if self._gov_data is None:
|
||||
Deliverable._gov_data = governance.Governance.from_remote_repo()
|
||||
try:
|
||||
team = self._gov_data.get_team(self.team)
|
||||
deliv = team.deliverables[self.name]
|
||||
except (KeyError, ValueError):
|
||||
# The deliverable is no longer listed under governance.
|
||||
return []
|
||||
return deliv.tags
|
||||
|
||||
@property
|
||||
def filename(self):
|
||||
return os.path.join(self.series, self.name + '.yaml')
|
||||
|
Loading…
Reference in New Issue
Block a user