Commit Graph

39 Commits

Author SHA1 Message Date
Ghanshyam Mann 0cc6e36c62 Cleanup the retired repo
This repo is not properly retired. Retired repos can only have two files:
- README.rst
- gitreview

To cleanup the retirement of this repo, keeping these two files only and
removing the other remaining files if there is any.
Detail: https://etherpad.opendev.org/p/tc-retirement-cleanup

Change-Id: Id4ae30ae9e284f79c3e868356fe865fbe2607bcf
2020-08-05 19:59:45 -05:00
Jean-Philippe Evrard fbd2fbe301 Retiring pip_lock_down (phase 2)
This effectively retires the pip_lock_down role.

Change-Id: I7b8456268eaafa2a4510fe078b251617c5d9bede
2017-11-01 16:41:06 +00:00
Jean-Philippe Evrard 04bc8a6efa Add OpenStack-Ansible metadata
We need to add openstack ansible information in the role
metadata to be able to track role maturity. With it,
we can create a role maturity table and take decisions about
role deprecations.

Change-Id: I0fde751fa106f256217d754ecd8a6d910250882f
2017-10-11 08:28:12 +00:00
ji-xuepeng e297505c20 Use https instead of http for git.openstack.org
Trivialfix

Change-Id: I5bf01e5ed7ac67b7b12c0f730494b6b1000ad0e6
2017-02-06 22:57:59 +08:00
Major Hayden c8210464aa Update and clean up run_tests.sh
The run_tests.sh script fails when it is run multiple times on CentOS.
The `bindep` run returns an empty list of packages and then `yum`
exits with an error since no packages were provided to install.

This patch checks the length of the `bindep` output and skips the `yum`
installation when the package list is empty.

The patch also cleans up some of the old cruft left over from previous
scripts and avoids repetition.

Change-Id: Ia759c1623e9a0f7421c0506d824b144132042e39
Signed-off-by: Major Hayden <major@mhtx.net>
2017-01-06 16:48:18 +00:00
gengchc2 85bd0a1794 Delete deprecated Hacking in tox.ini
Some hacking have been removed,so we can delete them.
More details:
    https://github.com/openstack-dev/hacking/blob/master/setup.cfg

Change-Id: I82cde207ae936507c54016c84ad412171cd63ab7
2016-12-06 09:44:22 +08:00
Flavio Percoco 1e1b98cd6c Show team and repo badges on README
This patch adds the team's and repository's badges to the README file.
The motivation behind this is to communicate the project status and
features at first glance.

For more information about this effort, please read this email thread:

http://lists.openstack.org/pipermail/openstack-dev/2016-October/105562.html

To see an example of how this would look like check:

https://gist.github.com/74880bbd2564db01d80d3cf423d9b4ad

Change-Id: I049b839bc35591b1c0132733b8093b7c94438c39
2016-11-25 16:20:46 +01:00
Andreas Jaeger 11872b4be6 Enable release notes translation
Releasenote translation publishing is being prepared. 'locale_dirs'
needs to be defined in conf.py to generate translated version of the
release notes.

Note that this repository might not get translated release notes - or
no translations at all - but we add the entry here nevertheless to
prepare for it.

Change-Id: Ib358d29aaf4e26bf62299070174c4441aef60be2
2016-10-06 20:39:11 +02:00
Jesse Pretorius b2694c31d7 Remove install_test_packages variable
With https://review.openstack.org/381479 merged, setting this
variable in tox.ini via an extra var is unnecessary.

Change-Id: I2eef372b213e5139f7b5a66b8e49a4aa0ae45155
2016-10-04 11:43:58 +01:00
Kevin Carter c2b8715a06 Update testing bits for consistency
Change-Id: Ib0664b350d674313d7c3067b2825d15c3e9394aa
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2016-09-19 09:17:47 +00:00
Jesse Pretorius 43c239916a Compress test execution logs
The volume of logs we collect in CI jobs are extensive. This
patch ensures that the logs collected are compressed to reduce
the space taken in CI systems.

PYTHONUNBUFFERED is also set to ensure that the console log
from the CI jobs is recorded in the exact order of execution.

Change-Id: Ibb9d639f9f4f47fa4cbc86f83f3ad358dd7054d6
Related-Bug: #1620849
2016-09-09 10:52:21 +01:00
Kevin Carter 1307f8011e Enable log collection after functional testing
This change enables log collection within the gate so that further analysis
on gate tasks can be performed post build. This is very useful when
debugging problems.

Change-Id: I3bff30433cfe3e2faac243d5499556ed431265ed
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2016-08-29 21:37:59 -05:00
Jesse Pretorius abac9a75e1 Make all linting tests use upper-constraints
As per [1] all linting tests can now use upper-constraints. This patch
removes all instances of the install_command override relating to lint
testing which were needed to negate the use of upper-constraints.

