Commit Graph

180 Commits

Author SHA1 Message Date
Zuul b4c15e4e9e Merge "Update python classifier in setup.cfg" 2024-03-19 10:54:45 +00:00
Vadim Zelenevsky 737e09646f Headers propagation from an execution request to actions/notifications
Currently Mistal doesn`t support distribution tracing, which means
that there`s no way to propagate traceId/spanId from an execution to
related actions/notifications.
It leads us to an issue, because according to distribution tracing
principles "traceId" should remain the same during the discovery
process, which includes Mistral worflow execution.
Proposed solution is to keep some headers from execution request
and propagate them later to actions/notifications.
Regexp can be stored as env variable to define headers which
will be propagated.

Implements blueprint add-headers-propagation

Change-Id: Id8cc900a7d94286e79f1ece4dc4177383263f55c
2024-03-14 17:12:17 +03:00
Oleg Ovcharuk 5d7fd30ba3 New fields added to action execution context
* with_items_index describes the current index of action,
if there is no with-items tasks it should be 0.
* task_rerun_no describes the current rerun index,
if it is first run it should be 0.
* task_rerun_id specifies id task has within
each rerun. This id should be refreshed after each rerun.

All these fields will be helpful for writing custom actions

Change-Id: I2b76f5cedcac942e3b6a6e9488ae89024c4f1b34
Signed-off-by: Oleg Ovcharuk <vgvoleg@gmail.com>
2024-03-14 11:32:21 +00:00
Zuul cdb47f994b Merge "reno: Update master for unmaintained/yoga" 2024-03-14 09:57:23 +00:00
OpenStack Release Bot c6d35ba960 Update master for stable/2024.1
Add file to the reno documentation build to show release notes for
stable/2024.1.

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

Sem-Ver: feature
Change-Id: I81e4c62b78668417960feab4d0d7596b0d2dafdc
2024-03-08 14:08:41 +00:00
OpenStack Release Bot e0e8fff7e8 reno: Update master for unmaintained/yoga
Update the yoga release notes configuration to build from
unmaintained/yoga.

Change-Id: Icc3eedde6185da5d51336a7aee60a46a557f17be
2024-02-23 12:19:59 +00:00
Ghanshyam Mann 7ccd79bb4f 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: Ic44a4103ce1593ba2e318407dd107e32073e60b9
2024-01-03 23:58:35 -08:00
OpenStack Release Bot d11fa81ec5 Update master for stable/2023.1
Add file to the reno documentation build to show release notes for
stable/2023.1.

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

Sem-Ver: feature
Change-Id: Ic67f8cc66632f9186309006bddefe8434f6fe491
2023-11-07 10:23:27 +01:00
OpenStack Release Bot 4cafa4d4e0 Update master for stable/2023.2
Add file to the reno documentation build to show release notes for
stable/2023.2.

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

Sem-Ver: feature
Change-Id: I8c796af0be2df1289535338270feacf4ca283a4b
2023-09-15 14:44:25 +00:00
Ghanshyam Mann 7bbfa4f945 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: Id8d5c7bed75b6dc813203d2e814642855d645b6c
2023-01-09 13:24:25 -06:00
OpenStack Release Bot 5e509fdee6 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: I0451ef945da71d72e36f783476207d042cc7359a
2022-09-23 16:32:03 +00:00
OpenStack Release Bot cb44375ff0 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: Ia1f9cab531180d369af7a52cd439d1854f6c53f0
2022-09-23 16:31:59 +00:00
Zuul 18e4c69324 Merge "remove unicode from code" 2022-08-12 09:50:04 +00:00
wu.shiming 7a2d1e9ebf Changed minversion in tox to 3.18.0
The patch bumps min version of tox to 3.18.0 in order to
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: Ia2783052dbb9d82aa99ce18e6c60d2580b3ea7db
2022-05-22 14:06:36 +00:00
Takashi Kajinami 38ffc83836 Add Python3 zed unit tests
Unfortunately the auto generated patch to replace the unit test job
template was not merged timely, and the test runtime used is outdated.

This simulates the auto generated patch to use the correct test
runtime for the stable/zed release.

This also marks Python 3.9 as supported runtime, because it has been
part of the global tested runtime.

Change-Id: I42608e9c5227a9815ef8dff6f87fd03fe53deba0
2022-05-22 23:05:42 +09:00
OpenStack Release Bot 57f635cb29 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: I15cd6ea3ca8e8d486b19a4d16c7f754a7a88a2b6
2022-03-04 17:18:08 +00:00
shanyunfan33 2f43f651e8 remove unicode from code
remove unicode from code

