Commit Graph

24 Commits

Author SHA1 Message Date
asarfaty
6a05cd2383 Fix requirements
Change-Id: If2a32b0bbf6bbcdc3b911224adb8943a7a34897b
2020-12-10 09:52:34 +00:00
asarfaty
2bec74a470 Add coverage tests
Change-Id: Ib5fd4421dcc4179aefff5886552d831a271e1866
2020-04-14 13:53:58 +02:00
Adit Sarfaty
b13aff57d8 Stop testing python 2
Since it's no longer supported past Train, lets stop
running the tests.
Please also see the related neutron patch:
I1c171ab906a3b4c66558163ad26947ebf710a276

Change-Id: Iea431ea4cd56400d0867bdb4212f1c72f7cf6c72
2019-10-31 11:55:45 +00:00
Boden R
1902030e5b update for python3 train jobs
Change-Id: I66c60ec6088da2260f987177aeea635132db2913
2019-07-11 09:45:38 -06:00
Boden R
54d04d4fe1 update hacking and bandit
This patch updates hacking and bandit versions to match what neutron
and others are doing. It also fixes and ignores some new pep8 errors
that crop up due to the version bump. Finally the doc requirements are
moved to doc/requirements.txt to match what other projects do, even
though this project does not build docs today.

Change-Id: Ibe07dbdbaccc220b5ea2a628d342a09a01b09d11
2019-05-30 10:30:50 -06:00
Boden R
85dd63dffa misc build clean-ups
This patch updates build related plumbing as follows:
- Slims down the lower-constraints.txt to only include what we need.
- Updates some requirements to match their versions in vmware-nsx
- Replaces openstack based URLs with opendev.

Change-Id: Id780b5ab63c0355d58526452623305b62ee63a7d
2019-04-30 08:50:18 -06:00
Boden R
457bbc0201 move zuul config to repo
Currently this project has a number of generic templates defined in
it's job definition for project-config. These templates should be
defined at the project level; not global. This patch moves the
templates to the .zuul.yaml of this project.

Also see: https://review.openstack.org/#/c/652680/

Change-Id: Id53907dbb845b7c0f1d025ac5595b94335117a2a
2019-04-22 07:47:40 -06:00
Adit Sarfaty
abc0bec54e Update UPPER_CONSTRAINTS_FILE for stable/rocky
The new stable upper-constraints file is only available
after the openstack/requirements repository is branched.
This will happen around the RC1 timeframe

Recheck and merge this change once the requirements
repository has been branched.

The CI system will work with this patch before the requirements
repository is branched because zuul configues the job to run
with a local copy of the file and defaults to the master branch.
However, accepting the patch will break the test configuration
on developers' local systems, so please wait until after the
requirements repository is branched to merge the patch.

Change-Id: Ie90df27ddc33ddbcea9fce42c5561562b6d80973
2018-08-26 04:51:08 +00:00
Boden R
ab3822413e make python 3 the default for tox.ini
This patch is part of the community goals to enable python 3 first, and
only use python 2 when explict.

To do so, this patch:
- Makes python 3 the default env for non py27 tox targets.
- Addresses any py3 changes in the code.

Change-Id: Iab52979bb720a8df8924108093e5119922622cb9
2018-06-19 11:38:01 -06:00
Adit Sarfaty
4c7f3c384f Add lower-constraints job
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: Idec9c6ffcc67646ef8bc3bc20a378e2e318e4f61
Depends-On: https://review.openstack.org/555034
2018-04-09 06:26:32 +00:00
wangqi
23ca97efa5 tox: Remove unnecessary configuration
These were either unnecessary or overrode default configuration

Change-Id: I237942a0152e860854732168b4d4cb798d0d1fb9
2018-03-27 14:00:19 +00:00
Andreas Jaeger
5efa58c4e3 Avoid tools/tox_install.sh
Remove tools/tox_install.sh and adjust tox.ini for using it.
There's no need for this anymore.

Change-Id: I2d26dc7f6934f6f08540acb1e866e4d012c004a1
2018-03-14 21:19:03 +01:00
Adit Sarfaty
de0c8e29a4 migrate to stestr
ostestr is no longer installed by default by infra and will be totally
removed longer term; stestr [1] is its replacement.

