-
-
Notifications
You must be signed in to change notification settings - Fork 752
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
Updates for v3.4.1 #5184
Updates for v3.4.1 #5184
Conversation
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.
infinite loop when trying to format the message field when StackStorm process was not using utf-8 encoding and when unicode sequence was logged.
Co-authored-by: Jacob Floyd <cognifloyd@gmail.com>
CI is failing with:
I think it's something new that happened with the upstream GH Actions Docker images and build environment. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍 once the tests pass.
On a related note - did you have a chance yet to re-enable the disabled st2tests test and verify it's working now? :) |
We may need to update our flake8 settings to make sure they don't conflict with black: # Warn on non utf-8 locale which could cause issues when running under Python 3 and working
# with unicode data
if (
fs_encoding.lower() not in VALID_UTF8_ENCODINGS
or encoding.lower() not in VALID_UTF8_ENCODINGS
): flake8 st2common/st2common/service_setup.py
# st2common/st2common/service_setup.py:163:9: W503 line break before binary operator # Warn on non utf-8 locale which could cause issues when running under Python 3 and working
# with unicode data
if (
fs_encoding.lower() not in VALID_UTF8_ENCODINGS or
encoding.lower() not in VALID_UTF8_ENCODINGS
): flake8 st2common/st2common/service_setup.py
# (okay)
black st2common/st2common/service_setup.py
# reformatted st2common/st2common/service_setup.py
# All done! ✨ 🍰 ✨
# 1 file reformatted.
flake8 st2common/st2common/service_setup.py
# st2common/st2common/service_setup.py:170:9: W503 line break before binary operator |
This PR pulls the changes from #5182 into the
v3.4
branch.