Commit Graph

784 Commits

Author SHA1 Message Date
OpenStack Release Bot 9ae3969bbd Update master for stable/2023.1
Add file to the reno documentation build to show release notes for
stable/2023.1.

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

Sem-Ver: feature
Change-Id: I35e043c2307bb1e467153c838805222acc4d0c86
2023-03-07 09:03:31 +00:00
Elod Illes 1af685b7d9 Fix tox 4 compatibility
Change-Id: I30e5455d5f0fb019c2522777d33461a48ca7ba03
2023-03-01 17:50:13 +01:00
Andy Botting 277db4ff4e Fix write mode for execution plan queue
This commit disables writing in binary mode for the execution plan.

The contents being written comes direct from json.dumps, which is
always returned as a string.

Change-Id: I60cab27f29bf1b538dcf348b100d200048d9fd25
2022-11-15 13:33:32 +11:00
Zuul 7eb7079529 Merge "Switch to 2023.1 Python3 unit tests and generic template name" 2022-10-14 01:38:14 +00:00
Zuul b3b40e40e8 Merge "Remove use of anyjson module" 2022-10-14 01:38:12 +00:00
OpenStack Release Bot 74ef569fb9 Switch to 2023.1 Python3 unit tests and generic template name
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for antelope. Also,
updating the template name to generic one.

See also the PTI in governance [1].

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

Change-Id: I8aa5faa39a55b1a2529d55f23682fd2b1faf5949
2022-10-12 02:56:31 +00:00
Andy Botting 449c50d170 Remove use of anyjson module
The use of the anyjson module causes issues with Python 3.10 with
the following error:
`error in anyjson setup command: use_2to3 is invalid.`

The module itself hasn't been updated since 2012 and the source [0]
now errors with a 404, and there doesn't seem to be any real benefit
over the standard python json module.

[0] https://bitbucket.org/runeh/anyjson/

Change-Id: I00ae5e9545136c1b930f8cf4036b902a326e1c54
2022-10-12 13:55:45 +11:00
OpenStack Release Bot 1bcbb8348c Update master for stable/zed
Add file to the reno documentation build to show release notes for
stable/zed.

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

Sem-Ver: feature
Change-Id: Ibc8ed0de7ad5c20b82e958c561f8f3e1ac6f92b5
2022-09-14 13:43:31 +00:00
Ghanshyam Mann eff24e0861 Drop lower-constraints.txt and its testing
As discussed in TC PTG[1] and TC resolution[2], we are
dropping the lower-constraints.txt file and its testing.
We will keep lower bounds in the requirements.txt file but
with a note that these are not tested lower bounds and we
try our best to keep them updated.

[1] https://etherpad.opendev.org/p/tc-zed-ptg#L326
[2] https://governance.openstack.org/tc/resolutions/20220414-drop-lower-constraints.html#proposal

Change-Id: Ic80a50009e77e8c99f189e4ea1ecee5d1aad4d82
2022-04-30 19:11:22 -05:00
OpenStack Release Bot e234f16080 Add Python3 zed unit tests
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for zed.

See also the PTI in governance [1].

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

Change-Id: I91dda208c3f6251db8b35f40701e7071b4923107
2022-03-08 12:13:29 +00:00
OpenStack Release Bot 30b8c11825 Update master for stable/yoga
Add file to the reno documentation build to show release notes for
stable/yoga.

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

Sem-Ver: feature
Change-Id: I6bdf7065dc3ef5464192ca8dc14eeec6769f90a1
2022-03-08 12:13:26 +00:00
zhurong b873684f21 Fix murano-agent DIB
Change-Id: Ief20dfb3b24c1d3ec743f3e9414bde9815fa5567
2022-01-08 02:46:52 +00:00
OpenStack Release Bot 2366d52cf9 Add Python3 yoga unit tests
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for yoga.

See also the PTI in governance [1].

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

