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

[PIPE-1131] Zip shared object mapping files #127

Merged
merged 8 commits into from
Aug 30, 2018
Merged

Conversation

Pezzah
Copy link
Contributor

@Pezzah Pezzah commented Aug 24, 2018

Goal

Zip shared object mapping files before sending, to reduce transfer time. Also don't process the file as zipping is very effective

This coresponding PR is required to process the zipped files
https://github.com/bugsnag/bugsnag-event-worker/pull/1043

Design

See ROAD-570 design for reasons for the approach

@Pezzah Pezzah changed the title start zipping shared object mapping files Zip shared object mapping files Aug 24, 2018

return true
zipStream.close()
stdout.close()
Copy link
Contributor

Choose a reason for hiding this comment

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

it'd be good to close this in a finally block (there's an open PR which cleans this up generally across the plugin)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

changed

} catch (IOException e) {
project.logger.error("failed to write symbols for " + arch + ": " + e.getMessage())
return false
byte[] buffer = new byte[1024];
Copy link
Contributor

Choose a reason for hiding this comment

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

BufferedOutputStream defaults to 8192, we could probably increase this to speed up IO

Copy link
Contributor Author

Choose a reason for hiding this comment

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

changed

@@ -122,7 +123,7 @@ class BugsnagUploadNdkTask extends BugsnagMultiPartUploadTask {
outputDir.mkdir()
}

File outputFile = new File(outputDir, arch + ".txt")
File outputFile = new File(outputDir, arch + ".gzip")
Copy link
Contributor

Choose a reason for hiding this comment

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

[Nitpick] .gz is the typical file extension for gzipped files

@Pezzah Pezzah requested a review from kattrali August 29, 2018 08:22
@Pezzah Pezzah changed the title Zip shared object mapping files [PIPE-1131] Zip shared object mapping files Aug 29, 2018
@kattrali kattrali merged commit 8ed43cc into master Aug 30, 2018
@kattrali kattrali deleted the zip-so-mapping-files branch August 30, 2018 21:07
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.

None yet

4 participants