Commit Graph

38 Commits (27fe8009b5a9f929b4cbb4792af4c44b11d9cf84)

Author SHA1 Message Date
Ghanshyam Mann 2afede75ca Fix tox4 error
tox.ini started failing with tox4 which had some
incompatible changes. One of them is to allow
external command to run by adding them into allowlist_externals
and make passenv in new lines.

Fixing tox.ini for tox4 changes.

Change-Id: Ic10c68cf73f0e181c1182b348f49b9fff1f4cf24
5 months ago
jiaqi07 b23ca23187 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: I5a45367ad1086d3a079ab54481d1d0460298e47d
10 months ago
songwenping a4f8e09732 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.

Wallaby support officially the following runtimes [1]:
- Python 3.6
- Python 3.8

During Victoria Python 3.7 was used as the default runtime [2] however this
version isn't longer officially supported.


Change-Id: I6ca58e8e71b95ce560c1f04be41bb783ae46b74c
2 years ago
manchandavishal f5473fc236 Fix gate jobs
This patch update the following:
* add ignore_basepython_conflict = true in tox.ini file.
* replace horizon tarballs dependency with constraints file.
* update hacking version to latest 4.0.0 version.
* fix pep8 warnings.

Change-Id: If0275b78f9084e314e6a69e267a79fc4472c0dfe
2 years ago
Sean McGinnis 144731796f
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: I77603777138a8f39f22ac9f51c2beb8e63c00c02
Signed-off-by: Sean McGinnis <>
3 years ago
manchandavishal 01dd28e53b 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.

Change-Id: I8f97ac0e749c6c108d809f246b044ba3e8a0010d
3 years ago
Ghanshyam Mann dcd4303c4b [ussuri][goal] Drop python 2.7 support and testing
OpenStack is dropping the py2.7 support in ussuri cycle.

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

Complete discussion & schedule can be found in

Ussuri Communtiy-wide goal:

Change-Id: Ib39cbe4f526d5ace03f959e21eb4907c97ac7b65
4 years ago
manchandavishal d621a752e5 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]


Change-Id: Ib3e48ff828faef59a6594f9a1155eaa3a8bf0cf0
4 years ago
Corey Bryant eba4d3acec 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:

Change-Id: I298d3edae82bb54d8f23bd87be8cd641edec9714
Story: #2005924
Task: #34222
4 years ago
pengyuesheng 51166f3ebe Follow the new PTI for document build
The detail is described in the following links:

doc8 command is dropped from docs and releasenotes tox envs.
We run doc8 in pep8 tox env, so this hurts nothing.

Change-Id: I253e0f109b9be68c28792e4b3a53b26b512a08dd
4 years ago
pengyuesheng cbf3a8caa0 Modify the url of upper_constraints_file

Change-Id: I4361d3a59c33465db07e31eeee286a63950285ca
4 years ago
pengyuesheng 59f0ab44d1 Add python37 job
Since we've entered Train and the runtime proposed include py37[1],
we need to include it in gate as well as local env.
This patch adds the support for the same.


Change-Id: Ie9da36e048c8f13f625369b59c8c46eb5673194f
4 years ago
Vu Cong Tuan fc53013471 Switch to stestr
According to Openstack summit session [1],
stestr is maintained project to which all Openstack projects should migrate.
Let's switch to stestr as other projects have already moved to it.


Change-Id: I739cd53efa4f685d721dc4c9095d5df273b2acae
4 years ago
Zuul 3f259bd0cc Merge "Dropping the py35 testing" 4 years ago
Ghanshyam Mann 8b4ca12f7a 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:


Change-Id: Ib68a1cb57957e5705dcdf1ee0f46cf9359a6bf47
4 years ago
pengyuesheng a8cd02da9d Replace URLs with URLs
Change-Id: I4797b7c1a988e0eeee16df9ee4f0f2c43f143d36
4 years ago
Zuul f2fe1287d1 Merge "Update min tox version to 2.0" 5 years ago
Nguyen Hai Truong c3c6cd7a42 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: I84c22c847929650e4ea8a8670e704d8002d792ab
5 years ago
Sean McGinnis 395741b871 Remove check from pep8 job
Using "python 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,, 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:

Change-Id: I17ac028930428a5c3cc4a9954a189dae56715864
Signed-off-by: Sean McGinnis <>
5 years ago
Dougal Matthews 56cf418e74 Add the restructuredtext check to the flake8 job
This follows a recommendation in this thread on openstack-dev.

Change-Id: I81f5283813a18a1807c1fe68b3fae83a35423c8c
5 years ago
Doug Hellmann 924f64aa1c 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: I716ec44a6dd6d14f1ac221e058f365b8d44fb423
Signed-off-by: Doug Hellmann <>
5 years ago
Akihiro Motoki 3ae1e8aae3 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:

