6 Commits

Author SHA1 Message Date
Ian Wienand
1942b394d6 Add a simple description check for gerrit/projects.yaml
Add a very simple check for some common typos that might appear in the
descriptions.

Correct existing typos as found by the check

Change-Id: I6edd833de8544e44750c3a3fb49a065f99a18499
2015-08-27 12:38:52 +10:00
K Jonathan Harker
344bdf1faf Fix logic error in gate-project-config-projects-yaml
Previously labels were only being checked for validity if an upstream
was given due to a premature 'continue' if no upstream is given before
checking labels.

Change-Id: I7dd564d59a30ca14bbad4044a985ba08fbe55ca5
2015-06-19 13:37:03 -07:00
Victor Stinner
ceee9c0f1a Fix Python 3 issues
* Fix print syntax in check_valid_gerrit_projects.py
* tox.ini: jenkins-project env works also on Python 3, no need to force
  Python 2.7

Change-Id: I3c643470c6b5db666aeab208c615382719f8768d
2015-04-10 01:29:25 +02:00
Steve Kowalik
c1bfa625fa Add a lot of missing descriptions
There are a lot of missing descriptions in Gerrit's project list. Add
a bunch of them, which are hopefully correct. *-attic has been ignored
because 'meh'. Fix check_valid_gerrit_projects to also enforce
descriptions for more groups.

Drive-by some description changes.

Change-Id: Ib77dc40842b948c86a6bb0e8b52358e3c94cd0ce
2015-02-21 06:32:04 +11:00
Andreas Jaeger
dad4dd9a2e Check that descriptions exists in gerrit/projects.yaml
Make descriptions mandatory for stackforge and
openstack-dev projects - and add
missing descriptions for all projects in these namespaces
so that the check passes.

This check can be enhanced iteratively for further namespaces.

Change-Id: I263a58484f6399c74328e870ec1a77c041afa7cb
2014-12-03 21:37:06 +01:00
Andreas Jaeger
6ee2f2234f Check for valid entries in gerrit/projects.yaml
Rename check_upstream_url_scheme.py to check_valid_gerrit_projects.py
and extend the check so that:
* It shows all errors, not only the first one
* It checks that the keywords are valid

This was triggered by seen twice in a week the keyword "description"
misspelled.

Script now outputs in error case:
Error: Upstream URLs should use a scheme in ['https://', 'http://', 'git://'],
 found git@://github.com/emonty/cookiecutter-openstack.git in
 openstack-dev/cookiecutter
Error: Unknown keyword 'decription' in project stackforge/ec2-driver
Found 2 error(s) in /tmp/projects.yaml

Also add the usual license header.

Change-Id: I334dcadc6fd4472fb28d379aec317c1a16dee2e2
2014-12-03 15:40:40 +01:00