Commit Graph

165 Commits

Author SHA1 Message Date
Adam Harwell f8d023fbfe Retiring neutron-lbaas
Depends-On: https://review.opendev.org/#/c/658493/
Change-Id: Ia4f4b335295c0e6add79fe0db5dd31b4327fdb54
2019-05-11 03:18:03 -07:00
Zuul a8b96e37ae Merge "Don't quote {posargs} in tox.ini" 2018-11-15 11:43:34 +00:00
98k 51a83d8d74 Don't quote {posargs} in tox.ini
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: I0b09424dd3cef244e8cec1ef87b5992ccb9d5b07
Closes-Bug:#1801823
2018-11-06 01:58:37 +00:00
Boden R 331f1b508d 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: If70b6e746af5bb578f9257dfef0c2f33333b5524
2018-09-26 09:53:38 -06:00
Guoqiang Ding ada1db0561 Update new documentation PTI jobs
For compliance with the Project Testing Interface as described in [1].
For more detailed information, please refer to [2].

[1] https://governance.openstack.org/tc/reference/project-testing-interface.html
[2] http://lists.openstack.org/pipermail/openstack-dev/2017-December/125710.html

Change-Id: Ia6b5bc846ecf8550bce8506046a52e1f67ef28de
2018-07-17 13:08:08 +02:00
huang.zhiping 6ec4823919 fix tox python3 overrides
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: Iddea984cd32fd0b048a396cde27e3d12ae07119e
2018-06-09 18:22:07 +08:00
Doug Hellmann 2978d01209 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: Iebd2d4016dc4643564907176169e2be026c7b278
Depends-On: https://review.openstack.org/555034
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-03-22 16:32:06 -04:00
Michael Johnson 3c1e4ba2e3 Remove tox_install.sh
Fully removing tox_install.sh as it is no longer needed with zuulv3.

Change-Id: I72745f088a92010e43d7c078f8de05d529d20930
2018-03-14 20:16:35 +01:00
Carlos Goncalves f27c44c478 Reduce stestr concurrency to 1 for tempest jobs
The switch from testr to stestr introduced in Change-Id
Icf1f9eb4539666dffb6c9c1651670541523a9f9e missed setting concurrency
jobs to 1 for api and scenario tests, leading to intermittent gate
issues.

This patch also fixes coverage test that got broken in the
aforementioned Change-Id.

Change-Id: I052a9c3b376624f8e9e63faa98f4d09a93bdde4d
2018-03-12 22:52:52 +01:00
Carlos Goncalves 69e092d06d Switch to stestr and wait for LB delete on cleanup
Switch tox.ini to directly call stestr instead of
testrepository which is not maintained.

Also skip a problematic test temporarily until we can resolve the larger
gate issues.

Co-Authored-By: Adam Harwell <flux.adam@gmail.com>

Change-Id: Icf1f9eb4539666dffb6c9c1651670541523a9f9e
2018-03-07 19:32:06 -08:00
Gary Kotton a963dcb60b Use flake8-import-order plugin
Automate the process

Change-Id: I9906d755d535a00eeb6f4369a3a5e8465886e442
2017-09-03 01:59:20 -07:00
Michael Johnson 21bb6ffed4 Remove some LBaaSv1 references
Now that mitaka, the last release with LBaaSv1, has gone EOL cleaning
up any last references to LBaaSv1 in the code.

Change-Id: I68d3b0f5193b52bf46d75d149b4d6e0387695d17
2017-07-24 11:29:47 -07:00
Vu Cong Tuan dc9728c389 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: I32e0021bc374c71df81bfb1de586cf462ea24244
2017-06-22 18:02:32 +07:00
e e44ef6d95f Remove log translations from neutron-lbaas
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: Ia323fc58c66c645fca0254ace01a8849ce239525
2017-05-04 11:23:20 -07:00
Andreas Jaeger 30ea768a8f Use temporary directory for neutron install
Do not install in /tmp/openstack/neutron and leave the git repository
there after the script is run - if zuul-cloner is used.

We run jobs on long lived workers and also on developers machines, let's
cleanup afterwards.

Install into a temporary directory that can be removed with "git clean"
afterwards. Add this directory to ignore list of pep8.

Simplify with using pushd/popd which are bash features, so change
she-bang.

