Commit Graph

348 Commits

Author SHA1 Message Date
Zuul af0d090c20 Merge "reno: Update master for unmaintained/xena" 2024-03-12 14:26:15 +00:00
Zuul af8436bd89 Merge "reno: Update master for unmaintained/wallaby" 2024-03-12 14:23:41 +00:00
Zuul 9b5e039ebc Merge "reno: Update master for unmaintained/victoria" 2024-03-12 13:15:29 +00:00
OpenStack Release Bot 9568f54dc9 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: I404c63632f335836249b20496bb84788987a416c
2024-03-08 14:22:11 +00:00
OpenStack Release Bot f47d6f4344 reno: Update master for unmaintained/xena
Update the xena release notes configuration to build from
unmaintained/xena.

Change-Id: I8b403dbb676f08307abab3f55d2280df41d9ba73
2024-03-07 14:25:12 +00:00
OpenStack Release Bot 6e89ad9d70 reno: Update master for unmaintained/wallaby
Update the wallaby release notes configuration to build from
unmaintained/wallaby.

Change-Id: I08b700e2ae93959ace0248af99f028e965420b74
2024-03-07 14:20:59 +00:00
OpenStack Release Bot d71d6faa60 reno: Update master for unmaintained/victoria
Update the victoria release notes configuration to build from
unmaintained/victoria.

Change-Id: Iebfbb50d055eb300df27c8022bfd10a2812f55ce
2024-03-07 14:15:24 +00:00
Takashi Kajinami e31a7a1af2 Add is_admin to redacted context
Heat is known to override RequestContext in a strange way and it
attempts to run policy check, which loads full request context, in case
is_admin is not given.

This ensures is_admin is copied during redactation, to avoid failures
in unit tests. is_admin is not a secret field so can appear in
notifications.

This also adds **kwargs interface to redacted_copy, so that we can
inject a few more arguments in subclasses.

Change-Id: I19f83d7b0a13f14df16ac805998d5b3751801c12
2024-02-26 18:20:35 +09:00
Zuul 92252485bd Merge "tox: Drop envdir" 2024-02-15 10:19:25 +00:00
OpenStack Release Bot 1d00ac1fdb reno: Update master for unmaintained/yoga
Update the yoga release notes configuration to build from
unmaintained/yoga.

Change-Id: I3dc9a9d4a23773d7aa4c3ac3e19095997d52180f
2024-02-06 14:27:38 +00:00
Takashi Kajinami 194dc107a0 tox: Drop envdir
tox now always recreates an env although the env is shared using envdir
options.
~~~
$ tox -e genpolicy
genpolicy: recreate env because env type changed from
{'name': 'genconfig', 'type': 'VirtualEnvRunner'} to
{'name': 'genpolicy', 'type': 'VirtualEnvRunner'}
~~~

According to the maintainer of tox, this functionality is not intended
to be supported.
https://github.com/tox-dev/tox/issues/425#issuecomment-1011944293

Change-Id: I704c467d08ecd2ba22e9ac52263d1108a28d5e96
2024-02-02 23:33:19 +09:00
Takashi Kajinami 2cb9e99a03 Bump hacking
hacking 3.0.x is too old.

Change-Id: I0459d714c21fe00eb6d4bffff1a08321782362f4
2024-01-26 01:25:02 +09:00
Ghanshyam Mann 40683ee88d 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: Ie57a968dbba55a44ac23d73453d807e1ea2d4eca
2024-01-11 16:18:20 -08:00
Zuul 4d4a520647 Merge "pre-commit: Integrate bandit, mypy" 2023-11-13 18:58:30 +00:00
Zuul fa8ca9e78d Merge "pre-commit: Bump dependencies" 2023-11-13 18:53:28 +00:00
Zuul 8d25cad885 Merge "Bump bandit" 2023-09-29 12:12:59 +00:00
Stephen Finucane eaca4281d0 pre-commit: Integrate bandit, mypy
Lets us centralise all linters.

Change-Id: I27f03a92377897faad589ae84a315ed1b90d1fca
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2023-09-12 08:34:11 +00:00
Stephen Finucane 2c1aab01fb pre-commit: Bump dependencies
Change-Id: Id475a9d5b34ab094486906b5917c89c8591dfe35
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2023-09-11 11:50:25 +01:00
Zuul 57f2e49550 Merge "Add method for getting redacted copy of context" 2023-09-11 10:09:11 +00:00
Jay Faulkner 059f9ba16e Add method for getting redacted copy of context
There are times, such as in oslo.messaging notifications, when we'd like
a context object to be stripped of any secrets. This adds a method to
RequestContext, redacted_copy(), which returns a copy of that context,
carrying over an allowlist of fields only, leaving secrets behind.

Related-bug: 2030976
Change-Id: Ie4a8eb784c505c41ec5fcd4cba091cc555146763
2023-09-08 12:11:44 -07:00
OpenStack Release Bot 1e95f85499 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: Ie030cc7377a8be27ca4436ca817cf5eeb4b4b8d4
2023-09-07 09:36:22 +00:00
Hervé Beraud e70a618f33 Bump bandit
Change-Id: I0bab40e92e00f15a6cade62867fd309d26c73aa2
2023-05-17 16:27:49 +02:00
Ghanshyam 5168ccdf01 Revert "Moves supported python runtimes from version 3.8 to 3.10"
This reverts commit 2a3c81225f.

