Commit Graph

203 Commits

Author SHA1 Message Date
Zuul 2f92367896 Merge "Wait till execution is success for test_task_type" 2023-01-18 09:07:42 +00:00
Vasudeo Nimbekar 3af5d65d6e Wait till execution is success for test_task_type
As a part of blueprint distribute-mistral-operations, we have added changes to run task with RPC. Tasks will be created in IDLE state and RPC request will be created to run tasks.
In test_task_type UT, we are using nested workflow where first task is responsible to start inner workflow, due to above changes first task is created in IDLE state so, we should wait till execution success to assert all the types of tasks getting created for this workbook.

linked-to: https://review.opendev.org/c/openstack/mistral/+/869193/


Change-Id: If8fea6184d45365c20203df945e1b092449225b8
2023-01-13 11:24:21 +00:00
Axel Vanzaghi 526622fd4e Update Zuul queue configuration
Zuul is changing how queues are declared[1]

[1] https://lists.zuul-ci.org/pipermail/zuul-discuss/2022-May/001801.html

Also,
- fixing tox.ini as per the tox4
- remove stable branch testing which are in EM state

Change-Id: I1ffb896e0d30b4162e3c22f13462477feb4acba4
2023-01-09 12:42:00 -06:00
Zuul a233752e11 Merge "Update python testing as per zed cycle testing runtime" 2022-09-02 16:31:09 +00:00
LiZekun e62f8b98d3 Remove unicode literal from code
All strings are considered as unicode literal string from Python 3.

This patch drops the explicit unicode literal (u'...')
appearances from the unicode strings.

Change-Id: I34066bcaa6d30f4a6702fd5cfff8498b68433d98
2022-09-02 14:08:06 +00:00
LiZekun acef086323 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. Removing the py36 centos8 job as well as
updating the python classifier also to reflect the same.

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

Change-Id: Ib3bea2d4db1cb1d945ee0e9e85cec1bd926de8ef
2022-09-02 14:07:25 +00:00
niuke 875971cae2 remove unicode prefix from code
Change-Id: If83bb0d3b60852c4ffb09df021f538b171f0429f
2022-08-22 19:38:30 +08:00
LiZekun d16c741198 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: I82d2497ef2eb25888dafa809dc0653b363aada86
2022-06-08 01:06:56 +00:00
Takashi Kajinami 324eba5deb Skip failing tests temporarily
Currently test_multi_vim_support_target_headers is continuously failing
possibly because of some changes in dependent libraries.

Until we sort out the problem, let's disable it so that we can unblock
the CI.

