Commit Graph

348 Commits

Author SHA1 Message Date
Zuul 345852bf94 Merge "reno: Update master for unmaintained/victoria" 2024-03-12 13:21:33 +00:00
OpenStack Release Bot 4b1f9164f7 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: Ia59b4970a82d66c0757658064f17cba4365b07bf
2024-03-08 14:23:20 +00:00
OpenStack Release Bot 3ed850aea3 reno: Update master for unmaintained/victoria
Update the victoria release notes configuration to build from
unmaintained/victoria.

Change-Id: I9260b7ed88eb0a60e16d0758532d24e0ed2469fe
2024-03-07 14:17:28 +00:00
Zuul c6cf187147 Merge "Display coverage report" 2024-02-07 06:23:07 +00:00
Takashi Kajinami a52130de79 Display coverage report
... for easy reference. Also make sure old data is purged.

Also adds .coveragerc which is present in the other repos.

Change-Id: Ifee20fc38e9c8bb04c20ff4e690e652b9256d46f
2024-02-07 12:23:41 +09:00
Takashi Kajinami 6601e4a368 Bump hacking
hacking 3.0.x is too old.

Change-Id: Ib9d6282c73720e1ef3a26b8dc744a2bb9c6c9ca3
2024-01-26 01:19:47 +09:00
Ghanshyam Mann 8766b50965 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: Ic72dcfe9fd02aaffec7f12cfe2eb61e49fd3054d
2024-01-11 16:19:16 -08:00
Zuul cd5977a906 Merge "Drop Beta development status" 2023-11-16 17:21:14 +00:00
Hervé Beraud 43ab5ad7a7 Add coreutils as valid value to fix KillFilter test
In containerized RHEL 9 environment the KillFilter test started to fail
because `os.readlink("/proc/<pid-of-cat/exe>")` return /usr/bin/coreutils.

Indeed cat is part of the coreutils package and the symlink of
this file point toward coreutils. Fixing this bug by adding
coreutils as a possible returned value for our tests.

Closes-Bug: #2037383
Change-Id: I141eb15efa30c7df3ca5419b594097f4b683663c
2023-10-16 09:29:07 +02:00
OpenStack Release Bot dedaf6248e 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: I4a5fe1d060c8bc0e65507046a2e5636ee36612a7
2023-09-07 09:38:10 +00:00
Hervé Beraud 0660a66e3b Bump bandit
Change-Id: I17944faf6c7b60c5844315c716dd69e2f32679f9
2023-05-19 15:46:33 +02:00
Ghanshyam f02bdb9550 Revert "Moves supported python runtimes from version 3.8 to 3.10"
This reverts commit 90ea8f3b12.

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: Ifc7327b025a824e511c3dd3e012e329b2a2f1a40
2023-05-04 20:18:24 +00:00
Takashi Kajinami 92d7061fd4 Drop Beta development status
This library has been used by multiple OpenStack projects for a while
so we can assume this is not mature.

Change-Id: I7320777228d103f5a28755d10c493d144b24e6a0
2023-04-10 10:59:07 +09:00
Hervé Beraud 90ea8f3b12 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: I5717d8dd0245504e6c4d0c9bcbb22cd997ffe35e
2023-04-10 01:56:11 +00:00
OpenStack Release Bot 370217768b 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: I2461df2b268354335bfb5c3fa76572cd23f1d46d
2023-02-24 15:22:45 +00:00
Hervé Beraud b72372be2d Fix issues related to tox4
Related to https://lists.openstack.org/pipermail/openstack-discuss/2023-February/032247.html

