Commit Graph

33 Commits

Author SHA1 Message Date
Heba Naser 24a449c004 Use tests repo for common role test requirements
Using tox for requirements management requires in-repo
requirements files for all our repositories. Rather than
do that, we make use of the tests repo to capture our
common requirements and use this to install them.

This reduces our review requirement rate and simplifies
maintenance for us for the tox config. It also makes it
usable with 'Depends-On', which is marvellous!

The tox requirements definitions for docs/releasenotes
builds are left in-place as those are standard entries
across the community. If that changes at some point, we
can re-assess those entries too.

Depends-On: https://review.openstack.org/579208
Change-Id: If2b1244e6c4f8ba2d43c9499d3861bc1cf2b21b6
2018-07-02 09:26:42 -04:00
melissaml 80bee99f27 Follow the new PTI for document build
For compliance with the Project Testing Interface as described in:
https://governance.openstack.org/tc/reference/project-testing-interface.html

For more detials information, please refer to:
http://lists.openstack.org/pipermail/openstack-dev/2017-December/125710.html

Change-Id: I12655940f683caec7cc0708a42ddf52720de6dbe
2018-03-21 04:12:54 +08:00
OpenStack Proposal Bot 3204109873 Updated from global requirements
Change-Id: Ie49d86630e5ac7e35e8ef4f7b4b129868a1af7a8
2018-03-15 07:30:37 +00:00
OpenStack Proposal Bot fb31d02935 Updated from global requirements
Change-Id: I9b034f74dbb1d321a174efb6a15e694adc5184f3
2018-01-24 01:16:16 +00:00
OpenStack Proposal Bot 1e09aa5a98 Updated from global requirements
Change-Id: Ib913f8073aca670bb2e022abbac1a548251bc11a
2018-01-18 03:14:15 +00:00
OpenStack Proposal Bot 4c9b03376d Updated from global requirements
Change-Id: Ida6a1baea0e7b89fa3a682d0a8d9e37a49d15494
2017-09-16 23:19:19 +00:00
OpenStack Proposal Bot 6a84d6e88e Updated from global requirements
Change-Id: I7d7f718160407cf17f138a4e6343253c46fbf183
2017-09-13 12:58:02 +00:00
OpenStack Proposal Bot 6a8d6e1566 Updated from global requirements
Change-Id: I61c8931d2084a2484784cff09319a4ed9bdb06cf
2017-08-18 11:37:19 +00:00
OpenStack Proposal Bot 30bf944ab5 Updated from global requirements
Change-Id: If61a38bd4a08d1607027c0ac4ecc11345a9b0900
2017-07-27 19:16:52 +00:00
OpenStack Proposal Bot 6924e7d44d Updated from global requirements
Change-Id: Icefe011a69b3ef0213fe1e5df283aa647d4a5c90
2017-06-27 12:17:32 +00:00
OpenStack Proposal Bot 3f822eaf22 Updated from global requirements
Change-Id: I62b15a88261df3e60c58f36688a299ee83c916dc
2017-06-12 12:58:36 +00:00
OpenStack Proposal Bot 72d357efab Updated from global requirements
Change-Id: Ie8f76916e92b8bc378ef9c0993bd3449448404df
2017-06-10 21:44:06 +00:00
OpenStack Proposal Bot f8ba8e0d8a Updated from global requirements
Change-Id: I9ef325884265040e571ce88c9e97c3fd0166c73d
2017-06-02 22:02:43 +00:00
OpenStack Proposal Bot a25aa31ccf Updated from global requirements
Change-Id: Ibeeb4d596c41e163c3f78059852506d280ea660e
2017-05-17 03:54:29 +00:00
OpenStack Proposal Bot 20d5364ae5 Updated from global requirements
Change-Id: I6eb25235b4d58a01d5b41db86d4f4e97c2d3eeb4
2017-02-11 17:48:24 +00:00
OpenStack Proposal Bot 13e01defd4 Updated from global requirements
Change-Id: I67fe146c0a5945a0afdc01f92585993820d7dc81
2017-02-10 05:55:32 +00:00
OpenStack Proposal Bot f632f832c7 Updated from global requirements
Change-Id: I279897db93cfe56fc2c2a7932898e573786a122d
2016-12-02 05:10:26 +00:00
OpenStack Proposal Bot 16c21ad1d9 Updated from global requirements
Change-Id: I1964c302004fde1f91e0651aa1a024f1d46955af
2016-11-02 15:37:21 +00:00
OpenStack Proposal Bot 6b6666c838 Updated from global requirements
Change-Id: I48268f6962bf185a484f05594f32eb5ccc59f13e
2016-10-19 14:05:04 +00:00
Andreas Jaeger cb8203ad03 [DOCS] Added release-name as a watermark to Docs.
Added a water mark to the role documentation
to make clear to deployers which release they're
working with.

Modified conf.py that adds watermark to the documentation according
to particular branch. If the current branch is master than
watermark is 'Pre-release' and if the current branch is
stable/<release-name> than watermark is <release-name>.

This is a combined implementation based on the following
patches:
- https://review.openstack.org/372565
- https://review.openstack.org/382637
- https://review.openstack.org/384140

