Commit Graph

25 Commits

Author SHA1 Message Date
Ghanshyam Mann d58ee7fb08 Retire openstack-health
openstack-health is QA repo and service to know the
job/test success/failure rate. But for a long (more than
a year), this code is broken. We do not have any maintainer
in QA to fix and maintain it. As it is broken, QA and infra team
agree to stop the service

- http://status.openstack.org/openstack-health/#/

In QA zed PTG, we decided to retire the repo also

- https://etherpad.opendev.org/p/qa-zed-ptg

Needed-By: https://review.opendev.org/c/openstack/governance/+/836706
Change-Id: Ie15aa8e469b0bb3aff47dcad422c0676fea640d2
2022-04-05 18:47:38 -05:00
Ghanshyam Mann a25e4d491c Test python3.9 as voting job
In Yoga testing, we are making py3.9 job to run as voting, so
adding py3.9 job as voting.

Also, as openstack-health is branchless and needs to support older
supported stable branches, let's test it with all the
python version supported in those supported stable branches.
For that, we need to explicitly dd the py jobs instead of using
the template. This way, we will explicitly know that we are testing
all supported python versions when the new release template bumps the
min python version in the template.

Change-Id: I894984577bf8c83669c96fd627bb9767237c3f68
2021-11-03 20:36:37 +00:00
maaoyu ab4b9e3ad2 bump py37 to py38 in tox.ini
in 'victoria' cycle, we should test py38 by default.

ref:
  https://governance.openstack.org/tc/reference/runtimes/victoria.html

Change-Id: I0aab034acf093391411cf76c858bc3c3b6a98cb1
2021-04-29 14:37:27 +00:00
tushargite96 7aa4fd65a2 Changed minversion in tox to 3.18.0
The patch bumps min version of tox to 3.18.0 python in order to
replace tox's whitelist_externals by allowlist_externals option:
https://github.com/tox-dev/tox/blob/master/docs/changelog.rst#v3180-2020-07-23

Change-Id: Id018ab220cc95f39aea9cbce6880ba65f7f715f5
2021-02-25 23:22:05 +05:30
Lukas Piwowarski 4f14a185aa Create tox environment to build pdf documentation
This patch enables building .pdf documentation using new 'pdf-docs'
tox environment. The newly created tox environment creates latex
source codes using sphinx-build and then builds the pdf
documentation using make.

Story: 2006070
Task: 35466

Change-Id: Iefa8795ba985f502f952001cdc616dae20847ef9
2020-09-24 10:10:13 +02:00
Andreas Jaeger 596d2f0cf1 Cleanup py27 support
This repo is now testing only with Python 3, so let's make
a few cleanups:
- Remove python 2.7 stanza from setup.py
- Remove obsolete sections from setup.cfg
- Update classifiers
- Cleanup doc/source/conf.py to remove now obsolete content.
- Use newer openstackdocstheme version
- Remove install_command from tox.ini, the default is fine

Change-Id: Ied0e774f0efda76794ecfb0f67a5fd51bb380258
2020-04-11 14:58:46 +02:00
Andreas Jaeger c889b33ecc Update hacking for Python3
The repo is Python 3 now, so update hacking to version 2.0 which
supports Python 3.

Fix problems found.

Change-Id: I4418c77b622f0a0f2f729b957cceb577d20f30d9
2020-03-28 12:16:40 +01:00
Ghanshyam Mann b15f68e52d [ussuri][goal] Drop python 2.7 support and testing
OpenStack is dropping the py2.7 support in ussuri cycle.

openstack-health 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: Iaaef4a66fec148e882e3a6a984b07a80c7fb1285
2020-03-06 06:45:21 -06:00
Corey Bryant d5be501b5c 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: I539358df94913711fce888739318b173f5cc7799
Story: #2005924
Task: #34240
2019-07-15 13:14:04 -04:00
wangqian c42c009975
Modify README.rst and tox.ini
Replace openstack.org URLs with opendev.org URLs

Change-Id: Iad34d786d182729cc9d7acd5fc51fbe8624140c3
2019-06-07 16:56:09 +09:00
wangqian 2ffbcd1484 Move doc related modules to doc/requirements.txt
Because sphinx and oslosphinx module is not for the unit test.
I remove sphinx and oslosphinx from test-requirements.txt.
Add doc/requirements.txt and modify doc/source/_static/conf.py

Beacause of the build of py27 is failed(Zuul), I write this patch.

