Commit Graph

419 Commits (4afa41b90fdc1d94c4a9c7e30be103699dbfe39c)
 

Author SHA1 Message Date
Takashi Kajinami 4afa41b90f Update python testing as per zed cycle testing runtime
In Zed cycle, we have dropped the python 3.6/3.7[1] testing
and its support. Add release notes and update the python
classifier for the same.

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

Co-Authored-By: Ghanshyam Mann <gmann@ghanshyammann.com>
Change-Id: I6e78e80c2e5c4e5a39bd3c3dfbfddaf3973abb77
11 months ago
Ghanshyam Mann 2980dfc44f [community goal] Update contributor documentation
This patch updates/adds the contributor documentation to follow
the guidelines of the Ussuri cycle community goal[1].

[1] https://governance.openstack.org/tc/goals/selected/ussuri/project-ptl-and-contrib-docs.html

Story: #2007236
Task: #38537
Change-Id: I8b318b0a915de1875f6b2f81fd104483f716d802
2 years ago
songwenping fa785b2bb8 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: I136843f66db8d10f59fa95bd69c87c7dde15632c
2 years 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.

[1] https://governance.openstack.org/tc/reference/runtimes/wallaby.html#python-runtimes-for-wallaby
[2] https://governance.openstack.org/tc/reference/runtimes/victoria.html#python-runtimes-for-victoria

Change-Id: I6ca58e8e71b95ce560c1f04be41bb783ae46b74c
2 years ago
Zuul 10a54c6343 Merge "Add Python3 xena unit tests" 2 years ago
Zuul 9e04d8b77e Merge "Update master for stable/wallaby" 2 years ago
OpenStack Release Bot 6b73bda39e Add Python3 xena unit tests
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for xena.

See also the PTI in governance [1].

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

Change-Id: I3a42ec28f6c4a2de874b83a1f0230c12fec5cea1
2 years ago
OpenStack Release Bot ce7a94945a Update master for stable/wallaby
Add file to the reno documentation build to show release notes for
stable/wallaby.

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/wallaby.

Sem-Ver: feature
Change-Id: I25353ef4cf2d31da031e715ad797f42c149da500
2 years ago
shubham 7fd7c820d1 Setting DEFAULT to False.
In openstack when user logged in, user is redirected to project page
but after installation of mistral , now default dashboard page is
set to mistral.
In order to make project as default dashboard page setting
DEFAULT as False.

Change-Id: I663149cc4986f5c1ca83a819eb10bf484baa228a
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
OpenStack Release Bot 63fa310920 Add Python3 wallaby unit tests
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for wallaby.

See also the PTI in governance [1].

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

Change-Id: Iff841e79b6afc850fd0467ba110283c4be777efa
3 years ago
OpenStack Release Bot a6bc0458b2 Update master for stable/victoria
Add file to the reno documentation build to show release notes for
stable/victoria.

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/victoria.

Change-Id: I5e3038346f9b778aef16c5e0da8b015f97edd734
Sem-Ver: feature
3 years ago
Zuul 4a80f08352 Merge "[goal] Migrate testing to ubuntu focal" 3 years ago
manchandavishal c9e8d95c09 [goal] Migrate testing to ubuntu focal
As per victoria cycle testing runtime and community goal[1]
we need to migrate upstream CI/CD to Ubuntu Focal(20.04).

Fixing:
Closes-Bug: #1886296
Bump the pyflakes to 2.1.1 as min version to run pep8 jobs
on py3.8 which is default python vesion in ubuntu focal.

Story: #2007865
Task: #40196

[1] https://governance.openstack.org/tc/goals/selected/victoria/migrate-ci-cd-jobs-to-ubuntu-focal.html
Change-Id: I29eae255a0cb87c41d1d739e3bb608c303c5b9b8
3 years ago
manchandavishal 0af8c03faf Cleanup for Refactor-error-messages
This patch is a clean-up patch for refactor-error-messages bp
which remove the exception message from base message otherwise
the same exception message display twice like
this https://ibb.co/XyFWMdz .

Change-Id: Ib56b35b164057b821b5e9755202b87c9e1ea5572
3 years ago
Hervé Beraud d46e3cf3e4 Use unittest.mock instead of mock
The mock third party library was needed for mock support in py2
runtimes. Since we now only support py36 and later, we can use the
standard lib unittest.mock module instead.

Change-Id: Iacfc706dc2a0c5d845c7473d7e0123c20a2b20ee
3 years ago
Andreas Jaeger 0317054c51 Switch to newer openstackdocstheme and reno versions
Switch to openstackdocstheme 2.2.1 and reno 3.1.0 versions. Using
these versions will allow especially:
* Linking from HTML to PDF document
* Allow parallel building of documents
* Fix some rendering problems

Update Sphinx version as well.

Change pygments_style to 'native' since old theme version always used
'native' and the theme now respects the setting and using 'sphinx' can
lead to some strange rendering.

openstackdocstheme renames some variables, so follow the renames
before the next release removes them. A couple of variables are also
not needed anymore, remove them.

See also
http://lists.openstack.org/pipermail/openstack-discuss/2020-May/014971.html

Change-Id: I4ae8e3811b184219c1715af0629f668b393ad3c2
3 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 <sean.mcginnis@gmail.com>
3 years ago
Sean McGinnis fc3033db0a
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: I03c16d54a670974e5949b25240011ddfc10f95f8
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
3 years ago
OpenStack Release Bot bef1a4cc02 Add Python3 victoria unit tests
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for victoria.

