Commit Graph

67 Commits

Author SHA1 Message Date
Sean McGinnis 7839f35ca3
Retire repo
This patch completes step 2 of the infra project retirement process
found here:

https://docs.opendev.org/opendev/infra-manual/latest/drivers.html#step-2-remove-project-content

Reference:

http://lists.openstack.org/pipermail/openstack-discuss/2020-June/015600.html

Depend-on: https://review.opendev.org/737566

Change-Id: Id3a5477860323547a4e17155061f597a8c96640b
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-06-23 10:49:40 -05:00
caoyuan 9573e43aa4 Replace git.openstack.org URLs with opendev.org URLs
Change-Id: Id34a36ee10fa0f30a20800b10656a85f6f3a5577
2019-06-17 09:11:41 +03:00
Shachar Snapiri a9fccaa38c Update DragonFlow tests to run with Python 3
As Python 2.7 will soon reach the end of life, we should switch to
Python 3.
This updates the tests to run with that version.

Change-Id: I1014769881786c62d9d6aabf21ca7858a6deb882
2019-05-16 17:01:59 +03:00
Shachar Snapiri c65aaad9d5 Update the tox.ini with '0' concurrency
There is an issue with the ostestr package that it sends a 'None' value
if it is not explicitly specified.
The stestr package does not accept it well, and an exception is thrown.
There is a fix in the pipe [1], but we need to get DragonFlow working.

[1] https://review.opendev.org/#/c/651275/

Change-Id: If9d18965048cc5ac20d351b7172b50d0a1d0f2cc
2019-05-12 21:29:57 +03:00
Zuul e8e4e521ad Merge "Don't quote {posargs} in tox.ini" 2018-11-08 14:17:09 +00:00
Nguyen Van Trung e544997f31 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: Idd0dd8b137f6cbf22cbb706645488271b0e5cee5
2018-11-05 02:15:41 +00:00
Boden R fb26267997 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: Ie2250722473b150e0c56dce0da220c615df51c34
2018-09-26 14:26:22 -06:00
li.jiawang de8ef68b71 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: I91abb5cb2e945abae630b07b1929ce1834d0d93d
2018-07-21 15:48:50 +08:00
Shachar Snapiri a85d2ec86b Re-add D001 test and fix all documents accordingly
Re-added the D001 test (line too long) and fixed all documents that had
long lines.

Change-Id: I2cb3c0807c1668cb48022d380ebbe95d12215210
2018-07-15 17:50:13 +03:00
Dao Cong Tien 0eca4733d6 Adds doc8 check to pep8
This patch adds doc8 check for .rst files to pep8.
Files that fail doc8 check are also fixed.

Ignore D001 of doc8 check. This requires lot of changes and
should be done in a separated patch.

Change-Id: Ie2d258e9268fe20ae7988a3b4af92a8a6973b9c6
2018-07-13 03:52:28 +00:00
Zuul 5ce7e25d15 Merge "Follow the new PTI for document build" 2018-07-11 15:42:06 +00:00
Nguyen Van Trung cd628426cd Follow the new PTI for document build
For compliance with the Project Testing Interface as described in:
https://governance.openstack.org/tc/reference/project-testing-interface.html

For more details information, please refer to:
http://lists.openstack.org/pipermail/openstack-dev/2017-December/125710.html

Change-Id: Iec12cf7d3d9a84ff6ef4550d8453e822e80bc3c7
2018-07-09 09:16:16 +07:00
Vu Cong Tuan eaf125473f Switch to stestr
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: I06a45ffdb95e4c79edeca179254f25252d9fef6e
2018-07-05 13:38:59 +07:00
Doug Hellmann 5b1b5327b2 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: I7471f66742e4c843321d771408d0da67d9800da1
Depends-On: https://review.openstack.org/555034
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-06-12 11:20:48 +03:00
Andreas Jaeger 60a2b6b991 Avoid tox_install
Since neutron and networking-sfc are now in global-requirements,
we can remove the installation from tools/tox_install.sh.

Remove the tox_install files completely and update tox.ini for this.
Add requirements to requirements.txt instead.

Change-Id: Id6d43a97bd77785de976d418dc835108e3b1434f
2018-04-03 09:10:05 +03:00
Luong Anh Tuan b310c3f402 Enable hacking-extensions H204, H205
This patch enable extensions:
- H204: Use assert(Not)Equal to check for equality.
- H205: Use assert(Greater|Less)(Equal) for comparison.

Change-Id: I55240cc648385554dd67dc62d6749cef6c59dd70
2018-02-01 09:56:13 +07:00
Omer Anson f1925a2765 tox: Add rm to whitelist_externals
rm is used to remove times.dbm between tests of py27 and py35. It should
be in whitelist_externals to avoid the warning:

WARNING:test command found but not installed in testenv
  cmd: /bin/rm
  env: /home/oanson/projects/dragonflow-2/.tox/py27
Maybe you forgot to specify a dependency? See also the whitelist_externals
envconfig setting.