Change-Id: I4a5ecfccac4047803b069034575bda8e3baae985
2022-01-26 17:29:08 +08:00
Ghanshyam Mann 44c33f2ccd [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: I4f0f5273a9461d443ac05e41337a6c86ce6250bd
2021-07-06 14:02:04 +00:00
songwenping 2068c9ca09 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: Icf89656e4c9eeb2fed19dba3b6be78b4716c4fe3
2021-04-30 02:00:44 +00:00
songwenping b49b6e4684 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: I5aec8ad5fda23e3ffbb16a08a0b4626c3fc8db96
2021-04-27 05:56:29 +00:00
songwenping 83b2d7ec4e Dropping lower constraints testing
We facing errors related to the new pip resolver, this
topic was discussed on the ML and QA team proposed to
to test lower-constraints [1].

I propose to drop this test because the complexity and recurring pain needed
to maintain that now exceeds the benefits provided by this mechanismes.

[1] http://lists.openstack.org/pipermail/openstack-discuss/2020-December/019390.html

Change-Id: Iccaf7cfb8051ec1b01fde0786489855013297703
2021-04-25 03:03:36 +00:00
OpenStack Release Bot adb30bd63e 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: Iefd29ddbbdfddc94ac4412e691422d30a7c3a4e8
2021-03-19 18:08:43 +00:00
OpenStack Release Bot 95724c5ad0 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: Ib6598c988a9ed3a8a3fe66a422eb5e6645de6459
2020-09-04 13:07:10 +00:00
OpenStack Release Bot 8fc076181a 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: I6c9797354d70bac6328cd728be2fd0f6896f3a9c
Sem-Ver: feature
2020-09-04 13:07:08 +00:00
Zuul 64416fdae0 Merge "Add more specific description to param_spec" 2020-09-04 06:57:41 +00:00
Andras Kovi 245c1272f2 Add more specific description to param_spec
Change-Id: I312f1f4b26de31b7a0b6040e371e2e02760728d9
2020-09-04 07:38:03 +02:00
Renat Akhmerov 828e7caca0 Release notes for action providers
Change-Id: Iad67cbb5ac374952b60a02657770fed56c5c41b6
2020-09-04 12:14:41 +07:00
Renat Akhmerov f818f1f02c Add main entities related to action providers
* This patch adds the base infrastructure for the new concept
  that we call Action Providers. It will allow to refactor
  Mistral in a way that all action management will be encapsulated
  with action providers. For example, Mistral Engine needs to
  schedule actions while processing a workflow. Now it has to
  access DB itself to find an action definition (meta info about
  what this action is, like python class, input params etc.),
  then prepare input parameters, validate parameters and send a
  message to an executor to run it. In many other places, Mistral
  also directly access DB to fetch an action definition. It's
  not flexible because we assume that definitions of Mistral
  actions must always be stored in DB. The concept of an Action
  Provider allows moving away from that limitation. A particular
  implementation of the ActionProvider interface can store action
  definitions in any suitable way, even fetching them using
  various transport protocols like AMQP, HTTP, TCP, or anything
  else. An action provider may also generate action definitions
  dynamically, like creating wrappers around a set of operating
  system commands. But for the rest of the system it won't matter
  what happens inside action providers. All details will be
  hidden behind a unified interface.
* Added ActionDescriptor interface and its convenience base
  abstract implementation. ActionDescriptor is an entity
  representing an action before it's instantiated. It carries
  the most important meta information about an action like name,
  description, input parameters etc. It is also responsible for
  validating action input parameters and instantiating a real
  action.
* Added PythonActionDescriptor which represents a regular action
  written as a Python class.
* Added CompositeActionProvider that delegates calls find() and
  find_all() to a collection of other action providers.
* Minor style changes.

Partially implements: bp/mistral-action-providers

Change-Id: Ic9108c9293731b3576081c75f2786e1156ba0ccd
2020-09-03 17:16:50 +07:00
Zuul 301c17e7ea Merge "drop mock from lower-constraints" 2020-06-09 04:01:21 +00:00
Hervé Beraud 01ab65208b drop mock from lower-constraints
The mock third party library was needed for mock support in py2
runtimes. Since we now only support py36 and later, we don't need it
in lower-constraints.

These changes will help us to drop `mock` from openstack/requirements

Change-Id: I7f0cc935291e5c0c4f905ad2aa0fb03e6192abb0
2020-06-09 01:23:17 +02:00
Renat Akhmerov d888fe240c Remove misplaced constants describing worklow task types
* These constants have nothing to do with this project. They should
  be in the 'mistral' repo.
* Minor style changes.

Change-Id: Ia3f50388638d68bbcc5e2e9e424ddb9dd65b26eb
2020-06-04 18:26:45 +07:00
Andreas Jaeger d137023727 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.

Remove docs requirements from lower-constraints, they are not needed
during install or test but only for docs building.

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: I8e00e8863e8c3d86bebeec87e80fc26ad1f66323
2020-05-31 19:39:18 +02:00
cuiweibo 62403af7e0 Remove six
Change-Id: I7977cdc6cad3d80e5239f65b0f2b6a120b05e341
2020-05-21 22:37:39 +08:00
cuiweibo a39d66f94c add release-note link to README
Change-Id: I755589762e17e99649868ec16c61f859dba15370
2020-05-21 14:21:09 +08:00
Ghanshyam Mann 775ff74899 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: Ief6bc5af5ee7f12053d15a8fb72c0f3e14b671e1
2020-05-12 19:28:49 -05:00
Sean McGinnis 32cc70f089
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: I2106373bc267a780eb600eead17dc12aaddf0dd1
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-04-24 10:25:43 -05:00
Sean McGinnis 55eba920e7
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: I0c0205e7c1673352435aab4d15fe6afcbb80e043
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-04-24 08:22:36 -05:00
OpenStack Release Bot 0f3db80624 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: Ia8253f1d86c102c3f65ff346fb7aabdfdcf4f641
2020-04-11 18:44:36 +00:00
OpenStack Release Bot 9b60cadb79 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: I238df0d6544ef14f683f943ea6eb5f6a0bcfb8e4
Sem-Ver: feature
2020-04-11 18:44:33 +00:00
Renat Akhmerov 44a2738460 Add a utility for JSON serialization
* This patch adds a utility that helps serialize data into a JSON
  string that might contain some non-standard data types like
  generators iterators and frozen dicts coming from YAQL. The
  utility uses oslo.serialization project that already takes care
  of iterators and any kinds of custom dicts. And in addition, it
  handles generators (assuming a generator represents an iterable
  similar to an iterator).
* Unit tests.
* Added YAQL into requirements and bumped the version of
  oslo.serialization to make sure to have the "fallback" parameter
  in "jsonutils.to_primitive"

Change-Id: I2fe891525bc86beb92aecf9ac2d8a490837c47d3
2020-03-31 18:33:05 +07:00
Eyal 237a10d22e Support getting a file list from a module that isn't mistral
Change-Id: I3157f9de4f2905dbc4f77257abbbc9f65093a63b
2020-02-26 09:44:56 +02:00
Zuul 3055caf8d8 Merge "Remove python2 support" 2020-02-20 11:06:29 +00:00
Andreas Jaeger b97e383918 [ussuri][goal] Cleanup python 2.7 removal
OpenStack is dropping the py2.7 support in ussuri cycle.

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

This removes some cruft from Python 2.7 support.
Raise requests lower-constraint to satisfy oslo.config.

Change-Id: I47cc8ab5b348af28062ab3ff5329b96d2cbccdbb
2020-02-05 17:22:45 +01:00
Eyal fa5e3f1d1d Remove python2 support
Remove support from setup.cfg

Change-Id: Iaea15a982cf84fb95461b62e30aaa242d9c0097e
2020-02-04 09:16:46 +00:00
Eyal 1a81f2cdd8 Drop py2 support and add zuul jobs
Should be done with a major bump version e.g 2.0.0
Add docs and release zuul jobs

Change-Id: I2ff9881cf074b8d5bc052b1652dbc79b58ac586b
2020-01-28 14:05:12 +02:00
Eyal 77e640fe76 Move inspect utils to mistral-lib
Used also in mistral-extra so let move it to here

Change-Id: Ifa60374818ff3fe6da649d04c84c832b313e90d7
2020-01-21 15:19:10 +02:00
Eyal a2fed6c34a Fix requirements, doc
Change-Id: I0384a421fca057f66365e6fdb0b1efdb1a1c49f2
2020-01-15 17:06:49 +02:00
Eyal 1c3a3f2248 Update hacking and fix warning
Change-Id: If1358bcfc3f914956f8917cbbcea894f6264febc
2020-01-07 14:58:46 +02:00
Eyal fd02f4c7f8 Use py3 only
Change-Id: I5f14af93be18d79cddfc4fc358b60a85a5d26a90
2019-12-30 12:41:22 +02:00
Zuul 283e064a4c Merge "Wrong call to super" 2019-11-06 04:57:32 +00:00