Change-Id: Iec7659dbf64847d86def2a863cda8b5c49c65c3b
2023-02-17 13:15:31 +00:00
Hervé Beraud 349603af2e Fix formatting of release list
Change-Id: I32aee88d60a340bdee53d4473dccdf7cfa934bc7
2022-05-27 12:16:11 +02:00
Hervé Beraud 3b789cba81 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: I98072e5176cb415469a5cca51ab63ea7953a384a
2022-05-05 16:06:05 +02:00
songwenping e2206a300d Remove unnecessary unicode prefixes
Change-Id: I4b8b982c9ef49595682744e022154be87f259d23
2022-04-19 19:23:15 +08:00
Stephen Finucane 1aa89446af 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/
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
Change-Id: I7b66b7ad46497fcaeb8d6542485fbe6b6b1495f9
2022-03-15 15:07:42 +00:00
David Vallee Delisle 1b1b960d0d CommandFilter should allow exec from full path
The current logic prevents from using a full path as argument.
We can't just compare basename to basename as it would allow passing
bogus paths. We need to make sure that passing a full path will compare
to the config's full path.

Closes-Bug: #1956606

Change-Id: I76094065de5b37f59a2500fbce7f500ada9915da
2022-01-13 08:45:09 -05:00
YuehuiLei 25fcff997b 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: I8fc4f3b027aaacaf023e54fe0b138bdddaef0c3f
2021-05-05 10:01:58 +08:00
Zuul 431c4139fe Merge "Remove lower-constraints remnants" 2021-04-16 12:20:41 +00:00
Daniel Bengtsson 273e42928d 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: Ic1f66792b786d05d06c52c86e08c933cf594baac
2021-03-23 13:16:46 +01:00
wu.shiming 85d0c7987b Remove lower-constraints remnants
These were missed in change: Iae7ce24bfd718a9a2102ce64e8dd2ad08d2b4dd6

Change-Id: I03f47af49cda61e18b0eaa96770a174b867fe2bc
2021-02-19 14:49:39 +08:00
Zuul 127d938253 Merge "Use py3 as the default runtime for tox" 2021-01-22 11:29:17 +00:00
Zuul db65be7999 Merge "Use TOX_CONSTRAINTS_FILE" 2021-01-14 14:49:47 +00:00
Hervé Beraud 98e1888d7d 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: Iae7ce24bfd718a9a2102ce64e8dd2ad08d2b4dd6
2020-12-18 15:12:00 +01:00
Hervé Beraud 0d165aeb28 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: Ice53705bba857835e4c99ff526ff359f55a319af
2020-11-04 10:50:33 +01:00
Hervé Beraud 0d1bcc5496 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: Ic211834cf66fd2f9e4fc4ce97f839b2362cc1f70
2020-11-04 10:04:23 +01:00
wangzihao 0e62293a43 Remove six
Replace the following items with Python 3 style code.

- six.moves
- six.StringIO

Change-Id: Ie06dc3b6cc5a3d88defa4fdfd071ed2c9dcfb1d0
2020-10-09 09:19:18 +08:00
wangzihao 81352d08e9 Remove six.PY3
The Python 2.7 Support has been dropped since Ussuri.
So remove hacking rules for compatibility between python 2 and 3.

Change-Id: Idd6a1efd1857a70fc7d960b365bfc58d6cbe00d3
2020-09-30 16:34:20 +08:00
Zuul b98693c708 Merge "Adding pre-commit" 2020-09-22 12:38:40 +00:00
Zuul b6c73f1c12 Merge "Add Python3 wallaby unit tests" 2020-09-14 13:33:02 +00:00
Zuul a2a6e15326 Merge "ignore reno generated artifacts" 2020-09-14 10:46:17 +00:00
OpenStack Release Bot 45797b87cb 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: I9ea9f73fd06d03589ff59a616a915a2d61d4706c
2020-09-11 21:00:32 +00:00
OpenStack Release Bot 75084cc1b3 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: I0ea459ca6fa98573d52188dc634c86225fb588f9
Sem-Ver: feature
2020-09-11 21:00:30 +00:00
Hervé Beraud b1122e81ab Adding pre-commit
Introduced changes:
- pre-commit config and rules
- Add pre-commit to pep8 gate, Flake8 is covered in the pre-commit hooks.
- Applying fixes for pre-commit compliance in all code.

Also commit hash will be used instead of version tags in pre-commit to
prevend arbitrary code from running in developer's machines.

