Commit Graph

295 Commits

Author SHA1 Message Date
Hervé Beraud
d6e259c486 Align contributing doc with oslo's policy
Related to:
- https://review.opendev.org/#/c/723044/
- https://governance.openstack.org/tc/goals/selected/ussuri/project-ptl-and-contrib-docs.html

Change-Id: Iad188728b89a0a9f2fee06d47420cf0300690941
2020-05-04 18:29:28 +02:00
Zuul
0e42d495ba Merge "Add py38 package metadata" 2020-04-27 10:09:26 +00:00
Sean McGinnis
6caa7f05d3
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: Ie4a88297493182929b6620dd42d2e2b9d85dc637
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-04-24 10:25:51 -05:00
Sean McGinnis
9fd61c81a8
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: I27acd7a90e439a7e7f7529001afa73f7b9d055ce
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-04-24 08:23:13 -05:00
d689527d63 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: I21a1bd80a3b0ec47598d0f512aef196d3efd9a21
2020-04-14 10:17:02 +00:00
d318c80863 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: Ic438f26fede03ff077cfcf251da486520c0c0a9f
Sem-Ver: feature
2020-04-14 10:17:00 +00:00
Andreas Jaeger
4445f3296b Update hacking for Python3
The repo is Python 3 now, so update hacking to version 3.0 which
supports Python 3.

Fix problems found.

Remove hacking and friends from lower-constraints, they are not needed
for installation.

Change-Id: If75153300f07e6d1c5bf433af35a0dd4d98e6c7f
2020-04-02 15:05:26 +02:00
Sean McGinnis
fd21b6e096
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: Icd7019c924386fb9c047fc55fb98e45fcb79f2eb
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-03-31 14:44:54 -05:00
Rodolfo Alonso Hernandez
23a534b9f5 Implement "realpath" to retrieve the real absolute path
This function will call "os.path.realpth" and this in turn could call
"os.getcwd". If the current path has been deleted by other application,
this method will raise FileNotFoundError exception. This new function
catches and unsets this exception, returning an empty string.

Change-Id: If70411d8d189de4a020e528cd54412a5678cfab9
Closes-Bug: #1864090
2020-02-21 15:28:23 +00:00
Hervé Beraud
07e464b78e remove outdated header
Change-Id: I744229f03bc7375ad0a47f053f79dec3e91a1fd7
2020-02-10 18:35:20 +01:00
Ben Nemec
675f014626 Remove universal wheel configuration
Now that we've dropped py2 support we shouldn't be setting this
anymore.

