735 Commits

Author SHA1 Message Date
71698aa516 Update master for stable/2025.1
Add file to the reno documentation build to show release notes for
stable/2025.1.

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

Sem-Ver: feature
Change-Id: I41f0c131aa7d181705a8b706ec65310c189c7494
2025-03-14 17:58:09 +00:00
Pierre Riteau
47874c415f Use releases.openstack.org instead of opendev.org
This is a more stable URL that will redirect to the correct location.

Change-Id: I627503efcf6b0c83514ba33c859a04568dfc5631
2025-03-10 09:13:15 +01:00
Zuul
6250095b8d Merge "Skip installation to speed up pep8" 7.1.0 2025-02-15 16:14:24 +00:00
Takashi Kajinami
c2201e065f Skip installation to speed up pep8
Change-Id: I40406078e9631b70e33d74cabbe0f6948741d629
2025-02-15 15:17:47 +09:00
Zuul
f7383fe40d Merge "deprecate eventlet monkey patch within lockutils" 2025-02-06 18:19:23 +00:00
Hervé Beraud
1da88a61a8 deprecate eventlet monkey patch within lockutils
Change-Id: I83352849192489e6918898969b92ee3f8e2bca55
2025-02-06 15:08:00 +00:00
Takashi Kajinami
d49bfca815 Remove support for running unit tests in Windows
Support for Windows OS was already removed[1].

[1] 3df106fa34080ab32e9a1ee334c93e0df29b68e7

Change-Id: I8fef84147c2d409f3875a7bbad69a5bc0456fb2f
2025-01-18 16:37:28 +09:00
Zuul
c70e6eee79 Merge "Remove windows support" 7.0.0 2024-12-01 23:59:42 +00:00
Zuul
cfb8cc7e4b Merge "Check if subprocess module is patched directly" 2024-11-29 10:11:17 +00:00
25ca8849d8 reno: Update master for unmaintained/2023.1
Update the 2023.1 release notes configuration to build from
unmaintained/2023.1.

Change-Id: I6d6d58ef2ef7b80f1781a3faf857a840f0e59311
2024-11-21 18:28:44 +00:00
Takashi Kajinami
3df106fa34 Remove windows support
This allows us to remove a few codes dependent on eventlet.

Change-Id: I24fa76abbe11a221fceea232a7266b53752c75ec
2024-11-02 16:22:26 +00:00
Takashi Kajinami
2fe6b92906 Check if subprocess module is patched directly
eventlet patches subprocess module since 0.35.2[1]. So we no longer
need that old workaround.

[1] 614a20462a

Change-Id: I75088e04cc3ba9a8bbb0a7af74650fc1ebff4c95
2024-11-02 13:56:21 +00:00
Zuul
20f6fb1b6e Merge "Run pyupgrade to clean up Python 2 syntaxes" 6.2.0 2024-10-31 18:01:42 +00:00
Takashi Kajinami
3eaf64925f Add note about requirements lower bounds
Since lower constraints job was removed the bounds are not actually
tested. Add a note to explain the bounds are maintained on best effort
basis.

Change-Id: I092c27d4b8cb36aa788aef6ed6306c0b4987bb61
2024-10-31 09:48:21 +09:00
Takashi Kajinami
05fb91d1ed Remove Python 3.8 support
Python 3.8 is no longer part of the tested runtimes for 2024.2[1]
because its EOL is coming soon.

[1] https://governance.openstack.org/tc/reference/runtimes/2024.2.html

Change-Id: I086e930cc9d7db9fa79e926ac3fe7a09b69b45b1
2024-10-24 18:03:25 +09:00
Takashi Kajinami
1f5ba0ca87 Run pyupgrade to clean up Python 2 syntaxes
Update all .py source files by
 $ pyupgrade --py3-only $(git ls-files | grep ".py$")
to modernize the code according to Python 3 syntaxes.

Also add the pyupgrade hook to pre-commit to avoid merging additional
Python 2 syntaxes.

Change-Id: I9d54c11642acb341cc5db1267f5a91d4740f932c
2024-10-21 19:21:49 +09:00
Takashi Kajinami
ca6388b5a2 Fix outdated tox minversion
The allowlist_externals option is supported since 3.18.0 .

Change-Id: I0703aeb9ad64e17f11000363dbc4afffe34d506e
2024-10-13 21:35:39 +09:00
Takashi Kajinami
749be988de Declare Python 3.12 support
Now Python 3.12 unit tests job is voting. So we can safely say this
is tested with Python 3.12 .

Change-Id: I2df609a3781d8ac58e73901a2b5a4ff6d9b61d18
2024-10-10 18:49:57 +09:00
Zuul
a771167ad0 Merge "Remove workaround for eventlet bug #592" 2024-10-10 09:24:02 +00:00
Takashi Kajinami
dcc891427a Remove workaround for eventlet bug #592
This code worked around a bug in eventlet[1] that has been fixed in
6533958f5fcec8b1577f56834ea2dc75a4f211e3. The fix has been available in
every eventlet release since v0.27.0.