[1] http://lists.openstack.org/pipermail/openstack-dev/2016-August/101474.html

Change-Id: I6be31be083db63ea6d3c2ed28e3b355d265a8094
2016-08-20 16:07:18 +01:00
OpenStack Proposal Bot d110627cb6 Updated from global requirements
Change-Id: Ica44fed3b7fcb216140741eaa51d460e35ececa4
2016-08-18 05:31:12 +00:00
Jesse Pretorius 5d69e7ac96 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: I3a6552a43d760021171eccd2dc1664c72beecb8e
2016-08-16 14:18:18 +00:00
Andreas Jaeger e21e41e587 Move other-requirements.txt to bindep.txt
The default filename for documenting binary dependencies has been
changed from "other-requirements.txt" to "bindep.txt" with the release
of bindep 2.1.0. While the previous name is still supported, it will
be deprecated.

Move the file around to follow this change.

Note that this change is self-testing, the OpenStack CI infrastructure
will use a "bindep.txt" file to setup nodes for testing.

For more information about bindep, see also:
http://docs.openstack.org/infra/manual/drivers.html#package-requirements
http://docs.openstack.org/infra/bindep/

As well as this announcement:
http://lists.openstack.org/pipermail/openstack-dev/2016-August/101590.html

Change-Id: Ieac7d210e9de346f583ce4f8725aac2653672f10
2016-08-12 21:02:51 +02:00
Jean-Philippe Evrard 1770d43eaf Include ansible commands for ansible linting
The plugin repo needs to be cloned for ansible-lint to
understand ansible plugins. The commands currently
reside in tox.ini under the ansible section and are not
currently included. This commit fixes that error.

Change-Id: I8ec97b37e6a50cb88db85afc5c7d0100a6110954
2016-08-11 18:11:08 +01:00
Jesse Pretorius 4235197dde Ensure that doc linting is included in the linters test
The 'docs' tox target executes the doc8 lint test which may result in
failures when testing documentation builds, but OpenStack-CI does not
execute that tox target.

In order to ensure that we catch all standard documentation syntax
errors and prevent them from merging, this patch includes the docs
target in the 'linters' chain of tests.

Fixes for any failures which result from executing this test are also
included in the patch.

Change-Id: Icab9cde9110e4ea485a84ab5ba3cf2355c57797b
2016-07-26 07:36:53 +01:00
Jesse Pretorius f3c7df0a01 Use plugins repo version of the human_log callback plugin
With the implementation of https://review.openstack.org/321331 the
human_log callback plugin is now part of the plugins repo.

This patch removes the retrofitted version in tox in favor of using
the version from the plugins repo instead.

Change-Id: I94b4007ebdf36aefc0c98ba53f67f47f02aefe49
2016-07-15 14:04:23 +01:00
OpenStack Proposal Bot e8ce70740d Updated from global requirements
Change-Id: I6a99e7fe91311f65d161f960fe6b721ee949b833
2016-07-15 03:58:16 +00:00
Jesse Pretorius 841a3e31bb 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: If0494766ab36b9d17c92ce828cd665c4e3898af4
Partially-Implements: blueprint osa-install-guide-overhaul
2016-07-13 12:57:35 +01:00
Jesse Pretorius 5342f7e491 Update sphinx configuration
This patch updates the sphinx configuration for docs and releasenotes
to make it easier to replicate across repositories and to comply with
pep8 testing without exceptions.

Change-Id: Ie39e28c7ed7e5dc4a21cea17cd59c828e36d2abc
2016-07-12 16:54:48 +01:00
Jesse Pretorius cfaa204274 Update tox configuration
In order to prepare for implementing requirements management by the
OpenStack requirements management process, and to improve the
reliability and effectiveness of test execution, this patch implements
some changes to the tox configuration:

- The minimum tox version is increased in order to be able to use
  constraints for the python packages.
- The OpenStack upper-constraints are used when preparing the test
  venv for the linters checks.
- Any proxy environment variables set on the test host are passed
  into the venv to enable testing from behind a proxy.
- The environment variables used by Ansible tests are moved into
  a new venv called 'ansible' and this environment is inherited
  by all Ansible-related tests.
- The docs test will clean-up an existing build directory before
  executing the docs build.
- The releasenotes build cannot use upper-constraints at this point,
  so it doesn't.
- The Ansible role download will no longer ignore errors so that any
  problems discovered will result in a failed test.
- The human readable logging callback plugin is implemented for
  functional testing.
- The ansible test requirements are moved into tox.ini to ensure
  compliance for requirements.txt/test-requirements.txt for the
  global-requirements management contract.
