24 Commits

Author SHA1 Message Date
Mark Goddard
945a79bc0b Fix ansible lint
Ansible-lint is failing on physical-network.yml, which is a tasks file
rather than a playbook. Specify the two top-level playbooks only, and
ansible-lint will follow the includes.

Change-Id: I3499944939aa717a382d87f5c90236499539de60
2021-03-24 10:34:36 +00:00
Riccardo Pittau
fd810edbd0 Increase verbosity of ansible lint command
This should help troubleshooting issues with alint tox context.

Change-Id: Ieef9aae0e68474039f1d2bf7d9ecc8a1e0ad2e80
2020-11-24 15:48:39 +00:00
maaoyu
2789f9dc73 Remove install unnecessary packages
The docs requirements migrated to doc/requirements.txt
we need not install things from requirements.txt.

Change-Id: Ife6fc1e75c508f23548832308b64273f16454463
2020-09-25 09:57:27 +08:00
Riccardo Pittau
d17101a437 Set min version of tox to 3.2.1
As recommended, since version 3.2.0 tox switches pip invocations
to use the module -m pip instead of direct invocation.
We set min version to 3.2.1 [1] to also fix the behavior of
--parallel--safe-build

[1] https://tox.readthedocs.io/en/latest/changelog.html#v3-2-1-2018-08-10

Change-Id: I6553fb63742df907059e21b893d7d8f5d4292e85
2020-07-15 15:37:03 +02:00
Riccardo Pittau
ece9f6e25f Add pep8 import order check
Set flake8-import-order version to 0.17.1
Full py3 compatible version.
Add all Python3 modules to stdlib list.
Also includes fix to an enum34 dependency bug.

Change-Id: I58dd80fc33942656c69ce67ee523a1d57f693e93
2020-04-21 16:26:52 +02:00
Riccardo Pittau
91a4508115 Enforce running tox with correct python version based on env
Since removing support for Python 2, we changed the basepython
value to 3.
This means that all the tox tests run with the default python
version available in the system.
This is not quite correct when running on environment such as
py36, py37 or py38, since they imply running with different
Python versions based on the environment.
To enforce the correct version we need to add the option
ignore_basepython_conflict available since tox 3.1.0 [0].

[0] https://tox.readthedocs.io/en/latest/config.html#conf-ignore_basepython_conflict

Change-Id: Idd761cdd482dd012e85df9647f4c7865a28ecb14
2020-01-09 10:30:05 +01:00
Iury Gregory Melo Ferreira
6af7c38564 Drop python 2.7 support and testing
OpenStack is dropping the py2.7 support in ussuri cycle.

tenks is ready with python 3 and ok to drop the
python 2.7 support.

Complete discussion & schedule can be found in
- http://lists.openstack.org/pipermail/openstack-discuss/2019-October/010142.html
- https://etherpad.openstack.org/p/drop-python2-support

Ussuri Communtiy-wide goal - https://review.opendev.org/#/c/691178/

Change-Id: I2b133661a4986d715513d5629b247f1086b0ddbc
2019-11-25 15:23:59 +01:00
Kaifeng Wang
f92968386b Build pdf doc
The is one of community goals that each project could produce a
single PDF file. The pdf should be in the output of openstack-tox-docs
job.

TeX packages are required to build PDF locally, following is recommended:

* inkscape
* texlive-latex-base
* texlive-latex-extra
* texlive-fonts-recommended

More about the goal:
https://governance.openstack.org/tc/goals/train/pdf-doc-generation.html
https://etherpad.openstack.org/p/train-pdf-support-goal
https://etherpad.openstack.org/p/pdf-goal-train-common-problems

Change-Id: Iae3db530e906e36571951deb31f242b7e4fcb75d
2019-09-05 15:19:40 +08:00
Kaifeng Wang
b27c6bc169 Update Python 3 test runtimes for Train
One of train goals to have consistent python3 jobs.

https://governance.openstack.org/tc/goals/train/python3-updates.html

Fixed incorrect upper constraints as well.

Change-Id: I8637ffdc52e22500cb4c9f3cdb0d4f5291d11147
2019-06-19 14:40:54 +08:00
caoyuan
d7142c04d2 Replace git.openstack.org URLs with opendev.org URLs
Change-Id: I8241e8207c5caee7cb9c479bcca6196fedbc7fa3
2019-04-24 14:21:48 +02:00
Riccardo Pittau
b4bddc2b54 Adding python 3.6 unit test
Adding python 3.6 openstack job to templates, adding py36 to
tox environments and reordering the template jobs.

Change-Id: Ib6269b0d686babfd7973503baa9189efe402e2d8
2019-03-12 09:19:48 +00:00
Zuul
93cc163d53 Merge "Wait for resources to become available" 2018-11-19 17:56:30 +00:00
Will Szumski
d4e7e58619 Wait for resources to become available
This will wait for any resources that are created to become available
before exiting the script. This allows you to avoid a race condition
where a server could be created before the resource tracker had been
updated with the new resources; server creation would fail.

Change-Id: I57f8c93cb1ebbc284b96ef1ced2c4edd59b27795
Story: 2004274
Task: 27823
Depends-On: https://review.openstack.org/617642
2018-11-19 16:40:43 +00:00
Will Szumski
21afcc52fe Add venv tox environment
This is useful for running commands such as reno.

TrivialFix

Change-Id: I05f4c411a6353d4861aa9d5ac9162f0a56e7ca73
2018-11-14 17:10:38 +00:00
Will Szumski
4f20ed32f6 Add support for generating release notes
This adds the configuration necessary to build the release notes.
The templates are based off the ones used in Kayobe.

Change-Id: Ia57ac4acaf40cb5e35407fd6e0a5375dbab51522
2018-11-14 09:07:51 +00:00
Will Szumski
51d18cf9f3 Use extend-ignore in preference to ignore
The behavior of flake has changed so that ignore overwrites the
default list. This uses the new extend-ignore option to emulate
the old behavior.

See: https://gitlab.com/pycqa/flake8/issues/466 for more details.

TrivialFix

Change-Id: Ib96a176f6cbbf485ad5b0ff2ab90e3bb8bc99abd
2018-11-02 17:23:16 +00:00
Will Miller
0bbca02eec Migrate documentation to Sphinx 2018-09-20 17:24:37 +01:00
Will Miller
961972077a Add stestr config file 2018-09-19 08:40:46 +00:00
Will Miller
1375df399a Add additional tox environments to Travis 2018-09-18 16:53:20 +00:00
Will Miller
1006415f2e Run coverage testing by default in tox 2018-09-14 16:43:32 +00:00
Will Miller
daccd02158 Add coverage testing 2018-09-14 16:40:39 +00:00
Will Miller
794bffd701 Add basis for action plugin tests 2018-09-14 13:35:27 +00:00
Will Miller
24900f4e52 Use basepython of 2.7 2018-09-07 09:32:52 +00:00
Will Miller
740432dbd0 Add basic package structure
* Use PBR with minimal setup files to allow packaging
* Add tox configuration and enable PEP8/ansible-lint environments
2018-08-28 11:02:47 +00:00