Commit Graph

40 Commits

Author SHA1 Message Date
manchandavishal b89a1e5177 Remove hard-coded Python path in karma.conf.js
This patch removes hard-coded Python path in karma.conf.js
to fix the npm jobs because now these npm jobs run on
debian-bullseye and py38 are not available there.

Change-Id: I7474bfc60f503ab5b4a278e0f835cc088ec911a7
2023-02-16 18:16:53 +00:00
jiaqi07 7e45fc0ce0 Use py3 as the default runtime for tox
Moving on py3 as the default runtime for tox to avoid to update
this at each new cycle.

Change-Id: Ie555138c596a5b343b8a1bcf7be44cd493bd2916
2022-10-09 11:07:46 +00:00
Michael Johnson 64993055e7 Fix designate-dashboard lint
Previously the lint test was failing to run because there was no configuration file for it. This patch adds the .eslintrc file and fixes the found lint issues.
This patch also adds tox environments to run the lint and karma tests.

Change-Id: Idcef4c3ce4e9455acceed645c2530355989a7ee2
2022-06-24 21:07:13 +00:00
Ghanshyam Mann 08a5e392f1 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: Iac61d4d5c990fbcc3535f9e4d5eab765a3d88aee
2022-04-30 15:58:23 -05:00
wangzihao a1e1bb8372 Changed minversion in tox to 3.18.0
The patch bumps min version of tox to 3.18.0 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: I1f1c8e6aaa3191794e2281be8eb47a119e4fc7ab
2021-06-22 06:46:20 +00:00
wangzihao dc0629234b Use TOX_CONSTRAINTS_FILE
UPPER_CONSTRAINTS_FILE is old name and deprecated
This allows to use upper-constraints file as more
readable way instead of UPPER_CONSTRAINTS_FILE=<lower-constraints file>.

Change-Id: I551f938a979c5921f204eca24fb3d16b9d47776d
2021-05-20 13:44:47 +08:00
manchandavishal 987cc594f6 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.

Also removing the hacking and other related dep from lower-constraints file
as theose are blacklisted requirements and does not need to be present
there.

This paatch also update minimum tox version in tox.ini file.
- http://lists.openstack.org/pipermail/openstack-discuss/2020-May/014828.html

Change-Id: Ia995caec9c4a0217be523c3179bfee85c1b6f7f8
2020-08-04 13:52:22 +00:00
manchandavishal b3ef322782 Bump default tox env from py37 to py38
Python 3.8 is now our highest level supported python runtime.
This updates the default tox target environments to swap out
py37 for py38 to make sure local development testing is
covering this version.

This does not impact zuul jobs in any way, nor prevent local
tests against py37. It just changes the default if none is
explicitly provided.

Change-Id: Iae572c8b08d7ad48495e759352205e217889d1be
2020-05-15 18:17:48 +00:00
Andreas Jaeger 7bace2a2cd 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
- Add requires on python >= 3.6 to setup.cfg so that pypi and pip
  know about the requirement
- Remove obsolete sections from setup.cfg
- Update classifiers
- Update requirements, no need for python_version anymore
- Use newer openstackdocstheme and Sphinx versions
- Cleanup */source/conf.py to remove now obsolete content.
- Remove Babel from requirements, it's not needed for running.
- Update hacking to 3.0, fix problems found

Change-Id: I9eb22328474f52c2e225ae2a24c895c0e2bb63d7
2020-04-17 18:33:17 +02:00
manchandavishal 4609ad1b51 Drop Django 1.11 support
Django 1.11 ends its extended support in April 2020 (which is before
Ussuri release), so horizon drops Django 1.11 support in Ussuri.

tox envs for non-primary Django versions are no longer needed in tox.ini
as testing environments for non-primary Django versions are setup in
the zuul jobs now.

horizon>=17.1.0 is required to use Django 2.2. requirements.txt and
lower-constraints.txt are updated accordingly. for more info. please
refer [1].
Depends-On: https://review.opendev.org/#/c/700733/
[1] https://etherpad.openstack.org/p/Enable_Django22_support_in_Horizon_Plugin

Change-Id: I68ab10b4ac0e09b7d850e7c8f855a7e95c22d141
2020-01-01 20:27:59 +00:00
Ghanshyam Mann 95dbf83346 [ussuri][goal] Drop python 2.7 support and testing
OpenStack is dropping the py2.7 support in ussuri cycle.

