We have too many jobs to put them all in one file; split them up
in files which mirror the documentation.
Change-Id: Ic44f18085ccf0b561a0f4aa0a4274fe8eb99402c
This adds job definition for running Ansible Molecule testing framework
from inside tox.
This would ease use of molecule testing for any projects that
want to use by avoiding the need to duplicate the setup code across
each repository.
It uses tox `molecule` environment.
Change-Id: I8df4df5448a78b9e21f45fac12d534eb84b29d3d
Needed-By: https://review.opendev.org/#/c/663599/
Needed-By: https://review.opendev.org/#/c/651772/
Needed-By: https://review.opendev.org/#/c/663336/
When producing javascript content tarballs, return artifact records
to Zuul.
Add a new job, build-javascript-content-tarball, which includes the
role to fetch javascript content tarballs.
Change-Id: Ia247054d0523b81916815151fd57138469f634e0
If we're going to do this, we need to have a flag day where we
tell everyone to stop using git.zuul-ci.org.
Change-Id: Ieee9641537d23d538970ee15108a7c421d8c6c81
There was a request in If3dc95d1348553e5b43683f6a36d324fb978fbed to
make the role more generic so it could handle different layouts of
zone.db files. Make it so the role can take a list of tuples (domain,
path/to/zone.db) so that we can handle any layouts, and modify the
default searching to build this from the source directory.
Reviews in https://review.opendev.org/660888 suggested making this
defined as a generic job, so a validate-zone-db job is added.
Change-Id: I56cbc027f63787f90eef283eeb2fbb81486dcaf5
This allows to use lower-constraints.txt more easily as input
when everyone has switched over.
Depends-On: https://review.opendev.org/660823
Change-Id: I3f957187ed4f29fcf88db99cb79fb33b21a8dd8d
This is helpful for people that would like to use the py37 target for
tox.
Change-Id: I03eb4a8164a8e6fe5f75bd5cacc7c95f5428adca
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
If we attempt to push a mirror to a host we've never connected to
before, it won't be in the SSH known hosts and the mirror will fail.
This makes a new host_key parameter required and the role takes care
of setting it up in the known_hosts for the duration of the job.
Change-Id: I4bd40a289003fe3e88c9af4029576236c064fc3d
Depends-On: https://review.openstack.org/#/c/649183/
If no binary deps are required by a tox run then
give the ability to not run the bindep role.
default is: true
Change-Id: Iacdf54e74126305199c17a932c001bc12c484759
When these were copied in from system-config, the paths to the
upload and promote playbooks weren't updated.
Change-Id: I9da5d7dfb980b2b7690652ee186723ee9ab64cd5
These are generic docker image build and upload jobs which use
the recently added roles of the same names. With the new
pass-to-parent feature, child jobs can add their own credentials
to these jobs.
Change-Id: I669a9e6616a031837adab8c5c5806431fcca2150
This is a follow up to the previous commit, here we are adding a job
called dco-license which only runs on localhost (zuul-executor).
Change-Id: Id624160930b80b5b37a8e05b000106c16fef64e0
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
The build-sphinx job uses compile and test bindep profiles, update tox-docs to use the same.
tox-docs used to run tools/test_setup due to inheriting from unittests,
remove that inheritance since we do not need it.
Update role bindep to have a default for zuul_work_dir. If this role is
used without unittests, zuul_work_dir is unset.
Change-Id: I5df8b9cd90bf5e4f4c84c7b4514fb9c575898e31
This job is no longer useful as RTD requires an authenticated
end-point now. This has been replaced by the trigger-readthedocs role
in I651efdb093df85cea3ab2eaf1a5a9256c87a2ca4. The dependent change
removes this job from the docs-on-readthedocs template, so it is now
unused.
Change-Id: I794ab68967e8d31d5522acc7484a11d3ebc88ee9
Depends-On: https://review.openstack.org/583834
Ubuntu bionic (18.04) provides python3.6, lets write a tox job to also
support it.
Change-Id: I7104a2bdc1e568bf83c618bc2127f8622e6ceba9
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
The variable is defined by the ensure-sphinx role so it can be used with
the job.
Change-Id: Ieb6a96f84e64f8a377483437f754e809012762f5
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
Sometimes projects are multi-language. Specifically, sometimes they need
to run both javascript and python toolchains. Support this by making a
tox-nodejs-npm job which installs both toolchains, then runs the npm
command followed by the tox command.
Most people won't need/want this, but it should make at least some folks
happy.
Change-Id: Iaedd680a548c6e8159693b7a79cd8676e805aa1f
Having revoke-sudo in the pre playbook of unittest has made us not able
to re-use unittest for javascript, and also means we can't use
nodejs-npm for nodejs-npm-run-test, which is a bit odd.
Instead, add the role to the run playbook for tox and npm, which allows
us to stack and combine things a bit better.
Change-Id: I0c7c508996ad2647db706d4ebf156c5dd96bf9b5
If a javascript job produces web content that should be deployed (such
as zuul-web or storyboard-webclient) we should collect that in the post
step of the job and put it into the html/ directory.
While in there, add a bunch of get_*: false entries for the stat calls.
Calculating the md5 and whatnot is expensive, and we should really
always set them to false unless we're *using* the hash values.
Change-Id: I9b96656aa5f225e4b069a78442cf0159cadc9009
The npm-test run for most projects needs the special pre-test job that
the npm changes removed. Readd it to test job.
Also, do no base on nodejs-npm since we need to override the pre script
and do not want both pre scripts to run.
Needed-By: Ibb4d38f150ab8f2029ea704cab0c9719efd57396
Change-Id: Id533690cfad380ceaa88ad08f5c97f35112c8f79
Change I5f9d420f1618e9a196b4218bca7055f377349351 updated all npm tests
but forgot to update npm-run-test, jobs now fail with
"cannot find ... playbooks/javascript/run-test.yaml".
Update job the same way as other jobs.
Change-Id: I6fdf9f9c55ce0744012d42afaa940b325669c36e
Similar to tox, the only difference in these is the command passed to
npm. Update the base job to do that, and the child jobs to use the
variable.
Change-Id: I5f9d420f1618e9a196b4218bca7055f377349351
The first version of this change was broken, fix it with updating
roles/ensure-sphinx/tasks/main.yaml to run the test-requirements check
really on the remove node.
This reverts commit 68ded2251f.
Change-Id: I481e032834fdbf674157b2c9a8fa6f95fc570ddb
Some projects, such as Zuul itself, need to use python3 to build docs.
This adds a new parameter, sphinx_python, which defines the version
of python to build documentation with. The default is python2 and
projects can choose python3 on a need basis.
Remove the comment about the need for a leading comment, since there
is now a real need for the leading comment anyway.
Replace a few direct references to {{ ansible_user_dir }}/.venv that
should have been using zuul_work_virtualenv.
Update sphinx invocation to source the virtualenv activate first.
Some sphinx modules, such as sphinxcontrib.programoutput, attempt to
execute programs and only invoking sphinx-build with the relative
path causes the paths to not be set up properly.
Co-Authored-By: David Moreau Simard <dmsimard@redhat.com>
Change-Id: Ie5e2c93f88465f4aa746827ff88a585dbaa44fd5