Commit Graph

355 Commits

Author SHA1 Message Date
Zuul f0b684435c Merge "reno: Update master for unmaintained/victoria" 2024-03-12 13:13:04 +00:00
OpenStack Release Bot d87df02017 Update master for stable/2024.1
Add file to the reno documentation build to show release notes for
stable/2024.1.

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

Sem-Ver: feature
Change-Id: I697bb749ec2008df8c5462e6bdcbdcddb3ed0c97
2024-03-08 14:23:14 +00:00
OpenStack Release Bot bd0ee5238e reno: Update master for unmaintained/victoria
Update the victoria release notes configuration to build from
unmaintained/victoria.

Change-Id: Ic67fca6b99f8dccb897522d3f8b53a86019f3aa3
2024-03-07 14:17:17 +00:00
Zuul 592d8ac51a Merge "Make greenlet optional" 2024-02-13 15:43:20 +00:00
Zuul e0d7d0dda4 Merge "Add missing direct imports" 2024-02-09 15:31:05 +00:00
Zuul 62e416b295 Merge "pre-commit: Integrate bandit" 2024-02-08 13:39:33 +00:00
Zuul 9794b1cf7d Merge "pre-commit: Bump versions" 2024-02-08 13:26:40 +00:00
Zuul 1eabb16f72 Merge "Remove logic for python 2 support" 2024-02-08 13:26:39 +00:00
Takashi Kajinami 15108e3be1 Remove logic for python 2 support
... because python 2 support was already removed.

Change-Id: I57e8ac2549ecf170d6b43bc0557fd388e025e536
2024-02-07 04:37:43 +00:00
Takashi Kajinami eeb14fb6ff Update coverage commands
... to use the ones consistent with the other repos.

Change-Id: I808820b1921f4e362ec656693bcd387067af0b72
2024-02-07 03:12:08 +00:00
Takashi Kajinami cfdbc26529 pre-commit: Integrate bandit
We also remove these unnecessary linter dependencies from
test-requirements.txt.

Co-Authored-By: Stephen Finucane <sfinucan@redhat.com>
Change-Id: I36a6469231a8ce78f06c9b858d35c161f4d22799
2024-02-07 12:03:18 +09:00
Takashi Kajinami 7bd342040c pre-commit: Bump versions
hacking now has a native hook.

Co-Authored-By: Stephen Finucane <sfinucan@redhat.com>
Change-Id: I68d56d589be90285fff63b670c5e7b79b53611d3
2024-02-07 12:01:48 +09:00
Takashi Kajinami e43ae1115c Make greenlet optional
The greenlet library is not always used. It is used to capture detail
of green threads but this part can be skipped in case greenlet is not
present.

Also eventlet in test requirements is not used and can be removed.

Change-Id: I57edfe4d975ce42ca92a9242d4b32e69d1cec268
2024-02-07 11:56:36 +09:00
Vasyl Saienko 489fe7c8fb Add missing direct imports
This patch adds oslo.config and greenlet to requirements as
they directly imported in the code.

Change-Id: Id20cf36b8e079501418764637176a539315cc8d9
2024-02-06 12:29:54 +00:00
Takashi Kajinami c291a945eb Bump hacking
hacking 3.0.x is too old.

Change-Id: If01c70a710e3b0b715a0d26dd67a9169184b25cb
2024-01-26 01:28:06 +09:00
Ghanshyam Mann 68555d8b50 Update python classifier in setup.cfg
As per the current release tested runtime, we test
python version from 3.8 to 3.11 so updating the
same in python classifier in setup.cfg

Change-Id: I658cc4e81d57ec16e34d20b3ff26dbb6c92cd04c
2024-01-11 16:19:35 -08:00
Zuul 08040b9cfb Merge "GMR: Allow disabling signal handler" 2023-11-16 17:45:07 +00:00
Zuul b37b67f146 Merge "Bump bandit" 2023-09-29 11:55:59 +00:00
OpenStack Release Bot fa6bc3638c Update master for stable/2023.2
Add file to the reno documentation build to show release notes for
stable/2023.2.

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