Related-Bug: #1964344
Change-Id: I1fa515ea851c38b4ace6cf3657106d22c0e9777c
2022-03-09 21:59:58 +09:00
Ghanshyam Mann 091926bbb4 [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: Ifde9c6b18a034e2784459a9dbfb22b080166781e
2021-07-06 14:03:23 +00:00
songwenping 437e2b680c 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: I59551c46d943fdc5224721a8f0d8003c0ac7e8d9
2021-04-30 02:21:04 +00:00
songwenping bad014e35c 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: I832d5805a138d7d091dffa100110c90cb80c23b4
2021-04-20 03:23:42 +00:00
Renat Akhmerov 776b590bd6 Adjust Actions API tests
* Some more adjustements to the Actions API tests related to
  the Action Provider transition. Some tests have to be temporarily
  disabled because there's no way to make them on both current
  version of Mistral and the version including action providers.

Change-Id: I13033253d5098655a001135c8702d1b1d13e76d4
2020-09-24 18:06:34 +07:00
Renat Akhmerov b9c3d57249 Fix Action API tests
* It's part of the Action Provider refactoring. The API had to
  slightly change.
* Pagination has to be still implemented.

Change-Id: Ibc26645a90101eceab507e7c7755cdd4fbbf7536
2020-09-24 11:51:48 +07:00
Ghanshyam Mann c3bf5af360 [goal] Migrate mistral-tempest-plugin jobs to focal
As per victoria cycle testing runtime and community goal[1]
we need to migrate upstream CI/CD to Ubuntu Focal(20.04).

Most of the Tempest jobs will be migrate automatically once devstack
base job start running on Focal(Depends-On).

Stable jobs testing stable branch needs to keep running on their supported
distro version which is bionic from stein till ussuri.

[1] https://governance.openstack.org/tc/goals/selected/victoria/migrate-ci-cd-jobs-to-ubuntu-focal.html

Change-Id: I3651224de022bff78840df8cd6ca95792dc5cce5
Story: #2007865
Task: #40196
2020-07-31 17:20:31 +00:00
Andreas Jaeger 64d1029c1b 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.

Disable openstackdocs_auto_name to use 'project' variable as name.

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: I008d8e3aeeffb1c4ef97cca9c03599d85393aa3f
2020-05-31 19:37:16 +02:00
inspurericzhang 66f2455ac1 Add py38 package metadata
Change-Id: I19e72d79de5a6212c3901f1ce5b6640cb285310c
2020-05-28 11:42:15 +08:00
Ghanshyam Mann 4d9545bd41 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.

- http://lists.openstack.org/pipermail/openstack-discuss/2020-May/014828.html

Change-Id: I4f7aa67e0663ddea6a5200a55005cf2ce5a0396e
2020-05-12 19:29:38 -05:00
Zuul 7b4f6b65c9 Merge "Add stable branch jobs on the plugins master gate" 2020-05-12 07:09:46 +00:00
Eyal d9a58d0ca9 try to fix pip error
Change-Id: If4746b8ce991f83d613cd02db4aeb1f7a9e8b027
2020-05-08 13:22:00 +03:00
Ghanshyam Mann 9482b6530d Add stable branch jobs on the plugins master gate
Supported stable branches in maintenance state
(stein, train, ussuri) use the Tempest and plugins master
version for their testing. To make sure master version (new
tests or any changes) is compatible with stable branch testing,
we need to add the stable branches job on the plugins master gate.
Tempest and many other plugins are already testing the stable
branches in same way[1].

Ussuri onwards, Tempest or plugins are py3 only, so we are
running only python3 version of stable jobs

Tempest plugins guide for stable branch testing:
- https://docs.openstack.org/tempest/latest/stable_branch_testing_policy.html

 [1] e8f1876aa6/.zuul.yaml (L646)

Change-Id: I9498979712375715eab79e77a1c0e89d0efe33b5
2020-05-05 17:14:42 -05:00
Renat Akhmerov 3ff9a7efc4 Setting Python version explicitly to 3 for devstack jobs
* Backports to stable/train are now failing because tempest requires
  Py3 but for some reason Py2 is provided. So we have to explicitly
  define the version of Python in master because there are no
  stable branches for tempest.

Change-Id: I19b57e686306b9d3f26bc5a0228ebf5d7c08bb20
2020-04-02 15:47:53 +07:00
Eyal 6f746b9228 Fix preinstalled workflows tests
The 'std' prefix was removed from the workflow name
make sure it passes on both cases.

Change-Id: I9bd36bf2ad1a36ff569f385190c186b63b78f1e1
2020-02-26 14:31:28 +02:00
Zuul 3fca72a658 Merge "Drop support in py2" 2020-02-18 10:43:11 +00:00
Zuul 77470a9c47 Merge "Remove some pycharm warnings" 2020-02-18 10:42:57 +00:00
Zuul 6eb1fba9e2 Merge "Add mistral-extra to required projects in zuul" 2020-02-11 10:29:33 +00:00
Eyal f0d3f2e092 Remove some pycharm warnings
* Mutable default arg
* Use of reserved names as parameters
* Missing requirements
* Unused parameters
* use static method
* Doc errors

Change-Id: Iaf7efa263398005ba1fa7261c894c85cb2fbcf47
2020-02-11 10:44:26 +02:00
Eyal 792bf80f8c Drop support in py2
Change-Id: I199ccdbf6684c1bc979428898a7d9094a7267f9d
2020-02-04 13:50:03 +02:00
Eyal cc3455b732 Skip service api if not supported
The Service api was fixed and supported only in ussri
Don't run it if not supported

see: https://review.opendev.org/#/c/700507/
     https://review.opendev.org/#/c/700517/
     
Change-Id: I84ddb8a075269dc475fb56e0fc5ecabd28bba1a8
2020-01-30 07:53:16 +00:00
Eyal d3267bfc06 Add mistral-extra to required projects in zuul
Change-Id: Ibfe40f6a442317d2879ee5a36682134d439de33e
2020-01-27 11:00:05 +02:00
Ghanshyam b5fcd31c06 [ussuri][goal] Drop python 2.7 support and testing
OpenStack is dropping the py2.7 support in ussuri cycle.

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

Removing the USE_PYTHON3=True from base job so that it can
keep running  on py3 for < ussuri branches.

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: I060587c96baba096525211ffccbe29f71b38760d
2020-01-23 13:17:47 -06:00
Eyal 67f38b4826 Fix requirements, tox
Change-Id: Ia96244290428e374ec22ee250264225d708ddc87
2020-01-15 16:14:24 +02:00
Zuul a99e8f6207 Merge "Add test service api" 2020-01-09 10:20:11 +00:00
Eyal a4c54667f9 Add test service api
Also drop py27 support and remove pypy

Depends-On: https://review.opendev.org/#/c/700507/
Change-Id: I23f92c8f514e51b90bdf01a46278e7b53282117d
2019-12-30 10:34:02 +00:00
Zuul c062283294 Merge "[train][goal] Define new 'mistral-devstack-tempest-ipv6-only' job" 2019-12-27 05:54:42 +00:00
Ghanshyam Mann 4805d2ea5e [train][goal] Define new 'mistral-devstack-tempest-ipv6-only' job
As part of Train community goal 'Support IPv6-Only Deployments and Testing'[1],
Tempest has defined the base job 'devstack-tempest-ipv6' which will
deploy services on IPv6.

This commit adds the new job 'mistral-devstack-tempest-ipv6-only'
run on gate which is derived from 'devstack-tempest-ipv6'.

Verification structure will be:
- 'devstack-IPv6' deploy the service on IPv6
- 'devstack-tempest-ipv6' run will verify the IPv6-only setting and listen address
- 'mistral-devstack-tempest-ipv6-only' will run the tests.
- 'mistral-devstack-non-apache-tempest-ipv6-only' will run the tests.

Story: #2005477
Task: #35905

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

[1] https://governance.openstack.org/tc/goals/train/ipv6-support-and-testing.html

Change-Id: Iacd2d9cb5effde9a801010ce3e5f590f47f8831e
2019-12-25 12:14:45 +02:00
caoyuan 9bd2ff9607 tox: Keeping going with docs
Sphinx 1.8 introduced [1] the '--keep-going' argument which, as its name
suggests, keeps the build running when it encounters non-fatal errors.
This is exceptionally useful in avoiding a continuous edit-build loop
when undertaking large doc reworks where multiple errors may be
introduced.

[1] https://github.com/sphinx-doc/sphinx/commit/e3483e9b045

Change-Id: If027d55cea9fd88fadbb1539bbe713b2c2a7bd29
2019-10-24 21:25:19 +08:00
Kien Nguyen 3c3a6cc2a1 Add test for OpenStack services dynamic versions
Depends-On: https://review.opendev.org/#/c/621470/
Change-Id: I28e7bced65386b01ebb7024a942b95eb5455be6f
2019-09-03 01:33:49 +00:00
Eyal 8711269242 use python3 for gate
Change-Id: Idc39d6f6e367d3dea673d48a160b8314a51394e8
2019-08-25 12:56:27 +03:00
Andreas Jaeger dee6cd7570 Fix mistral-devstack quoting
Remove double quoting that suddenly confuses the job.

Change-Id: I58f1943d427c83c72e9bf17f99f3f870ba7d008b
2019-06-27 15:11:47 +02:00
jacky06 2fa0ce696f Sync Sphinx requirement
1. Sync sphinx dependency with global requirements. It caps python 2 since
sphinx 2.0 no longer supports Python 2.7.
2. Remove unncessary "=="

Change-Id: I0008ca81b9c753d26ef97e10957a1745d340d2c0
2019-06-19 22:38:42 +08:00
Andreas Jaeger 1dd821f27c Update docs job
build-openstack-sphinx-docs jobs are obsolete since some time,
use the newer build-openstack-docs-pti jobs instead - using
a template.

Update tox.ini to use proper sphinx-build invocation.

Change-Id: Idfa081711a24a6076e8b9a0ca770423d6fa62f94
2019-05-19 16:18:45 +02:00
jacky06 1289278bf8 Replace git.openstack.org URLs with opendev.org URLs
Thorough replacement of git.openstack.org URLs with their opendev.org counterparts.

Change-Id: Id6768e790fbcf4e73cde4e479e0f31ed5e1a9b8d
Closes-Bug: #1826041
2019-04-24 02:03:45 +08:00
OpenDev Sysadmins 5afa43e795 OpenDev Migration Patch
This commit was bulk generated and pushed by the OpenDev sysadmins
as a part of the Git hosting and code review systems migration
detailed in these mailing list posts:

http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003603.html
http://lists.openstack.org/pipermail/openstack-discuss/2019-April/004920.html

Attempts have been made to correct repository namespaces and
hostnames based on simple pattern matching, but it's possible some
were updated incorrectly or missed entirely. Please reach out to us
via the contact information listed at https://opendev.org/ with any
questions you may have.
2019-04-19 19:27:27 +00:00
Zuul 97d2e45a47 Merge "Update json module to jsonutils" 2019-04-08 12:26:23 +00:00
Renat Akhmerov dcbfc8257c Disable SSH actions tests till they are stable
Change-Id: I0378297e099412191a4adc41e53b0eb23f6c43ae
2019-04-03 22:09:33 +07:00
cao.yuan 6794295cb2 Update json module to jsonutils
oslo project provide jsonutils, and mistral-tempest use it in many place[1],
this PS to update the remained json module to oslo jsonutils for
consistency.

[1]: https://github.com/openstack/mistral-tempest-plugin/search?utf8=%E2%9C%93&q=jsonutils&type=

Change-Id: I3872e3d10e103439fdf4005785d46ed580e520af
2019-03-18 10:00:34 +08:00
Zuul d724aaeafe Merge "Update hacking version to latest" 2019-01-14 08:23:53 +00:00
inspurericzhang afc217bcf9 Update hacking version to latest
Change-Id: I1d8a79faf168391fba1058c9d0ad91048b250a5e
2019-01-09 10:15:32 +08:00
zhulingjie ce6739f387 Update hacking version to latest
Change-Id: Ie1fc3ed3ef23959f9d266561eb4fd749209a139b
2019-01-05 01:02:15 +08:00