-
Notifications
You must be signed in to change notification settings - Fork 51
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
automatically unzip before upload, re-zip any zipped files after Sentry artifact upload #42
Conversation
Handles unzipping before sentry uploading, and re-zipping after sentry upload
fs.writeFileSync(indexPath, index); | ||
}, | ||
|
||
upload: function(/* context */) { | ||
upload(/* context */) { |
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.
This method is all that really changed, focus the review here. Everything else is formatting and will be discarded when I open up the "official" PR if there is interest.
OK - I know I've maintained for a long time that I wouldn't be supportive of this change, but seems like Sentry isn't moving on this topic... so let's try and get this landed & released. |
@duizendnegen sounds good. The current implementation is only re-zip files that have been zipped. I'll adjust it though to also be behind a flag at some point this week. |
@jasonmit Useful stuff! Would you mind sharing if your branch was working fine ? |
@kozak branch is working great, we use it at Netflix as part of one of our deployments without issue for a few months now. Unfortunately, I can't recall why I closed it now... |
I'm sorry about the situation - to be honest I haven't done any Ember development in quite some time, that makes it really hard to maintain this project. Just for my understanding: This plugin is currently broken if I am worried about the re-zipping part, especially because it doesn't neccessarily use the same zipping algorithm, see e.g. If we make it opt in, it shouldn't break anything for anyone - so I'm even okay with the proposed solution here, but please mention the rezipping in the README. Again I'm very sorry for the inconvenience and hope we can solve this issue for good finally. |
I believe it's broken if you're using e-cli-d-gzip. You end up uploading gzipped assets to sentry which sentry does not yet support. Accepts the files but the callstack in the evented messages are unreadable blobs of text.
I'm willing to can tackle this.
Don't be and thank you for this great addon! |
Awesome! |
Thank you both. @dschmidt is correct in that enabling: |
Glad you found a solution that works for you! |
Cross posting #52 here as another attempt to fix the issue. Feedback appreciated, maybe I'm missing something obvious... |
I am opening this for a discussion, not necessarily to merge (especially the README changes!).
For now I'll continue to maintain this fork.
Fixes #26