Commit Graph

446 Commits

Author SHA1 Message Date
Ghanshyam Mann 7114feec84 Update python classifier in setup.cfg
As per the current release tested runtime, we test
python version from 3.8 to 3.11 so updating the
same in python classifier in setup.cfg

Change-Id: I03447ec39b2456a8ae57fdfc3b1efc3ad9d256ef
2024-01-03 23:58:09 -08:00
Zuul 27fe8009b5 Merge "Use wf_identifier when creating a execution" 2023-02-07 18:59:27 +00:00
Zuul df869fdf60 Merge "Revert "Use workflow_id when creating a execution"" 2023-02-07 18:59:25 +00:00
Tobias Urdin 3f57545479 Use wf_identifier when creating a execution
The parameter in mistralclient was changed from
workflow_identifier to wf_identifier.

Change-Id: Idae13cd39c909127a0772e970426c98235e8a993
2023-02-07 13:41:01 +00:00
Tobias Urdin 1f33d6ec68 Revert "Use workflow_id when creating a execution"
This reverts commit 728b294add.

Reason for revert: This should be wf_identifier because it's using mistralclient and not the REST API.

Change-Id: I71e154f53f26655e9d1aeb93b0ee9d1ac21f0f49
2023-02-07 13:39:09 +00:00
Zuul 8edaafe2c3 Merge "Replace deprecated inspect.getargspec" 2023-02-05 21:58:45 +00:00
Tobias Urdin 728b294add Use workflow_id when creating a execution
The field workflow_identifier causes an exception
in the API and in Wallaby the API was moved to
using workflow_id.

Change-Id: I328ce3584f225dc47264a9cba10be7ca788b8e5b
2023-01-25 17:41:15 +00:00
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
2023-01-09 20:36:40 +00:00
OpenStack Release Bot cee7e2ae84 Switch to 2023.1 Python3 unit tests and generic template name
This is an automatically generated patch to ensure unit testing
is in place for all the of the tested runtimes for antelope. Also,
updating the template name to generic one.

See also the PTI in governance [1].

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

Change-Id: Ie4b3100688d0716fd7a9f7c4dc0d555f3bd4df10
2022-09-23 15:58:36 +00:00
OpenStack Release Bot a78160170b Update master for stable/zed
Add file to the reno documentation build to show release notes for
stable/zed.

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

Sem-Ver: feature
Change-Id: Ib3d216ece69333d6973e46f3363aa7f2fdfdfb27
2022-09-23 15:58:35 +00:00
jiaqi07 43903b7f3c remove unicode from code
Change-Id: I2c367b245f005466fdfefd5413324bb72056393d
2022-09-08 11:47:59 +00:00
Zuul a08b56b760 Merge "Enforce usage of raw definitions" 2022-08-12 10:02:14 +00:00
Zuul 56951582b5 Merge "Update TOX_CONSTRAINTS_FILE" 2022-08-12 09:45:31 +00:00
Zuul be78ab0352 Merge "Use TOX_CONSTRAINTS_FILE" 2022-08-12 09:40:35 +00:00
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
2022-08-12 09:08:32 +00:00
Zuul c3daa34c60 Merge "Address RemovedInDjango40Warning" 2022-08-08 17:11:04 +00:00
Zuul 5adb5bfad7 Merge "Replace deprecated ugettext_lazy and ungettext_lazy" 2022-08-08 16:53:57 +00:00
Zuul 04545fc3e7 Merge "Update python testing as per zed cycle testing runtime" 2022-08-08 16:53:55 +00:00
Zuul 14ae8f9ca4 Merge "remove unicode from code" 2022-08-08 16:44:41 +00:00
jiaqi07 bc7b44ecfd remove unicode from code
Change-Id: I177f8a85cca15b5e29ecb6247ea9ee4006b71d30
2022-08-03 17:31:18 +08:00
Takashi Kajinami 09d63aefbc Replace deprecated ugettext_lazy and ungettext_lazy
The ugettext_lazy method and the ungettext_lazy method are both
deprecated since Django 3.0[1].

These were already replaced in Horizon repo by [2].

[1] https://docs.djangoproject.com/en/3.0/releases/3.0/#id3
[2] cd7c1b5110fe1f64cd9dfbeb1072b37912d0efee