designate-dashboard is ready with python 3 and ok to drop the
python 2.7 support.

Also changing tox path to py3 to fix gate.
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

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

Co-Authored-By: Vishal Manchanda <manchandavishal143@gmail.com>
Change-Id: Id734dd4772ee4476ae1cfa8fb3c3e4b81109a113
2019-11-22 17:05:22 +00:00
Zuul 38227c722f Merge "Generate PDF documentation" 2019-10-23 06:41:24 +00:00
manchandavishal 49b6c09bcd Generate PDF documentation
This commit adds a new tox target to build PDF documentation.
It's a part of community goal, see storyboard for more
information.

Change-Id: I66add3b35283fdb6337b6dad9d79e852984d471f
Story: 2006078
Task: 34824
2019-10-18 08:26:12 +00:00
manchandavishal a299e5e34d Use Horizon project template for django jobs
Horizon defined a project template 'horizon-non-primary-django-jobs'
for django jobs. This patch use that template to run django jobs
here. For information please refer [1]

[1] https://review.opendev.org/#/c/681969/

Change-Id: I32a39fd2bde587a9891dea288026cc4518e89068
2019-10-09 16:18:10 +00:00
manchandavishal 2f52379d8a Update the constraints url
For more detail, see http://lists.openstack.org/pipermail/openstack-discuss/2019-May/006478.html

Change-Id: I74f04050d45e70fc5381b111820253cf700df9d9
2019-09-23 21:10:08 +00:00
Corey Bryant 7f9f3a416d 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: If4beb789ca8eaa6edab0014ff23914382034a047
Story: #2005924
Task: #34204
2019-07-15 18:19:53 +00:00
Erik Olof Gunnar Andersson 858de8f703 Fix broken tests
This fixes the tests by reuseing the more modern approach for
handling settings from the heat_dashboard.

Finally we remove the base designate jobs, as they do not
make use of the dashboard.

Change-Id: I53fd7bd0d01680c0bd59ad19365ceede0125050a
2019-07-13 23:22:32 -07:00
manchandavishal 8693d3eea0 Changes for url transition to OpenDev
This commit changes openstack.org URL to opendev.org URL

Change-Id: I156dce82251e49e53d7675233951a469fd698ef3
2019-04-22 14:21:11 +00:00
Ghanshyam Mann 0d41b86d53 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: I54fcffef6807fcd0fb7331b79f4b363f676f3a2e
2019-04-14 19:35:41 +00:00
Graham Hayes 84a26b03b9 Enable py36 testing
Change-Id: I2c6301ee59955d7a7addee188b41676414e355a3
Signed-off-by: Graham Hayes <gr@ham.ie>
Depends-On: https://review.openstack.org/598131
2018-10-29 19:37:03 +00:00
Erik Olof Gunnar Andersson e651928d1c Fix coverage
The current cover job is failing with the following error message
> manage.py test: error: unrecognized arguments: --cover-xml

Change-Id: I554300931d241fb82d4f204fd3fa120e37ee70b3
2018-09-23 12:40:59 -07:00
Zuul 9b2a2d6c21 Merge "Add test 'node_modules' in tox.ini for flake8 exclude" 2018-08-18 08:12:51 +00:00
Zuul 721fdd3658 Merge "fix tox python3 overrides" 2018-07-22 04:14:45 +00:00
qiaomin 31a19cb13c Add test 'node_modules' in tox.ini for flake8 exclude
Change-Id: I31b8750e3018aeefaab5263dd214034944778931
2018-07-17 17:45:47 +08:00
Akihiro Motoki 5f713170e6 Add python3 django 1.11 job instead of django 2.0 job
Django 2.0 is now used in tox py35 job, so there is no need for
py35dj20 job. Instead, Django 1.11 with python3 is not covered.

- py35dj20 job is dropped from tox.ini.
- python3-django111 is added to tox.ini.
  python3 is specified to basepython to avoid a specific python version.
- .zuul.yaml is updated to consume horizon-openstack-tox-python3-django111
  and drop horizon-openstack-tox-py35dj20.

Change-Id: I985f87faefbe1b503b502c98acf0ed6003c587ad
2018-06-13 00:02:49 +09:00
huang.zhiping 488288a651 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: Ic1713fae9a08c5ca234a02a9a403dec611a3cd3b
2018-06-08 23:42:42 +08:00
Akihiro Motoki 84ad2b7337 Django 2.0 support
Replace django.core.urlresolves with django.urls

