Commit Graph

596 Commits (1ea4e21eb231e4fe193e62f1b03b957c9d4281c8)
 

Author SHA1 Message Date
Ghanshyam Mann 1ea4e21eb2 Drop lower-constraints.txt and its testing
As discussed in TC PTG[1] and TC resolution[2], we are
dropping the lower-constraints.txt file and its testing.
We will keep lower bounds in the requirements.txt file but
with a note that these are not tested lower bounds and we
try our best to keep them updated.

[1] https://etherpad.opendev.org/p/tc-zed-ptg#L326
[2] https://governance.openstack.org/tc/resolutions/20220414-drop-lower-constraints.html#proposal

Change-Id: I710eec1feec922c6b5532dc754ab0fe3e90d3ff8
1 year ago
Zuul 9b1fa9a4e9 Merge "Add Python3 zed unit tests" 1 year ago
Mirek Malinowski 87938f738e Add SSL support for InfluxDB connection.
Added ssl and verify_ssl options to influxdb config

Task: 44888
Story: 2009950
Change-Id: Icfe06233a178a5383441db6d87d46b93b6a63757
1 year ago
OpenStack Release Bot f3cb4d473e Add Python3 zed unit tests
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for zed.

See also the PTI in governance [1].

[1]: https://governance.openstack.org/tc/reference/project-testing-interface.html

Change-Id: Ic3f81bbdbc6fd5d8c3d3fb4ba04427946f7db5da
1 year ago
OpenStack Release Bot 1e67714731 Update master for stable/yoga
Add file to the reno documentation build to show release notes for
stable/yoga.

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

Sem-Ver: feature
Change-Id: I4eecc65645e64053b0988922c121d2cde76bf241
1 year ago
OpenStack Release Bot 49e654a3c9 Add Python3 yoga unit tests
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for yoga.

See also the PTI in governance [1].

[1]: https://governance.openstack.org/tc/reference/project-testing-interface.html

Change-Id: I9cd5ae0f91d6a53bfdbd8b2ec50e43a4e208b793
2 years ago
OpenStack Release Bot 397c093919 Update master for stable/xena
Add file to the reno documentation build to show release notes for
stable/xena.

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

Sem-Ver: feature
Change-Id: I0c296b06bf46422d47531c8972a692582a8ccc36
2 years ago
Zuul cbc65411fe Merge "Fix Docker build" 2 years ago
Pierre Riteau 31152e169d Fix Docker build
The default nodeset was just changed to focal [1], which in the absence
of the python-is-python3 package doesn't provide a python binary.

[1] https://review.opendev.org/c/opendev/base-jobs/+/789098

Change-Id: I2b208db2b7b34da034071a4fc0c5d49768b6dad3
2 years ago
Martin Chacon Piza 72c0b6911e Fix zuul publish docker image job
Add tag to docker push command with specific branch name

Change-Id: Ib33a54537f9394aea77f3cdaf135183f0dacdca3
2 years ago
OpenStack Release Bot dc589ae7a2 Add Python3 xena unit tests
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for xena.

See also the PTI in governance [1].

[1]: https://governance.openstack.org/tc/reference/project-testing-interface.html

Change-Id: I25c7c74514d863181844c2a4c24e3c333c07fa53
2 years ago
OpenStack Release Bot 5d256226da Update master for stable/wallaby
Add file to the reno documentation build to show release notes for
stable/wallaby.

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

Sem-Ver: feature
Change-Id: Ib38bb5625953354bd0afe4ab5fea0ce94a69dce4
2 years ago
Adrian Czarnecki caac9719c7 Fix zuul publish docker image job
Add tag to docker push commend

Change-Id: I43538b943176d81987db2f4ca139eb10f9b48385
2 years ago
Hervé Beraud 37411e792a Add doc/requirements
We need to specify doc requirements in doc/requirements.txt
to avoid problems with the pip resolver [1] for the release team [2][3].

Removing specific doc requirements from test-requirements.txt.

