Skip to content

Conversation

@Kami
Copy link
Member

@Kami Kami commented Mar 7, 2021

This pull request updates service start up code to log a warning if non utf-8 locale / encoding is used for StackStorm service process.

Background, Context

As encountered recently (and bubbled up by the Xenial end to end tests), using a non utf-8 locale when running StackStorm under Python 3 and working with unicode data can cause all kinds of issues.

There isn't tons we can do to work around those issues in code, but at the very least, we should emit a warning if such scenario is detected and warn the users.

Kami added 4 commits March 7, 2021 16:28
This will make it easier to troubleshoot locale / encoding related
issue.

Also make sure we print those version related messages under INFO log
level instead of DEBUG since they may be material when troubleshooting
various issues so we should use INFO.
@Kami Kami added this to the 3.5.0 milestone Mar 7, 2021
@pull-request-size pull-request-size bot added the size/L PR that changes 100-499 lines. Requires some effort to review. label Mar 7, 2021
Kami added 2 commits March 7, 2021 16:57
infinite loop when trying to format the message field when StackStorm
process was not using utf-8 encoding and when unicode sequence was
logged.
@pull-request-size pull-request-size bot added size/XL PR that changes 500-999 lines. Consider splitting work into several ones that easier to review. and removed size/L PR that changes 100-499 lines. Requires some effort to review. labels Mar 7, 2021
@Kami Kami added the bug fix label Mar 7, 2021
Copy link
Member

@cognifloyd cognifloyd left a comment

Choose a reason for hiding this comment

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

Var naming nit.

@cognifloyd
Copy link
Member

Kick the travis CI job. There's a race condition in some of the orquesta tests. It's looking for status "canceling" but it is already "canceled" at that point. Re-run and it'll probably pass.

@blag blag mentioned this pull request Mar 10, 2021
@Kami Kami merged commit 50787d5 into master Apr 5, 2021
@Kami Kami deleted the non_utf8_locale_warn branch April 5, 2021 10:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug fix size/XL PR that changes 500-999 lines. Consider splitting work into several ones that easier to review.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants