13 Commits

Author SHA1 Message Date
Andreas Jaeger
71aa9e00aa Fix check for alphabetical sorting in layout.yaml
Previously z/tempest was in the middle of the file and needed special
treatment for sorting. Nowadays it's at the end and thus no special
treatment is needed, remove it.

With this change additions to the end of the file will now be flagged.

Change-Id: I337017b4a17e8aa086d658649613ddc61212adc8
2015-12-26 09:26:30 +00:00
Ian Wienand
6ee8bfcf1d Run regex match over jobs in memory
The jobs file isn't that big, so it makes sense to read it in once and
use it, rather than re-read.  Saves a very small amount of time in the
test.

Change-Id: Id20a2d6926a250f9117108fe32b04fc70b7bfe28
2015-12-16 09:39:29 +00:00
Andreas Jaeger
4b7fd514d8 Test that job regexes in zuul/layout match
Enhance our zuul/layout.yaml checks to check that the names in the jobs
section actually match an existing job. A mismatch implies that the
pattern does not work as intented.

Add note to run-layout.sh that the job files is used elsewhere as well,
so that it does not get deleted by accident.

Change-Id: I5c4cd97829acf90bb8f72dde32e5fe8063933cdb
2015-12-16 10:38:49 +01:00
Andreas Jaeger
ba7ad70283 Sort zuul/layout.yaml alphabetical
Sort zuul/layout.yaml project entries in alphabetical
order by "namespace/project".

Reenable check for sorted order of layout.yaml that has been disabled
during mass project rename.

Change-Id: I3749f88edd1984286f9cfc840bfe37722b2f28be
2015-10-18 19:13:54 +02:00
Clint Adams
d0fc16cd6b Disable alphabetical ordering check for zuul/layout.yaml
In order to facilitate the mass stackforge renames, disable sorting
check.

Once the renames have been completed successfully and the sections
have been reordered, this check should be re-enabled.

Change-Id: I460081a42c42d0dfd2ffd8af7281018128f264fe
2015-09-30 17:34:48 -04:00
Ian Wienand
3e78b33c31 Check indent in zuul/layout.yaml
I noticed this when looking at
Ieea93753e352ccb09f65aac12c8c81c1d96593ac (but the misalignment there
seems to have been subsequently fixed).

Anyway, this is just a quick port of
I92ffda01a2e766954c18fe795862186863f8182f and fixes two existing
cases.

Change-Id: Ia3e654ed32e1edb9d841984df427c764d220b908
2015-09-25 13:06:06 +10:00
Doug Hellmann
4c6e428257 Fix layout-checks.py to work in virtualenv
Fix the python interpreter used by layout-checks.py so that the "tox -e
zuul" target works correctly on a local system.

Add the PyYAML dependency needed by layout-checks.py to the tox
configuration for the zuul target.

Add the zuul target to the default list for tox.

Change-Id: Ic4db9fc3bb236d36365abfe966eb9e7769896011
2014-12-03 15:05:21 -05:00
Andreas Jaeger
cf8f2332ff Improve tools/layout-checks.py
Instead of hard-coding first entries, use the section headers directly.

Make the output a bit nicer.

Change-Id: I0a5f947d42ada5f010853de04f3ca651039eeb60
2014-10-04 16:40:03 +02:00
Andreas Jaeger
5492bc99a7 Sort and check layout.yaml sections
Mark the beginning of sections more prominently.
Sort sections in layout.yaml.
Enhance test to check for sorted sections.
Add new section for oslo projects.

Change-Id: Id36e55a2996604e679a39c46574e978fb82de11c
2014-10-02 21:29:00 +02:00
Jenkins
acb67c5622 Merge "Sort openstack-infra/-dev entries in layout.yaml" 2014-10-02 16:36:54 +00:00
Andreas Jaeger
8305dd243c Sort openstack-infra/-dev entries in layout.yaml
Sort and check for sorting of openstack-infra and
openstack-dev entries in zuul/layout.yaml.

Change-Id: I643aecb6052f14c2960a3077fbf391e3a82947c9
2014-10-01 20:03:05 +02:00
Andreas Jaeger
940ae9b45e Add merge-check to pylockfile, test for merge-check
pylockfile has been missing the merge-check job, add it.

Enable the merge check as part of layout checks.

Change-Id: I7b4d5fdf99ae34af3b22645f120e3182e5ccaa31
2014-09-30 21:23:25 +02:00
Andreas Jaeger
c6b1ffd04f Add more checks for zuul/layout.yaml
Check that each project (with exception of z/tempest) has a merge-check
template.
Check projects - so far stackforge only - for alphabetical order.

The merge template check is taken from a test that Jeremy shared.

Change-Id: I2bc457ddfe0eca787bb88ceeb919f89d491978d7
Co-Authored-By: Jeremy Stanley <fungi@yuggoth.org>
2014-09-30 18:46:56 +00:00