Commit Graph

21 Commits

Author SHA1 Message Date
Yandong Xuan cb25b6f372 Drop lower-constraints jobs
Change-Id: Ib63486d89afb585fa462fed77cf1e0b762f112ba
2021-07-07 16:34:56 -04:00
Eric Harney f18a33b322 Introduce mypy
This adds the "tox -e mypy" environment which works
the same way we have introduced mypy in Cinder.

Files added to mypy-files.txt are validated with mypy.

Change-Id: I6d09422dbdf5ea58661aad7a63c4d4d7a2839833
2021-05-21 16:58:22 -04:00
Brian Rosmaita 9a59547a4b Update requirements for wallaby release
Raise the minimum versions in the various requirements files to
reflect what we're actually testing with right now.

Change-Id: Ie7dcc859e1291bd1d50b1ae516be38d8732de836
2021-03-04 21:03:58 -05:00
Lucian Petrut 4d4c5e82c9 Update requirements
The latest pip version has a stricter dependency resolver,
which broke the "lower-constraints" job for quite a few openstack
projects, including os-brick and cinder.

This change alings the os-brick dependency version constraints with
the ones used by Cinder, thus fixing the lower constraints job.

Change-Id: I4a6ac7ec0974372dc6f1585a797c7023c2fd8d78
2020-12-14 15:01:54 +00:00
Ade Lee 1425a834dd Replace md5 with oslo version
md5 is not an approved algorithm in FIPS mode, and trying to
instantiate a hashlib.md5() will fail when the system is running in
FIPS mode.

md5 is allowed when in a non-security context.  There is a plan to
add a keyword parameter (usedforsecurity) to hashlib.md5() to annotate
whether or not the instance is being used in a security context.

In the case where it is not, the instantiation of md5 will be allowed.
See https://bugs.python.org/issue9216 for more details.

Some downstream python versions already support this parameter.  To
support these versions, a new encapsulation of md5() has been added to
oslo_utils.  See https://review.opendev.org/#/c/750031/

This patch is to replace the instances of hashlib.md5() with this new
encapsulation, adding an annotation indicating whether the usage is
a security context or not.

In this case, we use md5 in a single case, when creating an identifier
for a mount point.

Change-Id: I08226895818185337425ebffc2464db05f3969c9
Depends-On: https://review.opendev.org/#/c/760160
2020-10-29 15:39:01 -04:00
Sean McGinnis eecfe7294a
Add doc linting to pep8 target
This adds a doc8 check to our pep8 job so both code and docs are lint
checked. This matches what is done in the cinder repo.

Depends-on: https://review.opendev.org/736382

Change-Id: If7b9414b8bbf4a41c0744460f16ff80a1a9cd94c
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-06-22 09:43:03 -05:00
Sean McGinnis d95ebc4ec2 Update lower-constraints versions
This updates lower constraints to versions that will work with py38 so
that when we move to running on focal nodes, which has py38 as its
default py3 runtime, the lower-constraints job will continue to pass.

It also cleans out some secondary requirements that are no longer needed
due to our direct dependencies being updated.

Linters are removed that are kept in the global requirements blacklist
as those are not version tracked and are not relevant for our
lower-constraints unit test runs.

Change-Id: Ic9b2b425a4910809a21bd250a4d9730a30fadf22
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-06-09 13:39:16 -05:00
Zuul 70b3925f0d Merge "Add oslo.context dependency" 2020-06-09 17:37:20 +00:00
Zuul 2d3b249e74 Merge "Add oslo.serialization dependency" 2020-06-08 18:45:02 +00:00
Andreas Jaeger 76c6b3ad96 Switch to newer openstackdocstheme and reno versions
Switch to openstackdocstheme 2.2.1 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 problems

Update Sphinx version as well.

Set openstackdocs_pdf_link to link to PDF file. Note that
the link to the published document only works on docs.openstack.org
where the PDF file is placed in the top-level html directory. The
site-preview places the PDF in a pdf directory.

