Commit Graph

41 Commits

Author SHA1 Message Date
elajkat 8d82419125 Bump hacking
hacking 3.0.x is too old.
Try to synchronize pylint ignore and extension list with
other Networking projects.

With new pip the order of packages is not relevant, so the
related comment from requirements.txts is removed, see pip
documentation:
https://pip.pypa.io/en/stable/cli/pip_install/#installation-order

Change-Id: I586eb25b42d432e0b2158ddebb2dac013f712506
2024-02-13 09:09:06 +00:00
elajkat e7977090f3 docs: Fix releasenote building
Change-Id: I4936c6ac2df293abfb6e678e92b2dcd34640cb5e
2023-10-30 11:32:39 +01:00
elajkat 1ef9316e92 Add pylint to pep8 and adopt code to the results
Change-Id: Ia9048ef2dbc602ecd571da502ac2131b575f59ac
2023-01-30 13:39:38 +01:00
Rodolfo Alonso Hernandez 1ffcb341d7 Fix tox.ini for tox4
Change-Id: I4e4281f3fdfef70b310b90c5762c459e061fff8b
2022-12-25 08:58:25 +01:00
elajkat 3b110ff405 Cleanup tox.ini
For details see the mail:
https://lists.openstack.org/pipermail/openstack-discuss/2022-November/031343.html

Change-Id: I936c121d37c2b19da48836607917dccfd50d5b22
2022-11-29 12:11:23 +01:00
elajkat 51b36d9c9c Make master working again
Changes:
- Use privsep execution.
- Streamline tox.ini and setup.cfg
- Remove lower-constraints job