Sem-Ver: feature
Change-Id: I1fc7c631f42a9e0cc664eae7684259049686b53b
2023-09-07 09:38:01 +00:00
Takashi Kajinami db11260c11 GMR: Allow disabling signal handler
Some services such as nova introduced GMR for API wsgi application
so that GMR can be generated via a file handler. However the current
setup method tries to register signal handler and causes warnings.

For example we are seeing the following error when starting nova-api
by apache + mod_wsgi.

mod_wsgi (pid=80323): Callback registration for signal 12 ignored.
  File "/var/www/cgi-bin/nova/nova-api", line 52, in <module>
    application = init_application()
  File "/usr/lib/python3.9/site-packages/nova/api/openstack/compute/wsgi.py", line 20, in init_application
    return wsgi_app.init_application(NAME)
  File "/usr/lib/python3.9/site-packages/nova/api/openstack/wsgi_app.py", line 128, in init_application
    init_global_data(conf_files, name)
  File "/usr/lib/python3.9/site-packages/nova/utils.py", line 1122, in wrapper
    return func(*args, **kwargs)
  File "/usr/lib/python3.9/site-packages/nova/api/openstack/wsgi_app.py", line 105, in init_global_data
    gmr.TextGuruMeditation.setup_autorun(
  File "/usr/lib/python3.9/site-packages/oslo_reports/guru_meditation_report.py", line 152, in setup_autorun
    cls._setup_signal(signal.SIGUSR2,
  File "/usr/lib/python3.9/site-packages/oslo_reports/guru_meditation_report.py", line 185, in _setup_signal
    signal.signal(signum,

This introduces the new argument so that we can disable signal handler
completely to avoid such warnings.

Change-Id: I95170542fecb493260a22d9148f3a2777207cb0e
2023-08-03 21:37:33 +09:00
OpenStack Proposal Bot ec934c26b7 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I02a2d3a21282df29723105853b636d28aaffb91f
2023-06-22 03:34:59 +00:00
Hervé Beraud f35998a13e Bump bandit
Change-Id: I15fd6db0c4910bc8af212289d77c38b2e9dc2a04
2023-05-17 15:28:17 +02:00
Ghanshyam 61ce374f19 Revert "Moves supported python runtimes from version 3.8 to 3.10"
This reverts commit a1b8dc2578.

Keeping Python 3.10 in setup.cfg classifier. 

Reason for revert:

Needed-By: https://review.opendev.org/c/openstack/openstack-zuul-jobs/+/882175

TC has been discussing about re-adding the python 3.8
testing in current master 2023.2 release testing.

- https://meetings.opendev.org/meetings/tc/2023/tc.2023-04-25-18.00.log.html#l-191
- https://lists.openstack.org/pipermail/openstack-discuss/2023-April/033469.html

While governance changes are under review, TC agreed to add py3.8 testing
so that we do not see more project/lib dropping python 3.8 and make them
uninstalable on python 3.8

- https://meetings.opendev.org/meetings/tc/2023/tc.2023-05-02-18.00.log.html#l-17
- https://review.opendev.org/c/openstack/governance/+/882165

Also adding py3.8 testing back in job https://review.opendev.org/c/openstack/openstack-zuul-jobs/+/882175

Change-Id: I3bb8312641d7535170cc8b77ed3baf0151d6ba08
2023-05-04 20:20:07 +00:00
Hervé Beraud a1b8dc2578 Moves supported python runtimes from version 3.8 to 3.10
Within 2023.2 python version 3.9 and 3.10 are the
supported python runtimes [1].
[1] https: //review.opendev.org/c/openstack/governance/+/872232

Change-Id: I6f96568c6dde7347ffd2ca4271414bdfd8b99923
2023-04-10 01:55:50 +00:00
OpenStack Release Bot 15bfc2cb81 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: Ifa61391b97883ae3d58535e7d6ac91b5334bb3eb
2023-02-24 15:22:18 +00:00
niuke a17d762b50 remove unicode prefix from code
Change-Id: Id0250a28c76754f03c1c08e9008c3c162eb70ae1
2022-08-18 06:43:37 +00:00
niuke e9caa7aa17 remove unicode literal from code
Change-Id: Ifd63876f511cef3a1f151c664a8bcd5ae77058b8
2022-07-28 10:22:54 +00:00
Zuul 8f45d94721 Merge "Fix formatting of release list" 2022-07-14 10:33:22 +00:00
OpenStack Proposal Bot 0360d7f406 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: Id1537f23c78ee802861ac5810c37ee984868f460
2022-06-21 03:49:04 +00:00
Hervé Beraud 36ae0b2439 Fix formatting of release list
Change-Id: I58316e684949ced20252de395690f3f653264a77
2022-05-27 12:13:27 +02:00
Hervé Beraud c4c8634fea Drop python3.6/3.7 support in testing runtime
In Zed cycle testing runtime, we are targetting to drop the
python 3.6/3.7 support, project started adding python 3.8 as minimum,

example nova:
- 56b5aed08c/setup.cfg (L13)

Also indicates that we support python 3.9.

Change-Id: I8f917937ea698728ae17fb29f48aa1553caa5eb0
2022-05-05 16:10:10 +02:00
Zuul 3a1157f1e5 Merge "Support integer keys of dicts in text serialization" 2022-03-22 13:43:21 +00:00
Stephen Finucane 257683b4a2 Update CI to use unversioned jobs template
As part of the migration of this project to the independent release
model, we failed to notice that the job template was still tied to a
specific release. We've now introduced a new unversioned job template,
'openstack-python3-jobs' [1], which was can and should use. Do this.

[1] https://review.opendev.org/c/openstack/openstack-zuul-jobs/+/833286/

Depends-On: https://review.opendev.org/c/openstack/openstack-zuul-jobs/+/833286/
Change-Id: I7f6ad2295f44b4da5c474171a5ed0110a5fe786c
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2022-03-15 15:07:26 +00:00
Johannes Kulik 68bc329964 Support integer keys of dicts in text serialization
When the config contains a DictOpt that accepts integer keys, the Guru
Meditation Report fails to serialize. Even if current OpenStack code
might not contain such dicts, it's possible that downstream add such
options. Therefore, we change the code to support both dicts with only
integer keys and - just in case - mixed-key dicts.

Change-Id: I44343a8c306c96fc8dc078a76e744cf8b897d8d8
2021-12-20 11:19:19 +01:00
yangyawei 6da7341050 Changed minversion in tox to 3.18.0
The patch bumps min version of tox to 3.18.0 in order to
replace tox's whitelist_externals by allowlist_externals option:
https://github.com/tox-dev/tox/blob/master/docs/changelog.rst#v3180-2020-07-23

Change-Id: I7482b0cfa02e0ac5dfb9813e1eb7c4e4d032b8ac
2021-06-07 16:51:48 +08:00
yangyawei f2799dc87b Switch testing to Xena testing runtime
Upating the tetsing template to Xena testing runtime:
https://governance.openstack.org/tc/reference/runtimes/xena.html

Change-Id: I0ae4361508c60fab646ef5eabe9ac02fac8b8039
2021-05-17 17:57:04 +08:00
yangyawei 5f1602e3db setup.cfg: Replace dashes with underscores
Setuptools v54.1.0 introduces a warning that the use of dash-separated
options in 'setup.cfg' will not be supported in a future version [1].
Get ahead of the issue by replacing the dashes with underscores. Without
this, we see 'UserWarning' messages like the following on new enough
versions of setuptools:

  UserWarning: Usage of dash-separated 'description-file' will not be
  supported in future versions. Please use the underscore name
  'description_file' instead

[1] https://github.com/pypa/setuptools/commit/a2e9ae4cb

Change-Id: I8b9c4e1e6fec21134aca37ece8f3881b151d6118
2021-05-14 17:35:09 +08:00
Zuul 833f28a7ed Merge "Remove lower-constraints remnants" 2021-04-16 12:07:33 +00:00
Daniel Bengtsson 4d2c601c85 Move flake8 as a pre-commit local target.
The goal here is to avoid conflicts between flake8 and hacking version each
2 days.

Inspired from nova's approach[1].

The flake8 version to install will be determined by hacking and
requirements[2] will stay aligned instead of relying on different versions.

[1] https://opendev.org/openstack/nova/src/branch/master/.pre-commit-config.yaml#L26-L35
[2] https://opendev.org/openstack/hacking/src/branch/master/requirements.txt#L1

Change-Id: I3c217135a9318d0678addac8c59868c7e91e936e
2021-03-23 13:16:23 +01:00
wu.shiming c083fe9790 Remove lower-constraints remnants
These were missed in change: Ice8c48ed23626538c9a9311a4392d18a3a795b07

Change-Id: Ie0396e889cd9ae37f1330adb7e6906f128b3270a
2021-02-19 14:57:06 +08:00
Zuul e56daeda1a Merge "Use TOX_CONSTRAINTS_FILE" 2021-01-14 13:07:03 +00:00
Zuul ab49a5dfe6 Merge "Fix hacking min version to 3.0.1" 2021-01-13 09:16:07 +00:00
Zuul 82033c4c44 Merge "Use py3 as the default runtime for tox" 2021-01-13 08:31:29 +00:00
Zuul 8795f7bb2b Merge "Replace concatenation with f-strings" 2021-01-13 04:35:09 +00:00
Hervé Beraud 00f80b4560 Dropping lower constraints testing
We facing errors related to the new pip resolver, this
topic was discussed on the ML and QA team proposed to
to test lower-constraints [1].

I propose to drop this test because the complexity and recurring pain needed
to maintain that now exceeds the benefits provided by this mechanismes.

[1] http://lists.openstack.org/pipermail/openstack-discuss/2020-December/019390.html

Change-Id: Ice8c48ed23626538c9a9311a4392d18a3a795b07
2020-12-18 15:11:40 +01:00
wangzihao a96ee02b24 Replace concatenation with f-strings
Use f-strings instead concatenation to make it more readable and faster.

Change-Id: I208bd44c063756be85c836e1b30290e6c09f2101
2020-12-11 15:45:20 +00:00
Hervé Beraud 57cc918a06 Use TOX_CONSTRAINTS_FILE
UPPER_CONSTRAINTS_FILE is old name and deprecated
This allows to use upper-constraints file as more
readable way instead of UPPER_CONSTRAINTS_FILE=<lower-constraints file>.

[1] https://review.opendev.org/#/c/722814/
[2] https://zuul-ci.org/docs/zuul-jobs/python-roles.html#rolevar-tox.tox_constraints_file

Change-Id: Ia5b237aa59f1c07165698b0d5edb73287d990305
2020-11-04 10:50:14 +01:00
Hervé Beraud f67c3bad2f Use py3 as the default runtime for tox
Moving on py3 as the default runtime for tox to avoid to update this at
each new cycle.

Wallaby support officially the following runtimes [1]:
- Python 3.6
- Python 3.8

During Victoria Python 3.7 was used as the default runtime [2] however this
version isn't longer officially supported.

[1] https://governance.openstack.org/tc/reference/runtimes/wallaby.html#python-runtimes-for-wallaby
[2] https://governance.openstack.org/tc/reference/runtimes/victoria.html#python-runtimes-for-victoria

Change-Id: Ie0678a020707e1d906f487c709d64447d1eee905
2020-11-04 10:04:05 +01:00
zhoulinhui 6b2ad67208 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: Ia71dc29dedb6786c4df4546bb4e7df6956966ec0
2020-10-16 01:21:28 +00:00
wangzihao a2122e7432 Remove all six usage
Remove six Replace the following items with Python 3 style code.

- six.string_types
- six.text_type
- six.itervalues
- six.StringIO

Change-Id: I32401859129843242922f1d0510b21e32bb7d8cc
2020-10-14 10:24:52 +08:00