Change pygments_style to 'native' since old theme version always used
'native' and the theme now respects the setting and using 'sphinx' can
lead to some strange rendering.

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.

See also
http://lists.openstack.org/pipermail/openstack-discuss/2020-May/014971.html

Change-Id: I4ce76439f598b73d0520577bb3b47c7f28ed3663
2020-05-21 17:10:15 +02:00
Zuul fc6c459a0b Merge "Switch from retrying to tenacity" 2020-05-18 19:14:45 +00:00
Ghanshyam Mann b63a85aa5b 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.

Also removing the hacking and other related dep from lower-constraints file
as theose are blacklisted requirements and does not need to be present
there.

- http://lists.openstack.org/pipermail/openstack-discuss/2020-May/014828.html

Change-Id: Icbbd8370dd24882b34e3616030ad4dedd1d565a0
2020-05-15 11:23:40 -05:00
Sean McGinnis 3f1314674d
Switch from retrying to tenacity
This switching our retry mechanism over from the retrying library to the
tenacity library. Retrying has been active for a few years now and
appears to be no longer maintained.

This has a small behavior change in that before we were applying an
exponential backoff to the first time a retry was needed. This no longer
happens, but retries will exponentially back off with each retry.

Also cleaned up some minor nits with unit test assert argument order.

Closes-bug: #1635397

Change-Id: I24cab206b16e63859d4886c55d40a03d398ce30d
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-05-06 09:08:01 -05:00
Eric Harney 720270d1e5 Add oslo.context dependency
This is used in os_brick/executor.py.

Change-Id: I98c332841323d5d8bf29d795a3d0ba6e53604eea
2020-04-29 15:45:57 -04:00
Eric Harney 223a849c7c Add oslo.serialization dependency
This is used as of

9415b3b41 rbd: Use showmapped to find the root RBD

Change-Id: Ie1f4295006ad2a4adc4899784931d96ed0bd5d6b
2020-04-29 15:45:56 -04:00
qiufossen bbf6143a4b Remove Babel requirement
Babel is not needed as requirement, remove it.

See also
http://lists.openstack.org/pipermail/openstack-discuss/2020-April/014227.html

Change-Id: Ibafccbb3da579bdb4e396c72d0ea586b19d246f7
2020-04-26 19:00:04 +08:00
Sean McGinnis 1448c7ff62
Raise hacking version to 2.0.0
We've kept hacking capped for a long time now. This raises the hacking
package version to the latest release and fixes the issues that it
found.

Change-Id: Ib13a3fe3f1a103b5e24a7c5bb7838ffdae2bf198
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2019-12-21 03:11:27 -06:00
Eric Harney 521546e331 Require oslo.privsep 1.32.0
Cinder and Nova already require this version,
as it provides significant performance enhancements.

Change-Id: I42623a2172ebd80a237006e880189095bc27e70f
2019-09-16 10:03:00 -04:00
pengyuesheng 7465d90254 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: I2281904c98f574dc5f42f31a12ebf5d1a4bdb48c
2019-08-02 14:59:41 +08:00
Vu Cong Tuan 5ce69faed0 Remove testrepository
This commit is a follow-up of "switch to using stestr"
which was merged already [1].
After switch to using stestr, testrepository is unnecessary
and should be removed.

[1] https://review.openstack.org/571975

Change-Id: I702720f5fcebbd9b0fa0e7e387c7a4d3f1bf4542
2018-07-11 17:51:51 +07:00
Doug Hellmann f11695cf0d add lower-constraints job
Create a tox environment for running the unit tests against the lower
bounds of the dependencies.

Create a lower-constraints.txt to be used to enforce the lower bounds
in those tests.

Add openstack-tox-lower-constraints job to the zuul configuration.

See http://lists.openstack.org/pipermail/openstack-dev/2018-March/128352.html
for more details.

Change-Id: I59d376c6da1afc0847a25893d80ca9a210bbe64b
Depends-On: https://review.openstack.org/555034
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-04-17 17:17:38 -04:00