From 822e7d695a57b2f0d7beaa92d84b543456031f37 Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Fri, 8 Sep 2017 18:17:06 +0200 Subject: [PATCH] [www] Handle pynotedb and subunitsql These infra repos are publishing at the normal location (/REPO) and not under /infra/REPO. Add them to our indices and avoid the redirection for infra repos. Change-Id: Ib2fa39725746c1b15bee1e2b57c58ff133e4187d --- tools/www-generator.py | 13 ++++++++++++- www/project-data/latest.yaml | 8 ++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/tools/www-generator.py b/tools/www-generator.py index b1b8b88549..96453268ba 100755 --- a/tools/www-generator.py +++ b/tools/www-generator.py @@ -315,6 +315,13 @@ _IGNORED_REPOS = [ 'openstack-infra/releasestatus', ] +# List of infra repos that publish to the normal location (/REPO/) and +# not to /infra/REPO. +_INFRA_REPOS_EXCEPTION = [ + 'openstack-infra/pynotedb', + 'openstack-infra/subunit2sql', +] + def _get_official_repos(): """Return a tuple containing lists of all official repos. @@ -341,7 +348,11 @@ def _get_official_repos(): # be generated. continue seen_repos.add(repo) - if repo not in _IGNORED_REPOS: + # Overwrite infra list for a few repositories + if repo in _INFRA_REPOS_EXCEPTION: + regular_repos.append({'name': repo, + 'base': repo.rsplit('/')[-1]}) + elif repo not in _IGNORED_REPOS: add({'name': repo, 'base': repo.rsplit('/')[-1]}) return (regular_repos, infra_repos) diff --git a/www/project-data/latest.yaml b/www/project-data/latest.yaml index 23be45a6c8..510051e2bf 100644 --- a/www/project-data/latest.yaml +++ b/www/project-data/latest.yaml @@ -858,6 +858,14 @@ service: Bridge between container framework and OpenStack abstractions type: service +- name: pynotedb + service: Python parser for notedb + type: tool + +- name: subunit2sql + service: Tooling for converting subunit streams into a SQL DB + type: tool + # Projects that do not appear in the service-types-authority list: # - kuryr # - dragonflow