2760 Commits

Author SHA1 Message Date
7d144b75e0 Add Python3 victoria unit tests
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for victoria.

See also the PTI in governance [1].

[1]: https://governance.openstack.org/tc/reference/project-testing-interface.html

Change-Id: I76f83184c00db7fec7ea2dd0213aebcd9a979ebd
2020-04-14 10:20:11 +00:00
a0e3d21ff2 Update master for stable/ussuri
Add file to the reno documentation build to show release notes for
stable/ussuri.

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/ussuri.

Change-Id: I8acfdac6b3d8f0fed45c07462144a85cfc39a6d7
Sem-Ver: feature
2020-04-14 10:20:09 +00:00
Ann Kamyshnikova
b46cf94a25 Zookeeper backend SSL support
Bump kazoo version to 2.6.0 that supports SSL.

Allow to configure ssl config options via conf
* keyfile
* keyfile_password
* certfile
* use_ssl
* verify_certs

https://kazoo.readthedocs.io/en/latest/api/client.html#kazoo.client.KazooClient

This should be done in conformance with Redis
jobboard backend, that already allows SSL settings.

Change-Id: Ic2670c3c4caa93f69bc2d541c3701df2b6037d2e
2020-03-06 12:49:58 +04:00
Andreas Jaeger
fc401959ec [ussuri][goal] Drop python 2.7 support and testing
OpenStack is dropping the py2.7 support in ussuri cycle.

Complete discussion & schedule can be found in
- http://lists.openstack.org/pipermail/openstack-discuss/2019-October/010142.html
- https://etherpad.openstack.org/p/drop-python2-support

Ussuri Communtiy-wide goal:
https://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html

Remove cruft from setup.cfg.
Update hacking so that it works with python3 and silence new warnings.

Change-Id: Id224fc09ac36d2a84e82347530bb5e5d30665803
2020-02-03 21:55:57 +01:00
Zuul
0b352712af Merge "Update TaskFlow for networkx 2.x" 2019-11-15 04:24:16 +00:00
Zuul
8293459a60 Merge "Fix python3.8 hmac compatibility" 2019-11-14 03:20:42 +00:00
xuanyandong
471b37c3ac Switch to Ussuri jobs
Change-Id: I6cb830300a14b775b7744139554240eadd914e03
2019-10-25 11:02:35 +08:00
Michael Johnson
dc6495cfa1 Update TaskFlow for networkx 2.x
The networkx 2.x series has been out for two years now and supports
python 3.6 and greater[1]. This patch updates TaskFlow to require
a minimum of networkx 2.1. It also updates the code to support
recent deprecation expiration introduced in the 2.4 release.

[1] https://networkx.github.io/documentation/stable/news.html

Change-Id: Ife31d353ba80824ebc63c8b21ee90943badc8da3
2019-10-18 18:11:44 -07:00
9422017336 Update master for stable/train
Add file to the reno documentation build to show release notes for
stable/train.

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/train.

Change-Id: I8e3ba13869a4b4a2f178e362982e8b8026cc9a36
Sem-Ver: feature
2019-09-20 17:45:04 +00:00
Eric Harney
433659932b Fix python3.8 hmac compatibility
The "digestmod" parameter must be passed in for Python 3.8.

md5 was chosen here because this is what was implicitly used
for Python < 3.8.

Change-Id: I17eca0692c4a89ff90cfa9d4ef3947d2c9ee23e7
2019-09-03 17:41:28 -04:00
Ann Taraday
f0eae2cc7c Use mysql LONGTEXT for atomdetails results
With a lot of possible retries using mysql sa.Text for result field
atomdetails table is not enough.

Updated 'results' column type to LONGTEXT in mysql backend case.

PosgreSQL seems not to be affected as postgres text type is not
having length limitation.

Co-Authored-By: Michael Johnson <johnsomor@gmail.com>

Change-Id: I4e44e3288ae49d85c5b5ce8ff26ba83f3b9d2c7b
Closes-bug: #1838015
2019-08-09 07:18:31 +00:00
Corey Bryant
e077956819 Add Python 3 Train unit tests
This is a mechanically generated patch to ensure unit testing is in place
for all of the Tested Runtimes for Train.

See the Train python3-updates goal document for details:
https://governance.openstack.org/tc/goals/train/python3-updates.html

Change-Id: Iee35ef61a46fd6a318f9b0b1d4e6436d5fd3c008
Story: #2005924
Task: #34234
2019-07-05 15:19:01 -04:00
Elod Illes
a081180238 Add local bindep.txt
As it was announced [1] global bindep-fallback.txt was removed and now
projects need to have a local bindep.txt to be able to install binary
dependencies for testing.

