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:
|
if team_deliv:
|
||||||
print('found deliverable %s' % deliv.name)
|
print('found deliverable %s' % deliv.name)
|
||||||
for rn, repo in sorted(team_deliv.repositories.items()):
|
for rn, repo in sorted(team_deliv.repositories.items()):
|
||||||
print('\nrepo %s\ntags:' % repo.name)
|
print('\nrepo %s' % repo.name)
|
||||||
for t in repo.tags:
|
|
||||||
print(' %s' % t)
|
|
||||||
print('')
|
|
||||||
if stable_branch:
|
if stable_branch:
|
||||||
print('Deliverable is on stable branch')
|
print('Deliverable is on stable branch')
|
||||||
else:
|
else:
|
||||||
|
@ -74,12 +74,6 @@ def main():
|
|||||||
default=False,
|
default=False,
|
||||||
help='Show last release date (in verbose mode)',
|
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 = parser.add_mutually_exclusive_group()
|
||||||
model.add_argument(
|
model.add_argument(
|
||||||
'--model',
|
'--model',
|
||||||
@ -106,12 +100,6 @@ def main():
|
|||||||
choices=sorted(deliverable_schema.release_types),
|
choices=sorted(deliverable_schema.release_types),
|
||||||
help='deliverable type, such as "library" or "service"',
|
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(
|
parser.add_argument(
|
||||||
'--deliverables-dir',
|
'--deliverables-dir',
|
||||||
default=openstack_releases.deliverable_dir,
|
default=openstack_releases.deliverable_dir,
|
||||||
@ -185,8 +173,6 @@ def main():
|
|||||||
verbose_template += ' {type:15}'
|
verbose_template += ' {type:15}'
|
||||||
if not args.model:
|
if not args.model:
|
||||||
verbose_template += ' {model:15}'
|
verbose_template += ' {model:15}'
|
||||||
if args.show_tags:
|
|
||||||
verbose_template += ' {tags}'
|
|
||||||
|
|
||||||
if args.forced:
|
if args.forced:
|
||||||
args.all_releases = True
|
args.all_releases = True
|
||||||
@ -250,17 +236,6 @@ def main():
|
|||||||
continue
|
continue
|
||||||
if args.missing_rc and deliv.is_released and 'rc' in deliv.latest_release:
|
if args.missing_rc and deliv.is_released and 'rc' in deliv.latest_release:
|
||||||
continue
|
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 args.missing_final and deliv.latest_release:
|
||||||
if not ('rc' in deliv.latest_release or
|
if not ('rc' in deliv.latest_release or
|
||||||
@ -321,7 +296,6 @@ def main():
|
|||||||
team=deliv.team,
|
team=deliv.team,
|
||||||
type=deliv.type,
|
type=deliv.type,
|
||||||
model=deliv.model,
|
model=deliv.model,
|
||||||
tags=tag_str,
|
|
||||||
))
|
))
|
||||||
elif args.verbose:
|
elif args.verbose:
|
||||||
print(verbose_template.format(
|
print(verbose_template.format(
|
||||||
@ -331,7 +305,6 @@ def main():
|
|||||||
team=deliv.team,
|
team=deliv.team,
|
||||||
type=deliv.type,
|
type=deliv.type,
|
||||||
model=deliv.model,
|
model=deliv.model,
|
||||||
tags=tag_str,
|
|
||||||
))
|
))
|
||||||
elif args.repos:
|
elif args.repos:
|
||||||
if args.group_key and cur_group != deliv_group:
|
if args.group_key and cur_group != deliv_group:
|
||||||
|
@ -21,7 +21,6 @@ import os
|
|||||||
import os.path
|
import os.path
|
||||||
import weakref
|
import weakref
|
||||||
|
|
||||||
from openstack_governance import governance
|
|
||||||
import pbr.version
|
import pbr.version
|
||||||
|
|
||||||
from openstack_releases import series_status
|
from openstack_releases import series_status
|
||||||
@ -573,18 +572,6 @@ class Deliverable(object):
|
|||||||
return b['location']
|
return b['location']
|
||||||
return None
|
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
|
@property
|
||||||
def filename(self):
|
def filename(self):
|
||||||
return os.path.join(self.series, self.name + '.yaml')
|
return os.path.join(self.series, self.name + '.yaml')
|
||||||
|
Loading…
Reference in New Issue
Block a user