The sphinx roles takes source and build parameters. Update
fetch-sphinx-output to also honor them so that a job can set them and
have both build and fetch honor them.
Change-Id: Ic9fc6648a25336b968e8727bb8f4fd4cfd1548bb
Sphinx currently does not have a way to set warning-is-error in a config
file for builds that do not use python setup.py build_sphinx. It's
perfectly reasonable to use Sphinx for non-python languages, but putting
a setup.cfg into those projects is a bit weird. While we wait on getting
a config setting upstream, read the value out of setup.cfg ourselves if
it exists. This will let existing python projects with the setting work
as we expect, but will also let us just set a zuul variable for
non-python projects if we decide to not just put a setup.cfg in them.
Change-Id: Ie65dcb42c48e6a962f6715f7483ef3758caf2965
Sphinx jobs and reno jobs need basically the same thing for
dependencies. So make a new role, ensure-sphinx, which is
parameterizable enough that it can be used by both reno and sphinx jobs.
Make build jobs for both releasenotes and sphinx docs, as both of these
things are perfectly valid things to do in both OpenStack and
non-OpenStack contexts. We'll add an openstack specific job in
openstack-zuul-jobs that uses these as parents but adds the requirements
repo and constraints file settings.
Some of the pip commands here can be improved once
https://github.com/ansible/ansible/pull/33098 lands and is released,
which would allow specifying --user and -c as parameters to the pip
module.
Change-Id: Idd7caf7d88b56d61872906027b4ce7d743572ded
Needed-By: I57de14580f39b9e1c11a587b51b44b61b02c84da
When there is no commit since the tag, we don't want the scm_sha part of
project_ver, but just the scm_tag. This patch fix the logic.
Change-Id: I89e59049fe65ebc49fc03f205affa68b8fa5beb9
This role does roughly what save_dir and save_file do in d-g
functions, only it can be used for a list of files and/or
folders. Jobs can use this role to rename artifacts and place
them in a staging folder which is then used for mass sync to
the executor.
This is typically used in post - the zuul user won't necessarily
have write access to the folders with the artifacts - so it's
easier to stage everything to a folder owned by the zuul user.
Change-Id: Id45a50821539985710da7172a9185fd91e803603
We configured iptables rules but did not persist them.
This meant that rules would be flushed when restarting iptables or
the instance.
Change-Id: I9d90f55323a33d6a0f0dda1f7ab25d10984fa6cb
This reverts commit df987735730e712ea3bc57f99d3c96cb561c43a9.
The order in which we iterate over items in the "determine local HEAD"
task is not always the order in which we iterate over mirror-workspace-
git-repos.
Change-Id: I181d6a2cfa2c3104730f20362bbdc10fa582339f
Zuul now supports including the file extension on the playbook path
and omitting the extension is now deprecrated. Update references
to include the extension.
Change-Id: I01feaef57f6b376844dabc2eed080010632a776c
Zuul exports the projects list as a dictionary in _projects in the
depends-on. The idea is that we switch these jobs to that, and do
some testing. When ready, we switch "projects" to be the dictionary
view, and revert "_project" calls here to "project".
Change-Id: Id9a7c137ca5bed25d81087201091157c8401576a
Depends-On: I4476b9d4915d107e29b91229287865bff0ada305
We have no legacy files in here, so no need to skip them.
Also, sync invocations of ansible lint and ansible syntax checks.
Change-Id: I003cf6a46d1dc376d83118e5e5c405aa54d33f22
We'll be using this for puppet(-branch)-tarball jobs to publish to
artifacts site.
Change-Id: I4da68c8b1f89e2e04f4b94eebf29905c24aea474
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
Fix a few problems noticed when using this in project-config:
* Ignore apt-get warning in configure-mirrors
* All tasks should be named in upload-logs, emit-job-header
* use git_config in mirror-workspace-git-repos
* Ignore git warnings in mirror-workspace-git-repos
Change-Id: Ibcdc8d5a42fb081b5faa0cc89460e4cf88d369ba
This change follows I16186c929e7d0e6e34b35271559e555255a52b00 to run
openstack-zuul-jobs-linters on the repository.
Also, silence remaining lint role.
Depends-On: I46c53229f878fc707bab627654d820b891d9f625
Change-Id: I76abf21ea51c5f7553639475e408e06768fb1016
Add tags to tell ansible-lint to ignore the problems found since
those are false positives.
Needed-By: I16186c929e7d0e6e34b35271559e555255a52b00
Change-Id: I59e5d41a9539671ee5aab9b9036379eb9101d021
flake8 pulls the right versions that it needs in already,
so listing them explicitly is redundant.
Change-Id: I3441696f055a51c18828d2b345c269c69c1b0e8c
The relevant section is already protected by a variable. Instead of
commenting out the call, set the default value of the flag to false.
This allows people who need the functionality and are not broken by the
existing issue to use it.
Change-Id: Ifa5cc3e335b9e9ad52c4c5c9ab71aaea70d4c9aa
These are helpful to understand the context of a running job before
logs are collected and made available.
Change-Id: I33f3f425a8008534c617422a7f77255a34f86198
Depends-On: I8d014464b3ed580d4a0fc6dbdc9a42601ff107e5
We publish the complete content of translation-source directory to
http://tarballs.openstack.org/translation-source . Fix
the location from where to get the files.
Change-Id: Icb17dbb3269c569ad8bc5343ec1eed10c438d91d
Current usage of gpg keys involves a single role that adds, signs,
and removes the key all in one. Some jobs may need the GPG key
installed normally onto the remote host, then left in place, and
later removed. This change facilitates that.
Change-Id: I2f13f0c4de91808ba1bbdcc0fd20a547e43d602b
Seems we added an extra "cover" in
Ibad091f7630832eb993133b0f43a60931b3dfd75
Also, correct the copy path so we copy the directory "cover"
separately
Change-Id: I4966342efd1a3d00c47394de054f81a1d89183c7
The lack of support for constraints makes this problematic in
nearly all of the openstack jobs with project dependencies (eg,
neutron, horizon).
The role ends up installing dependencies past what's listed in
constraints.
Disable it for now (the jobs in question still have their v2-era
custom install commands) until constraints support can be added.
Change-Id: I9777bb0ba27c8d181b510e3c5febc83f5ba7142c
Add a post-run playbook to tox-cover job to collect the coverage
report detail and copy it to the log root of the executor.
Change-Id: Ibad091f7630832eb993133b0f43a60931b3dfd75
The current default URL returns an error. The error message suggests
that we just omit the URL entirely from the config and let twine
handle it. That's what this patch does.
Change-Id: I83b2eb30e3c93690dbe03052cd3f20a73c110350