Commit Graph

127 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
OpenStack Release Bot e400c13e1c 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: I7cb003e1c69122a5759505ad9b1c115ecb680ffc
2022-03-04 17:17:07 +00:00
OpenStack Release Bot 116019af61 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: I25e6a9cbedac8b1362aedb5cc46f9def341202c2
2021-09-10 14:32:16 +00:00
OpenStack Release Bot 77fbd15940 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: I9b9a127255d68f2587849985ce929db557e565e9
2021-03-18 11:15:51 +00: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
Zuul 298394511e Merge "bump py37 to py38 in tox.ini" 2020-11-02 13:57:26 +00: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
OpenStack Release Bot 0e2561c6ef 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: Icdae7f5bb8fc45551f65eaf2d811d00de2fc9b4f
2020-09-09 22:23:40 +00:00
jiasirui 3ecf448003 change a better title in README.rst
Change-Id: I3a752f3bad21e594cb4b4503128973f25e0c3836
2020-06-16 17:25:33 +08:00
Hervé Beraud 8621c54397 Use unittest.mock instead of mock
The mock third party library was needed for mock support in py2
runtimes. Since we now only support py36 and later, we can use the
standard lib unittest.mock module instead.

Change-Id: I8d9549e4653f4df7ec9f34f54f15bf0a18c9d8e2
2020-06-09 01:25:45 +02:00
Zuul 42ee4b52ce Merge "Add py38 package metadata" 2020-05-28 13:40:59 +00:00
Masayuki Igawa aa83a72685 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: I30c04355c245ce2ad052b8573771af0c0fa3e8f4
2020-05-27 16:45:15 +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
Witek Bedyk 460431085e Add CONTRIBUTING.rst
Change-Id: I9d8a12179bd16ff25f9b15b1bdc7cee59ae8a720
2020-05-19 16:26:25 +02:00
Ghanshyam Mann d0e8adedfd 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: Ic646e184486e75e5d269a6000c8ff1bc5f78d066
2020-05-12 19:30:23 -05:00
Sean McGinnis d89dc30d64
Add py38 package metadata
Now that we are running the Victoria tests that include a
voting py38, we can now add the Python 3.8 metadata to the
package information to reflect that support.

Change-Id: If553d8ebb251b75fd942bc36a232f15c161b7234
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-05-02 07:48:13 -05:00
OpenStack Release Bot d6e36cb0af 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: I43a802996b1d26389e4a59ec170e246646de86b8
2020-04-28 14:36:12 +00:00
Zuul 257d6e42b0 Merge "Update hacking for Python3" 2020-04-24 14:58:47 +00:00
Andreas Jaeger 6ecc0a59e9 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

Change-Id: I73719cd22b52d9e35568d3d0e4e68846ab743522
2020-04-05 09:59:44 +02:00
Andreas Jaeger 55ebdd45b4 Update hacking for Python3
The repo is Python 3 now, so update hacking to version 3.0 which
supports Python 3.

Fix problems found by updated hacking version.

Remove hacking and friends from lower-constraints, they are not needed
there.

Change-Id: I013b73347ed56c8c64a8aff73ec60ea738bc0c76
2020-03-31 21:48:03 +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 680d911868 Switch to Ussuri jobs
Change-Id: I240f95772c990dc1ee84ba5ece50573dd2079240
2019-10-23 16:10:11 +08: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
Witek Bedyk 6a8ce64b36 Disable monasca-tempest-java-influxdb job
The job has been failing for a long time. Java implementation of
InfluxDB persister is not maintained.

Change-Id: I4f2855d6090b91f413f5bfc20b6183ef4ded7e42
2019-07-10 18:26:13 +02: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
OpenDev Sysadmins a89eef1044 OpenDev Migration Patch
This commit was bulk generated and pushed by the OpenDev sysadmins
as a part of the Git hosting and code review systems migration
detailed in these mailing list posts:

http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003603.html
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004920.html