Keeping Python 3.10 in setup.cfg classifier and zuul.yaml changes.

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: I0387859a84a058c2266c59cd6688fd5abc9fc867
2023-05-05 18:53:22 +00:00
Hervé Beraud 2a3c81225f 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: Ic3df6f4d8243ed317679fe5472ecc482067351a8
2023-04-10 12:58:33 +09:00
OpenStack Release Bot e17e4856b0 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: I364035fd13eff22195931896a699962887901e12
2023-02-24 15:17:21 +00:00
Hervé Beraud 7696282cb5 Fix the docs job
Related to https://lists.openstack.org/pipermail/openstack-discuss/2023-February/032247.html

Change-Id: I2981285fe29790737431b1083979388c02938a67
2023-02-17 13:14:52 +00:00
OpenStack Release Bot 926dd4d981 Add Python3 antelope unit tests
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for antelope.

See also the PTI in governance [1].

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

Change-Id: Ic4b46988421240b5ffcb7aa5cf989afec84e94b3
2022-09-09 09:16:23 +00:00
OpenStack Release Bot 128ee6c15f 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: I69e0200f7e4f4a32b078b53f95e33f87767502b7
2022-09-09 09:16:21 +00:00
niuke f7bab2374f Cleanup py27 support
This repo is now testing only with Python 3, so let's make
a few cleanups:
- Remove python 2.7 stanza from setup.py

Change-Id: I49a8b75ee2696632d105abc23d8a467e8c157179
2022-08-13 09:17:33 +08:00
Hervé Beraud f388eb981d 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: I9a9e88dc6d0f2ae169c583215372097f808f34b2
2022-05-05 16:15:43 +02:00
songwenping b036fc1141 Remove unnecessary unicode prefixes
Change-Id: Id6bb6fb85f9989746066ac042661cd4782f153c4
2022-04-19 19:43:00 +08:00
OpenStack Release Bot 27e8202482 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: I20476524c984d9fbee07f544bafadcd33dbc46a0
2022-03-04 17:17:47 +00:00
OpenStack Release Bot f13e5b44d8 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: I38ed8e46d582f471e105b80ee4f497e32e1592c1
2022-03-04 17:17:46 +00:00
Stephen Finucane 3400cc2871 Integrate mypy
oslo.context is pretty small and therefore easy to introduce mypy for.
Minimal type hints are added, along with tox targets to validate things.
We can build on these in the future if we'd like to.

Change-Id: Ie5ab9eedfc89654ac3aa635f4a3ad24409ad23b6
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2022-01-25 15:00:32 +01:00
Daniel Bengtsson 8d44224e52 Don't test with setuptools local distutils.
We noticed some aberrations in log level/threshold handling as of
Setuptools 60.0.0, and the only substantive change for that release[1]
toggles the default selection for its internal ("local") distutils
replacement vs the "stdlib" one. For now, toggle the
SETUPTOOLS_USE_DISTUTILS envvar in our testing back to the old
value. This should be revisited once logging is handled better in
Setuptools.

[1] https://github.com/pypa/setuptools/issues/3038

Change-Id: I2eacb9756d9eb9c5d606599f16cdb412007f5854
2022-01-21 14:54:48 +01:00
Hervé Beraud f4cbe4c296 Remove the deprecated argument tenant from RequestContext
The tenant argument of RequestContext have been deprecated long
time ago it is now removed by these changes.

Sem-Ver: api-break
Closes-Bug: 1505827
Change-Id: I2fded6f3476df1fb8c4e042ef28ed8ccb7ab0737
2021-10-29 09:16:31 +02:00
Zuul 57a4a5f576 Merge "Fix context from_dict() for system_scope" 2021-10-04 19:55:17 +00:00
OpenStack Release Bot 1022a51847 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: Ic8dd9ba6e5868c573ac8f0b340447f8addd8b6b7
2021-09-10 14:34:20 +00:00
OpenStack Release Bot d2634fd127 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: Id065fcdf7b292ebba9fe5944d3051eca99f361d1
2021-09-10 14:34:19 +00:00
Michael Johnson 8290621b05 Fix context from_dict() for system_scope
A previous patch[1] added "system_scope" to the context for to_dict()
but the from_dict() method was not updated. This caused the
system_scope to always be None.
This patch corrects that by adding "system_scope" to the list of
values that may need to be extracted from the context dict.

[1] https://review.opendev.org/c/openstack/oslo.context/+/530509

Change-Id: Ica23d5c4183a692de3cb65a7ad72b19f47988ca6
2021-08-12 20:14:34 +00:00
Zuul 641a1e0fec Merge "Ussuri+ is python3 only and update python to python3" 2021-05-26 17:10:32 +00:00
yangyawei 64842a1d5d 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: I4400fcf1bdcdedfa8dccf806f99ded36660e276e
2021-05-14 15:37:00 +08:00
dengzhaosen 0fc0a0a257 Ussuri+ is python3 only and update python to python3
Change-Id: I504494cac13fb8b887df16fe6b93bf587ba35630
2021-05-06 10:19:03 +08:00
Zuul 76c2d074b1 Merge "Fix formatting of release list" 2021-04-21 15:39:32 +00:00
Zuul 0efc6a0c94 Merge "Use py3 as the default runtime for tox" 2021-04-16 13:26:01 +00:00
Zuul 7c9f430657 Merge "Use TOX_CONSTRAINTS_FILE" 2021-04-16 12:42:23 +00:00
Pierre Riteau 655daf1feb Fix formatting of release list
Change-Id: Iae6d7115baf6ff0a99d7d3149b28ccd19541fae1
2021-04-16 14:20:45 +02:00
Zuul de8d6d9b04 Merge "Drop use of deprecated collections classes" 2021-04-16 11:50:17 +00:00
Zuul 7243129985 Merge "Add Python3 xena unit tests" 2021-04-15 20:48:28 +00:00
Zuul 044826fb46 Merge "Update master for stable/wallaby" 2021-04-15 17:59:01 +00:00