Add py35dj20 job to test Django 2.0 integration.

Change-Id: I6d2e38201387012ba9a02c4b0bd8377895a5919a
5 years ago
Charles Short 78ae62315e Add py35 to tox.ini
Add py35 to tox.ini so we can check
for pyhton3 compatibility.

Change-Id: I9a652d01fcc1a13e07f94a9a7e48b23d1877e1c8
Signed-off-by: Charles Short <>
5 years ago
Jeremy Liu 24852cd0b3 Fix oslo_debug_helper not running
Specify test directory so that tox won't complain
`ImportError: Start directory is not importable`.
Also fix a warning when running debug.

Change-Id: I7111c553bef110130abcd23f1e402d35868e3852
Closes-Bug: #1666560
6 years ago
Jenkins 3254802ee2 Merge "Remove django<1.8 from tests" 7 years ago
Zhenguo Niu 55425db080 Remove django<1.8 from tests
Django < 1.8 is not supported any more by upstream, and Horizon
has dropped django 1.7 and lower version support, so we don't need
to keep them here.

Change-Id: Ic4c1500c3403652f5e0936d81ad2797f1ab4b368
7 years ago
Sharat Sharma 70370480b6 Remove the dependency on horizon repo
* Due to this dependency mistral devstack pluging doesn't get
  installed properly because it can't constrain this dependency
  to a certain version

Change-Id: Ife4a2e3ace9d6325b27f995ceeafcd345dd8cc6d
7 years ago
Tony Breeds 5584e25277 Add Constraints support
To be co-installable with other OpenStack projects and have consistent
testing it's a good idea (tm) to use constraints when creating tox

Change-Id: If3e7de5c46d92a096db239611a24393f3ffb9e15
7 years ago
Sharat 539d53cf31 Delete *openstack/common* in flake8 exclude list
There is not *openstack/common* directory in mistral-dashboard,
we should drop it for improving searching efficiency.

Change-Id: I0f41e65e78e082cdd0f637ab07fb872b1b195a86
7 years ago
Sharat Sharma 21563bfc65 Maintain releasenotes for mistral dashboard
All the components of openstack maintain releasenotes. Similarly,
mistral dashboard must also maintain releasenotes. This adds
the releasenotes directory to the mistralclient repo.

Change-Id: Ia095ec4d6ac286cf6c27817765855a97a61502b1
Implements: blueprint maintain-releasenotes
7 years ago
Zhenguo Niu f01a2ed0c6 Remove "builtins = _" from tox.ini
"_" (ugettext_lazy) is defined by usual imports,
so "builtins = _" in tox.ini is unnecessary.

Change-Id: Ie3452b1ae1b57e0742f1846ff24c8edbdb850df1
8 years ago
hparekh 820f9f4b10 Delete python bytecode before every test run.
This should eliminate the need to clean -x -i to kill pyc files in
your local directory to get tests to pass.

Change-Id: I668c1baac23b29750fa19ccb0a4302504399dd75
8 years ago
Zhenguo Niu ea6d14f99c Remove H101, H803, H238 from ignore list
Enable H101 check,
H803 was removed from hacking,
Fix H238 errors and enable the check.

Change-Id: Ifa69d18bb1ee54f7b42c6a281d76dc720e2043ba
8 years ago
Zhenguo Niu 3c05709b93 Remove H302 check
we already removed H302 rule from hacking.

Change-Id: Idd9baf4b7eac680489e04ef2f6ec7624f8004694
8 years ago
Zhenguo Niu 79e6d9c136 Fix H306 errors
Change-Id: I1ff850e87979a05f5daec489d8a50008e2489e97
8 years ago
Zhenguo Niu 6014afd6c1 Enable Unit Test
Enable Unit Test add additional tooling to support running tests
and building virtual environments to mirror what is done in horizon.

Partially implements blueprint mistral-enrich-dashboard

Change-Id: I15b2b28a3a30e8c2ead3b2f68bf2986becbe7914
8 years ago
Christian Berendt 8fb902e2a3 Enable hacking check H306
* H306  imports not in alphabetical order

Change-Id: I8a679afa0893c84e391d3daddc85c3d8f29f60d8
9 years ago
Kirill Izotov 28bde7a230 Move dashboard from python-mistralclient
- add license headers
- set up tox for flake8 checks and venv
- remove, tools/ and other stuff we don't need at the moment
- add basic sphinx setup for later use

Change-Id: I0d34fb9fd0bfd351d20474da88715b30ff3c3d61
9 years ago