12 Commits

Author SHA1 Message Date
Clark Boylan
180cc6aeda Be more explicit about using python3 to run tools/
We have python scripts in the tools/ dir the vast majority of which we
run regularly with python3 via our python3 default basepython in tox.
However, most of these use a `python` shebang line which can be
confusing as to whether or not these scripts run under python3 or not.

To make this more clear set them to python3. I've confirmed the scripts
running under tox are happy with these changes. For the ones that don't
run under tox I've done a quick review and they look happy too.

Change-Id: I983d23c33f7780e5708aa728c829c3262fc99ea0
2020-06-08 16:40:44 -07:00
Andreas Jaeger
18ec3df45c Add system-required back for repos
The OpenDev rename change lost the system-required template for many
repos, add it back.

Update tools/zuul-projects-checks.py to handle this.

Change-Id: I157bdbe5cefb5cbba3fcbb18e24a8bf6e762019c
2019-04-20 09:47:38 +02:00
Andreas Jaeger
7caeb60623 Check for empty project entries
Check that no entries are added to zuul/projects.yaml that only contain
the project name but do not configure any jobs. These are redundant,
let's remove them.

Change-Id: I048c9011038a38fee4694defc012762079065ce5
2018-08-04 16:31:26 +02:00
Andreas Jaeger
713ad6adfd Test for system-required
system-required template is now obsolete, check that nobody sneaks it in
again.

Change-Id: Ifa96cba6ac2d16a6a8b5f7637d706fbf824f7fb8
2018-06-28 08:39:43 +02:00
Monty Taylor
29d1de3b7d Use wildcard to apply system-required template
We require all projects to have the system-required template ... unless
we aren't gating them which is the case for ansible/ansible and
kata-containers/proxy. That's a bunch of boilerplate though, and zuul
now supports wildcard project configuration.

Make a wildcard config that applies to every project starting with
openstack that contains system-required. Remove the projects that didn't
have anything but that.

Change-Id: Ic1099625ae0500657e01e7cf48bce1273f7e0e24
2018-06-27 21:33:39 +02:00
Clark Boylan
31729a6de7 Add kata-run job to kata-containers/proxy
This is likely to not work yet, but since we aren't gating on
kata-containers/proxy we won't import job config from that repo which
would make these changes self testing. In order to get the ball moving
we need to start somewhere so start here.

This adds a vexxhost specific bionic image which we will start with
until the nodepool azure driver is tested and deployed. We should be
able to make progress on adding jobs and getting the driver going in
parallel this way.

Change-Id: Ia56c2cb3046e31e50014c8bf24342cceacb7db8a
2018-06-07 12:29:36 -07:00
Jesse Keating
32761754cd Add a zuul test to run on github3.py changes
Change-Id: I661f9a95f1691c900d536554a6c3caed4e395b9c
2018-06-01 18:37:43 +00:00
Monty Taylor
fc3505d4a3
Stop spamming ansible/ansible
Having the system-required template in place means we're running
merge-check on all ansible patches - and reporting back the results.

We need to stop that.

Change-Id: I75f6086174eb8f64d82185a153a55641425c9632
2018-01-25 12:41:13 -06:00
Andreas Jaeger
9bb214d2c9 remove non-voting from experimental jobs
Experimental jobs are always non-voting, remove the attribute, it's not
needed at all.

Update the linter to handle experimental and periodic-stable pipelines
as well.

Change-Id: Ia00fdbf998402494df2f3e208090484a7cfcfc53
2017-11-25 15:37:30 +01:00
Andreas Jaeger
4167b1a6b4 Cleanup voting entries in projects.yaml
Add a new test that checks for non-voting jobs in pipelines and informs
the user about it.

The report currently is:
Checking voting status of jobs
==============================
  Found non-voting job in post:
    project: openstack/designate
    job: openstack-tox-cover
  Found non-voting job in post:
    project: openstack/manila
    job: openstack-tox-cover
  Found non-voting job in post:
    project: openstack/murano-dashboard
    job: openstack-tox-cover
  Found non-voting job in gate:
    project: openstack/python-keystoneclient
    job: legacy-keystoneclient-dsvm-functional
  Found non-voting job in post:
    project: openstack/python-muranoclient
    job: openstack-tox-cover
  Found non-voting job in post:
    project: openstack/sahara-tests
    job: openstack-tox-cover
  (omitting one periodic job)

fix this:
* Remove the non-voting attribute from all post and periodic jobs.
* Remove non-voting job legacy-keystoneclient-dsvm-functional from gate
  pipeline.

Change-Id: I41a44902ca2f7bca1e32692efbb29d2884632ef1
2017-11-24 22:10:23 +01:00
Andreas Jaeger
27736fa52e Check release templates
The releases repo does extensive checks on the release templates used,
we cannot repeat them here to avoid tight coupling with them.

Add a minimal check that checks that only one of the many release jobs
is used.

Make overall output a bit nicer.

Change-Id: Ifc2ad1e819420b2cb41509b680cbb42e3ebf4d30
2017-11-05 07:19:11 +00:00
Andreas Jaeger
cff5df5527 Add some check for zuul.d/projects.yaml
Add framework to run checks on zuul.d/projects.yaml.

For now it checks that each project has the system-required template
and that zuul.d/projects.yaml is sorted.

Remove the file tools/zuul-projects_sorted.sh which did a sort test as
well.

Update list of repos so that they are in the order expected (bash and
python string comparison is different).

Change-Id: I29e0b7f49ec890f62d6c521e443248ab33cb819a
Depends-On: I19dbdebc1c02f0ae6ab6671b4cf3fb3c4382a820
2017-11-02 19:27:00 +01:00