pre-commit will be used to:
- trailing whitespace;
- Replaces or checks mixed line ending (mixed-line-ending);
- Forbid files which have a UTF-8 byte-order marker (check-byte-order-marker);
- Checks that non-binary executables have a proper
  shebang (check-executables-have-shebangs);
- Check for files that contain merge conflict strings (check-merge-conflict);
- Check for debugger imports and py37+ breakpoint()
  calls in python source (debug-statements);
- Attempts to load all yaml files to verify syntax (check-yaml);
- Run flake8 checks (flake8) (local)

For further details about tests please refer to:
https://github.com/pre-commit/pre-commit-hooks

Change-Id: I04e73b8a70d32fec3e6131526e0bed0be8599c28
Signed-off-by: Moisés Guimarães de Medeiros <moguimar@redhat.com>
2020-09-03 14:20:33 +02:00
Hervé Beraud ee58e4fc92 ignore reno generated artifacts
Change-Id: Iefca629ae61b1da28bddba67525f5c9df164ab14
2020-09-03 14:19:23 +02:00
Zuul ed1659a5e3 Merge "[goal] Migrate testing to ubuntu focal" 2020-08-06 16:30:58 +00:00
Ghanshyam Mann 499dcad437 [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: #40207

Closes-Bug: #1886298

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

Change-Id: I6f4947668b5372eace7fb1eb32ab221ac88f4b4f
2020-08-04 00:34:05 +00:00
Moisés Guimarães de Medeiros 0d087b043e Bump bandit version
This patch bumps bandit allowed version to >=1.6.0,<1.7.0 in order to
avoid the errors detailed here https://github.com/PyCQA/bandit/pull/393

Change-Id: Ic61bffb3845a53df14765194482f6264417d0ac7
Signed-off-by: Moisés Guimarães de Medeiros <moguimar@redhat.com>
2020-07-24 17:36:03 +02:00
Zuul ff61e1577c Merge "Align contributing doc with oslo's policy" 2020-06-30 16:02:49 +00:00
Zuul f0ef3bbd70 Merge "Add release notes links to doc index" 2020-06-03 10:15:34 +00:00
Hervé Beraud 9caec06faf Stop to use the __future__ module.
The __future__ module [1] was used in this context to ensure compatibility
between python 2 and python 3.

We previously dropped the support of python 2.7 [2] and now we only support
python 3 so we don't need to continue to use this module and the imports
listed below.

Imports commonly used and their related PEPs:
- `division` is related to PEP 238 [3]
- `print_function` is related to PEP 3105 [4]
- `unicode_literals` is related to PEP 3112 [5]
- `with_statement` is related to PEP 343 [6]
- `absolute_import` is related to PEP 328 [7]

[1] https://docs.python.org/3/library/__future__.html
[2] https://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html
[3] https://www.python.org/dev/peps/pep-0238
[4] https://www.python.org/dev/peps/pep-3105
[5] https://www.python.org/dev/peps/pep-3112
[6] https://www.python.org/dev/peps/pep-0343
[7] https://www.python.org/dev/peps/pep-0328

Change-Id: I79f231823939e421a04377ca19e2e65b12d9b26a
2020-06-02 20:40:20 +02:00
Zuul 45df9495e5 Merge "Fix hacking min version to 3.0.1" 2020-05-26 15:46:08 +00:00
Zuul a5063a4b43 Merge "Remove the unused coding style modules" 2020-05-26 13:30:35 +00:00
Zuul a075e5d365 Merge "Avoid raising a RuntimeError during the shutdown" 2020-05-22 22:11:37 +00:00
zhangboye b403e0d89b Fix hacking min version to 3.0.1
Change-Id: Icc4607d22eb4249e6711fded27bb30ddeca7e403
2020-05-22 10:49:30 +08:00
Andreas Jaeger 4c0480648d Switch to newer openstackdocstheme and reno versions
Switch to openstackdocstheme 2.2.0 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

Update Sphinx version as well.

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.

Depends-On: https://review.opendev.org/728938
Change-Id: Ie162c8e72f4edec345c20de4517304cc14f7fe0d
2020-05-18 20:58:01 +02:00