In test jobs the script tools/test-setup.sh is called which requires
mysql and postgres servers and clients to be installed.

[1] http://lists.openstack.org/pipermail/openstack-discuss/2019-June/007272.html

Change-Id: I08797a99c7ba019a4b2dd640a83f45fea8e589bd
2019-06-26 17:25:54 +02:00
Andreas Jaeger
7b1a65707e Remove unused tools/tox_install.sh
This file is unused and unneeded, remove it.

Change-Id: Ib640408b10e04e1132a807cfc489f0f10633b291
2019-06-05 08:23:10 +02:00
liuwei
5965747909 update git.openstack.org to opendev
Change-Id: Ie9f1ca14eed287f3c25553d029d4a4b2ca5274d0
3.7.0
2019-05-22 09:51:19 +01:00
Ghanshyam Mann
bf0ebe6127 Dropping the py35 testing
All the integration testing has been moved to
Bionic now[1] and py3.5 is not tested runtime for
Train or stable/stein[2].

As per below ML thread, we are good to drop the py35
testing now:
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/005097.html

[1] http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004647.html
[2]
https://governance.openstack.org/tc/reference/runtimes/stein.html
https://governance.openstack.org/tc/reference/runtimes/train.html

Change-Id: I0fb9547a3156199a6d2ca66258f7c6afab6d0753
2019-05-22 09:47:27 +01:00
Eric Harney
4bd9a5e064 Remove debtcollector requirement
This is no longer used.

Change-Id: I15726d27d2e440df207a4c342fe06c7d8b53a079
2019-05-22 09:47:19 +01:00
Stephen Finucane
dd680367c5 Update Sphinx requirement
Sphinx 2.0 no longer works on python 2.7, so we need to start capping it
there. We remove Sphinx and doc8 from the 'test-requirements.txt' file
and '[extra] test' section in 'setup.cfg' since none of our tests
actually use this. Finally, we remove a number of dependencies from
'doc/requirements.txt' since these were already specified in
'test-requirements.txt' and we install these as part of the tox target.

Change-Id: I3981f47f4278f726e3c078723f90d4b9ba1699a6
Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
2019-05-22 08:35:34 +00:00
Zuul
db52e05649 Merge "Remove unsused tools/tox_install.sh" 3.6.0 2019-05-09 19:50:47 +00:00
Andreas Jaeger
cd93a63da7 Remove unsused tools/tox_install.sh
The file is not used anymore, remove it.

The last usage of the file was removed in
I4dae402fe37015f0f512d5e9a6426d5f39526347.

Remove also some variables from tox.ini that were used for tox_install
in the past.

Change-Id: I5797efabe1e32df0ad53513400288bd26f833315
2019-05-09 13:45:34 +00:00
Sean McGinnis
23889f5616 Handle collections.abc deprecations
The use of ABC classes directly from collections has been deprecated in
3.x versions of Python. The direction is to use the classes defined in
collections.abc. Python 2.7 does not have this, but Python 3.8 will be
dropping the backwards compatibility to use the old location.

Six also does not have support for this yet, so in the mean time to make
sure we don't run into issues as folks try to move to 3.8, and to get
rid of deprecation warnings in logs, this handles importing from the
preferred location and falls back if it not available.

Change-Id: I15554bf3c109045ebdc237ce7cb40299f5d1b298
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2019-05-09 10:35:09 +00:00
Zuul
09459070fd Merge "Uncap jsonschema" 2019-05-06 17:31:30 +00:00
Sean McGinnis
8bcef3f5e7
Uncap jsonschema
We have jsonschema capped at a fairly old version. Other than some
specific releases, it looks like keeping it below 3.0 was added in
I943fd68b9fab3bce1764305a5058df5339470757 without really any explanation
why.

In order to update to a 3.x release we need to:
1. Remove the cap from global-requirements.txt (see Depends-On), leaving
   upper-constraints.txt at a 2.x release
