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.
Minimal python version is now 3.8
Other minor fixes:
* Use devstack-alt-member in tests instead of devstack-alt, as
the later is having admin role now.
* Fix some of the functional tests not working anymore with the
latest mistral changes.
* Removing standard actions tests as they are not standard anymore (they
are in mistral-extra)
Change-Id: Ic0620135c286855dd4befb52eb55522b605eb863
Signed-off-by: Arnaud Morin <arnaud.morin@ovhcloud.com>
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: I81c50e407ea8a742efc3a0999fd989c8d0c82be6
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: I1d2680785ace0ba50ec17de3e37ea304edcb06bc
Since the chage 72a6bc1ad1 was merged,
mistralclient tries to determine if the value passed in is a definition
file path name or file URI, or the actual definition.
However this behavior causes problem when the client is used in server
side and results in allowing access to server files or any contents
in internal servers.
This change introduces the new enforce_raw_definitions variable to
disable that fallback behavior and ensure that client treats input
as raw contents.
Related-Bug: #1931558
Change-Id: I47931bdf8bbccb940d4c98c47f16a6eef27c026a
TripleO no longer depends on Mistral for deployment as of Wallaby. We
can remove the TripleO CI coverage for mistralclient.
Signed-off-by: James Slagle <jslagle@redhat.com>
Change-Id: Ia31f9dbf540e6a8aea35fdfd0bd0bbad166127e3
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: I5281b365b0316291f92d70d50f75c29ed00af9ba
* After the action provider refactoring one CLI test in the client
fails because, in fact, there was a non-backwards compatible
change made during the refactoring: we can't use IDs of actions
to find them anymore. It was a trade-off that we had to agree on
in order to implement action providers. So the failing tests
has now been rewritten to work with name istead of ID.
Change-Id: Ic58b7bb5ec6a38df2c2e538f16b24be48e286e8c
The docs and releasenotes requirements migrated to doc/requirements.txt
we need not install things from requirements.txt.
Change-Id: I1e08629fff320bf80475661eec22aec9d9affec2
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: I7d96327a19b829f80900674418509bfb613c7f11
Sem-Ver: feature
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: Idbbcf7dadd3019dd79e50aace55f308cde1eed2e
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.
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.
Set openstackdocs_pdf_link to link to PDF file. Note that
the link to the published document only works on docs.openstack.org
where the PDF file is placed in the top-level html directory. The
site-preview places the PDF in a pdf directory.
Set openstackdocs_auto_version to not auto-version the documents.
Set openstackdocs_auto_name to use 'project' 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.
Depends-On: https://review.opendev.org/729744
Change-Id: I5ddb26cadb0b7db435c385271b36c6538830a142
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: Ifa4d40fdfb026dd93e990a226d3c77e1ad292af5
-added statistics-only option for `execution-get-report`
command, which will only return statistics of an execution.
-modified "print_statistics":
*in case of statistics-only,there is no need to print execution
tree.
*print a new field "estimated time".
Implements: blueprint mistral-executions-report-return-statistics-only
Depends-on: I7038d6d2a48f9f0455545f6be8dce33a48b25e1c
Change-Id: I77f9120ea1f1d4469772f67be334921fe4f7862f
Signed-off-by: ali <ali.abdelal@nokia.com>
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: I815832f2766531b9c32bd006bbabc2c96cd11b42
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
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: I8a804bd00975ce3f4a47351c3e19263b5b6fc652
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
Now that we no longer support py27, we can use the standard library
unittest.mock module instead of the third party mock lib.
Change-Id: Ia6c5910a2e37d5f53e194f4cefdf57dae4dde5b2
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
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: I91f2519403d90397434d04b1be03a04608f00118
Sem-Ver: feature
removed the namespace field from the action formatter to fix
compatibility issues between the client and older versions
of mistral.
now the action-list command takes the namespace
(with --namespace) as an argument and returns a list of the
actions in that namespace.
the command without --namespace would return the actions
of the default namespace ''.
fixed issues with execution-list command, the field "nulls"
is removed if its empty
Change-Id: Ibf64ff8d841ea1192b410902589b0c690b0b2fca
Signed-off-by: ali <ali.abdelal@nokia.com>
Make a few cleanups:
- Remove python 2.7 stanza from setup.py
- Add requires on python >= 3.6 to setup.cfg so that pypi and pip
know about the requirement
- Update classifiers
- Update requirements, no need for python_version anymore
- Remove html_last_updated_fmt from conf.py, this is not needed with
openstackdocstheme anymore
Change-Id: I5d63389fbc4588700e09b06db85b52e7aab4a219
* Added "started_at" and "finished_at" to task executions' printout.
* Added "duration" to task executions that's calculated as a delta
between "finished_at" and "started_at".
* Removed "updated_at" from task executions printout since it doesn't
carry any relevant info for a user, "finished_at" makes more sense.
Change-Id: Ie0bd01135548bc9fb5137368a1933d7b8b3c11e5
* It's convenient to see duration of an execution right away w/o
having to calculate it ourselves.
* Minor style changes according to the Mistral Coding Guidelines.
Change-Id: Ibfe806d1f1fcebb9ca0459c82daded308677de44
The client allows you to run an interactive mode that doesn't exit
between calls and reuses the client which is handy for end users.
Currently the code doesn't actually create a workflow engine client in
the interactive mode so all the mistral actions fail. We should create a
client if the client doesn't pass any args to the shell because that
enters interactive mode.
Change-Id: I8b4c56277f0f172da712f777c4c856dba6fa0b0b
Closes-Bug: #1861357
*2 new CLI commands were added:
- execution-get-sub-executions
returns the sub-executions of a given execution id
- task-get-sub-executions
returns the sub-executions of a given task-execution id
both commands have the options
--errors_only: returns only the error routes
- default is False
--max_depth: the max depth for the returned executions
- if a negative value is given, then the API will return
all sub-executions
- default is -1
Change-Id: Ifcd25cfdbfb99613ff1bdccf8b94b3929f02a71d
Implements: blueprint mistral-execution-origin
Signed-off-by: ali <ali.abdelal@nokia.com>
When creating an action-definition user can use the option --namespace
to create the action in that specific namespace, if it was not provided
the action will be created in the default namespace.
default namespace is ''.
*Added --namespace to action commands,
*Added --namespace option to run-action
Depends-On: I07862e30adf28404ec70a473571a9213e53d8a08
Implements: blueprint create-and-run-workflows-within-a-namespace
Change-Id: I18dbd9faee06c3cd2209f7e579eeb2e1a24c88d9
This patch will allow to run a non voting coverage job
which will detect any changes in the code coverage for
each commit on review.
Change-Id: Ie2bb1b23bb49f0f3b1a149b8e086c2a943f77508
Closes-Bug: 1655016