Change-Id: I3ebe98f6cc17dced84621c6f089b4f04bb1a2300
Closes-Bug: #1711152
2017-08-16 18:19:10 +03:00
rajat29 d6727e4148 Add 'rm -f .testrepository/times.dbm' command in testenv
Running py2* post py3* tests results in error.
Add 'rm -f .testrepository/times.dbm' command in testenv to
resolve this.
Closes-Bug: #1565928

Change-Id: I9166e375fe3c3e223fb91f4e09d7ed903689cbc2
2017-07-27 15:30:03 +05:30
Hong Hui Xiao 37b941da0f Remove N531 from pep8 ignore list
Since neutron_lib has evolved, this could be removed.

Change-Id: I799fdb1923ae99c4d57e3618726cc65c3a27baa2
2017-04-13 08:33:36 +08:00
Ihar Hrachyshka 475e2f3041 Remove subunit-trace fork
This makes tox use the latest version of the tool from os-testr repo,
which contains some valuable changes, like the one making the gate fail
if for some reason no tests are executed because all of them are
skipped.

Change-Id: If88be4b310d746ccc885e3d0c1db8a4dfabb2a28
2017-04-06 11:44:28 -07:00
shihanzhang 89e2be40e2 Remove 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: If51139eaa6f22165d052a6e6004ff52c93f536f3
2017-03-27 01:13:30 +00:00
Jenkins e16f8c8519 Merge "Remove support for py34 for dragonflow" 2017-03-13 14:07:20 +00:00
gengchc2 9dc1786fe9 Remove support for py34 for dragonflow
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: Ie516ade5312592ce39e4c27e0e694713c0946082
2017-03-10 00:56:07 +00:00
Dima Kuznetsov 418ac2cfd1 Fix wrong doctree path in doc target
tox docs target started creating docs/ dir, doctrees shoud go into doc/.

Change-Id: I8e75d4cec5360b6fc0bb741f18b2bf8bc35b57df
2017-03-01 15:02:15 +02:00
Dima Kuznetsov 13a7bec803 docs: Treat warnings as error and always read all source files
Adapted from releasenotes parameters

Change-Id: Ie8b8316b68e83a69f3f5cae8bfdb1d34d1815952
2017-02-22 11:56:38 +02:00
Dima Kuznetsov 7ba1f53e7d Add [H203] Use assertIs(Not)None to check for None
Change-Id: I6ffcb15067bf9802f899b4a02bf0158890b1cd16
2017-02-16 12:26:07 +00:00
Hong Hui Xiao 1dabe80837 Clean the exclude list of flake8
The exclude list of flake8 is out of date. Update it with latest
project structure.

Change-Id: I74bbb234843226a75be81f2662fa6d983644b0f4
Closes-Bug: #1663864
2017-02-14 21:45:34 +08:00
Hong Hui Xiao 862d48df34 Add E129 to pep8 check list
E129: visually indented line with same indent as next logical line

Change-Id: I5460e5dfa87084c1bd0b72d077e7402fcbb2b7d7
Partial-Bug: #1663864
2017-02-14 21:33:00 +08:00
Hong Hui Xiao 95de68ea33 Add E128 to pep8 check list
Unlike E126, which is controversial, E128 is a check should be applied
to code.

E128 continuation line under-indented for visual indent

Change-Id: Idc67968dcc424e8eef252fff1704c96d32fe452a
Partial-Bug: #1663864
2017-02-13 18:17:21 +08:00
Hong Hui Xiao e6db08a184 Add E265 to the pep8 check list
E265 block comment should start with '#'

Change-Id: Ia1712504559ab8d43769d07724937ce65100dc07
Partial-Bug: #1663864
2017-02-13 18:16:56 +08:00
Hong Hui Xiao e4e0a58e33 Add H904 to pep8 check
H904: Delay string interpolations at logging calls, which is the
former N342, prevents format string when add log. Enabling it can
uniform the way we do log.

Change-Id: I4d16a7db530d9fa5a641140e03680307f878f0bb
Partial-Bug: #1663864
2017-02-13 06:46:05 +00:00
Hong Hui Xiao 17496f11ad Add H301 check to pep8
[H301] Do not import more than one module per line (*)
is now in the ignore list of dragonflow pep8 check. However,
[1] and some following work has cleaned the dragonflow import code.
So, we can add the check in pep8 for future code.

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

Change-Id: Ib583f8be57cc1976d868433613f70378d8809f0d
Partial-Bug: #1663864
2017-02-13 06:45:52 +00:00
Hong Hui Xiao bc5df105ea Remove N342 from pep8 ignore list
Current N342 is the nova check for central conf files.
[N342] Config options should be in the central location nova/conf/
We can just remove it from the ignore list. Hopefully, future rule
will be added in neutron-lib for such check in networking project.

