diff options
| author | Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org> | 2020-07-01 19:50:22 +0200 |
|---|---|---|
| committer | Radosław Piliszek <radoslaw.piliszek@gmail.com> | 2020-08-28 15:00:55 +0000 |
| commit | 2cfc25e53a8bb6cb21bee24051c65d36015c6c09 (patch) | |
| tree | b135c8034ddf572eac44ef45097c7b9f13fb5790 /tools/version-check.py | |
| parent | b4dde581c528c2072e408768601b75a97551e5a8 (diff) | |
| download | kolla-2cfc25e53a8bb6cb21bee24051c65d36015c6c09.tar.gz kolla-2cfc25e53a8bb6cb21bee24051c65d36015c6c09.zip | |
version-check: handle using of stable branch tarballs
For Ussuri we decided to follow stable branch tarballs instead of using
release ones. This gives us all fixes just as they land in a repository.
Change-Id: Iff600179630484228fb359417687e3d2a1a8b9f9
Diffstat (limited to 'tools/version-check.py')
| -rwxr-xr-x | tools/version-check.py | 51 |
1 files changed, 50 insertions, 1 deletions
diff --git a/tools/version-check.py b/tools/version-check.py index 522ef1a31..d8b654dee 100755 --- a/tools/version-check.py +++ b/tools/version-check.py @@ -49,6 +49,48 @@ SKIP_PROJECTS = { 'rally': 'Rally is not managed by openstack/releases project', } +# NOTE(hrw): those projects we take as they are they may have just one old +# release or no stable branch tarballs +ALWAYS_USE_VERSION_PROJECTS = { + 'barbican_tempest_plugin', + 'blazar_tempest_plugin', + 'cinder-tempest-plugin', + 'congress-tempest-plugin', + 'ec2api-tempest-plugin', + 'heat-tempest-plugin', + 'ironic-tempest-plugin', + 'keystone_tempest_plugin', + 'magnum_tempest_plugin', + 'manila-tempest-plugin', + 'mistral_tempest_tests', + 'monasca-tempest-plugin', + 'murano-tempest-plugin', + 'neutron-tempest-plugin', + 'python-tempestconf', + 'telemetry_tempest_plugin', + 'patrole', + 'trove_tempest_plugin', + 'vitrage-tempest-plugin', + 'watcher-tempest-plugin', + 'zaqar_tempest_plugin', + 'nova-mksproxy', + 'novajoin', + 'tempest', + 'vmtp', +} + +# NOTE(hrw): those projects have different names for release tarballs (first +# column) and other for branch tarballs +RENAME_PROJECTS = { + 'kuryr-lib': 'kuryr', + 'openstack-congress': 'congress', + 'openstack-cyborg': 'cyborg', + 'openstack-heat': 'heat', + 'openstack-placement': 'placement', + 'python-watcher': 'watcher', + 'requirements-stable': 'requirements', +} + RE_DEFAULT_BRANCH = re.compile('^defaultbranch=stable/(.*)') RE_FILENAME = re.compile('(?P<project_name>.*)-(?P<tag>[^-]*).tar.gz') @@ -127,6 +169,9 @@ def main(): parser.add_argument('--check', '-c', default=False, action='store_true', help='Run without update config.py file') + parser.add_argument('--versioned-releases', '-v', + default=False, action='store_true', + help='Use versioned releases tarballs') conf = parser.parse_args(sys.argv[1:]) if not conf.openstack_release: @@ -161,10 +206,14 @@ def main(): else: raise ValueError('Can not parse "%s"' % filename) - if project_name == "requirements": + if (project_name == "requirements" or + (not conf.versioned_releases and + project_name not in ALWAYS_USE_VERSION_PROJECTS)): # Use the stable branch for requirements. latest_tag = "stable-{}".format(conf.openstack_release) tarball_base = project_name + if project_name in RENAME_PROJECTS: + tarball_base = RENAME_PROJECTS[project_name] elif project_name in projects: latest_tag = projects[project_name]['latest_version'] tarball_base = projects[project_name]['tarball_base'] |
