-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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(invoke): Write in UTF-8 string instead of bytes. #5232
Merged
+64
−34
Merged
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
007dc3c
fix(invoke): Write in UTF-8 string instead of bytes.
jfuss 4882b99
Fix ruff errors
jfuss 1027b9d
Update log_streamer.py to remove encoding
jfuss 07fd141
More updates to make everything work better in general
jfuss b6f4868
Fix with ruff again
jfuss abd85e3
Explictingly write to stream for building images
jfuss 1e1c9bd
More patching writes
jfuss 11e0c48
More patching
jfuss 081bfb7
Fix long line
jfuss 4f7772d
Use mock over io.string
jfuss d3b205f
More fixing of tests
jfuss 121e854
Assert mock instead of data directly
jfuss 82d7edb
More small edits in test
jfuss 3031b28
Verify through calls instead of value
jfuss abe1962
run make black
jfuss 7878ae8
Fix when we flush to match pervious behavior and output
jfuss 4563b2e
add integration tests
jfuss 077be4a
run make black
jfuss 0439c84
Merge branch 'develop' into issue/5229
mndeveci File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Just wondering, are there other places where this is called with
write_to_buffer=True
or without the parameter?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.
I added
write_to_buffer
to keep all the previous code paths the same. I was seeing different behavior when writing tosys.stdout.buffer
andsys.stdout
. I wanted to write tosys.stdout
for the output of the invoke but leave everything else writing to the buffer. So I added this option to the write call, defaulted to the previous behavior of writing to the buffer, and then passing isFalse
for my specific case.Ideally, I would have wanted to change everything but that was a much bigger change and coming from all the docker upgrade issues, I went the least impactful route.