Change-Id: Ib4d3eadeb100ea26f7ccfeaca14a219c29e43c2e
Partial-Bug: #1663864
2017-02-13 06:45:41 +00:00
Jenkins 7f3955490d Merge "Add H233 to pep8 check" 2017-02-13 06:32:18 +00:00
Jenkins 532cd9fd47 Merge "Fix dragonflow doc format" 2017-02-12 10:07:47 +00:00
Hong Hui Xiao f05852e710 Add H233 to pep8 check
H233 will report error when print is used as operator.
print operator has been removed in py3. We should add H233 check
as py3 is in the support list. This problem was first found at [1]
We can launch the check for future code.

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

Change-Id: I4fef99c24941f048fd61a808e03869bacd30c001
Co-Authored-By: Wang Jian <wangjian38@huawei.com>
Partial-Bug: #1663864
2017-02-11 10:39:16 +00:00
Li Ma e226398d54 Fix dragonflow doc format
Running 'tox -edocs' finally shows success.

Change-Id: I8bcbd17daa3faea91e82493329d3d2576210b3cc
2017-02-09 15:07:41 +08:00
Li Ma 2ec55be2b7 Support reno releasenotes
You can run 'tox -ereleasenotes' to generate the doc.
Currently it is nearly empty. We can decide when to make it
work in our release cycle management.

Change-Id: I13506a3f654265262a0696f85d0c4c94835ee0ee
2017-02-09 13:41:21 +08:00
Jeremy Liu 5a73eafbaa Standardize tox
Change-Id: I8559f04e2fa6ffc2740ef74326ee158e1ff5fe48
2017-01-17 08:39:17 +00:00
Kevin_Zheng 95f1f0ffd8 Enable coverage report in console output
The current coverage test job doesn't provide any result
to developer, we could endble the coverage report in
console output to let the developers know the current
coverage status when run coverage test job.

Change-Id: Id6f884ca8dfcc9dfa01f7b827786f4fa41b461a4
2017-01-11 10:17:43 +08:00
xhzhf 5592ed2880 e125 warning can be resolved
E125 warning can be resolved.
Remove e125 ignore statement.
Closes-Bug: #1650167

Change-Id: I3345dabea91b4710ebfe1967b49148fe17f31c26
2016-12-18 08:40:19 +00:00
gengchc2 2afcf217e2 Delete deprecated Hacking in tox.ini
Some hacking have been removed,so we can delete them.
More details:
    https://github.com/openstack-dev/hacking/blob/master/setup.cfg

Change-Id: I1da4cae962987d8174384daadd5eb2cf4ff746c4
2016-12-04 11:19:37 +08:00
Christian Schulze-Wiehenbrauk 54de7fd5e3 Additional fixes
1. Removes centralized_dragonflow from index (learned in
   last meeting that this isn't a scope for df)
2. Fixes duplicated diagram
3. Fixes reason for last warning.

Fixes sphinx warnings and errors.

1. Change image references to local paths.
2. Fix underline too short issues.
3. Fix numbered/unnumbered lists.
4. Fix unindented ascii art
5. Fix line break issues
6. Fix naming typo in index.rst

There is still a reference to an unknown document in
source/index.rst (centralized_dragonflow).

Change-Id: I5165d4efa0644470c90adfbc606daabfbf55292f
2016-11-10 14:47:00 +01:00
Jenkins eb5484a5bc Merge "Update tox install to support constraints and branches" 2016-10-13 08:56:02 +00:00
Li Ma 2bee5d94df Update tox install to support constraints and branches
Update tox.ini and tox_install.sh to support constraints and branches.
This also includes an update per [1].

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

Change-Id: I6e126fb6ef9048dd00190bf19e2f3c2e8ce21155
2016-10-13 12:03:48 +08:00
pawnesh.kumar 5f862532cb Don't include openstack/common in flake8 exclude list
The directory openstack/common was used to keep codes from
oslo-incubator, we have retired oslo-incubator,so don't use
this directory any more.

Change-Id: I5ad7b717be1ddbbe53b6d0f787b7aba02f3290d4
2016-10-12 16:16:33 +05:30
Li Ma bf7a2176fb Implements oslo conf generator
Change-Id: Ifca462b686ea914db5861880f23adde311fb4bb9
Implements: blueprint oslo-config-generator
Closes-Bug: #1523510
2016-09-29 16:42:03 +08:00
Hong Hui Xiao 8783e1eb41 Fix the pep8 issue of import neutron.test
Neutron forbid to import neutron.test at [1]. As a sub-project, dragonflow
still needs neutron.test as lib for its own test. sub-project should use a
more general hacking rule from neutron-lib.

[1] 31e1aeb66b2d8abb0d8424e9550693fad6f37c1c

Change-Id: I7150203324eecc58ab37b25b0fc473ae2a07fe4d
2016-09-20 11:53:08 +08:00
Li Ma 169074acac Explicitly describe python support
Change-Id: I2b6d556044042190d8bb465a29983571b1197bfb
2016-09-02 16:39:20 +08:00
Doug Wiegley dddef1729c Remove reference to neutron.i18n
Partially-implements: bp neutron-lib

Change-Id: I0f27785c8c19ea27865234dc777c80b35dc87d91
2016-08-19 14:12:50 +01:00