The problem here is that this repos haven't doc/requirements.txt file
and by default in this case zuul will use the test-requirements.txt file
to pull requirements [4].

This requirements file contains extra requirements like flake8 that
collided with those allowed in our job environment and so the new pip
resolver fails to install these requirements and the job exits in error.

This project meet the conditions leading to the bug.

/!\/!\/!\
Notice that I voluntarily added the doc directory even if no docs
are generated here because zuul will try to pull this requirements from
there first and the contained requirements are needed for reno but AFAIK
the releasenotes dir is ignored by zuul. c.f [4] for further details.
/!\/!\/!\

Bump a series of lower-constraints and requirements to work with new pip
resolver, testing with steps outlined at [5]

Fix Flake8 E741 [6]

[1] http://lists.openstack.org/pipermail/release-job-failures/2021-January/001500.html
[2] http://lists.openstack.org/pipermail/openstack-discuss/2021-January/019611.html
[3] http://lists.openstack.org/pipermail/openstack-discuss/2021-January/019612.html
[4] https://opendev.org/zuul/zuul-jobs/src/branch/master/roles/ensure-sphinx/tasks/main.yaml#L36
[5] http://lists.openstack.org/pipermail/openstack-discuss/2020-December/019285.html
[6] https://www.flake8rules.com/rules/E741.html

Change-Id: Ic1504a18a780b0f517c5aa3dd3bfb04998d42e74
2 years ago
Adrian Czarnecki df0fd4958f Remove six
Change-Id: I898c97fda4e1e93c64c6b75fbfea5af80ffd684a
Story: 2008305
Task: 41274
3 years ago
zhangchun d557944cef bump py37 to py38 in tox.ini
in 'victoria' cycle, we should test py38 by default.
Trivial change

Change-Id: I68aa81c83f3702d50eff6d2ad46d11b194ddca52
3 years ago
Martin Chacon Piza 6569b1e944 Set legacy_kafka_client_enabled = False on default for Docker
We change the default value of kafka.legacy_kafka_client_enabled from
True to False. The use of new Confluent Kafka client is recommended.

Change-Id: I9c685dc3cfa4c6795c441ea37f86af9ad7451ee2
Story: 2006436
Task: 41151
3 years ago
OpenStack Release Bot b415c7f00d 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: I490da1b207e3bb212039953598ccc25caccbaaa3
3 years ago
Zuul 63a2f0528c Merge "Update master for stable/victoria" 3 years ago
Witek Bedyk 52e29141e3 Limit legacy jobs to stable branches
monasca-persister Java implementation has been deprecated. We stop
building and publishing Java binary with Ussuri and do it only on stable
branches.

Change-Id: Icfeb442639154122eafa635417091d5de29c8e3e
3 years ago
Martin Chacon Piza 6b60c25db1 [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).

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
3 years ago
OpenStack Release Bot 9805a4ad6f 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: Ia49d466231fc0a56ccd4eed5a95bb749936e9950
Sem-Ver: feature
3 years ago
Zuul 92c93e9f1e Merge "Add Python3 victoria unit tests" 3 years ago
Zuul bdd513131e Merge "Remove unnecessary test to bring compatibility with py38" 3 years ago
OpenStack Release Bot 48b3e2eb47 Add Python3 victoria unit tests
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for victoria.

See also the PTI in governance [1].

[1]: https://governance.openstack.org/tc/reference/project-testing-interface.html

Change-Id: I8d7c38620eb3b0813e73874422f22ac69b7efe83
3 years ago
Martin Chacon Piza 0198487062 Remove unnecessary test to bring compatibility with py38
Change-Id: If58a9a60a6428ad362789f354f8f4a750210b9a8
3 years ago
Witek Bedyk 709318c3bb Set legacy_kafka_client_enabled = False on default
We change the default value of kafka_common.legacy_kafka_client_enabled
from True to False. The use of new Confluent Kafka client is
recommended.

Change-Id: I300958e1e945e5236b01f4e50cb01c18468cc524
Story: 2007924
Task: 40340
3 years ago
Hervé Beraud cf1486e8d4 drop mock from lower-constraints
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
3 years ago
Hervé Beraud ac9d9b7351 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: I937b48769403d0c78af5069e29768bb7bcdb7b0b
3 years ago
Andreas Jaeger d2fef4b60b 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.

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
3 years ago
Zuul a2980866c2 Merge "Remove ujson from lower-constraints" 3 years ago
Zuul daf4609611 Merge "Remove .testr.conf" 3 years ago
Witek Bedyk 49ef701a0d Remove ujson from lower-constraints
Change-Id: I52cd96d32815e85b95ee38dfed75df1ca039bad0
Story: 2007549
Task: 39858
3 years ago
Witek Bedyk 478003fb6d Add CONTRIBUTING.rst
Change-Id: Ia905c61ad9c32a02f9632f8b8e71b4c9ba3a2a93
3 years ago
Masayuki Igawa 1afb929fd3
Remove .testr.conf
This commit removes .testr.conf since this repo already has
.stestr.conf. We just need .stestr.conf instead of .testr.conf.

Change-Id: Ib084dbbb4c06f57e1eb15748e992e09444cec63b
3 years ago
Ghanshyam Mann 6a5885aeb1 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.

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

Change-Id: Ie2b4f889d814431246b1049381ab57bcdf5284c1
3 years ago
OpenStack Release Bot 9a8c93ead9 Update master for stable/ussuri
Add file to the reno documentation build to show release notes for
stable/ussuri.

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

Change-Id: I7eb05c908ab664e53b3074a3d405bc8aabcbaec8
Sem-Ver: feature
3 years ago
Zuul c6aa372579 Merge "Update hacking for Python3" 3 years ago
Zuul 9f8d247742 Merge "Cleanup py27 support" 3 years ago
Andreas Jaeger b306576d27 Update hacking for Python3
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
3 years ago
Witek Bedyk dc8956d7b8 Migrate from ujson to simplejson
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
3 years ago
Andreas Jaeger a2fcddc99b Cleanup py27 support
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
3 years ago
Arseni Lipinski 26844c1dd0 Add tests for cassandra/retry_policy.py
Story: 2007280
Task: 38724

Depends-On: https://review.opendev.org/#/c/679076/

Change-Id: I440e36ad37dc94ffcd665f3925b7f25b5964cbf8
3 years ago
Arseni Lipinski 72cc931159 Fix constraints and requirements to fix failing tests
Commit contains cassandra-driver version upgrade due to
older version lacking some components used in monasca-persister

Change-Id: I6d6f5dbf6533f820c954bc910a1de64803c11a2f
3 years ago
Zuul 14b98a40fd Merge "Add configuration option influxdb.batch_size" 3 years ago
Zuul 073eaa198d Merge "Fix batch_size configuration option in Docker" 3 years ago
Zuul ca5d994ae9 Merge "Update links in pom.xml" 3 years ago
Witek Bedyk a8b8d3efef Fix batch_size configuration option in Docker
The configuration option name for Kafka batch size (max. number of
messages before commiting them to Kafka broker) has been changed in
Queens release. The option passed to Docker image must reflect that.

Change-Id: Ib720c4d0358a5e67734fbc38d9a7d513e662d65f
Story: 2007225
Task: 38492
3 years ago
Witek Bedyk 0696cf54ee Add configuration option influxdb.batch_size
The new configuration option is used to control the maximum size of
batches written to InfluxDB and optimizes performance for high loads.
The default value is set to 10 000 data points per batch.

Change-Id: I82c3e4e64984a996e41fe2657ce36b032b40d3fd
Story: 2007191
Task: 38319
3 years ago
zhouguowei 3ed12b9d2c Change README.rst with a better title
Change-Id: Id878cd56e16f0d2b10ecdc060901ba6343e72dc2
3 years ago