Zaqar is currently broken upstream. Until Zaqar is fixed
we need to temporarily disable the integration tests.
Change-Id: Ife54d48d41b7d1fd5b6129ccd4978e2eb46842ab
In Zed cycle, we have dropped the python 3.6/3.7[1] testing
and its support. Removing the py36 centos8 job as well as
updating the python classifier also to reflect the same.
[1] https://governance.openstack.org/tc/reference/runtimes/zed.html
Change-Id: I253757e2035dbe667905f011f9d05cc5d94e669e
This patch brings some pip packages up to date
and also introduces changes to tox to make sure
that constraints are always respected.
Change-Id: I7f794386b47ae9fd43db2278ee214e015d5b335b
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: I9c2c81c6f6e3064e91ceb1704e4b7cdf86fa8f01
hacking already pins flake8, so do not add it, especially in conflict
with the hacking version. hacking also pins pycodestyle, so remove that
as well.
The repo is Python 3 now, so update hacking for a python3 version.
Blacklist new failures or fix them.
Convert own hacking checks to new flake8 API, update lower-constraints
for this.
Change-Id: I2928b9d764f61a53a549a9eb850c7809bdbb6f74
The api-ref tox env is currently failing, see
http://zuul.openstack.org/build/fd7de0dbca1940b08878dd62ea750fe7 for one
example.
Fix it by using the proper requirements file.
Also, add bindep.txt file so that graphviz is available. The recent
change to not install the global fallback broke the docs building.
Change-Id: I3b76f1cb529a675da6ad9ba9bec3b72a66b460a1
This is a mechanically generated patch to add a unit test job running
under Python 3.6 as part of the python3-first goal.
See the python3-first goal document for details:
https://governance.openstack.org/tc/goals/stein/python3-first.html
Change-Id: Ib4a17e8e7c7162ba235a098de2cf08b8eeaf60fb
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: I2a5f53013c48ca22b19412d4b99f973f90aad8c7
This change adds a sphinx extention to build sections of the policy and
profile documentation from source code.
- Add new extension
- Modify contributor documentation for policies to show spec fields
from source code
- Modify user documentation for policies and profiles to show properties
from source code
- Modify user documentation for policies and profiles to include
samples extracted from examples directory
- Update tox to run pep8 against sphinx extension
Change-Id: I32f68867d14c3288385dbdf3b4df14e8ca2fd01f
Quotes around {posargs} cause the entire string to be combined into one
arg that gets passed to stestr. This prevents passing multiple args
(e.g. '--concurrency=16 some-regex')
Change-Id: I554926367bb01b3f77c664bad2c43cb6f529d9d8
This commit is a follow-up of "switch to using stestr"
which was merged already [1].
After switch to using stestr, testrepository is unnecessary
and should be removed.
[1] https://review.openstack.org/#/c/570808/
Change-Id: I41e98c69839909727968f98b52905a370d0ea626
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: If690ed2c2e50b86abb1faa4bc1d1238fb688a90f
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
Unit tests should run with hash seed randomization
on, to ensure code is not introduced that relies on
ordered access of dicts, sets, etc.
Python 3.3 enables this at runtime by default.
Change-Id: Ia9831b9c8d91fc7de82a1d215b00b498d01d562f
According to Openstack summit session [1] stestr is
maintained project to which all Openstack projects
should migrate.
Let's switch it then.
[1] https://etherpad.openstack.org/p/YVR-python-pti
Change-Id: Ia63e48a8ffee765a2d0ae43ff0054e3c5f61c992
Signed-off-by: Charles Short <zulcss@gmail.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: Ia137d8db4e627d431c2dba3d1925faff33cd482f
Depends-On: https://review.openstack.org/555034
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
This patch enable extensions:
-[H204] Use assert(Not)Equal to check for equality.
-[H205] Use assert(Greater|Less)(Equal) for comparison.
Change-Id: I31084170cd4cd4f4626aac459d9a61a4c5c67153
This commit will prepare for implementing policies in code [1].
Like oslo.config, with oslo.policy, we can define all of
default rules in code base and only change some rules
via policy file. Another thing that we should use yaml
format instead of json format.
[1] https://governance.openstack.org/tc/goals/queens/policy-in-code.html
Change-Id: I8cd6e148d9b6bb1dc61e2cb1728acafc325bca65
Co-authored-By: Hieu LE <hieulq@vn.fujitsu.com>
There are some warnings that are not so interesting when running flake8.
This patch silents some of them.
Change-Id: If0c57c9b9eb14eaddb8a542a2ed9e9a4860b6043
The infra scripts test that msgfiles are correct and will not import
anything. Remove the test - especially since it fails when no
translations are available.
Change-Id: Idd48c9b6b55f08d0aa8a4d049730eee03cdc6eb1
Some of the available checks are disabled by default, like:
[H106] Don’t put vim configuration in source files
[H203] Use assertIs(Not)None to check for None
Change-Id: I646c4d1e36d30eec921fe0e4bb8d288ee134fd4f
Running py2* post py3* tests results in error. Add
'rm -f .testrepository/times.dbm' command in testenv to
resolve this.
Change-Id: I489f0bf6d0946217dc4c8e717f82054ae70d0c14
According to [1], we can passing a "-t" argument to
oslo_debug_helper to indicate the directory where tests
are located. This will solves ImportError exception.
[1] https://docs.openstack.org/developer/oslotest/features.html
Change-Id: I44ea49903b5a49ce0ab359d2ab9db62ab9eeb08d
Closes-Bug: #1666560
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: Icfef7cbcb79d3074164b5812184f8b2a27d005d0
This change is being proposed as part of the OpenStack Security Project
working session at the Austin 2016 summit. It adds support for running
the bandit[1] security linting tool against the Senlin codebase.
This change adds a targeted environment for bandit.
The bandit configuration has been tailored to exclude tests that are
currently producing warning against the codebase. These issues will be
followed up with bug reports and patches.
At the time of submission, Senlin passes all Bandit tests configured
in tox.
[1]: https://wiki.openstack.org/wiki/Security/Projects/Bandit
Change-Id: I54ef7329b9d6f6429838afdc5319f48bcc2e9f33
In 'docs' venv, we are using 'rm' command without specifying that 'bash'
should be provisioned in the venv. This patch fixes it thus removes the
warning when building docs.
Change-Id: I0ef63d930c007d7a479a32f55c273771f4e904e4
This patch adds a test tool borrowed from Rally project
to enable test coverage comparison between master and
proposed branch. With it, coverage test will fail if
new proposed change reduces the unit test coverage.
Change-Id: I0de9cf84eb82e1846aae57c35e33c8b789a629cc
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: I87d6445a451e380a290f4a6cf9364c621dc293e5
This patch defines 'api' test which is based on tempest
in tox.ini. User can perform tempest API test locally by
running 'tox -eapi'. It also fixes an error in README
file for tempest test.
Change-Id: If005adc03606198383e6b9fe38ecc8b8ffee02cc