2. Remove the cap from all consumers (this change)
3. Release a new version of consumers that are published to pypi
4. Update upper-constraints.txt with those new releases
5. Update jsonschema in upper-constraints.txt to a 3.X release
   (See: https://review.openstack.org/649789)
6. Test consumers with the change from 5.
7. [Optional] fix issues in consumers that arise from 6.
8. Merge the change from 5.

Also includes squashed commit:
Raise lower constraint of psycopg2

Versions prior to 3.7 did not support postgresql version numbering
starting with postgresql 10, causing setup failures. This raises the
lower-constraint to the first version that contained the fix [0] to
support that.

With the change in global requirements for jsonschema, requirements
check fails on raising psycopg2, but we need that raised in order for
the jsonschema version to be raised.

[0] https://github.com/psycopg/psycopg2/pull/504

Also required updating networkx constraints to match current g-r.

Change-Id: Ifd0f0586f945d1da4dd597ae7b4514117cd49f57
Co-Authored-by: Sean McGinnis <sean.mcginnis@gmail.com>
Depends-On: https://review.openstack.org/649669
2019-05-04 14:12:20 -05:00
OpenDev Sysadmins
97393c0c34 OpenDev Migration Patch
This commit was bulk generated and pushed by the OpenDev sysadmins
as a part of the Git hosting and code review systems migration
detailed in these mailing list posts:

http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003603.html
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004920.html

Attempts have been made to correct repository namespaces and
hostnames based on simple pattern matching, but it's possible some
were updated incorrectly or missed entirely. Please reach out to us
via the contact information listed at https://opendev.org/ with any
questions you may have.
2019-04-19 19:30:55 +00:00
dbe22b3ed4 Update master for stable/stein
Add file to the reno documentation build to show release notes for
stable/stein.

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/stein.

Change-Id: I6186ef1c26e6bd744caed0a1abfaf7cc77db3946
Sem-Ver: feature
2019-03-18 14:57:44 +00:00
Sahid Orentino Ferdjaoui
9a30e5dc37 add python 3.7 unit test job
See ML discussion here [1] for context.

[1] http://lists.openstack.org/pipermail/openstack-dev/2018-October/135626.html

Story: #2004073
Co-authored-by: Corey Bryant <corey.bryant@canonical.com>
Signed-off-by: Sahid Orentino Ferdjaoui <sahid.ferdjaoui@canonical.com>
Change-Id: Ibc7749261119752c4e3a4854c7ce5be52a3b5d26
2019-02-26 15:55:51 +00:00
Zuul
f89265e460 Merge "Move test requirements out of runtime requirements" 2018-12-19 10:57:02 +00:00
James Page
0d31f97837 Move test requirements out of runtime requirements
stestr is a test requirements for taskflow; drop from
requirements.txt and add to test requirements target
in setup.cfg.

Change-Id: Id74eba0c02f482f96efb37b2975ada400794d88e
2018-12-17 09:46:57 +00:00
sunjia
22aa616503 Change openstack-dev to openstack-discuss
Mailinglists have been updated. Openstack-discuss replaces openstack-dev.

Change-Id: I444a52a7c09d726ae707921e47e71a70a80b674c
2018-12-03 21:33:10 -05:00
Zuul
6ea991ce94 Merge "Use templates for cover and lower-constraints" 2018-10-05 23:22:58 +00:00
zhang.lei
f9349f4301 Update doc/conf.py to avoid warnings with sphinx 1.8
The autodoc_default_flags option is now deprecated.[1] This warning can
cause documentation build failed. use autodoc_default_options instead.

[1]https://github.com/matplotlib/matplotlib/pull/11928

Change-Id: I6ba69ca7361fd0e42b322f1b92fe22b952a13321
2018-09-19 01:35:57 +00:00
Andreas Jaeger
f34aea9608 Use templates for cover and lower-constraints
Use openstack-tox-cover template, this runs the cover job
in the check queue only.

Use openstack-lower-constraints-jobs template

Remove jobs that are part of the templates.

Sort list of templates.

Change-Id: Ie7971023eed04f6479c05c1d2a1dfd2a948b07e1
2018-09-07 12:42:20 +02:00
Zuul
f1617472f9 Merge "add lib-forward-testing-python3 test job" 2018-08-26 09:44:14 +00:00
Zuul
169337bb9f Merge "add python 3.6 unit test job" 2018-08-25 01:54:29 +00:00
Zuul
3bd5a8ac6f Merge "Fix a symbol error" 2018-08-24 17:33:03 +00:00
Zuul
4f49db152d Merge "add proper pydot3 dependency" 2018-08-24 17:33:02 +00:00
melissaml
67b0da4b06 Remove the duplicated word
Change-Id: Ia9964fd613efc49479e763b6a7095d63115179ab
2018-08-21 23:28:33 +08:00
jiansong
eae5477d50 Fix a symbol error
There is a wrong use ' here, which causes the document
to make errors when copying the code for
experimentation.

Change-Id: I3ae19f591ffd668bcd1563bd1e317b21b799dba6
2018-08-20 03:35:00 -07:00
Theodoros Tsioutsias
76ce8c07e1 Create KazooClient with taskflow logger
KazooClient should use the taskflow logger and not the default one.
Using the default logger means that the user cannot control its
log level

Change-Id: Id9549028522955ece0ae9f675c5ecc1c2fd816de
Closes-Bug: #1785036
2018-08-16 12:17:38 +00:00
Doug Hellmann
10b3049148 add lib-forward-testing-python3 test job
This is a mechanically generated patch to add a functional test job
running under Python 3 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: If32dc1672c3d7365e6da8eb869fb5590497dbfbd
Story: #2002586
Task: #24322
2018-08-14 13:06:16 -04:00
Doug Hellmann
cd6e496964 add python 3.6 unit test job
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: Ie0dc452548fbd315e85c4e782004565d25176f3e
Story: #2002586
Task: #24322
2018-08-14 13:06:16 -04:00
Doug Hellmann
7e2452e543 add proper pydot3 dependency
Move the dependency out of tox.ini and into requirements.txt where it
can be managed properly.

Depends-On: https://review.openstack.org/590103
Change-Id: Ic69a4c5beb1aed2e49d2f767cb46c324fe0df0f5
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-08-14 12:05:28 -04:00
Doug Hellmann
31fee4795b import zuul job settings from project-config
This is a mechanically generated patch to complete step 1 of moving
the zuul job settings out of project-config and into each project
repository.

Because there will be a separate patch on each branch, the branch
specifiers for branch-specific jobs have been removed.

See the python3-first goal document for details:
https://governance.openstack.org/tc/goals/stein/python3-first.html

Change-Id: Ifb81d077390a2d8185c27da418098449cd2e483e
Story: #2003250
2018-08-13 16:20:18 -04:00
Ha Manh Dong
a11c88a303 Switch to use stestr for unit test
According to Openstack summit session [1],
stestr is maintained project to which all Openstack projects should migrate.
So we should switch to stestr.

[1] https://etherpad.openstack.org/p/YVR-python-pti

Depends-On: https://review.openstack.org/#/c/589728/
Change-Id: I943a73e22eb23bd52c3a96e75c98b88665474e67
2018-08-13 16:20:18 -04:00
Dirk Mueller
349f79937f Add pydot test dependency
We need to use pydot rather than pydot3 because
of a broken version comparison in networkx, where it rejects
the lower version number of pydot3.

Without this patch the taskflow unit tests which use dot for
rendering graphics are no longer runnable.

Change-Id: I676e4d76627b3ecd0e4a9b896b2b93d652ebb25d
2018-08-09 07:11:52 +02:00
wangqi
85f02d06c5 Remove PyPI downloads
According to official site,
https://packaging.python.org/guides/analyzing-pypi-package-downloads/
PyPI package download statistics is no longer maintained and thus
should be removed.

Change-Id: Ibf996e1bc49c33576a2a07f80344063976d73fd1
2018-08-07 06:05:21 +00:00
a456622fac Update reno for stable/rocky
Change-Id: I183f46e8665149e06978f292a2986393d7d7dc2f
2018-07-26 12:42:57 +00:00
Vu Cong Tuan
33685c83fc Update various links in docs
Avoid redirects, s/http/https/.

Change-Id: Id03bd49f250b48109967a0e04b92b75925f08932
2018-07-17 13:56:19 -05:00
Tony Breeds
22990d49b4 Remove unused link target
With the, somewhat, recent changes in pypi became more strict on what it
will accept.  That resulted in I416befcf3e47818680018394fa63de8983351587
which is blocking the taskflow 3.2.0 release[1].

Remove the unused link target to clear the error.

[1] http://logs.openstack.org/92/581892/1/check/openstack-tox-validate/8c0b5f2/job-output.txt.gz#_2018-07-11_21_52_05_919809

Change-Id: I9bf32db1d73cec580377073d94b6a2bdac44fa34
2018-07-12 19:30:45 +10:00
Michal Arbet
d985c5a256 Fix code to support networkx > 1.0
With the release of NetworkX 2.0 the reporting API was
moved to view/iterator model. Many methods were moved from
reporting lists or dicts to iterating over the information.
Methods that used to return containers now return views and
methods that returned iterators have been removed in networkx.
Because of this change in NetworkX 2.0 , taskflow code
have to be changed also to support networkx > 2.0

Change-Id: I23c226f37bd85c1e38039fbcb302a2d0de49f333
Closes-Bug: #1778115
2018-07-11 13:11:51 +02:00