-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
feat(outputs.file): Add compression #13245
Conversation
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.
Thanks for implementing this. Could you also add a test for the Init error scenario's?
…re tests for Init
Would it be much work to also include support for Gzip with |
remove some exported code and little refactor in tests. Co-authored-by: Thomas Casteleyn <thomas.casteleyn@me.com>
For using |
I think the test failed because Circle-CI had a minor outage. |
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.
Great improvements!
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.
Only this minor remark
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.
@zekena2 thanks for the good idea and the PR. I want you to look into the existing encoder implementation instead of reimplementing part of it.
Is there any updates on this? |
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.
@zekena2 sorry for this taking so long on my side! I do have some more small comments...
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.
@zekena2 not sure why you always come back to a special handling of identity
but I really think it should be no different to other algorithms. Furthermore, the sample.conf
description does not match the internal code, so one of them (or both) are wrong...
The docs in |
Ok let me repeat my initial critique/idea: I don't want to expose the inner-workings of the underlying algorithms! So by passing on those values to the user(!!!) we open-up all possible trouble paths. What if one of the library changes the values? What if we need to switch to another implementation with other values? Do you remember the beginning where I suggested to have So my suggested behavior is:
With my code, the plugin implements exactly this. As I said above, instead of the numeric levels I would have loved to just use three values |
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.
Some more clarifications...
Download PR build artifacts for linux_amd64.tar.gz, darwin_amd64.tar.gz, and windows_amd64.zip. 📦 Click here to get additional PR build artifactsArtifact URLs |
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.
Looks good to me. Thanks @zekena2!
Required for all PRs
resolves #12875