See also the PTI in governance [1].

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

Change-Id: I4eec1727ce4867df3eb30ecbd360480716f6bf41
3 years ago
OpenStack Release Bot a63a7b7ed0 Update master for stable/ussuri
Add file to the reno documentation build to show release notes for
stable/ussuri.

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/ussuri.

Change-Id: I9b98cd7b175b496fa617f98da38f2cbb56226b30
Sem-Ver: feature
3 years ago
Ivan Kolodyazhny 9c19e28c21 s/assertItemsEqual/assertCountEqual/g
assertItemsEqual was renamed to assertCountEqual in Python 3, and the
testsuite is failing now - rename it.
See also https://six.readthedocs.io/#six.assertCountEqual

This unbreaks the testsuite.

Change-Id: I910c7f2b3eae107a8d8022366f738b006cf4831a
3 years ago
Andreas Jaeger e6f423604a Remove six usage
This repo does not support Python 2 anymore, so we don't need
six for compatibility between Python2 and 3, convert six usage to Python
3 code.

Change-Id: Id84564d8350fb793a2511abae218db17ea122873
Needed-By: https://review.opendev.org/701743
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.

Depends-On: https://review.opendev.org/#/c/700733/
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
- 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/
Change-Id: Ib39cbe4f526d5ace03f959e21eb4907c97ac7b65
4 years ago
sunjia c173e7fa23 Switch to Ussuri jobs
Change-Id: I19c8b887ea616f5688fcc5b67abde20f5b4a6b68
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]

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

Change-Id: Ib3e48ff828faef59a6594f9a1155eaa3a8bf0cf0
4 years ago
OpenStack Release Bot ac2d3bf503 Update master for stable/train
Add file to the reno documentation build to show release notes for
stable/train.

Use pbr instruction to increment the minor version number
automatically so that master versions are higher than the versions on
stable/train.

Change-Id: Idc64656ad8222171003f902a0853830087d89922
Sem-Ver: feature
4 years ago
Bo Tran 538fc12dff Fix error when use keystone federation
If we config keystone federation, we was received a error when
we change to region other.

Change-Id: Ie475b8ab5b40d5b365eeb9f63ecb34b13a810f8c
4 years ago
Zuul ee3680a4d6 Merge "Remove redundant exception handling" 4 years ago
pengyuesheng 809416b7b5 Refactor error messages
This patch refactors error messages and
shows the detailed error message

Change-Id: I4d7fc03c9368bf20cd374097ff210e1ecb952d23
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:
https://governance.openstack.org/tc/goals/train/python3-updates.html

Change-Id: I298d3edae82bb54d8f23bd87be8cd641edec9714
Story: #2005924
Task: #34222
4 years ago
pengyuesheng 773b34937c Remove redundant exception handling
Some interfaces have been treated abnormally in [1] and [2],
The exception has been processed using handle_errors,
there is no need to do additional processing later.

[1] https://github.com/openstack/mistral-dashboard/blob/master/mistraldashboard/api.py#L358-L365
[2] https://github.com/openstack/mistral-dashboard/blob/master/mistraldashboard/api.py#L347-L355

Change-Id: I0dd4709072e23615054d4c8511f0766bab3a62ea
4 years ago
Zuul 924a681a5a Merge "Follow the new PTI for document build" 4 years ago
Zuul 9f1a186c74 Merge "Add the unit test for executions" 4 years ago
Zuul f9f2881ff2 Merge "Add the unit test for cron_triggers" 4 years ago
Zuul ce95be2d5f Merge "Remove the ErrorHandleTests class" 4 years ago
pengyuesheng a7d67256c9 Remove the ErrorHandleTests class
ErrorHandleTests is not being used, so remove it

Change-Id: Ib0774e90a202e46213cbe733333c2e675d02fc91
4 years ago
pengyuesheng 5d1f9ab4c0 Modify the name of action_executions panel
Change-Id: I9ae90abc4945b6600582a443a2726cfc405b1084
4 years ago
pengyuesheng 51166f3ebe Follow the new PTI for document build
The detail is described in the following links:
https://governance.openstack.org/tc/reference/project-testing-interface.html
http://lists.openstack.org/pipermail/openstack-dev/2017-December/125710.html

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 e5b94ec93b Add the unit test for executions
Change-Id: I89145b7bb71cbcb74c7a29534362bbf0c558a5f7
4 years ago
pengyuesheng b7d63224ee Add the unit test for cron_triggers
Change-Id: Ic792830a679a14b9a349ad1a07349575999a72c5
4 years ago
Zuul 37e16b2753 Merge "Add the unit test for create and update action" 4 years ago
pengyuesheng b7a408a19b Add the unit test for update_action_execution
Change-Id: I73464cbb8d561ad2d9b30c976fc7afaba6a8b300
4 years ago
pengyuesheng 293cf1cc35 Add the unit test for create and update action
Change-Id: I05dc7bacaa155d7c1deae97e3c7e9786f7bc177d
4 years ago
Zuul 63f404e38c Merge "Add the unit test for action_executions detail" 4 years ago
Zuul 050a8d0838 Merge "Add the unit test for executions detail" 4 years ago
Zuul 3b1728d02b Merge "Add the unit test for tasks detail" 4 years ago
Zuul 770d19fce0 Merge "Add the unit test for workbooks detail" 4 years ago
Zuul e7def38207 Merge "Add the unit test for workflows detail" 4 years ago