Also, remove setup of ZUUL_BRANCH, this is not needed with current zuul
anymore.

Change-Id: I54d400dea4efdf9ac9b580ff7f0a2bbcceb4df5e
2016-08-28 19:10:49 +02:00
Ihar Hrachyshka ed3a508e2b Constrain remaining tox targets
As per [1], we now can constrain targets that are executed in post
queue too.

[1] http://lists.openstack.org/pipermail/openstack-dev/2016-August/101474.html

Change-Id: I02b28d3b354c3b175147c5be36eea4dc7e05f2a3
2016-08-12 11:35:52 +02:00
Henry Gessau cba50ea7c3 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: I284441a3e361bc5d771f553ed0a94bdc7e90ac6c
2016-08-09 18:56:30 -04:00
Jenkins 94b3223174 Merge "Set up hooks for the functional job and add test_migrations test" 2016-07-13 21:02:03 +00:00
Brandon Logan 7f87f63911 Allow tox to be run with python 3
The tox.ini has some unicode characters that cannot be
decoded, so just executing tox will immediately cause an error
because the tox.ini cannot be parsed.

Change-Id: I32a53cc4b019445f1f7a1dca847f14eba4bda81c
Closes-Bug: #1600068
2016-07-08 14:28:18 -05:00
Elena Ezhova 2317364c31 Set up hooks for the functional job and add test_migrations test
Add gate hooks for the dsvm-functional job including set-up of
configure_for_lbaas_func_testing.sh script and corresponding changes to
tox.ini.

PyMySQL dependency was moved from test_requirements.txt to
functional/requirements.txt.

test_migrations.py was moved from unit tests to functional in
order to prevent it from being skipped in case of db backend
unavailability.

Fixed failing TestModelsMigrations test by importing modules with
missing models in db/models/head.py

Closes-Bug: #1585116
Closes-Bug: #1596984
Change-Id: Ic39805ea0ed330ef7da82043f77077e8a5617ca0
2016-07-07 03:04:24 +00:00
Gary Kotton 81e2f5c4ba Remove check_i18n files
The translations are done via the pep8 checks. This code is no
longer needed and very out of date.

TrivialFix

Change-Id: I39d865dd7b8a3611a7c233b8f18207db984cf079
2016-06-08 10:24:28 -07:00
Jenkins c851ac5772 Merge "Finish to port unit tests to Python 3" 2016-05-03 14:30:41 +00:00
Doug Wiegley 7752cd17d9 Switch to using hacking checks from neutron-lib
Temporarily comment out the 'no neutron' check.

Partially-Implements: blueprint neutron-lib
Change-Id: Ic7a12fd0be0bbeb278771232eb9236c01b195bf2
2016-04-21 20:23:46 -06:00
Victor Stinner b5c717a21d Finish to port unit tests to Python 3
Since test_v2_plugin_driver was the last test failing on Python 3,
the whitelist tests-py3.txt can now be removed. All unit tests now
pass on Python 3!

* Replace contextlib.nested() with neutron_lbaas.tests.nested()
* Remove tests-py3.txt
* tox.ini: remove py34 commands, inherit the testenv commands

Blueprint: neutron-python3
Change-Id: I42d24352fc0a978cceaf040b76f6a29974f64614
2016-04-21 10:08:06 +02:00
Doug Wiegley 445e5c9224 Don't use zuul-cloner in venv env, for periodic jobs
Partial-Bug: #1568708
Change-Id: I72bd69d754a3c0b0a12ef4b466d5fada00ba240a
2016-04-15 09:20:19 -06:00
Armando Migliaccio 8fd04669c1 Move away from locally installed packages
Otherwise we'd continue to pull tempest from source.
Ultimately we'd need to move away from pulling tempest by
switching to using the plugin model [1], but this is an
interim step until that can be done.

[1] http://docs.openstack.org/developer/tempest/plugin.html

Change-Id: I033c035be4e72a56badd1283322bf92c12fcf13d
2016-04-11 10:27:26 -07:00
Armando Migliaccio 1c9ae7cde3 Fix multiple job failures
zuul_cloner errors during tox job setup, and pep8 complains too.