Attempts have been made to correct repository namespaces and
hostnames based on simple pattern matching, but it's possible some
were updated incorrectly or missed entirely. Please reach out to us
via the contact information listed at https://opendev.org/ with any
questions you may have.
2019-04-19 19:35:46 +00: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
Zuul 0156d20a4d Merge "add python 3.7 unit test job" 2019-02-18 10:59:33 +00:00
ZhongShengping c9356f52e1 add python 3.7 unit test job
This is a mechanically generated patch to add a unit test job running
under Python 3.7.

See ML discussion here [1] for context.

[1] http://lists.openstack.org/pipermail/openstack-dev/2018-October/135626.html

Change-Id: I9e6fa6420dc3d00bb122aa0d4e2ac5c1d5d178bc
2019-02-18 15:30:04 +08:00
Corey Bryant df450e4d5d add python 3.7 unit test job
This is a mechanically generated patch to add a unit test job running
under Python 3.7.

See ML discussion here [1] for context.

[1] http://lists.openstack.org/pipermail/openstack-dev/2018-October/135626.html

Change-Id: I5cb04c5f575c771e46ed1eb1bb390e66524a0d91
Story: #2004073
Task: #27430
2019-02-15 00:07:03 -05:00
Zuul 8d42b7a4ac Merge "Add tempest tests jobs" 2019-02-06 10:06:36 +00:00
Witek Bedyk 651fe251bb Add tempest tests jobs
Change-Id: I1e06a5f2dd06ca7d53aa83119d14bc569a35e27c
2019-01-31 21:33:27 +01:00
melissaml 7640b38bf1 Update hacking version to latest
Change-Id: I0bd2adacd080dfc2c55cf8681fef831cbcb673c3
2019-01-06 17:52:57 +08: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
Andreas Jaeger b91b0c2f8f Use templates for cover and lower-constraints
Use openstack-tox-cover template, this runs the cover job
in the check queue only.

Use openstack-lower-constraints-jobs template.

Remove jobs that are part of the templates.

Change-Id: Ia957070619204997b5fa72db4b1a332c82f8355e
2018-09-08 16:19:15 +02:00
Doug Hellmann f0b33ff839 add python 3.6 unit test job
This is a mechanically generated patch to add a unit test job running
under Python 3.6 as part of the python3-first goal.

See the python3-first goal document for details:
https://governance.openstack.org/tc/goals/stein/python3-first.html

Change-Id: Ia491e19cae441db2aeb312797c2e8dd7d8373b2a
Story: #2002586
Task: #24312
2018-08-22 18:52:00 -04:00
Doug Hellmann b24c1f36e0 import zuul job settings from project-config
This is a mechanically generated patch to complete step 1 of moving
the zuul job settings out of project-config and into each project
repository.

Because there will be a separate patch on each branch, the branch
specifiers for branch-specific jobs have been removed.

Because this patch is generated by a script, there may be some
cosmetic changes to the layout of the YAML file(s) as the contents are
normalized.

See the python3-first goal document for details:
https://governance.openstack.org/tc/goals/stein/python3-first.html

Change-Id: I0c61ac9b8548e7dab1237a0a609c0243fdaca02c
Story: #2002586
Task: #24312
2018-08-22 18:50:43 -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
Zuul 14ecd53db1 Merge "Switch to using stestr" 2018-06-29 13:17:32 +00:00
Denis Poisson 628efb6026 Convert README.md to ReStructuredTest format
Change-Id: I693ec76e2bd94573caa667cc49155de358a433f3
story: 2002163
task: 22597
2018-06-28 13:24:34 +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
Witold Bedyk 16465ea109 Remove repository section from README
* Add reference to StoryBoard.

Change-Id: I6f96fc0fb02b3719824d650787b70bb5cf620ab9
Story: 2001980
Task: 19599
2018-05-16 11:47:50 +02:00
Zuul 8db3f5aa47 Merge "Update links in README" 2018-04-24 09:04:06 +00: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
melissaml 39905082d0 Update links in README
Change the outdated links to the latest links in README

Change-Id: Ic829b89ae6737f2cf8aec0c3769c08d659640d89
2018-03-30 14:06:16 +08: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