Change-Id: Iae1a99a9d2644244165b18e030d1c1912ebd98f1
2020-02-06 17:36:41 +00:00
Hervé Beraud
d929380266 reword releasenote for py27 support dropping
Change-Id: I5d51e1d64e136ebcf283c43c568fc163b4b988ab
2020-02-06 11:04:51 +01:00
Hervé Beraud
89beae0753 [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

Change-Id: I02784f635368ad7cc5ffde7cc8a4f4367143da98
2020-02-03 17:56:35 +01:00
caoyuan
286559f626 tox: Trivial cleanup
1. refactor basepython to testenv
2. remove py27 target
3. fix a bug that prevented usage of upper constraints in some test envs

Change-Id: I5fcec1c7ec978f9fb279de8ac9aae227e6ec5e9d
2020-01-06 14:28:33 +00:00
Zuul
69d9372016 Merge "reap rootwrap daemon process when it is timeout" 2019-12-04 22:38:11 +00:00
Zuul
bf2ff9eb1f Merge "tox: Keeping going with docs" 2019-12-02 19:47:17 +00:00
Zuul
75e16e3005 Merge "Switch to Ussuri jobs" 2019-12-02 14:31:48 +00:00
Jeffrey Zhang
c9a57aab08 reap rootwrap daemon process when it is timeout
When the daemon process is timeout, it will kill itself. But the parent
doesn't reap it. This patch add a thread to wait the process to be done
once the daemon is started.

Closes-Bug: #1850241
Change-Id: Ic209b8ef86c2522ce7e4bd81ac57bf13f1706a81
2019-11-10 23:50:28 +00:00
caoyuan
5a91d686de tox: Keeping going with docs
Sphinx 1.8 introduced [1] the '--keep-going' argument which, as its name
suggests, keeps the build running when it encounters non-fatal errors.
This is exceptionally useful in avoiding a continuous edit-build loop
when undertaking large doc reworks where multiple errors may be
introduced.

[1] https://github.com/sphinx-doc/sphinx/commit/e3483e9b045

Change-Id: I2858ce6bf73471328b92b52be1cdc18ab46254d9
2019-11-03 02:10:35 +08:00
pengyuesheng
da3a3ef5ca Switch to Ussuri jobs
Change-Id: I67b9a3409d650fde9afc65720dfa0c289328ef85
2019-10-24 14:34:46 +08:00
pengyuesheng
6c5995a952 Bump the openstackdocstheme extension to 1.20
Some options are now automatically configured by the version 1.20:
- project
- html_last_updated_fmt
- latex_engine
- latex_elements
- version
- release.

Change-Id: Ie89fa05774e224a9b8c05f0442fda7592df9aa5d
2019-10-12 14:58:52 +08:00
pengyuesheng
42b9d6ac70 Sync Sphinx requirement
Sync sphinx dependency with global requirements. It caps python 2 since
sphinx 2.0 no longer supports Python 2.7.

Change-Id: I08fe97b5e15d7aae025f3d149c1242841d01ee5b
2019-10-10 14:29:54 +08:00
pengyuesheng
a27c2b7083 Update the constraints url
For more detail, see http://lists.openstack.org/pipermail/openstack-discuss/2019-May/006478.html

Change-Id: I2c3631811deeda4ceb68b082c54b6dfb145cf5d0
2019-09-29 10:09:19 +08:00
eea57abd1c 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: Id9809e440302e1a492bd078afc3229535aa52fdf
Sem-Ver: feature
2019-09-20 16:37:11 +00:00
Corey Bryant
c6babc7222 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: I1638f7d10bf43fe6eb8ad7fc27452f70a8deac4f
Story: #2005924
Task: #34234
2019-07-05 15:01:09 -04:00
Zuul
1ddc8747f4 Merge "Always close all passed in fds beyond sensible_fd_limit on launch" 2019-05-08 17:44:23 +00:00
Zuul
7a58fcce11 Merge "Replace git.openstack.org URLs with opendev.org URLs" 2019-05-03 18:17:11 +00:00
Zuul
8e89fececd Merge "Dropping the py35 testing" 2019-04-24 14:41:06 +00:00
jacky06
a64282d913 Replace git.openstack.org URLs with opendev.org URLs
Change-Id: I80c0661599c18e01b5a51444423513f99084e3e8
Closes-Bug: #1826195
2019-04-24 19:10:25 +08:00
OpenDev Sysadmins
4a46079d0a 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:40:43 +00:00
Ghanshyam Mann
e36c0285ef 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: I0d3d40f8ac10f5b765141939cd3424332e1d4138
2019-04-15 18:37:50 +00:00
Zuul
87017c8bdc Merge "Update hacking version" 2019-03-24 07:51:48 +00:00
Dirk Mueller
5259c08c09 Always close all passed in fds beyond sensible_fd_limit on launch
Change Idd98c183eca3e2df8648fc0f37d27fe9cc6d0563 stopped closing
filedescriptors beyond the sensible_fd_limit. With this patch
the previous behavior is restored. We can close the fds more efficiently
by just iterating over /proc/self/fd on Linux and only change
the rlimit/MAXFD setting when successful.

Change-Id: I3b481ddd14ae2b948270d715aad157cf3996def7
2019-03-23 11:30:30 +01:00
71243fe593 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: I258874d7faa00b5d543816b4441b37024c88cefa
Sem-Ver: feature
2019-03-18 14:46:27 +00:00
jacky06
a84402e79f Update hacking version
Use latest release 1.1.0 and compatible changes w.r.t pep8

Change-Id: Ib78453ccb8fe3fa16d35bb49dd443cd6628ff932
2019-03-06 22:39:45 +08:00
ZhongShengping
0b6824d178 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
Story: #2004073
Task: #27440

Change-Id: I3058b37d22a2e86da78975930dd2cf0dc269bfe1
2019-02-19 13:56:43 +08:00
Andreas Jaeger
8cea7fcb0b Use template for lower-constraints
Small cleanups:

* Use openstack-lower-constraints-jobs template, remove individual
  jobs.
* Sort list of templates

Change-Id: I62c4ef15387ba32a6788c497966fe33b9022e393
Needed-By: https://review.openstack.org/623229
2018-12-20 20:15:31 +01:00
Zuul
27f23144b1 Merge "Fix portability issue" 2018-12-08 00:06:37 +00:00
ZhongShengping
b58f3c57b0 Update mailinglist from dev to discuss
openstack-dev was decomissioned this night in https://review.openstack.org/621258
Update openstack-dev to openstack-discuss

Change-Id: I32d60d364e6e2d586a98759bc51f004bcf942682
2018-12-05 09:38:41 +08:00
Lucian Petrut
8f148f5e9e Fix portability issue
The use of the "resource" module now prevents oslo.rootwrap from
being imported on Windows.

Although oslo.rootwrap is not effectively used on Windows, it's
important for it to at least be importable, since it's widely
used throughout OpenStack projects without having platform checks
in place.

This change checks if the "resource" module is avaialble before
attempting to use it.

Change-Id: I2391315f77718a3c9eb9fc8c03a6882237f33548
Closes-Bug: #1804639
2018-11-22 13:22:52 +02:00
Ben Nemec
7e79f319a8 Add release note for file descriptor limit change
This could have an operator impact, so we should mention it in the
release notes. See c0a8699820 for the
actual implementation of the feature.

Change-Id: Ib29e96307caa39c21936f216d9aed7907e7a7331
2018-10-25 15:07:26 +00:00
Zuul
c3ecf44c2e Merge "Run rootwrap with lower fd ulimit by default" 2018-10-25 01:28:26 +00:00
ZhongShengping
8a2a7b507d Clean up .gitignore references to personal tools
Developers run all sorts of different tools within Git repositories,
any of which can leave their own special trashfiles all over the
place. We can't every hope to catalog them all, so better to
recommend developers simply configure a global core.excludesfile to
filter the irrelevant files which tend to get created by their
personal choice of tools.

To this end, remove the long-standing sections for "Mr Developer"
and "Editors" since their mere existence here sends the signal that
we welcome (and have time to review) additions for any old tool
someone ever might happen to try. Also add a comment block
explaining this, for clarity.

We can, and should of course, continue to list files created by the
tools recommended by our workflow (test frameworks called from tox,
documentation and packaging builds, et cetera).

This change is a port of I1b41efac219fca44e2548fc36633724d0ecfc0cb
from the openstack-dev/oslo-cookiecutter repository.

Change-Id: I7c8fd5311b748fd12b58f0983757a150fa53fdb8
2018-10-15 11:56:12 +08:00
Vieri
06e17e80fb 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: Ib999d2ca6424351e18a61ccf14cf7588396d022a
2018-10-09 13:37:19 +00:00
Dirk Mueller
c0a8699820 Run rootwrap with lower fd ulimit by default
On Python 2.x, a subprocess.Popen() with close_fds=True will
fork and then close filedescriptors range(3..os.sysconf("SC_OPEN_MAX")),
which thanks to Kernel PTI (Kaiser patches) is significantly slower
in 2018 when the range is very large. With a soft limit of 1048576,
benchmark.py reports an overhead of ~ 400ms without this patch and 2ms
with the patch applied. This patch adds a configuration option and
sets a more sensible default of 1024 file descriptor limit by default.

Closes-Bug: 1796267
Change-Id: Idd98c183eca3e2df8648fc0f37d27fe9cc6d0563
2018-10-09 12:12:46 +02:00
Doug Hellmann
2ebda956b4 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: I284f9b8f9f46a8991eda696135432a8e1041779a
Story: #2002586
Task: #24322
2018-08-11 18:20:15 -04:00
Doug Hellmann
96f6d8498d 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: Id57ebfef468bad5a7694e6685176a81fe4e58fb7
Story: #2002586
Task: #24322
2018-08-07 16:17:35 -04:00
Doug Hellmann
a82d5a56b1 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: Iebf359ea81ed366e17c900a2139c05fa94254f71
Story: #2003250
2018-08-03 17:45:52 -04:00
b20c51dbdc Update reno for stable/rocky
Change-Id: Ic1ad7446fce80d7ff92285d64f9c39486441c490
2018-07-26 12:39:52 +00:00
Vu Cong Tuan
de7e0f0df2 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: Ibee9bd5c371f6f94131cccf093ec2100e258f411
2018-07-03 16:00:44 +07:00