Change-Id: I86b831874b9c115aabf052c3becf970be38ca34b
2021-09-17 14:23:28 +00:00
OpenStack Release Bot 13ba9d395c Update master for stable/xena
Add file to the reno documentation build to show release notes for
stable/xena.

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

Sem-Ver: feature
Change-Id: Ia058906d82c97a09e2c9661fd7275e44bf05376b
2021-09-17 14:23:26 +00:00
Ghanshyam Mann db57214bb8 [community goal] Update contributor documentation
This patch updates/adds the contributor documentation to follow
the guidelines of the Ussuri cycle community goal[1].

[1] https://governance.openstack.org/tc/goals/selected/ussuri/project-ptl-and-contrib-docs.html

Story: #2007236
Task: #38539
Change-Id: Iffa4526b3278f92dce98de260d0321095b56d440
2021-05-17 18:03:42 -05:00
Zuul d8283e9517 Merge "Add Python3 xena unit tests" 2021-04-07 07:14:42 +00:00
Zuul f77eff91e3 Merge "Update master for stable/wallaby" 2021-04-07 05:55:14 +00:00
zhurong 89b4512e0d Fix lower-constraints job
Change-Id: I672d275490c9098f9f8835658921002416609da1
2021-04-07 09:15:02 +08:00
OpenStack Release Bot 80bbf4e75b Add Python3 xena unit tests
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for xena.

See also the PTI in governance [1].

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

Change-Id: Ibf617430ca574d67160f0f66bf964c6609448835
2021-03-26 18:33:52 +00:00
OpenStack Release Bot 3323cc5482 Update master for stable/wallaby
Add file to the reno documentation build to show release notes for
stable/wallaby.

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

Sem-Ver: feature
Change-Id: I9c813ea3a69c17492566d5dc3a79ad372f58db4d
2021-03-26 18:33:37 +00:00
Andy Botting 7d481ad60e Fix another base64 python3 issue
This is to address another usage of base64 that was missed from
commit 794c47f3b8823e97a0f019064e4b74a5ee204d04

Change-Id: I9bbff8084d82928deeafa6a55c487ed0f665b470
2020-10-30 19:29:19 +11:00
Andy Botting 3c41b4f1b9 Fix base64 usage for Python 3
Python 3 now handles str and bytes differently to Python 2, so when
using b64encode/decode, the input and output must specifically by
bytes.

This commit adds some base64 helpers to coerce the input to become
bytes if the input is a str and decodes the output back to str after
the encode or decode.

It also adds a test case to replicate the issue and cover the new
functions.

Change-Id: I8f64da03c7cfc76e620cb3b98201f6287b752bb3
2020-10-08 18:50:22 +11:00
OpenStack Release Bot dd1131146f Add Python3 wallaby unit tests
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for wallaby.

See also the PTI in governance [1].

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

Change-Id: I7255c27886820dadef3a1fb12d0f2dfb86216d03
2020-09-24 08:48:39 +00:00
OpenStack Release Bot 432be0d1b9 Update master for stable/victoria
Add file to the reno documentation build to show release notes for
stable/victoria.

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

Change-Id: Ieb07894fb92f924bc3f5b095c051bed8cc5e5d47
Sem-Ver: feature
2020-09-24 08:48:37 +00:00
Ghanshyam Mann 306b131d2a [goal] Migrate testing to ubuntu focal
As per victoria cycle testing runtime and community goal[1]
we need to migrate upstream CI/CD to Ubuntu Focal(20.04).

Fixing:
- bug#1886298
Bump the lower constraints for required deps which added python3.8 support
in their later version.

Story: #2007865
Task: #40198

Closes-Bug: #1886298

[1] https://governance.openstack.org/tc/goals/selected/victoria/migrate-ci-cd-jobs-to-ubuntu-focal>

Change-Id: Ia4f3ec1b6714178a8b14672cc1be3eca14d3c148
2020-08-04 23:02:14 +00:00
Hervé Beraud 08273d5c23 Use unittest.mock instead of mock
The mock third party library was needed for mock support in py2
runtimes. Since we now only support py36 and later, we can use the
standard lib unittest.mock module instead.

