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: Iece749b90ec90bec1f5324bc351878e6252720ed
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: I5a92105f7cfbcabf521150d65f89b14cea62db0f
'pip install -U' ugrades specified packages, this is not necessary
since we use constraints, remove the parameter '-U' from the line.
Change-Id: I2582c1a1995bb4cf903d4ce2e1ebb3fca930ea01
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: I6267a0287dd9ae1296fdc775bb3848be9b52978c
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: Idba5b407405e7d1457a02b074bf60b7fded284ee
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
Bindep is a tool for checking the presence of binary packages needed
to use an application / library. It started life as a way to make it
easier to set up a development environment for OpenStack projects.
Change-Id: I28dd0e00734be85cb4b66a09708c0dee8dcb5ef1
Signed-off-by: Paul Belanger <pabelanger@redhat.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: Ib89fed1004a5e4f7a0234fdccf6b8e1d85f3eee0
Depends-On: https://review.openstack.org/555034
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
pip_missing_reqs has some bugs and is renamed(see [1])
to pip_check_reqs since v2.0. Switch to pip_check_reqs
module to get the bug fixes and updates.
[1] https://pypi.python.org/pypi/pip_check_reqs/2.0
Change-Id: Ic562975a82861d4e7cf322a982a60e0c6041ad44
The app.wsgi file should be adjusted to meet pep8 standards
and apply pep8 check to app.wsgi automatically.
Change-Id: Ie9be25fb6bd290c65c25907309f482d736fb8a68
This change prepares the magnum project to start implementing
policies in code. Subsequent patches will register more magnum
policies in code and remove the corresponding entry from the
policy file maintained in source.
This is part of a community effort to provide better user
experience for those having to maintain RBAC policy. More
information on this effort can be found below:
https://governance.openstack.org/tc/goals/queens/policy-in-code.html
Change-Id: I0e2b34067ea1e4d5868df544a9f65ae3f1944c43
Co-authored-By: Dai Dang-Van <daidv@vn.fujitsu.com>
Implements: blueprint policy-in-code
Some of the available checks are disabled by default, like:
[H106] Don’t put vim configuration in source files
Change-Id: I18babfaae830b13a53dcd13ce9233fc28652a787
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: I5c25c86a79ace5be46c7254cc0ccdc2183303a7c
Closes-Bug: #1666560
Sphinx complaints about a missing file, fix this with renaming the file
to the intented name.
Treat sphinx warnings as errors to avoid these kind of problems. Remove
the not needed note anymore, this works fine as is.
Change-Id: I3849f788bdea822bf73bb334bf8d230e723e6c5b
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: Id6d387d7e2cf6395a7ccff6291c9c73787984d51
Similarly to pep8 checks, this allows enforcing a consistent
style of the shell scripts accross modfications. For now
only the indentation is enforced to reduce code churn.
Closes-Bug: 1648099
Change-Id: Ie66cbe1aea4bd01a8bba8833ef6cbd2cff6a7c6a
Many deprecations are triggered early (on imports, for example).
To make sure all DeprecationWarning messages are emitted we enable
them via the PYTHONWARNINGS environment variable.
Change-Id: I3890dadba51bd1a112ac24bfb3a1e15afe96d3e1
This patch init api-ref document structure and
adding some requirements based on the guidance of
OpenStack API team.
Get ready for os-api-ref sphinx theme change
Change-Id: I896c8752fbcf15ec8e5bc6b3862a1ed040936215
Implements: blueprint magnum-doc-rest-api
* checkout one commit before the latest and check coverage
* check coverage with the latest commit
* all new lines must be tested
This functionallity essentially compares the current change
with the master branch, since the coverage job runs always
for only one change.
Partial-Bug: #1511667
Change-Id: I2ab9078489f30dbc383c068bb9abc0f3b9ee0e62
Openstack infra now supports upper constraints for
all jobs. Updated tox.ini to use upper constraints
for all jobs.
Change-Id: Idc8c6cb9b0fa3b547bd78638394fdf1687827e33
Closes-Bug: #1614117
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: Ifd69012586ecb59faaab2a474f43efde9b244756
* Add a CoreOS test class TestCoreosKubernetesAPIs
* Add a CoreOS test environment in tox.ini
* Create a base class BaseK8sTest and move OS-agnostic k8s testing
code to that class.
* Increase the disk size from 8G to 10G for m1.magnum and s1.magnum,
since CoreOS image requires more disk space to boot.
* Set os-distro property for CoreOS image.
Partial-Bug: #1546101
Change-Id: Ie56a9442ecebe05f39c7669bc950f5a6ca11df33
The constraints environments are not used at all, they have been
obsoleted everywhere in OpenStack. Remove them completely.
Now the normal jobs can use constraints - as magnum already does.
Change-Id: Iecec444fba59923c7894c1fd2a90aebbfdc4724d
In Ia400b5b6919753d6241233a6666a2c30c7618bc9, we are
adding a new library to global requirements. This
python-k8sclient library essentially has the same
code that was in Magnum so it's a straight replace.
Change-Id: Ib85bcf532e4163d5c1ac95ef701a1ec3133b69eb
Introduce reno to handle release notes as files in-tree.
Also added documentation on how to add re for changes, after this we
will require changes to add reno if they have some significant changes.
Implements: blueprint add-reno-for-release-management
Change-Id: Ifc18b78ab5ce89375b85f6ac4344ffafa7f1c48b
This will force pip install to use the upper-constraints.txt specified
version of pip modules. When you don't do this, you are out on the
bleeding edge and become unstable everytime some python library in the
wide world changes in a way that you don't expect.
Change-Id: I962329075b11d3790dc586ba33fe19fc64f1e4f9
Closes-Bug: #1563038
* Remove bandit.yaml so bandit just uses internal defaults. Results
in much less maintenance.
* Raise the severity level of the scan to just medium and high
* Added nosec to line that makes use of file:// scheme. That support
should probably be droppped at a later time.
* Removed a misleading log message noting what address it was
serving on. Bandit also flagged this as a potential security issue
serving on 0.0.0.0.
Change-Id: I3e08e462255f7b4ba8405d69f5843ed3c001d055
We are going to support python3.4, it's better to add py34 to the
envlist so that devs can fix python3 compatible issues.
Change-Id: I8b478f78c5fd2fb11e6fdcb02bffb10929113a18
Merge bandit job into the voting pep8 target. Pep8 is used here as
general target for lint-like jobs. This will make the bandit job voting.
Looking at recent runs, bandit passes fine, so it's time to enable it.
Once this change is in, the non-voting bandit change can be removed from
OpenStack CI to reduce node usage and the entry in tox.ini can also be
removed.
Change-Id: I9bf1a741336abf830a092f0fb372116d08e6127c