As per victoria cycle testing runtime and community goal[1]
we need to migrate upstream CI/CD to Ubuntu Focal(20.04).
Bump the pyflakes to 2.1.1 as min version to run pep8 jobs
on py3.8 which is default python vesion in ubuntu focal.
Bump cassandra-driver to 3.21.0 in lower-constraints.txt
since it is the min version with py3.8 support [2]
Bump kazoo to 2.8.0 in lower-constraints.txt
since it is the min version with py3.8 support [3]
Story: #2007865
Task: #40197
[1] https://governance.openstack.org/tc/goals/selected/victoria/migrate-ci-cd-jobs-to-ubuntu-focal.html
[2] https://pypi.org/project/cassandra-driver/3.21.0/
[3] 6b6ffe62a0
Change-Id: I3a465aa0b26dd72432696d2dd19c955eb3e974e5
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.
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.
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: I002235658290ffd494f4507dc0a6c78f94794b19
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: Ie2b4f889d814431246b1049381ab57bcdf5284c1
The repo is Python 3 now, so update hacking to version 3.0 which
supports Python 3.
Fix problems found.
Update local hacking checks for new flake8.
Remove hacking and friends from lower-constraints, it's not needed
there.
Change-Id: Iadf750a1e6d3181b645ceccdf75cf910bc23adfd
The change updates the imports to use simplejson library and fixes three
unit tests. In particular TestUtils.test_parse_alarm_state_hist_message
has been slightly changed to make testing more robust.
Also, Python 2 specific implemetation has been removed from
influxdb.line_utils .
Additionally, standard library unittest.mock is used instead of the
third party mock lib.
Depends-On: https://review.opendev.org/718014
Depends-On: https://review.opendev.org/720188
Change-Id: I64b1a60e8be929c25c005a0f429b1274cb8570e6
Story: 2007549
Task: 39390
Make a few cleanups:
- Remove python 2.7 stanza from setup.py
- Add requires on python >= 3.6 to setup.cfg so that pypi and pip
know about the requirement
- Remove obsolete sections from setup.cfg:
* Wheel is not needed for python 3 only repo
* Some other sections are obsolete
- Update classifiers
- Update requirements, no need for python_version anymore
Change-Id: I95fb0ca759471f7ad7189a7d54c1dac2cc018fc4
Commit contains cassandra-driver version upgrade due to
older version lacking some components used in monasca-persister
Change-Id: I6d6f5dbf6533f820c954bc910a1de64803c11a2f
Some options are now automatically configured by the version 1.20:
- project
- html_last_updated_fmt
- latex_engine
- latex_elements
- version
- release.
Change-Id: I56c61bfda9fa68c6068ec008f81a8d04f28b2bbb
Cassandra client version had to be changed because its earlier version
doesn't contain DCAwareRoundRobinPolicy and TokenAwarePolicy in
cassandra.cluster (those are located in cassandra.policies instead),
needed in persister (specifically cassandra/connection_util.py).
Change-Id: I9f9eb478808ad978815c19a5c4e1baaa35fa6d28
With changeset [1], releasenotes are added to monasca-persister. To
make the release notes available, the notes can be build now with
tox ("tox -e releasenotes") and the standard zuul
job (release-notes-jobs-python3) was added to build and publish the
notes.
Also adjust elasticsearch requirement to "<3.0.0" to be inline with
the global-requirements list. This fixes:
Requirement for package elasticsearch excludes a version not excluded
in the global list.
[1] Ida11c326b3e6771b5ccf994205c55874db05bc5c
Change-Id: I16268797151a6b997610c8fbded4c9eeb9265597
According to Openstack summit session [1] stestr is maintained
project to which all Openstack projects should migrate.
Let's switch it then.
[1] https://etherpad.openstack.org/p/YVR-python-pti
Also fix the lower-requiremenst.txt to pass the gate.
Change-Id: I498282defd87c4ea16979b729600a179cdd3d01f
Signed-off-by: Charles Short <zulcss@gmail.com>
Add bandit job as part of pep8 in tox.ini
Had to fix one issue and mark two instances of try except pass as OK so that
bandit will pass
Change-Id: Ia1c96e27d1bae360c6ae0d4131665e2b712f573f
Add unit tests for persister.py in root directory.
Additionally:
* switched to testr as it seems to be used in many
openstack projects
* enabled coverage
Change-Id: I429ef6a900808c192ad5613c13808583d33fde24
I unlock the hacking requirements in test-requirements.txt
Change-Id: I2a26845f16064be8c082d9cbe2e2d2bc48339314
Signed-off-by: Micu Matei-Marius <mmicu@cloudbasesolutions.com>