Change-Id: Ic3201a200c52d1790103c30350ccfa9b84c6b425
2016-10-18 16:23:40 +00:00
OpenStack Proposal Bot d5c2498de4 Updated from global requirements
Change-Id: I0b40d68906de6e07941103af54ed0fc51debe2a6
2016-09-29 22:36:30 +00:00
OpenStack Proposal Bot eff7c7b8b0 Updated from global requirements
Change-Id: I4b49e4608d85926d00982dc92abca6f6a075fb92
2016-08-18 05:30:32 +00:00
Jesse Pretorius 96e5914219 Add python packages for SNI support in tests
This adds python packages required for SNI support to ensure that tox
installs the packages into the venv when running tests.

Change-Id: Ic475d8a9eda6e2d2c1fd8727f47e490f60cfd861
2016-08-16 14:29:57 +00:00
Jesse Pretorius 36f8038022 Implement doc8 checks for docs
In order to prepare for the move of detailed configuration
content from the install guide to the roles, doc8 checks
are being implemented in the roles to ensure that any new
content submitted is properly checked.

Change-Id: I50a62d136ac771887d684385fd2b2043a607ee15
Partially-Implements: blueprint osa-install-guide-overhaul
2016-07-13 12:30:45 +01:00
OpenStack Proposal Bot 16d51972f0 Updated from global requirements
Change-Id: I86b4e2b6777a387f575d4d16bf5a77ea8aeb9e63
2016-07-12 14:47:32 +00:00
Jesse Pretorius a96fa0b1b6 Move ansible test requirements into tox.ini
In order to prepare for implementing requirements management by the
OpenStack requirements management process, all requirements in
requirements.txt and test-requirements.txt need to be in the
global-requirements file.

As ansible and ansible-lint are not in those files, this patch moves
them into explicit deps for the ansible environments in tox.ini.

Change-Id: If661d8d5aff86f3bb163624052e41160dd3c9a18
2016-07-06 16:17:51 +01:00
Jesse Pretorius 5e4e0f0ce2 Pin test-requirements to match OpenStack requirements
A new release of flake8 is causing lint faiures. Our requirements
should match OpenStack requirements anyway.

This patch pins to the current master requirements from the
OpenStack requirements repository using global-requirements.

Change-Id: I1f8bc6c83495789faf74382fa901915de54114d5
2016-06-17 15:47:55 +00:00
Jimmy McCrory 421a504df4 Use ansible-lint 2.7.0
ansible-lint 2.7.0 was recently released, update the role's test
requirements to use it.

The tox test has been changed to run ansible-lint against this role,
rather than the test playbook which would only apply to this role's
dependencies.

Also include a skip tag for the 'yum clean all' task since the yum
module currently does not have a way of executing this action.

Change-Id: Ie7c8a2c1635ba64ca64e71a6d80dc6545f86f4e5
2016-05-31 10:29:58 -07:00
Kevin Carter 938860609c blacklist Ansible 1.9.6
This version of ansible is broken due to the following upstream
Ansible issue:
  * https://github.com/ansible/ansible-modules-extras/issues/2042

Change-Id: I976b2c936d7c8ae78158008b709b125d2a8e222a
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2016-04-16 08:47:25 -05:00
Jesse Pretorius 0cc10c5bdc Add reno scaffolding for release notes management
Change-Id: Ib13e9c50ea0f96e97ef0eb8f92521ff68892d0cc
2016-04-09 19:18:55 +01:00
Matt Thompson db4dfa4692 pin version of ansible-lint we use for testing
Latest release of ansible-lint 2.4.0 has broken
role linter tasks by introducing a dependency on
openstack-ansible-plugins for all linting

While we may choose to adapt the linter tox env
in the future, for now we want to return to previous
linter behavior.

Change-Id: I6bbe966b7b4584b692ae4afb0994182cd5445ecc
2016-03-15 15:51:44 +00:00
Jesse Pretorius 552ad6d10f Update tox config and add bashate E006, E040 exceptions
This patch updates the tox.ini the same bashate exceptions as are
currently in the OpenStack-Ansible playbook repo.

It also ensures that the linters and all lint targets work
appropriately and normalises the tox.ini configuration to use
uniform formatting.

The use of ansible.cfg is removed as there is no way of being
certain which paths can be used without reverting to an ugly
sed hack in the commands. This is why it is preferred to make
use of environment variables which make use of tox's default
substitutions instead. It's a more reliable way of achieving
the goal for the purpose of gating and testing.

The switch to using a git clone instead of ansible-galaxy to
download the plugins is due to the path spec not being able to
work in Ansible 2.x. [1]

[1] https://github.com/ansible/ansible/issues/13563

Change-Id: I7c4b2e14487dcfa63e3b85e1cd4e7ff7c4113d23
2016-02-12 11:38:06 +00:00
Jesse Pretorius cd8fb4b962 Merge bashate/pep8 lint jobs in common job
Instead of launching two separate build jobs in our CI infrastructure,
one for bashate and one for pep8, launch a single one. While the jobs
are short, the setup of the images takes a long time, so this is
friendlier to our CI infrastructure.

Use the pep8 environment as common lint target and merge the bashate job
into it.

This patch also renamed dev-requirements to test-requirements to bring it
into line with all other OpenStack projects.

Change-Id: Ieeffb7719b88213aaafa02073f931c491d3deee3
2015-12-15 09:38:08 +00:00