Commit Graph

36 Commits

Author SHA1 Message Date
manchandavishal 935e28fa0e Update tox.ini for tox4
OpenStack CI now uses tox4 by default. This patch drop
"skipsdist = True". When skipsdist=True is specified, a
target application is not installed into a tox env, but
there seems no reason to do so. In various other OpenStack
projects, a target applicatin needs to be installed into a
tox vnev, for example, in docs and/or linter jobs and it
causes failures with tox4. So dropping it would avoid potential
future failures.

Change-Id: Ic12cddd2fddee64ce115f209b1e10da3b66c689f
2023-01-18 15:56:31 +05:30
wu.shiming 33e8992f39 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: I4c2d456fdfddca98b78535a1f9f1bb8658d3d335
2021-09-18 11:48:05 +08:00
Anand Bhat 556a43ef31 Migrate from testr to stestr
* Replace .testr.conf by .stestr.conf for migration and update
  .gitignore,test-requirements files accordingly
* Use 3.18.0 as the minversion for tox

Change-Id: I6bf98adecb772896c6243a90271a1b258569a4df
2021-07-18 00:05:10 +05:30
zhangboye 8d54bdf11c 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: I1ed9e545750e8db264cc4381a69a3f61ba8ddf0f
2021-04-20 10:43:46 +08:00
wu.shiming 0183ecc648 Update TOX_CONSTRAINTS_FILE
UPPER_CONSTRAINTS_FILE is old name and deprecated
-https://zuul-ci.org/docs/zuul-jobs/python-roles.html#rolevar-tox.tox_constraints_file
This allows to use lower-constraints file as more
readable way instead of UPPER_CONSTRAINTS_FILE=<lower-constraints file>.

Change-Id: I20c7c90e1d6b56e00bb28b1854dee1a629aa09c5
2020-12-18 17:31:18 +08:00
manchandavishal 938fa9aab4 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 is updated accordingly.

Depends-On: https://review.opendev.org/#/c/700733/
Change-Id: I7dd429b23f2d28999dc30e13d3717d8087f202aa
2020-01-07 14:08:49 +00:00
Ghanshyam Mann c9fb559b57 [ussuri][goal] Drop python 2.7 support and testing
OpenStack is dropping the py2.7 support in ussuri cycle.

vitrage-dashboard 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: I21499eedca87193f78bcf633c21380d757c788f6
2019-11-20 08:10:28 +00:00
Ivan Kolodyazhny 85b275e3ca 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 but there is no unit-test added in vitrage-dashboard to check 
django compatibility as of now and maybe we can add them in future.
For information please refer [1]

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

Change-Id: I6fd838618048f7cd373e477d176e9ad2ee8e3f09
2019-10-30 09:36:29 +00:00
whoami-rajat eca15c1c40 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: I04b9253ae30ec125e45a272f0c7ce384c7770372
Story: 2006076
Task: 35607
2019-09-17 13:56:37 +05:30
Corey Bryant f66683c01c Limit envlist to py37 for Python 3 Train goal
This is a mechanically generated patch to ensure unit testing is in place
for all of the Tested Runtimes for Train. The correct zuul jobs are
already in place so this change just limits default 'tox' calls to py37
to save developers time.

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

Change-Id: I533d0459f74230e551ddd38f40c3bf4c568e3c21
Story: #2005924
Task: #34255
2019-07-11 12:34:09 -04:00
manchandavishal 1f39f50f4a Update the constraints url
For more detail, see http://lists.openstack.org/pipermail/openstack-discuss/2019-May/006478.html

Change-Id: Ide32366aaa21750619afc73c19be7ed9a9e15894
2019-07-01 14:03:56 +00:00
Zuul a98fbf3c43 Merge "Changes for url transition to OpenDev" 2019-04-23 08:54:26 +00:00
manchandavishal 4ca4358c6e Changes for url transition to OpenDev
This commit changes openstack.org URL to opendev.org URL

Change-Id: I17138c5176ed0b0d767af7f5263105d389e1e241
2019-04-22 14:30:01 +00:00
Zuul c561fd2a30 Merge "Use python3 for integration tests" 2019-04-16 12:51:36 +00:00
Ghanshyam Mann 142940ab16 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: I5661e9cdf3644d785e004b7bd99989d514676757
2019-04-15 17:20:16 +00:00
Ivan Kolodyazhny 2481217401 Add Python 3.6 and Python 3.7 jobs
According to 'Tested Runtimes for Train' [1] we need to support
Python 2.7, Python 3.7 and Python 3.6 runtimes.

[1] https://governance.openstack.org/tc/reference/runtimes/train.html

Change-Id: I449cb6dbad63cca99fbd8a193a59aee326d289f0
2019-04-15 20:00:29 +03:00
Ivan Kolodyazhny ad1901b534 Use python3 for integration tests
Horizon Integration tests framework supports Python 3 now.

