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
The mock third party library was needed for mock support in py2
runtimes. Since we now only support py36 and later, we don't need it
in lower-constraints.
These changes will help us to drop `mock` from openstack/requirements
Change-Id: I52c45e07c20de8f8abe439675e5fa5256d0d375e
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
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
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
The change introduces the possibility to run the persister with
the new confluent-kafka client. It has to be enabled in the
configuration file.
Story: 2003705
Task: 30117
Depends-On: https://review.opendev.org/675297
Change-Id: I05428b8ae9e0ba9af5b81d3b103434ebd5657108
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>
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: I2cafc4f53f65c5f0c3fd18eff6600cca59b585ac
Depends-On: https://review.openstack.org/555034
Signed-off-by: Doug Hellmann <doug@doughellmann.com>