21 Commits

Author SHA1 Message Date
Andreas Jaeger
c28da01f91 project-config: Merge lint jobs (2/2)
Since both pep8 and bashate are voting, we can merge the two lint
targets into the "common" pep8 lint target. There's no need for a
separate bashate run.

This change is the second part for this.
Since the jobs are changed, we can now remove the obsolete bashate
tox.ini target.

Change-Id: I572ba3fe8b3a9a05f5239a858d2f701bfd8f684d
2015-04-23 20:15:28 +02:00
Jeremy Stanley
4d17d13edd Add an index.html for docs.o.o/infra
This is a partial cargo-culting of the index job and associated
files from the specs.o.o site, to generate a simple top-level index
page for the http://docs.openstack.org/infra/ tree.

Change-Id: Idb5a8dba58a53c7c8ea1de69e9a4d9b5ef410c78
2015-04-23 16:11:24 +00: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
Andreas Jaeger
71f3989ce4 project-config: Merge lint jobs (1/2)
This is the first part of merging pep and bashate jobs: Remove
bashate job from project-config queues.

Since both pep8 and bashate are voting, we can merge the two lint
targets into the "common" pep8 lint target. There's no need for a
separate bashate run.

The second part will remove the bashate job from tox.ini. This cannot
be done as part of this change since it would break gating.

Change-Id: I9522b2b7478590bf41dc1dab763de01d38b70404
2015-03-15 19:22:25 +01:00
Andreas Jaeger
f8788e2e27 Ensure that gerritbot channels are in accessbot
Add new test that checks that channels mentioned in gerritbot are also
in accessbot.

Enhance the irc tox target so that it runs the checks, and update Zuul
so that the job is run for changes to gerritbot.

Add channels openstack-mistral and puppet-openstack to accessbot,
openstackinfra now has access to the channels. These two channels are
already in gerritbot.

Make check_irc_access.py script executable.

Change-Id: Ic68ba9a1c60854e68817fcadb1a5df2144944af7
2015-03-06 12:51:24 +01:00
Jenkins
d811f94974 Merge "Generate specs.o.o root page from template" 2015-01-20 19:12:35 +00:00
Doug Hellmann
b332c2a776 Generate specs.o.o root page from template
Use a YAML file listing the projects to generate the specs.openstack.org
root page and an OPML file for all of the available RSS feeds.

These changes are based on the work of Maish Saidel-Keesing
<maishsk@gmail.com> in https://review.openstack.org/#/c/140041/

Change-Id: I828d65f10fb7608b59e3561cedc9553d4d96ee75
2014-12-18 16:06:11 -05:00
armando-migliaccio
e6573ea752 Add test for validating certain gerrit ACL rules
This patch adds a check for Gerrit ACL configs. In this initial
version, the test being added checks that the config defines
at least one team that acts as a core/admin one.

The current check is intentially pretty loose to ensure some
flexibility.

Currently the check applies to stackforge and openstack-dev only.

Change-Id: I2b04f2d94130699d6fd1c16a9b00b9c81d1ba07d
2014-12-15 23:03:03 -08:00
Jenkins
c269a67f35 Merge "Check for valid entries in gerrit/projects.yaml" 2014-12-04 19:45:25 +00: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
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
Doug Hellmann
3c2ca5a922 Add jenkins-project to the default env list
Add jenkins-project to the list of envs used when "tox" is run locally
without arguments. This should make it easier for someone working on a
change to test locally before submitting the patch.

Change-Id: I5f2732daa2509ff378429959bd15d0f2f7f98692
2014-10-20 19:32:53 +00:00
Andreas Jaeger
9836ea5357 Add check for ordering of jenkins/jobs/projects.yaml
Example output of test:
$ tools/jenkins-projects-checks.py
Checking section 'OpenStack server projects'
Checking section 'OpenStack client projects'
Checking section 'oslo libraries'
Checking section 'Other OpenStack projects'
  Wrong alphabetical order: tempest, qa-specs
Checking section 'OpenStack API projects'
Checking section 'OpenStack documentation projects'
Checking section 'OpenStack development projects'
Checking section 'OpenStack infrastructure projects'
Checking section 'Stackforge projects'
Found errors in jenkins/jobs/projects.yaml!

This patch fixes the order so that it passes.
It also creates a new job to test this.

Change-Id: I36fd522261363494f07b57e40f0d9b943cf08841
2014-10-06 22:17:26 +02:00
Jenkins
383ce82680 Merge "Whitelist commands in tox.ini" 2014-10-01 18:38:30 +00:00
Jenkins
fb22ef61c7 Merge "Clean up bashate failures" 2014-10-01 17:12:55 +00:00
K Jonathan Harker
2f03cf35e5 Clean up bashate failures
Also create tools/run-bashate.sh to wrap a find command to search for
files to run bashate on, and use it in tox.

Change-Id: I5ab07425f566a556f158a4b76b00aa35f9fb4385
2014-09-30 12:39:48 -07: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
Andreas Jaeger
f4a284d3e8 Use tox -e zuul for layout test
Adjust tox environment, the check_projects_yaml_alphabetized.sh script
only works with gerrit/projects.yaml but not with layout.yaml, so remove
the call.

Change the job to use tox -e zuul.

Change-Id: I70d918ec1de94c6ec9aa0c2c6647aa8c791df303
2014-09-30 20:32:44 +02:00
Andreas Jaeger
e382bae170 Whitelist commands in tox.ini
Fix these warnings when invoking "tox -e jjb":
WARNING:test command found but not installed in testenv
  cmd: /usr/bin/rm
  env:
/home/aj/Software/vcs/OpenStack/openstack-infra/project-config/.tox/jjb
Maybe forgot to specify a dependency?
jjb runtests: commands[1] | mkdir -p
/home/aj/Software/vcs/OpenStack/openstack-infra/project-config/.tox/jjb/tmp
WARNING:test command found but not installed in testenv
  cmd: /usr/bin/mkdir
  env:
/home/aj/Software/vcs/OpenStack/openstack-infra/project-config/.tox/jjb
Maybe forgot to specify a dependency?

Change-Id: If1b56882d3b608450d2ab5fbf0af5cbe920471e8
2014-09-29 20:00:46 +02:00
Doug Hellmann
ac5bd4fd63 Fix up tests after repo reorganization
Fix the default tox configuration so it works properly if a developer
just runs "tox" on their local system by removing environments from the
default list that do not exist. Add the jjb environment to the list.

Add the missing argument to check_projects_yaml_alphabetized.sh and
remove the unused arguments from run-layout.sh.

Exclude the .test directory created by the zuul test environment from
the files checked by flake8.

Change-Id: I72cb9aa3908d16f9e5b6d6445b07819563ce9104
2014-09-29 10:44:17 -04:00
James E. Blair
312e958fb1 Fix test jobs
Make the necessary changes for the jobs ported over from infra/config
to work in this repo.

Also, make the irc access job voting.

Add a .gitignore file.

Change-Id: If3b6c214881205a25e8148c23c3411338b66ef90
2014-09-25 16:40:07 +00:00