Change-Id: I1d1ca087982d7bdda983686775736ed258026aeb
2016-04-01 19:00:57 -07:00
Jenkins bfd5c71531 Merge "Add a whitelist of tests passing on Python 3" 2016-03-23 16:39:29 +00:00
Manjeet Singh Bhatia 761b977dbf correct tox.ini for coverage
using testr will end up in issue while running tox -e cover and may not
work as desired. this patch will replace it with test as its done in
neutron_vpnaas [1].

[1]. https://github.com/openstack/neutron-vpnaas/blob/master/tox.ini#L113

Change-Id: If2c10efcda6564daaeba1e8be8cf883a43277662
2016-03-14 23:43:52 +00:00
Victor Stinner c1718c6ccf Add a whitelist of tests passing on Python 3
* Add tests-py3.txt: whitelist of tests passing on Python 3
* Add 4 new tests to tests-py3.txt
* Replace six.maxint with six.maxsize, sys.maxint was removed
  in Python 3.
* tox.ini: modify py34 to use tests-py3.txt

Blueprint: neutron-python3
Change-Id: I7d6641ff077dc2baa565a7ab54dfd863c0ad92b8
2016-03-14 09:50:22 +01:00
Jenkins 20c01c1075 Merge "Delete tempest fork" 2016-03-13 22:49:35 +00:00
Cedric Brandily 2d12bcc768 Delete tempest fork
A while ago we copied Tempest networking API tests in to the Neutron
repo, and along came thousands of lines of code of Tempest testing
infrastructure (neutron.tests.tempest). For a while we periodically
refreshed our fork via: tools/copy_api_tests_from_tempest.sh

It's time to remove tempest fork[1] and use tempest_lib when possible or
tempest itself for code not moved to tempest-lib instead of duplicating,
forking tempest as done in Neutron, Manila & Ironic.

This change is based on the similar work done in Neutron tree[2].

[1] neutron_lbaas.tests.tempest.lib
[2] I4f9193dfe26f2d36985cb480a98709ec182a2f7b

Co-Authored-By: Franklin Naval <franklin.naval@gmail.com>

Closes-Bug: #1536852
Change-Id: I516b37d45200cc120a929ecd9011ff8bb4c45d9f
2016-03-13 03:50:37 -05:00
Ihar Hrachyshka aa47f23690 Make all tox targets constrained
Since lbaas gate has not switched to -constraints targets yet, we can
remove them right away.

Note: override install_command for releasenotes and cover targets since
corresponding gate jobs do not provide constraints file yet.

Change-Id: If3c143153d0a09378092791e76f1a728fb978aed
2016-03-08 15:47:08 +00:00
LiuNanke bf3cf402d5 Clean up removed hacking rule from [flake8] ignore lists
We bump hacking>=0.10.0, and hacking removed some rules, for
the full list of rules please see [1]. So don't need them any more.

Hacking related commits:
Remove H904 in commit b1fe19ebebe47a36b905d709467f5e82521bbd96
Remove H803 in commit f01ce4fd822546cbd52a0aedc49184bddbfe1b10
Remove H307 in commit ec4833b206c23b0b6f9c6b101c70ab925a5e9c67
Remove H305 in commit 8f1fcbdb9aa4fc61349e5e879153c722195b1233

[1]https://github.com/openstack-dev/hacking/blob/master/setup.cfg#L30

Change-Id: Ife6c13ec45d30a8f3a8500bbb545a43ab7d6476f
2016-01-14 16:49:42 +08:00
Jenkins 23abc848ca Merge "Deprecated tox -downloadcache option removed" 2016-01-12 23:15:25 +00:00
fumihiko kakuma fb7ab464e4 Fix a typo from UPPER_CONTRAINTS_FILE to UPPER_CONSTRAINTS_FILE
Change-Id: I22a5cecfeeca394cd6e1f2f889b402e6205fa2e2
2015-12-17 11:44:40 +09:00
Ondřej Nový 71eb730a91 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: I550e5bc542d52387d3279cbcaf3dd8e55668d521
2015-12-12 11:35:37 +01:00
Jenkins ad7072c404 Merge "Added constraints tox targets" 2015-12-11 00:15:22 +00:00
Martin Hickey e719861c00 Automatically generate neutron LBaaS configuration files
This adds a new tox environment, genconfig, which generates sample
neutron LBaaS configuration file using oslo-config-generator.