Change-Id: I306795ca0192675d8ffb9bbc2f1fa04165a45209
2019-05-16 10:55:03 +08:00
Ghanshyam Mann 70d162916f 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: Idc1f3561f775de39166ef048a0d84b060258299e
2019-04-22 03:46:49 +00:00
Vieri 0372af8d3c Update min tox version to 2.0
The commands used by constraints need at least tox 2.0.  Update to
reflect reality, which should help with local running of constraints
targets.

Change-Id: I3a1583c2019e8cf990a8864c5a1b3350e5e08a9f
Closes-Bug:  #1801488
2018-11-03 07:35:35 +00:00
huang.zhiping 85063e46a1 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: Ica8253d82288ecf2e281b521b7ade989c8d6c442
2018-06-09 18:58:44 +08:00
Masayuki Igawa 14bfbbfc09
Switch to use stestr instead of ostestr
This commit switches to use stestr[1] instead of ostestr. We don't need
to use ostestr layer because we can use stestr directory.

[1] https://github.com/mtreinish/stestr

Change-Id: I566dca2f3052520a09558bf315b433984c221034
2017-10-17 17:04:45 +09:00
Masayuki Igawa 11590b64ad Add py35 to tox.ini envlist
This commit adds py35 to the tox.ini envlist. We should support not only
python 3.4 but also python 3.5. And this commit also fixes the envlist
order to avoid the testr execution error with dbm usage.

Change-Id: I9e48a66f47ad5f73c117e2d6ddb10ebd4b1e2bba
2017-02-09 08:15:58 +00:00
Yushiro FURUKAWA 06e9b13577 Fix coverage option and execution
--coverage-package-name option was no longer supported by 'testr'[1].
This commit replaces from 'testr' to 'test' as coverage option.

[1] https://review.openstack.org/#/c/217847/

Change-Id: Ibb5c178ccd9063f94fc3b3fac4d395494c3539b3
2016-04-14 02:52:40 +00:00
Masayuki Igawa 6c662aff40 Enable Python 3
This commit enables Python 3.

Change-Id: I769ec784f87a311eef52df09cd96fdbfed9cba1c
2016-02-24 19:56:46 +00:00
Masayuki Igawa 80edd06fd0 Enable python coverage
This commit enables python coverage and adds gitignore files for it.

Change-Id: I6bfc62f532227b1812dabcade34575b86bb8d32d
2016-01-29 18:48:05 +09:00
Anderson Mesquita 910a24c39f Add npm envs to tox
This adds two new test environments for npm test and npm lint so that
developers can just call tox and be sure all tests have been run.

Change-Id: I71d8f5d566b9dbab65e893474b6df56c86c73903
Co-Authored-By: Dhiana Deva <ddeva@thoughtworks.com>
2015-11-09 17:11:38 -02:00
Matthew Treinish a0d8fd29b9 Update flake8 path in tox.ini
The tox.ini pep8 command was running flake8 on the whole repo, however
when also testing the frontend side of the project some of the js
dependencies pull down python code. We don't want to run flake8 on
external code. This commit adjusts the command to only run flake8
on the openstack_health dir which will limit it to our code.

Change-Id: I003e1b87c4990fd09596a222cb506b113eb47abb
2015-10-02 15:24:13 -04:00
Matthew Treinish cde573acb8
Add unit tests for rest api and fix docs
This commit adss the basic framework for unit tests of the rest api
and 2, yes 2, unit tests to cover the /runs and /tests endpoints.
This will be expanded in the future, but this is to just give us a
starting point as we expand the api.

Additionally, to unblock the repo this adds missing tox envs which
are needed to pass the docs job. It also takes care of the other
missing pieces to pass a build sphinx run.

Change-Id: Id46476285612789e3b7817eacc45125cf6c3a548
2015-09-15 23:39:20 -04:00
Matthew Treinish c8011fd24b
Add python bits to the repo
This commit adds the basic python infrastructure to the repo. The
backend rest api on top of the data stores will live in the repo
but before we can add that we need to be able to support python code
in the repo.

Change-Id: I869f42e148c2f5c2369fb5613d43b4ec25aaa2db
2015-09-14 19:06:08 -04:00
David Lyle edaf92d16d removing python elements 2015-09-14 14:08:12 -06:00
Tim Buckley ea266aa617 Add stub unit tests from cookiecutter 2015-08-03 10:37:55 -06:00