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

Updates for v3.4.1 #5184

Merged
merged 10 commits into from
Mar 12, 2021
Merged

Updates for v3.4.1 #5184

merged 10 commits into from
Mar 12, 2021

Conversation

blag
Copy link
Contributor

@blag blag commented Mar 10, 2021

This PR pulls the changes from #5182 into the v3.4 branch.

Kami and others added 8 commits March 10, 2021 01:32
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>
@pull-request-size pull-request-size bot added the size/XL PR that changes 500-999 lines. Consider splitting work into several ones that easier to review. label Mar 10, 2021
@blag blag requested a review from Kami March 10, 2021 09:55
@blag blag added this to the 3.4.1 milestone Mar 10, 2021
@arm4b
Copy link
Member

arm4b commented Mar 10, 2021

CI is failing with:

cat: /root/.ssh/st2_id_rsa.pub: No such file or directory
Error: Process completed with exit code 1.

I think it's something new that happened with the upstream GH Actions Docker images and build environment.
@m4dcoder did you experience the same in the Orquesta repo?

Copy link
Member

@Kami Kami left a 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.

@Kami
Copy link
Member

Kami commented Mar 10, 2021

On a related note - did you have a chance yet to re-enable the disabled st2tests test and verify it's working now? :)

@blag
Copy link
Contributor Author

blag commented Mar 11, 2021

Verified.

Failed:
ST2 3.4.0 stable from production repository, run against st2tests master branch

Passing:
ST2 from st2/12563 dev build from CircleCI, run against st2tests master branch

@blag
Copy link
Contributor Author

blag commented Mar 11, 2021

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

@winem winem self-requested a review March 12, 2021 00:04
@blag blag merged commit ccf33f9 into v3.4 Mar 12, 2021
@blag blag deleted the v3.4-updates branch March 12, 2021 20:05
blag added a commit that referenced this pull request Mar 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug fix logging 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.

5 participants