[1] https://github.com/eventlet/eventlet/issues/592

Co-Authored-By: Cyril Roelandt <cyril@redhat.com>
Change-Id: I377f664b4e5092ee0e2a95a7e277f1c8a1e18953
2024-09-28 09:51:30 +09:00
782268cfbf Update master for stable/2024.2
Add file to the reno documentation build to show release notes for
stable/2024.2.

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

Sem-Ver: feature
Change-Id: If43cf6f1c1a85da010d128711e3d0c82a065913d
2024-09-05 16:00:31 +00:00
Takashi Kajinami
248ba64794 Remove old excludes
These are detected as errors since the clean up was done[1] in
the requirements repository.

[1] 314734e938f107cbd5ebcc7af4d9167c11347406

Change-Id: Ic30bffbeb3fb97c284d5dec39f2a07504e2502f0
6.1.0
2024-04-30 17:47:04 +09:00
Zuul
074f18abc8 Merge "reno: Update master for unmaintained/victoria" 2024-03-12 13:13:06 +00:00
1945a040fa 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: I185d17b1fc53768d448d272352b90d3a65ae4d99
2024-03-08 14:21:58 +00:00
e59f9fa675 reno: Update master for unmaintained/victoria
Update the victoria release notes configuration to build from
unmaintained/victoria.

Change-Id: Ie152ac05d3941aa8bfee511fa5ca33fd99a03cd3
2024-03-07 14:15:00 +00:00
Zuul
53709baa92 Merge "Fix wrong stacklevel" 6.0.0 2024-02-22 10:45:54 +00:00
Takashi Kajinami
925c2a241f Fix wrong stacklevel
We don't have to look for upper call layers for that specific warning
messages.

Change-Id: Ifdc568c29e29c049dede280b76010a2c69928e76
2024-02-22 00:02:38 +09:00
Zuul
eedd2d842b Merge "pre-commit: Integrate bandit" 2024-02-21 06:08:38 +00:00
Zuul
d42e5de219 Merge "pre-commit: Bump versions" 2024-02-21 06:08:37 +00:00
Zuul
a2616eddb7 Merge "Drop fallback to DEFAULT section" 2024-02-13 13:48:21 +00:00
Takashi Kajinami
d51723fa64 Drop fallback to DEFAULT section
The fallback was added 9 years ago, in 0.1.0 release[1].

[1] c98d5edc44ad44da7196afa4b6bba0a2afea1f8e

Change-Id: I3b66c5f9df58eaeea9fc51a6c0b83af2e39a525b
2024-02-07 23:17:36 +00:00
Takashi Kajinami
8ff86619bb Display coverage report
... for easy reference. Also make sure old data is purged.

Change-Id: I90bdc8e5eaf738dcbf05715436c7ba140e6f5dfb
2024-02-07 03:10:50 +00:00
Takashi Kajinami
797f40aa43 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: Id17f4865b2da9f4a5c1cd5ea360cd007315d1c0e
2024-02-02 21:46:30 +09:00
Takashi Kajinami
36bb13ec03 pre-commit: Bump versions
hacking now has a native hook.

Co-Authored-By: Stephen Finucane <sfinucan@redhat.com>
Change-Id: Ifc1875cc30d6724ae414cd9cd5c3d66e033c272c
2024-02-02 21:44:56 +09:00
Takashi Kajinami
dedcc75835 Bump hacking
hacking 3.0.x is too old.

Change-Id: Ic768c0687f090f9ccc91d4eae6474b2a5993e06c
2024-01-26 01:23:46 +09:00
Ghanshyam Mann
7f1b9d1588 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: I2c0432d7bfe39721602ac6773ddb5fed2f9dd384
2024-01-11 15:36:14 -08:00
Takashi Kajinami
bd96105622 Deprecate Windows support
Because WinStackers project has been retired, running OpenStack on
Windows operating systems is no longer maintained.

Change-Id: If4ad14a9f7f974c120c6d70c826a1bba358052a3
5.3.0
2023-11-18 17:37:43 +00:00
774f604c16 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: I8a07d02ce4384d2a8ae010b23a4151f0a43c2800
2023-09-07 09:36:02 +00:00
Zuul
1abc8e0c50 Merge "Bump bandit" 5.2.0 2023-06-27 13:46:24 +00:00
Hervé Beraud
b4aec262e3 Bump bandit
Change-Id: I2432f5d6c9febfa3a579551f116692618982ecf3
2023-05-17 16:24:29 +02:00
OpenStack Proposal Bot
9c7ecb4198 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I6e9065fb6f5c34dcce87168edaa62b430801d1c8
2023-05-09 04:24:56 +00:00
Ghanshyam
28fd71fafd Revert "Moves supported python runtimes from version 3.8 to 3.10"
This reverts commit d41e8f3e2e7dd2760f6894866b02413d921f25fb.

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: Ic916838612b02eb5b7b1a140d1066a8298774009
2023-05-04 20:19:39 +00:00
Hervé Beraud
d41e8f3e2e 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: I8f9d3349881703fc2fcc91c28b1ce1df65cb6539
2023-04-10 01:53:34 +00:00
8c582a41a2 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: I4954e7590655ffbf44014b68dedacd9051e9d6a1
2023-02-24 15:16:10 +00:00
Hervé Beraud
0af59425ad Fix issues related to tox4
Related to https://lists.openstack.org/pipermail/openstack-discuss/2023-February/032247.html