Depends-On: https://review.opendev.org/c/openstack/neutron/+/764015
Change-Id: I0017028ff35fe1f375d67e15e9f03f6917f8ccff
2021-02-04 13:22:35 +00:00
elajkat dd49e36bab Switch to hacking 3.0.1 and to testing on focal
Make the code compatible with hacking rules:
* import order problems
* line break before/after binary operator (for this added ignore for
W504, line break after binary operator
* indentation problems

I removed the rule N530 (Direct neutron imports not allowed), as that is
a longer story.

Fix mysql syntax in tools/test-setup.sh
Fix constraints files for testing on focal

Change-Id: Iacb12d5add773404468e2b755cf95c4e6e54ec99
Depends-On: https://review.opendev.org/#/c/708965/
Depends-On: https://review.opendev.org/752416
2020-09-18 07:54:33 +00:00
elajkat 5c776ddfa9 Enable doc building job
Add docs job to .zuul.yaml and make tox -edocs target working again.

Change-Id: I1544bd93e1d861b89615079e7cc9d570600674bc
2020-08-10 09:30:08 +00:00
Zuul 0fc14ac459 Merge "Adds policy in code to Tap-as-a-Service" 2020-02-06 11:39:11 +00:00
elajkat 79dbc11dd1 Remove python2 jobs for tap-as-a-service
Since neutron-lib changed to python3 only (see [0]) it's time to remove
python2 jobs for tap-as-a-service.

[0]: https://review.opendev.org/702098

Change-Id: I4a8b016377805d6f304c08baee2ef7e161697112
2020-01-23 14:54:32 +01:00
jessegler b2b225e967 Adds policy in code to Tap-as-a-Service
Adding oslo.policy allows operators to use and customize RBAC for tap-as-a-service instead of
relying on Neutron's default policy.

Change-Id: I6132054ef3bd8423990f91fae6329dfd089660b4
2020-01-09 12:52:26 +00:00
Zuul 595f89d9f9 Merge "Update URLs after opendev.org migration" 2019-05-28 07:54:48 +00:00
YAMAMOTO Takashi 9fd3404036 Switch to stestr
This commit includes the following unrelated changes
to pass the gate.
----------------------------------------
Update sphinx requirements

After the recent change in the global requirements. [1]

[1] If558f184c959e4b63b56dec3ca1571d1034cfe5c

Closes-Bug: #1829138
Change-Id: Ic43783255091b77030983d5de0011b9bf4c3a486
----------------------------------------

Closes-Bug: #1829121
Change-Id: I06848d68f8e21880f05c003c2aa444f04dea2ef8
2019-05-16 00:38:36 +09:00
YAMAMOTO Takashi 290d3aeebe Update URLs after opendev.org migration
Change-Id: I773bc4e56343f82e66c9502b9a58038e11df28c4
2019-04-26 20:57:53 +09:00
Boden R 97bb1b3383 use rpc from neutron-lib
We recently removed nenutron.common.rpc [1] as the rpc module lives in
neutron-lib now. This project was missed because I didn't find
neutron.common.rpc as an import.

This patch switches rpc uses over to neutron-lib.

[1] https://review.openstack.org/#/c/634790/

This commit includes a part of the following commit
to pass the gate.
----------------------------------------
Fix zuul job failures

Fix zuul job failures

Change-Id: I1d073b8c58e32669ecf6932512b94c8a2cabf70e
----------------------------------------

Co-Authored-By: Deepak Tiwari <deepak.tiwari@aricent.com>
Change-Id: I053b5c56594e1a914143a2308fef77349dfa7ea4
2019-02-19 20:39:21 +09:00
Boden R 81038295e7 add local tox targets for pep8 and py3
This patch adds local tox targets for pep8 and python 3 as per [1]
that will install dependencies in editable mode.
To run them use the pep8-dev and py3-dev targets respectively.

[1] https://etherpad.openstack.org/p/neutron-sibling-setup

Change-Id: I22e4ddc1d9a2e82bfb13302caf5be948607bb722
2018-09-26 14:53:27 -06:00
YAMAMOTO Takashi 30809d7732 Update to use setup_extension
Update after the removal of _setUpExtension. [1]

[1] I8135fc4eb05e474db7224b7771b71270a93a47bf

This commit includes the following unrelated change
to pass the gate.
----------------------------------------
Fix cover job

Copy-and-paste from networking-midonet.

Closes-Bug: #1794509
Change-Id: I5ae3be917deb94673928a236662f953e4cd143ac
----------------------------------------

Closes-Bug: #1794457
Change-Id: Ia4d84c7f0dcea44e3131dd756853c003e9c8471d
2018-09-26 20:45:02 +09:00
Doug Hellmann 84846d52fd 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.

Modify lower-constraints.txt so that it matches the settings in the
requirements files.

See http://lists.openstack.org/pipermail/openstack-dev/2018-March/128352.html
for more details.

Change-Id: I7f8b14b5238cf92002d507104c8506e6a1c895dd
Depends-On: https://review.openstack.org/555034
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-07-26 05:14:53 +00:00
Andreas Jaeger b762ecf9e5 Avoid tox-install.sh
Instead of using tox-install.sh, we can install horizon and neutron
now directly from pypi - or use the current branch in CI system using
tox-siblings.

Update tox.ini for this change and add neutron to requirements file.

This commit includes the following unrelated changes
to pass the gate.
----------------------------------------
devstack: Use setup_develop to install

As this project is in the global requirements now,
we need to edit the constraints.

Change-Id: I44e05b4e7b6f1c15314799c4a1e8c22f79abb74a
----------------------------------------
Update after rpc create_connection removal

Recently neutron.common.rpc.create_connection has been removed. [1]

[1] I2f4b24ba732be47fc9911be1e24406fb1ffe821e

Closes-Bug: #1770851
Change-Id: Ie83299b7a280dab0d5dc9dc3304b5d6091b4a0cc
----------------------------------------

Co-Authored-By: YAMAMOTO Takashi <yamamoto@midokura.com>
Change-Id: Ifffca6361b1c3991481442053bf182bde3c2d44a
2018-05-13 18:15:17 +09:00
YAMAMOTO Takashi e528a0ba81 Add release notes
Basically copy-and-paste from networking-midonet.

Change-Id: I3b2b88c662bcc51782d92d3e87cc7e63762c4faa
2018-03-01 10:45:31 +00:00
YAMAMOTO Takashi a9f4eb45e5 Add coverage threshold
Copied from neutron change [1] via networking-midonet.

The threshold value is a bit arbitrarily chosen, considering
the current coverage which is about 51%.

[1] Ia30116fff8b834486bde93c329543fce15be429f

Change-Id: Id7478534553e072b6c500540481ebf220a30c0d5
2017-08-07 08:41:19 +09:00
YAMAMOTO Takashi 7b02840644 tox.ini: Fix cover target
Sync with networking-midonet.

Closes-Bug: #1708337
Change-Id: I9a25de699a551dccc293a5149db09fcd26e05994
2017-08-07 07:56:14 +09:00
daohanli ee64e4ae60 Drop py34 target in tox.ini and setup.cfg
We support py35 now.We do not have python 3.4 in setup.cfg which
declares the explicit
supported versions.so it is no need to keep the supoort for py34.

see:https://review.openstack.org/#/c/349069/

Change-Id: I1a37b49bf15906578d098620a972899f3b9d48dc
2017-03-30 09:07:16 +08:00
YAMAMOTO Takashi 97460ae286 Use tox_install convention
Copied from networking-midonet.

Closes-Bug: #1646436
Change-Id: Ic66367eb797bddd3b7e0ffd2a65c0a3f719507f1
2016-12-01 19:28:19 +09:00
Abhishek Raut 7e61def38f Switch to internal _i18n pattern, as per oslo_i18n guidelines
Guidelines referenced from:
http://docs.openstack.org/developer/oslo.i18n/usage.html

Change-Id: Ie0984a1fc53d423e541d5dd59ce34f807c8f4513
2016-09-11 04:10:50 -07:00
Jenkins cc5ce2bbf8 Merge "Enable DeprecationWarning in test environments" 2016-08-24 03:41:51 +00:00
Henry Gessau 58c66696c1 Enable DeprecationWarning in test environments
Many deprecations are triggered early (on imports, for example)
before the warnings are enabled by the WarningsFixture in the
base test class.

To make sure all DeprecationWarning messages are emitted we enable
them via the PYTHONWARNINGS environment variable.

Change-Id: I64485da329b9ac8915675885783ffd5b2bf81ea6
2016-08-18 20:36:41 +00:00
Abhishek Raut 57382befb9 Bring models in sync with migrations, add test
Bring the sqlalchemy models in sync with the alembic migrations.

Add the neutron standard model-migration sync test. The test is added
to the unit test env since TaaS does not have a functional job
yet. This requires that TaaS uses the python-db-jobs template in the
gate.

Change-Id: Id7e0d53d0a600b39bbaf9ef0555e0d9b45459b8a
Related-bug: #1605675
2016-08-17 13:31:29 -07:00
Yatin Kumbhare 3a6d08e0af Add Python 3.5 classifier and venv
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: I9ec09684fccf532084ac0a5acfeeb6e5cb0ae72c
2016-07-12 21:18:34 +05:30
Jenkins fe2d77448d Merge "Add report to coverage" 2016-06-06 04:58:23 +00:00
Abhishek Raut ced6e31d20 Initialize alembic branches for TaaS repo
Add alembic migration branch for tap-as-a-service repo. Scripts
for new tables owned by TaaS must now be added here.
Also adds PEP8 changes to check migration branch points.

Closes-Bug: #1583889
Change-Id: I6d03090c3c90bf7d05eddafa5ac7e502cc13cfe8
2016-05-06 05:56:59 -07:00
reedip d3c73b86f8 Add report to coverage
Following patch adds report display to the
output of coverage.

TrivialFix

Change-Id: I47f30e3ce13ef4f1a3dd05f6079db8f1f4dda847
2016-02-16 12:09:13 +09:00
Ondřej Nový e6100387fc Deprecated tox -downloadcache option removed
Caching is enabled by default from pip version 6.0

More info:
https://testrun.org/tox/latest/config.html#confval-downloadcache=path
https://pip.pypa.io/en/stable/reference/pip_install/#caching

Change-Id: Ie151f3719de540e11516b8b2eddbe82bc4123978
2016-02-15 08:10:19 +00:00
Jenkins f131dddbc3 Merge "Fix db error when running python34 unit tests" 2016-01-19 08:58:28 +00:00
Reedip Banerjee 930189e8c6 Fix db error when running python34 unit tests
If tests for py27 is executed before py34 tests, then
there is a chance that py34 related tests may fail.The following
patch fixes it.

Ref: https://review.openstack.org/#/q/status:merged++topic:bug/1489059,n,z

TrivialFix

Change-Id: I9dd8cab4425eb010a9d03e7c103cd00989a96cda
Closes-bug: #1489059
2015-12-14 02:41:29 +00:00
Reedip Banerjee e3511392c6 Delete python bytecode before every test run
Because python creates pyc/pyo files during tox runs, certain
changes in the tree, like deletes of files, or switching
branches, can create spurious errors.

This patch removes these unrequired files when tox
starts execution, along with the __pycache__ folder for
py3* compilation.

Change-Id: Iea5f19ab8a4d56dedaa8c3a3950af041d3ff5b9f
Closes-Bug: #1368661
2015-12-14 02:40:18 +00:00
YAMAMOTO Takashi c36052b0ec tox.ini: Fix cover by giving the source directory explicitly
By default, testr assumes that the name of distribution
([metadata]name in setup.cfg) matches the name of the source directory.
However, they are different for this project.  Fix the problem by
giving the source directory explicitly via an option provided by pbr.

Closes-Bug: #1502002
Change-Id: Ib17d53230e5a36a028438c0f2919f07c6013bfe2
2015-10-06 22:22:53 +09:00
YAMAMOTO Takashi abd9efb458 tox.ini: Fix a typo in cover env
Partial-Bug: #1502002
Change-Id: I1d10dc97e34c4ffbac828d7864faf6df12f24d50
2015-10-06 22:19:56 +09:00
YAMAMOTO Takashi 7dc7c7cdb0 Start writing tests
Also, sync requirements with Neutron.

Partial-Bug: #1501792
Change-Id: Ib5f70646ddcbc807d45c8d352219029a8d9530d1
2015-10-02 02:57:37 +09:00
vnyyad deefb05067 Changed tox.ini file to reflect only py27 and pep8
Change-Id: I3ad049a89c2ded6d2862a25d97c999ed6e801752
2015-07-24 18:11:52 +02:00
vnyyad 82875c7358 Initial Cookiecutter Commit.
Change-Id: I14a0fcfead379eef6581a2527ef3d1a6e4cc0d4b
2015-07-24 16:09:56 +02:00