(In Django 2.0) The django.core.urlresolvers module is removed
in favor of its new location, django.urls.
It was deprecated in Django 1.10:
https://docs.djangoproject.com/en/2.0/releases/1.10/#id3

Add py35dj20 job to test Django 2.0 integration.

Change-Id: Ie57d111c44c607884e5ed3be614d4acae5e06b7f
2018-05-11 00:05:57 +09:00
Charles Short 5055fd3d25 Fix horizon install for tox
Install horizon from git in Openstack CI.
Update the tox.ini for this.

Change-Id: I5e6cedf27f06692f7a6c7b75e21b7cff22e061f0
Signed-off-by: Charles Short <zulcss@gmail.com>
2018-04-23 10:35:53 +00:00
Doug Hellmann 8daa5ac7ea 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: Iaceac55505b73a8153f13937598805dd8469fcec
Depends-On: https://review.openstack.org/555034
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-03-22 11:12:31 -04:00
Erik Olof Gunnar Andersson 551e5e1b6b Install horizon directly from pypi
It's no longer possible to install horizon with our current
method, and it's causing the ci to fail.
http://lists.openstack.org/pipermail/openstack-dev/2018-March/128310.html

Change-Id: I5f9a3ce76c233e62ff6addcaf6d229455ac29374
2018-03-15 13:24:39 -07:00
Jenkins 52f48dd862 Merge "H803 hacking have been deprecated" 2017-02-01 16:28:30 +00:00
Cao Xuan Hoang cd77ca870a Remove support for py33 and update to py35
Python 3.3 is not supported from Mitaka, as per Infra.
This patch removes the support and update to py35
for the same. Updated in venv also.

Change-Id: Ida50a9b6415cfc19bdbe37b3f6a60dc4c7aca73a
2017-01-24 08:08:40 +07:00
xhzhf c8f2e82bab H803 hacking have been deprecated
H803 hacking have been removed.
https://github.com/openstack-dev/hacking/blob/master/setup.cfg
Closes-Bug: #1650742

Change-Id: I3d0a5fd4c797c2d275eb0782f25ba7a768354853
2016-12-17 20:27:01 +08:00
shashi.kant d46095071b Added release notes for Designate-dashboard
Change-Id: I6a27785e25c738ea8a3a3730a8691bdf2eb724a7
Implements: blueprint maintain-releasenote
2016-12-12 15:14:58 +00:00
Graham Hayes 4a7b63f1bc Add Upper constraints to dashboard
Change-Id: I585ff658f045e17bb3d6da4427547114f3ff6910
2016-09-15 15:28:48 +01:00
Janonymous dfa2fc6660 Put py34 first in the env order of tox
To solve the problem of "db type could
not be determined" on py34 we have to run first the py34 env to, then, run
py27. This patch puts py34 first on the tox.ini list of envs to avoid this
problem to happen.

Change-Id: Iff88d06033f998d5e1ab84cac00e40bf516cd6b3
Closes-bug: #1489059
2015-12-22 18:19:06 +05:30
sonu.kumar 8da931dedf Pass environment variables of proxy to tox
Change-Id: Iaa88a0e242e348fd2e44e2201b6cebc9365ecde1
Related-Bug: #bug/1465086
2015-12-04 11:19:07 +05:30
sonu.kumar 985fb1b644 Clearing out .pyc file before a tox run
Partial-Bug: #1220234

Change-Id: I6806bd675339de00254c353b330e4117bdeeb9c4
2015-11-24 16:52:26 +05:30
Kiall Mac Innes 49d44524d9 Conform to Consistent Testing Interface
Make minimal changes necessary conform to, and pass,
the Consistent Testing Interface[1].

* tox -epy27
* tox -epep8
* tox -ecover
* tox -evenv python setup.py sdist
* tox -evenv python setup.py build_sphinx
* tox -evenv python setup.py extract_messages

The only exception to this is currently:

* tox -evenv python setup.py update_catalog

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

Change-Id: I50dd7fa9bbdd6a09b25ad0ee3785d37f2a32045f
2015-06-20 15:13:30 +01:00
Graham Hayes 561f3590a0 Added designate-dashboard code to contrib/designate-dashboard
Added to devstack as well.

Change-Id: I98eed46a8dd9918ba36c97fe40619ec42136c723
2014-11-26 23:18:15 +00:00