Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix mistral callback failure when result contains unicode #3721

Merged
merged 2 commits into from
Sep 8, 2017

Conversation

m4dcoder
Copy link
Contributor

@m4dcoder m4dcoder commented Sep 7, 2017

When result of action execution contains unicode, Mistral callback fails and leads to orphaned workflow execution.

@m4dcoder m4dcoder force-pushed the mistral-callback-unicode branch from bbbaeb7 to 946c68a Compare September 7, 2017 06:45
action_executions.ActionExecutionManager, 'update',
mock.MagicMock(return_value=None))
def test_callback_handler_with_result_as_dict_with_unicode_type(self):
self.callback_class.callback('http://127.0.0.1:8989/v2/action_executions/12345', {},
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be good to test unicode for all the various type (string, list, dict) and also add a test case with actual unicode string (💩) in addition to existing tests with the unicode escape sequences.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Besides that, LGTM 👍

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Kami added more unit tests as requested

@Kami Kami added this to the 2.4.1 milestone Sep 7, 2017
@Kami
Copy link
Member

Kami commented Sep 7, 2017

Added v2.4.1 milestone since I assume this will / should go into v2.4.1.

@arm4b arm4b added the bug label Sep 7, 2017
@arm4b
Copy link
Member

arm4b commented Sep 7, 2017

👍

There are also some Unit tests failing in Travis.

When result of action execution contains unicode, Mistral callback fails and leads to orphaned workflow execution.
@m4dcoder m4dcoder force-pushed the mistral-callback-unicode branch from 757f53f to eb3c5c1 Compare September 7, 2017 22:13
@m4dcoder m4dcoder merged commit 0a51b75 into master Sep 8, 2017
@m4dcoder m4dcoder deleted the mistral-callback-unicode branch September 8, 2017 17:45
@arm4b arm4b mentioned this pull request Sep 8, 2017
@m4dcoder m4dcoder restored the mistral-callback-unicode branch September 11, 2017 19:34
@m4dcoder m4dcoder deleted the mistral-callback-unicode branch September 11, 2017 19:37
@m4dcoder m4dcoder mentioned this pull request Sep 11, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants