Commit Graph

30 Commits

Author SHA1 Message Date
Ghanshyam Mann ca8dfbd871 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: Ic3dfafb8fc15caf650f9ffcb5307b8d124b9c405
2022-04-30 20:30:41 -05:00
Hervé Beraud ed2c0d24f7 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].
Removed 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.

[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

Change-Id: Ic771f9dfa0ee59c05f986bdbf24255dda87cc977
2021-01-18 16:19:51 +01:00
zhangchun b9451e9d14 bump py37 to py38 in tox.ini
in 'victoria' cycle, we should test py38 by default.
Trivial change

Change-Id: Idd51da2a7e98e31bea6459a10f91d7eecf91d100
2020-09-20 13:56:50 +00:00
Martin Chacon Piza fcb40ee791 Fix and unify cover environment
Fix cover environment and unify it accordingly to Project Testing
Interface [1].

[1] https://governance.openstack.org/tc/reference/pti/python.html#coverage-jobs

Change-Id: Ie82e6bf3964c84413e6af0c94e1212b7669de93b
2020-05-27 18:38:04 +02:00
Ghanshyam Mann 2046332943 [ussuri][goal] Drop python 2.7 support and testing
OpenStack is dropping the py2.7 support in ussuri cycle.

monasca-statsd is ready with python 3 and ok to drop the
python 2.7 support.

Complete discussion & schedule can be found in
- http://lists.openstack.org/pipermail/openstack-discuss/2019-October/010142.html
- https://etherpad.openstack.org/p/drop-python2-support

Ussuri Communtiy-wide goal:
https://governance.openstack.org/tc/goals/selected/ussuri/drop-py27.html

Change-Id: I522d737c5202a7c7ac292547679b71fcddad3091
2019-11-16 16:55:40 +00:00
pengyuesheng 5d2426f88e Update the constraints url
For more detail, see http://lists.openstack.org/pipermail/openstack-discuss/2019-May/006478.html

Change-Id: Ie5c67b05bb90da2a4e3c3d115799ee780edf5e69
2019-09-26 14:04:08 +08:00
Corey Bryant b9bdf0c792 Add Python 3 Train unit tests
This is a mechanically generated patch to ensure unit testing is in place
for all of the Tested Runtimes for Train.

See the Train python3-updates goal document for details:
https://governance.openstack.org/tc/goals/train/python3-updates.html

Change-Id: Ic95726f90b549df62d6a3e5312e1fa1dc7e50e48
Story: #2005924
Task: #34223
2019-07-05 13:14:53 -04:00
zhulingjie 2b4a35dbbf Replace git.openstack.org URLs with opendev.org URLs
Change-Id: I25f3211e2524a5ebb69a4bef0d7566f0745307db
2019-04-24 02:27:30 +08:00
Ghanshyam Mann 18a738ab4e Dropping the py35 testing
All the integration testing has been moved to
Bionic now[1] and py3.5 is not tested runtime for
Train or stable/stein[2].

As per below ML thread, we are good to drop the py35
testing now:
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/005097.html

[1] http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004647.html
[2]
https://governance.openstack.org/tc/reference/runtimes/stein.html
https://governance.openstack.org/tc/reference/runtimes/train.html

Change-Id: I69a229d92a7ec2b71c5ade0771f5bd66ac3fd448
2019-04-15 18:44:23 +00:00
Sean McGinnis 264cb6356d Remove setup.py check from pep8 job
Using "python setup.py check -r -s" method of checking the package has
been deprecated with the new recommendation to build the sdist and
wheel, then running "twine check" against the output.

Luckily, there is already a job that covers this that only runs when the
README, setup.py, or setup.cfg files change, making running this in the
pep8 job redundant. This covered by the test-release-openstack-python3
that is defined in the publish-to-pypi-python3 template.

More details can be found in this mailing list post:

http://lists.openstack.org/pipermail/openstack-dev/2018-October/136136.html

Change-Id: I901a85a2663323b5ee2e412405a3aabc02fdf032
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2018-10-30 10:35:13 -05:00
Doug Hellmann c97ccb2f99 fix tox python3 overrides
We want to default to running all tox environments under python 3, so
set the basepython value in each environment.

We do not want to specify a minor version number, because we do not
want to have to update the file every time we upgrade python.

We do not want to set the override once in testenv, because that
breaks the more specific versions used in default environments like
py35 and py36.

Change-Id: Ie12f0b23e32b64b57fec5f2926fa3504b16ad2df
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-09-26 18:56:53 -04:00
Witold Bedyk 27e50fefdd Add check for rst syntax
* Remove duplicate target reference from README.rst

Change-Id: I99145dcb09f8bd4340f932aeb8b560d2a728c9aa
Story: 2002163
Task: 23058
2018-07-19 11:30:36 +02:00
Charles Short 785c29c22f Switch to using stestr
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

Change-Id: Id31d458418d904b568be0adf98d5b579cfd841cd
Signed-off-by: Charles Short <zulcss@gmail.com>
2018-06-19 14:39:28 -04:00
Doug Hellmann 3115cdca8f fix tox python3 overrides
We want to default to running all tox environments under python 3, so
set the basepython value in each environment.

We do not want to specify a minor version number, because we do not
want to have to update the file every time we upgrade python.

We do not want to set the override once in testenv, because that
breaks the more specific versions used in default environments like
py35 and py36.

Change-Id: I946210d26cbdcb303b3eca623022608afc141fe3
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-06-06 15:27:00 -04:00
Jui Chandwaskar 9f64338f4a Update pep8 check
Set max line length to 100

Change-Id: Ib724f9e9fe9d49d391e286a5499ccc89904fea4d
Signed-off-by: Jui Chandwaskar <jchandwaskar@op5.com>
2018-04-11 15:40:27 +02:00
Witold Bedyk fc269dc6f3 Clean up tox.ini
* move common commands to [testenv]

Change-Id: I46b155d3a19f0cdbf3a2694bbf2d1d7541737607
2018-03-27 12:41:05 +02:00
Doug Hellmann fafcdf65ec 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: I1c69e5d82410cd6245a7427a67ce741d82324d51
Depends-On: https://review.openstack.org/555034
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-03-22 15:49:50 -04:00
Andreas Jaeger 00b8171584 Remove -U from pip install
'pip install -U' ugrades specified packages, this is not necessary
since we use constraints, remove the parameter '-U' from the line.

With tools/tox_install.sh - which a previous change of mine removed -
the -U was not harmful, but with the current set up, it might cause
upgrades, so remove it.

Change-Id: I9b14274aee2c19e8a12ee48a129b62f5f6c67c57
2017-12-02 19:26:38 +01:00
Andreas Jaeger 6ffc33b6e5 Avoid tox_install.sh for constraints support
We do not need tox_install.sh, pip can handle constraints itself
and install the project correctly. Thus update tox.ini and remove
the now obsolete tools/tox_install.sh file.

This follows https://review.openstack.org/#/c/508061 to remove
tools/tox_install.sh.

Change-Id: Ie2985abfafa71177b5800a8ca5a97381662bfea9
2017-12-01 15:18:25 +01:00
Tomasz Trębski 05022e1ff8 Extend tox for monasca-statsd
Following commits accomplishes several things:
* unit tests run with ostestr
* coverage calculation
* documentation generated using OS approach & theme
* bandit linting

Change-Id: I6c3b48805c237f0ad95220b90ff66b045c7478fb
2017-01-16 10:06:02 +00:00
Tomasz Trębski d123c80f49 Make monasca-statsd PEP8 compatible
Following change ensures that monasca-statsd
is fully compatible to PEP8.

Change-Id: I15e1be38b62ab029675b8e0aac2784a0ff3f9f56
2016-12-12 10:50:58 +01:00
Chuck Short c8266ad9e9 Add python3 support
Add support for python3 using the six library.

Change-Id: I90851ddf5a98ca05c494a49e4063e1bd233cccee
Signed-off-by: Chuck Short <chuck.short@canonical.com>
2016-11-03 14:50:11 -04:00
gecong1973 1cfdac6453 Delete python bytecode file
This patch delete python bytecode including
pyo before every test run

Change-Id: I720dc8dcac2f291ae394b9d673ca62d38bad5b64
2016-10-12 14:30:07 +08:00
Andreas Jaeger b3581527ac Use constraints everywhere
Infra now supports constraints everywhere, remove now unused
workarounds.

For more information about constraints see:
http://lists.openstack.org/pipermail/openstack-dev/2016-August/101474.html

Change-Id: Ie3d28df4920d5278c59ee1495d16eed33ea4648c
2016-08-30 20:19:41 +02:00
Joe Keen c4bbfa665d Remove reference to removed metric types
Removing references to histogram and set types.

Converting timer data from histogram type to gauge.

Enabling tox jobs because I was depending on them to tell me if I screwed
something up.

Change-Id: If9fbbf655baca67e7f205e4493c0929ac90d386a
2016-08-03 07:21:36 -06:00
Nichita Herciu 298ce0c7b7 Removed H302
Due to the fact that the hacking requirement from test-requirements.txt
was recently updated, H302 - import only modules is now safe to remove
from the ignore list in tox.ini, as it will no longer lead to any error.

Change-Id: Icec30797623badf2c18308c3bb71699370905f3e
2016-07-26 11:15:28 +03:00
Kaiyan Sheng a73d603ada [monasca-statsd] Constraint tox targets with upper-constraints
This review is to prepare for adding monasca-statsd into openstack
global-requirements. After this project gets into global requirements,
it will be in upper-constraints.txt. If we make changes on this
specific project, we need to replace it in the upper-constraints with
source based specifier before applying it to pip install.

Change-Id: I60c74cd263e8611a61528721a9b40926ded4b6a4
2016-05-20 17:01:02 -06:00
Haiwei Xu 44eb02d77c Delete python bytecode before every test run
Bring over the cleaning line from run_tests.sh for the pyc files to
all the tox runs.

This should eliminate the need to clean -x -i to kill pyc files in
your local directory to get tests to pass.

Change-Id: I5eb5d3a017ef752178073d7389961fd0ff4be4c4
Closes-Bug: #1368661
2015-12-02 13:35:33 +09:00
gary-hessler f9eba6c7cf Refactored statsd code to be modular
The monasca-statsd package was in one monolithic class in
a single file.  Made it more modular and broke it into classes
for the different metrics types, connection and added a Client
class for easy management.

Change-Id: If4f204f656cc8f8603b5e96e0e734983b3aadcd6
2014-11-18 15:23:30 -07:00
gary-hessler c7dfeb7e75 Adding python client for statsd messages
Change-Id: I720707609331a637e1f148ac6e0b2e2c594c0d9a
2014-09-23 07:55:58 -06:00