2373 Commits

Author SHA1 Message Date
Monty Taylor
98c073171b
Move node debug information into a directory
Putting it all directly into logs is a bit noisy.

Depends-On: I9f03ea408085e3da3ddeb231264e45b1c1fb6896
Change-Id: I82289ec0b66502995278eb897257f345b6c44878
2017-07-09 11:26:50 -05:00
Monty Taylor
869d7f5744
Fail if traceroute doesn't work
If neither traceroute works, this is a host with broken networking and
doing anything else is a waste of time.

Change-Id: I042357c2d55596296ce2d570aa54433195a31b82
2017-07-09 11:26:49 -05:00
Monty Taylor
8b86f76ffd
Clean up debug-ansible role
Copy in the openstack info, generalize it, and get it to stop
spamming stdout. We'll use a python module to do this so that we can
control what's going on.

Change-Id: Iec3bcec75f28451284c3c7d94593bfca3830bc8b
2017-07-09 11:25:47 -05:00
Monty Taylor
242f0bfff4
Rework bindep role to be more ansible and less shell
There's still a chunk of shell, because it's honestly better than doing
the equiv with package manager modules would be.

Also, make zuul_work_dir a parameter we pass in from the playbook. The
bindep role itself is otherwise totally non-zuul specific.

Change-Id: I95e78dd25a1a54b3ce5f2ddb18228a183d3c06ad
2017-07-09 09:27:09 -05:00
Monty Taylor
1ba3e583f3
Make sure bindep is on the node
OpenStack nodes pre-install bindep, but other nodes may not. Check to
see if bindep is on the node. If so, use it. If not, make a temp dir
that we remove at the end of the role and install bindep into a virtualenv
in that tempdir.

Change-Id: I3f34c178254add2143dc7f1b9758844480d7d914
2017-07-09 07:46:07 -05:00
Monty Taylor
ab6e3f5fd9
Add a job that runs zuul's py35 unit tests
Rather than always making a depends-on patch to verify things work -
make a job that runs on changes to zuul-jobs that runs zuul's unit
tests.

Change-Id: I89e168cd08c0654628a205b2a407dda19dd57c9c
2017-07-07 17:13:32 -05:00
Monty Taylor
651c735a33
Delete run-bindep role
It's a leftover duplicate. The role is called bindep now.

Change-Id: I4c9f3dd74dc8a16ec421aaba468269ffea00f28c
2017-07-07 17:13:00 -05:00
Monty Taylor
055de47b4e
Add zuul_work_dir default to one-project roles
We'd like to be able to make some jobs that run tox on other projects
for ease of testing. This should allow us to do that.

Change-Id: I774a76eaaea16d8ea218b439a099b5c9335c2fc5
2017-07-07 17:04:46 -05:00
Monty Taylor
3dc03ee0d6
Rename zuul-revoke-sudo to revoke-sudo
Depends-On: If639d35ded59621c38d0ecb16344817fd176c31c
Change-Id: I51454b86b5d8b6c3c26615437a3b7ce386134435
2017-07-06 19:14:53 -05:00
Monty Taylor
ffc3b8d8c0
Remove the transitionary zuul-tox jobs
All the consumption is of the tox jobs now.

Change-Id: I97c18936fc014283cdf5b57bece49bf92153ff13
Depends-On: I3fc7f89f4939fbcf82f329441d4b4693b80f6bc4
Depends-On: Ia31e642352c61dd4091570b54f566e02b6399800
2017-07-06 18:51:09 -05:00
Monty Taylor
3c561803bd
Duplicate the zuul-tox jobs to just be named tox
We need to add them with the new name so that we can switch the zuul
config to consume them.

Change-Id: I3fc7f89f4939fbcf82f329441d4b4693b80f6bc4
Depends-On: I828e38d3efd4817146cc6b1fefaa7b5bab71fdf7
2017-07-06 18:47:16 -05:00
Monty Taylor
bd73d5684c
Remove the old tox-linter job
The new one is working fine.

Change-Id: I19fd6cb20b09b931873a0d9c85ebefabbf2c8373
2017-07-06 18:47:16 -05:00
Monty Taylor
49fef80594
Rename .zuul.yaml to zuul.yaml
The main purpose of this repo is defining jobs, so making the zuul.yaml
file hidden isn't necessary.

Change-Id: Iba81139240267fd40b2992f9ece8b2a33618e1fe
2017-07-06 11:19:37 -05:00
Monty Taylor
4b9fc09a1c
Port in tox jobs from openstack-zuul-jobs
The original idea was that we'd have a "python27" job. But it turns out
that "python27" isn't actually as universal as you might think.
"tox-py27" on the other hand is a thing that can and should always work
for people who want to run tox with the py27 env.

Port in the jobs we had in openstack-zuul-jobs.

Also, copy in the text of the old shell scripts so that we can iterate on
them and make them better piecemeal.

These are named zuul-tox not tox because we already have tox jobs
defined elsewhere. We'll need to do the naming dance while we work on
them.

Change-Id: I813f3f2ae138c07918556bc81655518023527131
2017-07-06 11:18:47 -05:00
Monty Taylor
10a959d5e6
Add run-bindep role and add it to unittests pre
Before we revoke sudo, we need to run bindep in the project. Add
the run-bindep role.

Copy the content of the jenkins script for now. This way we can iterate
on the content in smaller chunks.

Change-Id: Ib893b06d05039af078e6eea22e882f6f1efae226
2017-06-27 15:32:36 -05:00
James E. Blair
59735b34fc Enhance sphinx plugin
Enhances support for auto documenting jobs, as well as adding
support for roles.

Change-Id: Id018d8d546884299a226e59d2afaf682becb2736
2017-06-12 10:42:15 -07:00
James E. Blair
639d10d5c4 Add Sphinx module for Zuul jobs
This adds a Sphinx module that includes the 'description' field of
a zuul job into the documentation.

Change-Id: Iaaf5d9c1013d6c1e788046db9dbf1278d786c01e
2017-06-09 09:03:15 -07:00
James E. Blair
aaffa55dd1 Add documentation to jobs
Change-Id: Ie2b130af6ce5bb336d829fc2ec9458effc81f844
Depends-On: Ida98e767db561dd77090bc5710026349342d58b2
2017-06-08 16:48:22 -07:00
James E. Blair
0ba6b45125 Add python unit test jobs
These don't do much yet except prep.

Change-Id: I350355dda687edf8cc839f949993c1d7ab8baf96
2017-06-08 16:39:06 -07:00
James E. Blair
7e0d13d1cb Add extra-test-setup role
Change-Id: Icad9896e524c69e92e9ceabd86c6ca28360887fa
Co-Authored-By: Paul Belanger <pabelanger@redhat.com>
2017-06-08 16:14:32 -07:00
James E. Blair
46684654cb Add revoke-sudo role
Also add a .gitignore and establish a documentation pattern.

Change-Id: Ib447ac13d03de4ab61171d50b19117ff654ad329
Co-Authored-By: Paul Belanger <pabelanger@redhat.com>
2017-06-08 15:19:43 -07:00
James E. Blair
e5ebc400cb Add initial license, docs, and other config
Change-Id: Ie016aa9a3494bea1e37b7eee4a970d5772317d47
2017-06-08 14:01:21 -07:00
OpenStack Project Creator
decb0e23fb Added .gitreview 2017-05-24 19:48:52 +00:00