Change-Id: I38b5e7fe25820ffda712bbc983e4ea3d6c3bf17d
5.1.1
2023-02-17 13:16:04 +00:00
Zuul
d1f07ad353 Merge "Cleanup py27 support" 5.1.0 2022-12-20 19:11:36 +00:00
OpenStack Proposal Bot
22f69e7402 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: Ic909177a35589f59ea78fec6e741c2c954abc119
2022-11-05 03:27:01 +00:00
Balazs Gibizer
01cf2ffdf4 Ignore coverage result files
Change-Id: I82d120f2a04eebf40f309a5d301ad253744d9712
5.0.1
2022-09-05 13:29:49 +02:00
Balazs Gibizer
ee3f73a133 Fix fair internal lock used from eventlet.spawn_n
The fasteners lib in version 0.15.0 removed the
threading.current_thread workaround for eventlet[1] because eventlet
seemed to fixed the current_thread issues tracked in [2]. However the
fix for [2] only fixed half of the problem. The threading.current_thread
call works if it is called from thread created by eventlet.spawn.
However if the thread is created with eventlet.spawn_n then
threading.current_thread is still broken and returns the ID of the
python native thread.

The fasteners' ReaderWriterLock depends heavily on
threading.current_thread to decide which thread holds a lock and to
allow re-entry of that thread. This leads to the situation that
multiple threads created from spawn_n could take the same
ReaderWriterLock at the same time.

The fair internal lock in oslo.concurrency uses ReaderWriterLock and
as a result such lock is broken for threads created with spawn_n.

Note that this issue was raised with eventlet in [3] when the nova team
detected it via a direct usage of ReaderWriterLock in the nova test
code. As [3] did not lead to a solution in eventlet nova implemented a
nova local fix for the test code in [4].

However now we detected that oslo.concurrency is affected by this issue
as well.

This patch restores the workaround that was removed by [1].

Note that a fasteners issue [5] also opened to restore the
workaround[1].

[1] 467ed75ee1
[2] https://github.com/eventlet/eventlet/issues/172
[3] https://github.com/eventlet/eventlet/issues/731
[4] https://review.opendev.org/c/openstack/nova/+/813114
[5] https://github.com/harlowja/fasteners/issues/96

Closes-Bug: #1988311
Change-Id: Ia873bcc6b07121c9bd0b94c593567d537b4c1112
2022-09-05 13:29:04 +02:00
Balazs Gibizer
796203c948 Prove that spawn_n with fair lock is broken
The fasteners lib in version 0.15.0 removed the
threading.current_thread workaround for eventlet[1] because eventlet
seemed to fixed the current_thread issues tracked in [2]. However the
fix for [2] only fixed half of the problem. The threading.current_thread
call works if it is called from thread created by eventlet.spawn.
However if the thread is created with eventlet.spawn_n then
threading.current_thread is still broken and returns the ID of the
python native thread.

The fasteners' ReaderWriterLock depends heavily on
threading.current_thread to decide which thread holds a lock and to
allow re-entry of that thread. This leads to the situation that
multiple threads created from spawn_n could take the same
ReaderWriterLock at the same time.

The fair internal lock in oslo.concurrency uses ReaderWriterLock and
as a result such lock is broken for threads created with spawn_n.

Note that this issue was raised with eventlet in [3] when the nova team
detected it via a direct usage of ReaderWriterLock in the nova test
code. As [3] did not lead to a solution in eventlet nova implemented a
nova local fix for the test code in [4].

However now we detected that oslo.concurrency is affected by this issue
as well.

This patch adds tests to show the scope of the problem.

Note that the coverage tox target is changed to explicitly enable native
threading otherwise it runs eventlet specific tests in a native
environment.

Also note that [5] was opened to reintroduce the workaround[1] in fasteners.

[1] 467ed75ee1
[2] https://github.com/eventlet/eventlet/issues/172
[3] https://github.com/eventlet/eventlet/issues/731
[4] https://review.opendev.org/c/openstack/nova/+/813114
[5] https://github.com/harlowja/fasteners/issues/96

Related-Bug: #1988311
Change-Id: Ibc193c855b49b95b46ebd2aac82ea89e33f885f0
2022-09-05 13:27:37 +02:00