19 Commits

Author SHA1 Message Date
Felipe Monteiro
fb08d1fd5f chore: Migrate templates from project-config to in-tree
This patch set moves remaining Zuul templates from project-config
to Deckhand to satisfy the following requirement:

https://docs.openstack.org/infra/manual/zuulv3.html#where-should-jobs-and-templates-live

Change-Id: Ia10a8c7fa34ab130a01f834bd22c947b980a22a3
Needed-By: Iaf2e0e1fd79b68ce1ea607f19cff5c40e47b05b1
2018-10-18 05:30:50 +00:00
Zuul
40301cc3ba Merge "Adding image tags on every commit" 2018-10-16 13:43:49 +00:00
Roman Gorshunov
9dcc0ae937 Adding image tags on every commit
Added container image tagging on quay.io with commit id on every merge,
when certain files but not the code are changed (docs, charts, etc.).

Previously we were building updated container images, adding tags and
uploading images onto quay.io only when the code has been changed. The
main reason for not re-building images for every single merged commit
was a long waiting time in Zuul `post` queue for a node (VM)
assignment for the job to run on.

With this change we will have image tag for every merged commit,
including documentation commits, and those tags would be added almost
immediately (within ~1 min), as job runs directly on Zuul and does not
wait in Zuul queue for a node (VM) assignment.

Change-Id: I9692947b74a16de0eb3e8100d30cd4310069abfe
2018-10-11 09:04:21 +02:00
Felipe Monteiro
38ac103f60 add python 3.6 unit test job
This is a mechanically generated patch to add a unit test job running
under Python 3.6 as part of the python3-first goal.

See the python3-first goal document for details:
https://governance.openstack.org/tc/goals/stein/python3-first.html

Change-Id: I4d08c67fb07cc4efeb48b7f81db9f5a01e444575
Story: #2002586
2018-09-12 10:55:34 -06:00
Felipe Monteiro
b9aafceda6 Correct docs-on-readthedocs to work with RTD publish
This patch set follows the guide [0] to leverage
the Zuul template [1] for correctly publishing RTD
doc changes via openstackci. Accordingly, all the
old code for doing this has been removed.

[0] http://lists.openstack.org/pipermail/openstack-dev/2018-August/132836.html
[1] https://docs.openstack.org/infra/openstack-zuul-jobs/project-templates.html#project_template-docs-on-readthedocs

Change-Id: I4c1f279d2dfada0396b99c3834294a41619ba474
2018-09-09 12:09:38 -06:00
Felipe Monteiro
f962ffa0c0 trivial: Use airship-deckhand-single-node for nodeset in zuul.yaml
This PS simply uses airship-deckhand-single-node instead of the
openstack-helm variety for the nodeset in .zuul.yaml for
consistency.

Change-Id: I0a881c89752dd24a48e918a0ffb4637d4a5e6483
2018-07-11 09:50:38 -04:00
Felipe Monteiro
70e4f24732 Combine integration and airship-deckhand-ubuntu jobs together
To cut down on Zuul nodes, this patchset combines the integration
docker job with the airship-deckhand-ubuntu job together, because
the former essentially subsumes the latter: integration docker
job sets up the host, deploys docker, deploys k8s, generates
the Deckhand chart using Helm, builds the Deckhand image using
Docker, deploys Deckhand, PostgreSQL and other Keystone/Barbican
dependencies using OSH, then finally runs integration tests
against the deployment.

This, then, validates everything that airship-deckhand-ubuntu
did deployment-wise.

Also, this patchset switches the 2 uwsgi jobs over to voting: false
as the Docker jobs are already voting.

Change-Id: I10b15f5a45a32413dc904ee32bdbbb4e9cdf98a2
2018-07-03 02:34:13 -04:00
Felipe Monteiro
dec159e4f8 Add integration tests job to .zuul.yaml
This patchset adds integration tests job to .zuul.yaml so that
they can be run against Zuul per each commit.

The number of jobs that are executed in the gate pipeline
have been pruned because only *-docker jobs are of critical
importance. We can safely skip over *-uwsgi jobs in order
to save on Zuul resources.

Change-Id: I98ce49163b2db64cbdf18fe00b82c99fecd4139d
2018-07-03 02:07:19 +00:00
Felipe Monteiro
f50abff695 Add a readthedocs publish trigger to .zuul.yaml
This patch set adds a trigger on post to trigger a RTD job to start
building the documentation post-merge.