Change-Id: I9d33976afc6b4d475f11f3f6b751ae7093cf2a04
2020-06-10 11:31:07 +02:00
Andreas Jaeger d0f1a574d5 Switch to newer openstackdocstheme and reno versions
Switch to openstackdocstheme 2.2.1 and reno 3.1.0 versions. Using
these versions will allow especially:
* Linking from HTML to PDF document
* Allow parallel building of documents
* Fix some rendering problems

Update Sphinx version as well.

Change pygments_style to 'native' since old theme version always used
'native' and the theme now respects the setting and using 'sphinx' can
lead to some strange rendering.

Remove docs requirements from lower-constraints, they are not needed
during install or test but only for docs building.

openstackdocstheme renames some variables, so follow the renames
before the next release removes them. A couple of variables are also
not needed anymore, remove them.

See also
http://lists.openstack.org/pipermail/openstack-discuss/2020-May/014971.html

Fix gitpython requirement to unbreak requirements-check job.

Change-Id: I59215a9cf2efbe4125c33766a791cbc3c6cdf068
2020-05-31 20:03:24 +02:00
Ghanshyam Mann 7144b15874 Fix hacking min version to 3.0.1
flake8 new release 3.8.0 added new checks and gate pep8
job start failing. hacking 3.0.1 fix the pinning of flake8 to
avoid bringing in a new version with new checks.

Though it is fixed in latest hacking but 2.0 and 3.0 has cap for
flake8 as <4.0.0 which mean flake8 new version 3.9.0 can also
break the pep8 job if new check are added.

To avoid similar gate break in future, we need to bump the hacking min
version.

- http://lists.openstack.org/pipermail/openstack-discuss/2020-May/014828.html

Change-Id: Ia5b166e3a45d38f98e18f1f7f85bb5352e4de4ae
2020-05-12 19:30:30 -05:00
Corey Bryant f2e41f2f65 Monkey patch original current_thread _active
Monkey patch the original current_thread to use the up-to-date _active
global variable. This solution is based on that documented at:
https://github.com/eventlet/eventlet/issues/592

Change-Id: I0e8f80bb2e7acfb00e5ff47e0aa983afb7ee6e38
Closes-Bug: #1863021
2020-05-05 15:41:18 -04:00
Zuul eef4d84278 Merge "Bump default tox env from py37 to py38" 2020-04-26 01:02:01 +00:00
Sean McGinnis 6ff522af54
Bump default tox env from py37 to py38
Python 3.8 is now our highest level supported python runtime.
This updates the default tox target environments to swap out
py37 for py38 to make sure local development testing is
covering this version.

This does not impact zuul jobs in any way, nor prevent local
tests against py37. It just changes the default if none is
explicitly provided.

Change-Id: I59e88e69cf72e6bfc516ab77e19b3072fd08ccf2
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-04-24 10:25:44 -05:00
Sean McGinnis ce0ac0903a
Add py38 package metadata
Now that we are running the Victoria tests that include a
voting py38, we can now add the Python 3.8 metadata to the
package information to reflect that support.

Change-Id: Ic24243fcf67604c18b41cd230b476b83925e6764
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-04-24 08:22:37 -05:00
OpenStack Release Bot 8b205a605c 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: Id81d67d643549ef7ecd670ae5ab9031ba34b2340
2020-04-22 13:11:02 +00:00
OpenStack Release Bot 7d18643b1e 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: Iab9e626c56101807710747e3313655a1f0db2055
Sem-Ver: feature
2020-04-22 13:11:00 +00:00
Sean McGinnis ec54d366a3
Use unittest.mock instead of third party mock
Now that we no longer support py27, we can use the standard library
unittest.mock module instead of the third party mock lib.

