Sphinx 1.8 introduced [1] the '--keep-going' argument which, as its name
suggests, keeps the build running when it encounters non-fatal errors.
This is exceptionally useful in avoiding a continuous edit-build loop
when undertaking large doc reworks where multiple errors may be
introduced.
[1] https://github.com/sphinx-doc/sphinx/commit/e3483e9b045
Change-Id: I0e40eb0e5267d1cdd0ec1195424743310f3c39f8
This commit adds a new tox target to build PDF documentation.
It's a part of community goal, see storyboard for more
information.
Change-Id: I58b1fb537c3758bba5a57d3cf7ce4cf10625bd89
Story: 2006076
Task: 34813
The commands used by constraints need at least tox 2.0. Update to
reflect reality, which should help with local running of constraints
targets.
Change-Id: I207e7da86a8a1c12dff8b5a24899758008424d1e
This commit adds support for py36 in tox.ini by default. When tox
command is executed by developer it will run py36 tests.
Change-Id: I2363435eaab88ff2a67146c7239404518173c599
According to Openstack summit session [1],
stestr is maintained project to which all Openstack projects should migrate.
Let's switch to stestr as other projects have already moved to it.
[1] https://etherpad.openstack.org/p/YVR-python-pti
Change-Id: I37f96444426f006ff5d6491106b168a81a7c09ea
We want to default to running all tox environments under python 3, so
set the basepython value in each environment.
We do not want to specify a minor version number, because we do not
want to have to update the file every time we upgrade python.
We do not want to set the override once in testenv, because that
breaks the more specific versions used in default environments like
py35 and py36.
Change-Id: I450085ff6d9cc352ff38798c361cbe2fbebce263
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
Create a tox environment for running the unit tests against the lower
bounds of the dependencies.
Create a lower-constraints.txt to be used to enforce the lower bounds
in those tests.
Add openstack-tox-lower-constraints job to the zuul configuration.
See http://lists.openstack.org/pipermail/openstack-dev/2018-March/128352.html
for more details.
Change-Id: I6c115612ac6ee56f2199c654a844fed8723ca666
Depends-On: https://review.openstack.org/555034
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
This commit registers default policies in code. For the
Register and Document Policy in Code community goal.
bp policy-and-docs-in-code
Closes-Bug: 1724714
Change-Id: I1eea53adc19247d8b982c3e22184e8a1e2fb875c
This is the agent part of the blueprint.
Implementation of a datasource that transcribes the content
of configuration files managed by oslo-config in Congress
tables.
The datasource uses a set of agents deployed on the nodes
to access the configuration files.
Change-Id: I56750cfd72ad43d8af123d151f70d1d76568a456
Implements: blueprint configuration-files-validation
Co-Authored-By: Valentin Matton <vmatt.openstack@gmail.com>
Co-Authored-By: Pierre Crégut <pierre.cregut@orange.com>
The gating on python 3.4 is restricted to <= Mitaka. This is due to
the change from Ubuntu Trusty to Xenial, where only python3.5 is
available. There is no need to continue to keep these settings.
Change-Id: Id1bc631d1d301a990ae2618e3d081b9b926e1c55
Added some local HAHT tests
- unit tests no longer work concurrently
- bindep.txt added for binary dependencies needed for tests
Closes-Bug: 1600019
Partially implements blueprint: high-availability-design
Change-Id: If4213ede7bde4d78d710ce75c0147a4889387da9
Openstack infra now supports upper constraints for all jobs.
Updated tox.ini to use upper constraints for all jobs.
Change-Id: Ide07b9c1234734368faca2bef7f3ca83d37f2540
Closes-Bug:#1628597
Passing --no-parallel through to testr causes an error in the
coverage jobs.
This fix has already been merged into trove.
Looks like test_benchmark_updates.py was missed in commit
fd6600cda1 and will throw errors on
the function call harness.create.
Change-Id: I49137e3faf79cc2d62f9738389e226ce3eb39a97
Now that there is a passing gate job, we can claim support for
Python 3.5 in the classifier. This patch also adds the convenience py35 venv.
Change-Id: I1020c9f8f7d29b03b0fd460cbc22a0238725ea8e
This commit helps to build the docs using tox, tox -edocs
It would be useful to check for any errors if any docs are
changed.
Change-Id: Id584bb9757257155f8a4e0b6eba940c46b048732
This patch enables tox to test both old architecture and new
architecture. If you'd like to test with new architecture, execute
following command.
$ tox -enew_arch
Change-Id: I28a137b73fcd8f56ecdeedfc20274f7b37bab620
Recent commit I0596a6970725189fd9b46a0cac923b86ccb03f8c broke
tox -egenconfig as its unable to generate proper config file.
This commit fixes the same.
Change-Id: Ife60fb87d23e41063b097f3d4429009bc5a1f58d
Purpose: dramatically reduce how long it takes to run
$ tox -e pep8,genconfig
improving usability and dev productivity.
Change:
Replace full requirements.txt + test-requirements.txt install by minimal deps
for pep8 and genconfig testenv's
Result:
- tox -epep8 time reduces from 3m30s to 16s on initial run and
from 50s to 5s on subsequent runs
- tox -egenconfig time reduces from 3m46s to 12s on initial run and
from 1m13s to 3s in subsequent runs
(Times measured on my machine; similar proportions expected on other machines)
Change-Id: I0596a6970725189fd9b46a0cac923b86ccb03f8c
Delete python bytecode before every test run.
Because python creates pyc files during tox runs, certain
changes in the tree, like deletes of files, or switching
branches, can create spurious errors.
Closes-Bug: #1368661
Change-Id: If31ffc245ade9f62b61f99246e59208208ed4fb1
congress.conf.sample is out of date, some important options don't
present, like: api_workers, and some option name are wrong, like:
datasource_drivers
We should use oslo-config-generator to generate all the options
automatically.
Change-Id: Id898840667116278c55e4a7568cf80497db4833f
Closes-Bug: #1488405
Some python libs installing failed in py3 jenkins
environment because LC_ALL=C in tox.ini, change it
to LC_ALL=en_US.utf-8.
Change-Id: Idb6493aab48ce9f10228a2b87543e6b3db7e5fb2
Enabled H405 multi line docstring summary not separated with an empty
line in tox testing.
Change-Id: Icc6266a2e024a0953a77a116a11eb88facc291b9
Closes-Bug: #1398554
Enabled H904 on tox and changes made in relevant files to adhere to H904
guideline. Backlash based line wrapping modified to use bracket based or quote
based wrapping mechanism with modified indentations.
Change-Id: I10b1ce7fbc230ff3167adbb06e0982b4cc0b0bb7
Closes-Bug: #1398555
Enable: H305
Though all changes were in place but imports were not
grouped at test.utils.py. And also H305 was not enable
in tox.ini.
Change-Id: Iab92489f3af7da8a708aa8cff3e7d67f2114665e