-
Notifications
You must be signed in to change notification settings - Fork 691
Update convert bytes to string for py3 #1922
Conversation
|
Signed-off-by: Appu Goundan <appu@google.com>
Thanks for catching this! Could you add a test that can verify that this is working correctly? I'm planning on rewriting build_tar to remove our python dependency and want to make sure we don't regress here. |
@loosebazooka Thank you for fixing the issue. @gravypod When I can expect this to be merged in master? I'm seeing some breakage because of filename change. Your review is much appreciated. |
@bsalunke, do you have an example where this is happening? I'd like to add a test into the repo to validate this fix. We're planning on rewriting |
Oh sorry, I'm just looking at this -- distroless has an issue linked in the main comment. My very manual testing involved doing distroless builds with an without my change and seeing the difference. I don't know why I clicked the "tests have been added box". I'm ooo till next week and can add tests in then. I might have a few hours here and there to do it though. Lemme take a stab at it. |
Thanks! Also, please ping me on Corp! I'd love to hear about other users in
Google.
…On Mon, Aug 23, 2021, 10:41 PM Appu ***@***.***> wrote:
Oh sorry, I'm just looking at this -- distroless has an issue linked
<GoogleContainerTools/distroless#787> in the
main comment. My very manual testing involved doing distroless builds with
an without my change and seeing the difference. I don't know why I clicked
the "tests have been added box".
I'm ooo till next week and can add tests in then. I might have a few hours
here and there to do it though. Lemme take a stab at it.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1922 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAG4HW6TUUWH2BLSGRRRV53T6MBFXANCNFSM5CJYP33Q>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email>
.
|
Sure, also @jonjohnsonjr might be interested in the work coverting everything to golang. |
Signed-off-by: Appu Goundan <appu@google.com>
It happened when I tried to build the Google distroless image locally, you can find the steps to reproduce at: |
@gravypod should be good to go. |
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
EDIT: the bug itself isn't about writing base64 files, it's about writing the filename instead of parsing Package information from the metadata file.
Fixes a bug where dpkg/status.d writes base64 data instead of human readable strings
var/lib/dpkg/status.d/YmFzZS1maWxlcw==
vsvar/lib/dpkg/status.d/base-files
Signed-off-by: Appu Goundan appu@google.com
PR Checklist
Please check if your PR fulfills the following requirements:
Honestly can't get tests running locally, bazel is so unfamiliar, I'm pretty confused. But I ran against distroless using my local copy and it seems to work.
PR Type
What kind of change does this PR introduce?
What is the current behavior?
GoogleContainerTools/distroless#787
GoogleContainerTools/distroless#581
#1625
What is the new behavior?
Continues behavior in py3 that appeared to previously work with py2
Does this PR introduce a breaking change?