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

Upload on didPrepare hook to fix gzip issues #52

Merged
merged 1 commit into from
Jun 17, 2018

Conversation

simonihmig
Copy link
Contributor

Just another attempt at fixing/working around #26.

My super simple approach here: use another hook (didPrepare here) that runs before willUpload (where e-c-d-gzip will gzip the files) to upload the (still) uncompressed files to Sentry.

I don't know if I am missing something, but it seems to work for me. And it does not suffer from the problem of #42, which AFAICT does not work with other compression algorithms than plain gzip (e.g. zopfli, brotli).

Copy link
Collaborator

@duizendnegen duizendnegen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's leave a comment in the source code indicating that this is semantically undesirable but works around this specific issue, and link to the issues on Github, both here and on the sentry repo.
Otherwise lgtm, it's a good approach, better than unzipping again imo

@simonihmig
Copy link
Contributor Author

Let's leave a comment in the source code

Hey @duizendnegen, just added that!

@dschmidt
Copy link
Owner

Well, we can try ... and wait for bug reports if it breaks anything for anyone.

@dschmidt dschmidt merged commit 6e686be into dschmidt:master Jun 17, 2018
@simonihmig
Copy link
Contributor Author

@dschmidt can we get a release with this, please? 😀

@simonihmig simonihmig deleted the alternative-hook branch January 25, 2019 17:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants