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
This reverts commit 9f4efe98e10c9d553dc8a15bd7b84584e1118684.
Compress testr results.html before fetching it
The synchronize command has testr_results.html.gz in the file list, but
we don't ever gzip it so it fails on fetch.
Make the "Check for testr directory" task actually check for
.testrepository and not for .stestr a second time.
The compression bug broke only for people using stestr. For people
using testr, the path bug meant they don't get html reports.
Change-Id: I0cdfc66ee8b046affeb0b071fef38c21cb7a4948
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
We don't need two roles for testr and stestr. The roles have logic to
check to see if .testrepository or .stestr dirs exist, and the logic
after the subunit extraction is the same. Combine them into a single
role which should do the right thing.
Also, document it.
Change-Id: I833320cf9a932d8e119645eb798ce0c93d854321
It is possible a job wants to use another profile the 'test'. As such,
we can actually stop hardcoding this value and fall back to the
defaults that ship in the bindep role.
Change-Id: I6beb7b07a7dbc345e63e758ebbc86400e0ee16d3
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
With the settings in site-variables now, we don't need them here. Which
is good, because this job should be reusable by non-infra people.
Change-Id: I2988816dfbca7299c4a29b8a1a986dccccf87a9a
Depends-On: I94dfe8e6aab9c2da1283590be5e26f7d8c35dcad
Right now, the configure-mirrors role is very openstack-centric. At
the moment, I don't believe it is generic enough to be used by zuulv3
users.
Additionally, it is completely possible users don't have mirror
infrastrucuture in place and just want to use upstream directly.
For now, remove this from our default zuulv3 jobs until we can better
make this generic. In the case of openstack-infra, we have added this
role into our base job which we have shadowed.
Change-Id: Ic846d158c5458126468b0de2861d8e56b0d39c3e
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
It make more sense to revert to mirror_fqdn, since it is a FQDN.
Change-Id: I4a0749b64a71e551e4fbea5b416b46d2d6433d0b
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
After talking to clarkb, we decided we can drop this in favor of just
using the mirror_host.
Change-Id: Ie4ce336174aa2a825d125f7e0d9a256de139908b
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This now exists in the base job, remove to avoid running the role
twice.
Change-Id: I915500b040968bfcdb504d44b58f91ccc36ab843
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
Zuulv3 now defaults to gathering: smart in ansible.cfg, along with
fact caching. We can now remove gather_facts: true as we get it for
free now.
Change-Id: Ife8ffaa4716eb60c59c26b8f4842ad48a17d4ad2
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This will be used to replace our current confgure_mirror.sh script
that we today as a ready-script in nodepool.
This only adds support for ubuntu today. As we move forward and
configuration openstack-infra from JJB to ansible, we'll need to add
more distros.
Attach the role to the unittests base job for now. It should ultimately
be attached to the base job, but adding it to the unittests job lets us
test it more easily.
Co-Authored-By: Monty Taylor <mordred@inaugust.com>
Change-Id: I9bfa28c87390c09bb2c4cd0de6ce4c7890f8d81a
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
Put the tasks into a role so that we can set zuul_work_dir in
defaults.yaml so that this also works if we're setting a directory in a
variable.
Change-Id: I638f7682d086781178f2dc7517eb0fb09a5f2acd
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
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
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
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