Commit Graph

24 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
Anand Bhat 6357a2f9cb setup.cfg: Replace dashes with underscores
Setuptools v54.1.0 introduces a warning that the use of dash-separated
options in 'setup.cfg' will not be supported in a future version [1].
Get ahead of the issue by replacing the dashes with underscores. Without
this, we see 'UserWarning' messages like the following on new enough
versions of setuptools:

  UserWarning: Usage of dash-separated 'description-file' will not be
  supported in future versions. Please use the underscore name
  'description_file' instead

[1] https://github.com/pypa/setuptools/commit/a2e9ae4cb

Change-Id: Ia1a1bc0cf2f8cba9af76b0b22be153f9e96bb6a8
2021-05-30 01:10:45 +05:30
Zuul 9f1d09d333 Merge "Add py38 package metadata" 2020-09-16 14:32:09 +00:00
Ansi Jain 08922f91e7 Fix gate: define nodejs10 jobs
Openstack-health uses horizon nodejs template [1] to run
nodejs10- jobs Which is wrong because openstack-health is
not a horizon plugins and above template is only for horizon
plugins to run node-js jobs.
This patch remove horizon nodejs template from .zuul.yaml
and define a new job to run Nodejs10 jobs on gate.

Also drop support of py35.

[1] https://opendev.org/openstack/openstack-health/src/branch/master/.zuul.yaml#L3

Change-Id: Ia222ce7f52ee1cfd575ed5204088f0eee2fe903e
2020-09-15 08:34:51 -05:00
RA489 bbf7535534 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: I02dccb26c236506e9383446e7324cae457e92d1b
2020-09-08 10:37:25 +05:30
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
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
Zuul 8c59616b67 Merge "Update home-page" 2019-07-17 22:38:32 +00: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
huang.zhiping 6f1f3fdc28 Update home-page
Change-Id: Ib85dd9fec0b40666e20286f544e4ee09f2f4d24a
2019-05-28 04:30:46 +00: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
Zuul 3ea4787c88 Merge "Removed older version of python3.4" 2018-12-06 15:35:42 +00:00
qingszhao 1f19fd7f1e Change openstack-dev to openstack-discuss
Mailinglists have been updated. Openstack-discuss replaces openstack-dev.

Change-Id: Ia1a035a98acc6fb01dc28caa18bfb2dcb01e8a80
2018-12-04 17:37:29 +00:00
qingszhao 3d54460d7c Removed older version of python3.4
Change-Id: I6f5741dcea0120a7f3fdf4fb45d3110f917a85b1
Closes-Bug:  #1801855
2018-11-20 06:22:32 +00:00
Andrea Frittoli c5c31e2dd0 Add py3.5 support in setup.cfg
As defined in https://governance.openstack.org/tc/goals/pike/python35.html
Pike community goal for py35, adding py35 to setup.cfg.

Change-Id: I1a0ce67d4d48d20f9dcfe262721ea717593944a8
2017-04-06 10:28:02 +01:00
Matthew Treinish d0a65e31ca
Fix wsgi_script entry point
Previously the wsgi_script openstack-health entry point was pointing
directly to flask app object in the api module. However the script
constructed by pbr attempts to call app and set that as the
application for mod_wsgi. However this is the incorrect usage for a
flask app, and will fail because the app object isn't expected to be
called by itself without any args) Also, according to the flask docs
[1] you just need to set the flask app as the application var in the
to run with mod_wsgi. This commit fixes the wsgi_script entrypoint by
creating a wrapper function which can be called by the generated
output of wsgi scripts from pbr and will return the flask app. This
function is then used as the wsgi_script entrypoint instead of the app
itself. Additionally, this also gives a good injection point if there
are any future initialization or configuration steps that need to be
taken when running.

[1] http://flask.pocoo.org/docs/0.10/deploying/mod_wsgi/#creating-a-wsgi-file

Change-Id: I6e49b4dbbe58e054a28412207b99eb2982a45fbe
2015-10-10 00:39:36 -04:00
Matthew Treinish 5ac0e82075
Enable running under wsgi container
When running the rest api under wsgi container you need to pass the
app callable to uwsgi directly. However, the DB connection
initialization was previously done in the main() function which also
called app.run() which would conflict with running under a wsgi
container. This commit breaks the initialization out into the module
level before the app creation. This ensures that the DB initialization
bits are always run regardless of running under uwsgi, gunicorn,
mod_wsgi, or something else. Additionally, the readme is updated to
document how to run the service under uwsgi standalone.

Change-Id: If53b3a1e6fdecd403ebca44809c767caacbde7fe
2015-10-02 18:24:06 -04:00
Matthew Treinish e14b019cbb
Update README for api dev process
Change-Id: I20298cf6066e1a47e9e02b83a53b83eff41445ca
2015-09-17 13:31:07 -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 00e1e473fc Move export_static.py to export.py; add executable command definition to setup.cfg to install `stackviz-export` command during `setup.py install`. 2015-08-11 17:06:09 -06:00
Tim Buckley 3a71cc96f2 Add some missing base files from cookiecutter (LICENSE, manifest, setuptools config) 2015-08-03 09:11:51 -06:00