Change-Id: I862dca3b2f47781b5829b4712e7685c1027bb2b6
2019-04-11 18:15:05 +03:00
Ivan Kolodyazhny 2a7b111307 Add vitrage-dashboard integration tests
This patch adds basic tests to verify that vitrage-dashboard is
installed and could be opened.

Also it removes oslotest which is not used.

vitrage-dashboard-integration-tests job is added in a non-voting mode.

Change-Id: I03c6a28014a73605b72441a0241e1dc1cd3f908c
2019-02-17 15:25:54 +02:00
Ivan Kolodyazhny fad0c1f101 Fix npm tests on local env and CI
This patch adds upper-contraints support both for Python and JavaScript
tests.

Change-Id: Ied15af4c3c16043f8fb657b11cfce6fc44ff006f
2019-01-20 23:01:00 +02:00
Ivan Kolodyazhny 2ac455370d Drop unnecessary executable flags
This patch also adds checks for executable files in
pep8 job.

Change-Id: I862ee6c891af05c58ab2aca1178cfd984efb2d3c
2018-12-05 14:10:27 +02:00
Zuul 153676fb43 Merge "Remove setup.py check from pep8 job" 2018-11-11 08:33:06 +00:00
Kim Bao Long cbeb3cb137 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: Ib398f205e0558e1212fda63f4c22fd7e6edf9418
2018-11-02 11:48:30 +07:00
Sean McGinnis 8436fe45e4 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 is 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: Ic940cee100f4fe00521ba0559107b89ed82a25a0
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2018-10-30 11:16:28 -05:00
Saju M f1ff41eb84 AngularJS unittest with Jasmine and Karma for gate check
Change-Id: I156ec1665d98f247f01a1b0a5adaf26ab1eb09ce
Co-Authored-By: Saju Madhavan <sajuptpm@gmail.com>
Implements: blueprint angularjs-unittest-with-jasmine-and-karma
2018-07-22 15:55:14 +05:30
huang.zhiping 7d86ed03c8 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: Iab2f7ba28ad2a63e0801ba43f3b9c467f7389524
2018-06-10 00:53:08 +08:00
Ifat Afek f529174252 Add .rst files check to pep8
Errors in README.rst prevent the package from being registered in Pypi. We would like pep8 to fail in these cases.
For more details, see: http://lists.openstack.org/pipermail/openstack-dev/2018-June/131233.html

Change-Id: I8a6c333c4c968054fe8b63bdf844fe8d94ce98b5
2018-06-07 09:12:50 +00:00
Eyal 3b23bc5b3c remove tox warnning
fix "test command found but not installed in testenv"
by adding the full path

Change-Id: I6563929013c41121014524e41e43fa43765765a3
2017-06-15 11:16:06 +03:00
rajat29 fea7544318 Add 'rm -f .testrepository/times.dbm' command in testenv
Running py2* post py3* tests results in error. Add
'rm -f .testrepository/times.dbm' command in testenv to
resolve this.

Change-Id: I70bda66df507bd682ebc50f6edce242d52bc9e01
2017-04-26 09:18:13 +05:30
Jenkins e840530cc8 Merge "Remove support for py34" 2017-02-08 09:39:39 +00:00
gengchc2 95bff9129b Remove support for py34
The gating on python 3.4 is restricted to <= Mitaka. This is due
to the change from Ubuntu Trusty to Xenial, where only python3.5
is available. There is no need to continue to keep these settings.

Change-Id: I4d59c60af2a1ccf60e2168a92a4f4f7c2d0a1c14
2017-02-08 17:24:52 +08:00
Ifat Afek a620a33f0f Added release notes to vitrage-dashboard
Change-Id: I2164a31c1ccb9047bda69909a2d835e4fdf055e8
2017-02-01 11:51:27 +00:00
Jenkins 7813ecdf28 Merge "Add Python 3.5 venv and classifier" 2016-11-24 08:37:52 +00:00
qinchunhua a2fd6927b1 Add Python 3.5 venv and classifier
Now that there is a passing gate job, we can claim support for
Python 3.5 in the classifier. This patch also adds the convenience
py35 venv.

Change-Id: I03cb0408279b65e7dbd84ad6b07bcbecad3f7060
2016-10-29 04:08:46 +00:00
Li Wei 8fe42b2d94 Delete *openstack/common* in flake8 exclude list
There is not *openstack/common* directory in vitrage-dashboard,
we should drop it for improving searching efficiency.

Change-Id: Ibbeaef7654fcce776a831390823bc680df654a7c
2016-10-12 06:23:55 +00:00
mgrosz 8f7ed2fd81 Updating README file and tox.ini
Change-Id: If7659fe441df09e922ee19aa784e29c5588bef18
2015-11-16 12:10:25 +02:00
mgrosz f88201dc9e vitrage-dashboard project init
Change-Id: Ie553530bff9df52012f26316237ed5b04692e128
2015-11-16 11:35:25 +02:00