DocImpact: Update the docs that LBaaS no longer includes static example
configuration files. Instead, use tools/generate_config_file_samples.sh
to generate them and the files generated now end with .sample extension.

Partially-Implements: blueprint autogen-neutron-conf-file

Change-Id: I25507f3bc6e995580aa91a912c2cf4110757df15
Partial-bug: #1199963
2015-12-09 15:14:56 +00:00
Ihar Hrachyshka 0fc57a7ee3 Added constraints tox targets
These are eventually going to be used in gate instead of unconstrained
jobs. There is some code duplication in commands definitions, but tox
does not allow to inherit definitions with {posargs} substitution.

Made tox_install.sh use constraints file to install both the project and
neutron dependency, if the the first argument is 'constrained'.

Change-Id: I699022b285594edf3c5db10fbdac2f904dc42928
Partial-Bug: #1522503
Depends-On: Ic2f9bc047f886bf2f9a4646e7f39f3b71f0cfc79
2015-12-07 20:29:13 +00:00
Jenkins aaf641dcd0 Merge "Add reno for release notes management" 2015-12-04 20:02:21 +00:00
Kyle Mestery ff7fe8910c Add reno for release notes management
Change-Id: If43affdeea60cfa09d75b0e23515191caa47d433
Signed-off-by: Kyle Mestery <mestery@mestery.com>
2015-12-04 10:19:20 -06:00
Jenkins 1e155cc593 Merge "Put py34 first in the env order of tox" 2015-12-03 23:53:20 +00:00
Shuquan Huang 93fc926f41 Put py34 first in the env order of tox
To solve the problem of "db type could not be determined" on py34 we
have to run first the py34 env to, then, run py27. This patch puts py34
first on the tox.ini list of envs to avoid this problem to happen.

Change-Id: I7e279cbb3a6c4710b8361c8cc2df368bd28c3203
Closes-Bug: #1489059
2015-12-02 21:33:55 +08:00
Doug Wiegley c6aa58f673 Switch to internal _i18n pattern, as per oslo_i18n guidelines
- Guidelines referenced from:
  http://docs.openstack.org/developer/oslo.i18n/usage.html

Change-Id: Iac380e55ee0e21f40d14acdd1bcba2cb8cc8c826
Partially-Closes-Bug: #1519493
2015-12-01 19:23:33 -07:00
Doug Wiegley f5e16950f0 Remove pylint from pep8
Intended to be temporary, to unwedge gate if the pinning doesn't pan out.

Change-Id: Ib0259f612b9a74e89a4e6cbca2e01c048ed69422
2015-12-01 08:39:02 -07:00
armando-migliaccio e2d0ffc25a Allow API tests to run in the gate
For more info, check [1].

[1] Ia7dcc6785390a6012c7ba16a14573aa44f2b6fb5

Related-bug: 1518632

Change-Id: I89ef8117209357265667f8ace4ea6ab2c998ee0c
Co-authored-by: Ihar Hrachyshka <ihrachys@redhat.com>
2015-11-24 14:51:46 -08:00
Arie Bregman ae573d11bc Disable automatic config file discovery for pep8 target
When trying to run pep8 target on a system with installed
/etc/neutron/neutron.conf file, neutron-db-manage may fail due to
access denied to the configuration file. This is because oslo.config
attempts to discover configuration files automatically if they are
not passed with --config-file argument.

To disable auto discovery, we pass --config-file to the tool.

Change-Id: I89b5cbae1fcbf662cba6bc724681d0cfeeb0eb9c
2015-11-23 13:06:21 +00:00
Ihar Hrachyshka 4270d559d3 Revert "Revert "Remove TEMPEST_CONFIG_DIR in the api tox env""
This reverts commit 286f5d41dc.

The revert was merged too quickly, without waiting for tox project to fix us.
The gate passed for the revert only because infra folks removed images
that had new tox in them. We will be broken by the next images though.

Change-Id: Idad2c656e4271d1222e6f8939eb90c6353e1fe67
2015-11-12 17:27:35 +00:00
Armando Migliaccio 286f5d41dc Revert "Remove TEMPEST_CONFIG_DIR in the api tox env"
This reverts commit ad815651de.

Change-Id: Ieb26c5b18ed2e5a3e61a54fbb511e4dd8a4e5a4b
2015-11-12 00:21:11 +00:00