Change-Id: Icd0ad1670b0d239e601a4456f84cc46e2f28aaf2
2018-06-21 03:56:05 +01:00
Tin Lam
d0f1f62b83 chore(gate): consolidate zuul job
Moving the whitespace linting job as part of PEP8 job to reduce the need to
create a VM just to find whitespaces in none *.py files. Python files'
whitespace violation is covered as part of PEP8 job.

Change-Id: I3bc6047c9ab65e8f55f91a949a6c05ef4e38ea16
Signed-off-by: Tin Lam <tin@irrational.io>
2018-06-16 02:52:52 -05:00
Felipe Monteiro
8c546fbab6 Add irrelevant-files to all appropriate .zuul.yaml jobs
This patchset either expands on existing entries in irrelevant-files
or adds irrelevant-files to various jobs to save on resources
in Zuul.

Change-Id: I97c58069dce21a368d4267f15cd656c8d858ecc3
2018-06-11 10:06:00 -04:00
Scott Hussey
c0ea5606d1 (zuul) Docker image jobs
- Gate/check jobs to build docker images
- Post jobs to build and publish docker images

Change-Id: Ia1c19689ed5f6c4fee4277f66b512205306ebffa
2018-06-09 00:25:15 +00:00
Felipe Monteiro
fa0e26938b Add docs-on-readthedocs to .zuul.yaml templates
This patchset adds docs-on-readthedocs openstack-infra template
to Deckhand's .zuul.yaml templates and makes some documentation
changes to test the template.

.. https://github.com/openstack-infra/zuul-jobs/blob/master/playbooks/python/readthedocs.yaml

Change-Id: I000fc1e3be9dd4cf333fa28d7739747eb9003adc
2018-06-06 03:29:08 +00:00
Felipe Monteiro
0118874a4a Add py27/35 postgresql unit tests to .zuul.yaml
This patchset adds py27/35 postgresql unit tests to .zuul.yaml;
they use the pre-defined openstack-tox-py27|35 template defined
in project-config as the parent.

Change-Id: I572764417d98b6ab902fe2329cfb3b396ac38966
2018-06-01 23:01:58 -04:00
Felipe Monteiro
a552bf2a0f Zuul: Integration tests via uwsgi.
This adds a uwsgi integration test gate to .zuul.yaml so that
deploying Deckhand via uwsgi (in a more standalone fashion,
sans containerization) works as intended.

Change-Id: I933f4781cd72e2df309efcb0515441db7ab96895
2018-05-31 17:31:50 +00:00
Felipe Monteiro
3d53d53712 Add uwsgi functional test check to .zuul.yaml
This adds a uwsgi functional test check to .zuul.yaml so that
deploying Deckhand via uwsgi (in a more standalone fashion,
sans containerization) works as intended.

Change-Id: I931ab4d11719daca7665d3a25b00e353c707237e
2018-05-29 20:25:15 +00:00
Felipe Monteiro
119080b597 Use Ansible playbooks for functional testing gating
This patchset converts much of the previous logic in
functional-tests.sh into Ansible playbooks to be executed
by Zuul. This mainly includes all the Docker-related
deployment logic.

The functional-tests.sh script has been slimmed down to
just work with uwsgi so that a standalone functional
test deployment can be performed relatively easily,
mainly by developers.

Finally, py27 support for the gate has been dropped
as the Dockerfile in this project currently assumes
python3 for installing requirements and so forth,
leading to requirements issues blocking the gate.

Change-Id: I903a2845390061641d292fb0c016ba6a53723fc9
2018-05-29 15:17:28 +00:00
Felipe Monteiro
1cbe993b6b Add functional tests to .zuul.yaml
This patchset adds functional tests to .zuul.yaml. Additionally
it adds a functional-py35 job as well which will also be kicked
off via Zuul.

Change-Id: Ic2d1db4d3cd65c4d93c3a6f04e6efeeba9755f07
2018-05-19 05:22:24 +00:00
Pete Birley
7a32dc92e0 Zuul: Initial Airship-Deckhand checks
This PS adds the skeleton for a set of zuul checks and gates for
Airship, using the framework from OpenStack-Helm.

Change-Id: If5b6550c6f0d9d1f96c4822e72d7d519dfca3c79
Signed-off-by: Pete Birley <pete@port.direct>
2018-05-17 12:36:19 -05:00