Change-Id: I24daffca6667325bd7710e02e0b6a057935e9ac9
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-04-18 11:55:15 -05:00
zhurong 84f5778fc5 Remove six usage
Change-Id: Ia6b08e81f8df43e67bed0fbd082d7d7edd178fbc
2020-04-16 04:34:44 -07:00
zhurong b908aa8a87 Cleanup py27 support
Make a few cleanups:
- Remove python 2.7 stanza from setup.py
- Add requires on python >= 3.6 to setup.cfg so that pypi and pip
  know about the requirement
- Remove obsolete sections from setup.cfg:
  * Wheel is not needed for python 3 only repo
  * Some other sections are obsolete
- Update classifiers
- Update requirements, no need for python_version anymore

Change-Id: Ied76eaab93663d66a2d8255e7cab22ad0c46d81b
2020-04-07 01:46:46 -07:00
Andreas Jaeger 7c380cedcb Update to hacking 3.0
Hacking 3.0 was just released with minor changes, update to the new
version.

Change-Id: If068046928a937cf1a49465b427451b62a03405f
2020-03-30 17:44:17 +02:00
Andreas Jaeger 7d8894441a Update hacking for Python3
The repo is Python 3 now, so update hacking to version 2.0 which
supports Python 3.

Fix problems found.

Update local hacking checks for new flake8.

Change-Id: Ifa4b61c66561c114f6e35355de51f0e2d525b5d5
2020-03-30 08:24:41 +02:00
Ghanshyam Mann 2b2cc45bce [ussuri][goal] Drop python 2.7 support and testing
OpenStack is dropping the py2.7 support in ussuri cycle.

murano-agent is ready with python 3 and ok to drop the
python 2.7 support.

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

Depends-On: https://review.opendev.org/#/c/693631/
Change-Id: I343c7e7bde76f086e00756be63de48204dcdb0a9
2019-11-25 08:11:31 +00:00
OpenStack Release Bot 755aaa02a1 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: Iba8f09a5b87060e903fa0324d8edec21c543cde0
Sem-Ver: feature
2019-09-25 10:27:46 +00:00
zhurong a026aa2e2f 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: I98fd786e292e1da946181f15dd3fe91ff3338508
Story: #2005924
Task: #34214
2019-07-03 17:20:47 +08:00
zhurong 0161875574 Update contraints url
Change-Id: I698d48349b94ccf8fb87e97e9681a5412336eb78
2019-06-18 14:39:22 +08:00
zhurong 46dadfbedd Fix sphinx requirements
Change-Id: I74172aa566b91a627b35bfe68b79fd579490e8b7
2019-05-28 19:28:06 +08:00
zhulingjie abd90aca47 Replace git.openstack.org URLs with opendev.org URLs
Change-Id: I3664320061126e98bd9655d0ecc1fac565f00e40
2019-04-28 17:10:09 +08:00
OpenDev Sysadmins fe315c429b 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:31:33 +00:00
Ghanshyam Mann 2c43d9f994 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: I5780969379a1819b7e7ef2c87bc0e7256e937819
2019-04-15 00:33:40 +00:00
OpenStack Release Bot 1718d25525 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: I11ce9772d4ba54f7fa5da2279506e0a42d585c0a
Sem-Ver: feature
2019-03-27 13:54:26 +00:00
Ian Wienand 018633a56c Replace openstack.org git:// URLs with https://
This is a mechanically generated change to replace openstack.org
git:// URLs with https:// equivalents.

This is in aid of a planned future move of the git hosting
infrastructure to a self-hosted instance of gitea (https://gitea.io),
which does not support the git wire protocol at this stage.

This update should result in no functional change.

For more information see the thread at

 http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003825.html

Change-Id: Icf0b56abd4907252f23dcbd7d6267b25974f885f
2019-03-24 20:34:19 +00:00
Corey Bryant ce41ef5b78 add python 3.7 unit test job
This is a mechanically generated patch to add a unit test job running
under Python 3.7.

See ML discussion here [1] for context.

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

Change-Id: Ief3793d1eb81458c46a2ae13de97281a77f91802
Story: #2004073
Task: #27431
2019-02-15 00:16:36 -05:00