There is no need to install bindep, if we don't have a bindep file.
Change-Id: I33685e4905ceff23a6b772163ffce1a76143d2eb
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
Try again with "compile" as the new bindep profile name.
This reverts commit ac5912fd8a1fd656ec91855427291489a7ddd1cd.
Change-Id: I4a03c9c2377d0676fe6f5d11d2948a319b0ba341
This reverts commit e3d911b3ef9140274ee4a3aa4b3d4c300a4cfd27.
Puppet projects for OpenStack are already using a "build" bindep
profile which isn't satisfiable for some platforms on which they run
jobs. Revert for now while we consider either fixing them or
switching to a different profile name for this purpose.
Change-Id: I4131b6d67faf9e10004887e7b0b73c01ec7d421c
In order to be able to separate out depends needed for building wheels,
depends needed for running tests and depends needed for running
software, we can tag build depends with a 'build' profile. However,
doing that then means we don't have all of the things we need for
building docs or testing things.
Add build to the profile list for both docs builds and test installs.
Change-Id: I0689acb53789d3650926a3e11aec4570df5d950c
Needed-By: https://review.openstack.org/580159
This change fixes this upcoming deprecation warning:
[DEPRECATION WARNING]: Using tests as filters is deprecated. Instead of using
`result|skipped` instead use `result is skipped`. This feature will be removed
in version 2.9.
Change-Id: Ic0c93f2ea896ead76922694e6150882d8a280daf
As of Ansible 2.4, the parameter 'executable' is
no longer supported with the 'command' module.
Also check for return code since it the |succeed changed
and now always returns True when using failed_when: false.
Change-Id: I4c33db7f3d6fd613a6144f7520054cbcf50684e1
After installing bindep, the role should set the bindep_command fact
instead of bindep_found_command. Otherwise the role fail later:
Task: Define bindep_command fact
The error was: 'bindep_command' is undefined
Change-Id: I11a21c9678c75b7887a8a58c25925dc87e7c9315
The default for bindep dir should really be zuul.project.src_dir.
Also, this is a CI system. Let's default profile to test.
Change-Id: Ibc0e7617195865c50ea2bb0e969963f0525ea9b1
If there is no bindep file at all in the repository (which is likely
because tox depends on bindep and won't always be useful) then
bindep_file is never set. Then when the set_face bindep_command comes
around it tries to reference the unset bindep_file and fails.
Change-Id: I7be6be88209810eed715daaa4bb41315e838272d
Signed-off-by: Jamie Lennox <jamielennox@gmail.com>
The result of creating a temporary directory for bindep is a dictionary
of data include mode, uuid, and other things. When installing bindep
into that new directory we only want to specify the path to that dir.
Change-Id: If98f87ff44356911b78984eb884f7cd65660cebb
Signed-off-by: Jamie Lennox <jamielennox@gmail.com>
These roles are failing yamllint:
roles/upload-logs/tasks/main.yaml
23:5 error wrong indentation: expected 6 but found 4 (indentation)
roles/bindep/tasks/install.yaml
7:3 error wrong indentation: expected 4 but found 2 (indentation)
Change-Id: I189dd08c4d1c091d1e53ca87d52dbaf3f89ba45f
Did didn't have ansible-lint setup properly, as a results our roles
weren't actually linted properly.
Fix variable linting issues and ignore ANSIBLE0012.
Change-Id: I07aa940245e700c9f08df0f1920720f0ed9d3de0
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
We can pass in a list of packages and the package managers we care about
should accept a list as input. We can't do the with_items trick because
the package action plugin does not support it.
Change-Id: Id79f33caa7cb3ab7255490d02cd2b43fc7d5227b
Start gating on documentation changes. Eventually add support for
publishing them.
Change-Id: I9e75fee12e7d74db51661b6a1071a510788cde74
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
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
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
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
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