Change-Id: I6697e4c006e7b8ec94a08ad4625a1980582b4d6d
2022-07-11 02:47:44 +00:00
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
2022-07-10 15:18:42 +00:00
OpenStack Release Bot 649d174b55 Update master for stable/yoga
Add file to the reno documentation build to show release notes for
stable/yoga.

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

Sem-Ver: feature
Change-Id: Id2516847f2a07bfef49147f3bdc38e452a060916
2022-07-11 00:17:07 +09:00
manchandavishal 72e898910f Address RemovedInDjango40Warning
In Django 3.1, django.conf.urls.url() is deprecated
in favor of django.urls.re_path(). For more info see [1]
These were already replaced in Horizon repo by [2].

[1] https://docs.djangoproject.com/en/4.0/releases/3.1/#id2
[2] https://review.opendev.org/c/openstack/horizon/+/827093

Change-Id: I3e95a2ec718b473ffed698652f6bdaba4e9de8a5
2022-04-29 16:44:49 +05:30
manchandavishal 52283ee73a Update TOX_CONSTRAINTS_FILE
UPPER_CONSTRAINTS_FILE is old name and deprecated, Please see [1].
This allows to use lower-constraints file as more
readable way instead of UPPER_CONSTRAINTS_FILE=<lower-constraints file>.

[1] https://zuul-ci.org/docs/zuul-jobs/python-roles.html#rolevar-tox.tox_constraints_file

Change-Id: I28baaa83b3bfc2373c963b8b15575ca3ddfafd21
2022-01-28 18:17:41 +05:30
OpenStack Release Bot 0d5eb8c912 Update master for stable/xena
Add file to the reno documentation build to show release notes for
stable/xena.

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

Sem-Ver: feature
Change-Id: I5c1c10b6a48105e67dd1d28d499fe9f8d62b7cb6
2021-09-17 16:12:11 +00:00
Takashi Kajinami 8b876b0b22 Enforce usage of raw definitions
This change ensures that any definitions passed is treated as raw
contents. With this change mistral-dashboard no longer tries to load
contents based on file path or uri passed in by users, and this
prohibits access to any local files or any internal contents accessible
without authentication.

Depends-on: https://review.opendev.org/800950
Closes-Bug: #1931558
Change-Id: I4de45cadc4e174794d0c2ef82223a9da5cbdcabc
2021-09-05 20:46:13 +09:00
Takashi Kajinami e94c2b3d34 Replace deprecated inspect.getargspec
inspect.getargspec was deprecated since Python 3.0 and
inspect.getfullargspec is its replacement with correct handling of
function annotations and keyword-only parameters[1].

[1] https://docs.python.org/3/library/inspect.html#inspect.getargspec

Change-Id: I2f5c95b9dd00a2460e81788343c47a5206589693
2021-07-15 20:37:55 +09:00
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
2021-05-14 17:06:08 -05:00
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
2021-04-30 02:19:27 +00:00
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
2021-04-20 03:18:16 +00:00
Zuul 10a54c6343 Merge "Add Python3 xena unit tests" 2021-04-14 07:42:04 +00:00
Zuul 9e04d8b77e Merge "Update master for stable/wallaby" 2021-04-14 07:37:35 +00:00
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
2021-03-26 18:35:38 +00:00
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
2021-03-26 18:35:26 +00:00
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
2021-02-18 08:53:07 +00:00
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
2021-02-16 18:06:05 +00:00
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
2020-09-24 08:53:29 +00:00
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
2020-09-24 08:53:27 +00:00
Zuul 4a80f08352 Merge "[goal] Migrate testing to ubuntu focal" 2020-09-02 07:13:35 +00:00
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
2020-09-01 16:19:30 +00:00
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
2020-08-26 12:22:42 +00:00
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
2020-06-09 01:22:41 +02:00
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
2020-05-31 19:32:16 +02:00
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>
2020-04-24 10:25:43 -05:00
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>
2020-04-24 08:22:36 -05:00
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
2020-04-23 12:25:36 +00:00
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
2020-04-23 12:25:35 +00:00
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
2020-01-20 18:38:54 +02:00
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
2020-01-11 16:42:13 +01:00