This is the reason out gate is failing with the following today:

nsx/tools/ostestr_compat_shim.sh: ostestr: not found

This patch moves us to stestr by:
- Updating tox.ini to use stestr rather than call ostestr_compat_shim.sh
and in turn ostestr.
- Removing ostestr_compat_shim.sh as its no longer used.

Change-Id: I1f97df69500058a7d330f7be5735a54c68f35559
2018-03-06 07:50:40 +02:00
Gary Kotton
cdcb5963da Remove neutron-lib from the dependencies
The patch removes the neutron-lib from the dependencies. We do not
want/need the consumers of this library to pull in all of the
neutron-lib dependencies.

The patch adds the following:
1. callback to bind is_attr_set - set_is_attr_callback
2. A new exception NsxLibInvalidInput - this is raised when inputs
   are invalid.

Change-Id: Ia8ec71dee2d5de921700a9b4fd7e789d2aed4679
2017-11-15 00:42:05 -08:00
Gary Kotton
4a07ba0c2a Use flake8-import-order plugin
Change-Id: I1a62bd919a10a4827da1e2d18bc414168e34702b
2017-07-04 22:35:02 -07:00
Vu Cong Tuan
667beecf9a Remove support for py34
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: I28f5b9436dac9288604c70ce1eded4408cc02daf
2017-06-07 10:58:31 +07:00
Adit Sarfaty
5a045e3db1 Drop log translations
Log messages are no longer being translated. This removes all use of
the _LE, _LI, and _LW translation markers to simplify logging and to
avoid confusion with new contributions.

See:
http://lists.openstack.org/pipermail/openstack-i18n/2016-November/002574.html
http://lists.openstack.org/pipermail/openstack-dev/2017-March/113365.html

Change-Id: I9b383ef3fd9a6487b1ee7726d892d1a94e3d9370
2017-03-27 08:03:53 +03:00
Gary Kotton
34a36b9426 Add in tox -s cover support
Enable us to do code coverage tests

Change-Id: I586c0a64d2a351b38475afbae2c49d08cb5b5d55
2017-03-01 02:28:49 -08:00
Adit Sarfaty
d7473ecf2f Expand PEP8 tests on nsxlib
There were some directories excluded from the pep8 run, and many checks
were ignored.
This cleans the exclude list, and fixes the PEP8 issues.

Change-Id: Ib56d45443009349a42fecfc14a792fdaa6d88d67
2016-12-25 07:55:36 +02:00
Tony Breeds
64719c6eea Add Constraints support
Adding constraints support to libraries is slightly more complex than
services as the libraries themselves are listed in upper-constraints.txt
which leads to errors that you can't install a specific version and a
constrained version.

This change adds constraints support by also adding a helper script to
edit the constraints to remove vmware-nsxlib.

Change-Id: Ibbb6da2551bf7eb840fb4b1d11e090dbe4db7c52
2016-12-21 14:00:57 +11:00
Adit Sarfaty
73c80d18c5 Fix nsxlib tox init to not fail on upper constraints
Change-Id: Icaa12c1b00c3dfee25aef91c09f4f0350bb21b00
2016-10-13 15:40:05 +03:00
Adit Sarfaty
e9ddc3dd33 Move all nsxlib code and tests to vmware_nsxlib
Change-Id: I75533e713a680674368d16f0a7aeb4fdbffe3608
2016-10-06 09:59:47 +03:00
Andreas Jaeger
f32c46d037 Cleanup tox.ini: Remove obsolete constraints
Remove old and unused constraints environments from tox.ini. Those
have never been used. Use standard environments as default list.

Note that the repo has in the past not used constraints in OpenStack
CI, this change keeps the status quo.

For more information about constraints see:
http://lists.openstack.org/pipermail/openstack-dev/2016-August/101474.html

Change-Id: I37b9109c36b7ee3f8d2b23606e0ed697f38abd9e
2016-08-26 18:17:46 +02:00
Aaron Rosen
d7727dc9c6 Add initial framework using cookiecutter
Change-Id: I4a9da62f0e5ecb07973f54313722a72f2fc556e1
2016-08-08 20:41:29 +00:00