- The ~/.ansible directory as a whole is not deleted. Instead only
  the plugins and roles folders are deleted to ensure that zuul's
  Ansible artifacts are left in-place.
- The ansible-lint version is updated to support execution against a
  folder, and the test now executes against the entire role to ensure
  that it captures all applicable files for lint testing.

This is a combined port of the following:
- https://review.openstack.org/323507
- https://review.openstack.org/338193
- https://review.openstack.org/332443
- https://review.openstack.org/338193
- https://review.openstack.org/339493

Change-Id: I6c3cc132ff528b28df7d7450d0e1ae3cad70b835
2016-07-08 13:37:07 +01:00
Jesse Pretorius 6b61011f75 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: I065c9696bfde8c66a44980cf911c4f06e6f7cdde
2016-06-17 12:36:35 +01:00
Jesse Pretorius b2b669e3f4 Add .swp files to .gitignore
Change-Id: I7fd80862d7fc6df6cdb086a9370a32b51f91b559
2016-05-04 15:21:56 +01:00
Jesse Pretorius a652919f18 Add dependencies for paramiko 2.0
Paramiko version 2.0 has been released. It now uses the Python library
cryptography. Installing this requires additional system packages. This
commit adds in the appropriate packages required by cryptography based
on its documentation [1].

An alternative approach would have been to constrain the version of
Paramiko however the project describes the 1.x versions as relying on
insecure dependencies [2].

[1] https://cryptography.io/en/latest/installation/
[2] http://www.paramiko.org/installing.html

Change-Id: I337770a4c5655907367be07d97e9eb91eac8c890
2016-05-03 12:21:41 +00:00
Jesse Pretorius 98fcb50f93 Add reno scaffolding for release notes management
Change-Id: I70fd96628b324575f2fc5883f8a0b046390ab05e
2016-05-03 12:41:55 +01:00
Kevin Carter 49f482b78c 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: Iab288bcde98e6974568db82a1c89c6cb159cfcc2
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2016-04-16 08:47:00 -05:00
Matt Thompson 8e01669a61 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: Id48322016d846601ebfd6ed087e40ac3f83987ea
2016-03-15 15:45:42 +00:00
Jesse Pretorius 6e678d2920 Remove allow-all-external from pip configuration
As per the resulting log when using the option, the allow-all-external
option has been deprecated and will be removed in the future. Due to
changes in the repository protocol, it no longer has any effect.

Change-Id: I555c9dc1fc6b743376996c9287cefe7277fba930
2016-03-10 11:26:47 +00:00
Travis Truman c311b994ae Removing unneeded with_items usage for clarity
Change-Id: Ia4b858210532b7e639d8f033f24e8a2e4f500449
2016-03-06 12:53:35 -05:00
Jesse Pretorius 90fcc0b74d Add curl to bindep requirements
Change-Id: Ifba1d18006e2ce48bde0f0491b2663d82bc0b7bf
2016-03-04 19:24:43 +00:00
Jesse Pretorius 13a5725e96 Initial commit for bindep requirements
Change-Id: I67b1d5e43e180add55612f1bb3a9fdbadcf23d7e
2016-03-03 15:16:26 +00:00
Jesse Pretorius 677eb81588 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: I74bb29aea2794f770c1c69a64e155da2cf91c2d0
2016-02-12 12:17:21 +00:00
Jesse Pretorius c47b9de9cf Revise all lint tests and add consolidated 'linters' tox environment
OpenStack-Infra has requested that lint tests be pipelined into the 'linters'
tox target in order to make more efficient use of nodepool resources.

This patch:

- Ensures that a complete set of lints tests is available in individual
  tox targets.
- Adds a 'linters' target which executes all the other lints tests.

Change-Id: I84def5cf39199cd98d633a5e97c979d304466b3a
2016-02-04 11:27:25 +00:00
Paul Belanger 0e64f99d54 Switch to testenv:functional
This brings our tox.ini files inline with other OpenStack projects.

Change-Id: I6d75fe815e0dd84307249e2852fb260b2697fe51
Depends-On: I376e51824c46f9b5eb4a4cff01aaa176632087dd
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2015-12-18 15:39:38 -05:00
Jesse Pretorius 0620fbf2e0 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: I128cdf0bc0efdfc0fc4b4f0e1f40899a62f8b560
2015-12-15 10:48:01 +00:00
Kevin Carter bf5e9d4132
updated repo pathing for new org
Change-Id: If8d7b1e0e21464fc876aadd1e851e731e38a877c
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2015-12-10 16:56:30 -06:00
Kevin Carter 0120d89da1
first commit
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2015-12-08 16:46:37 -06:00