{"action":"created","comment":{"url":"https://api.github.com/repos/swift-nav/wolf/pulls/comments/47717132","id":47717132,"diff_hunk":"@@ -86,27 +96,52 @@ exec container dockerless uid metadata blobs =\n           action dir (dir </> pack \"data\") (dir </> pack \"store\")\n       control file =\n         writefile file $ encodeText $ Control uid\n+      writeData file blob =\n+        if aGzipMetadata then\n+          writeBinary file $ BL.toStrict $ decompress $ BL.fromStrict $ encodeUtf8 blob\n+        else\n+          writefile file blob\n+      readData file =\n+        if aGzipMetadata then\n+          decodeUtf8 . BL.toStrict . compress . BL.fromStrict . encodeUtf8 <$> readfile file","path":"main/Act.hs","position":71,"original_position":71,"commit_id":"012432107d4bef3261a04324b1864cf6fd83342b","original_commit_id":"012432107d4bef3261a04324b1864cf6fd83342b","user":{"login":"scottswift","id":14615720,"avatar_url":"https://avatars.githubusercontent.com/u/14615720?v=3","gravatar_id":"","url":"https://api.github.com/users/scottswift","html_url":"https://github.com/scottswift","followers_url":"https://api.github.com/users/scottswift/followers","following_url":"https://api.github.com/users/scottswift/following{/other_user}","gists_url":"https://api.github.com/users/scottswift/gists{/gist_id}","starred_url":"https://api.github.com/users/scottswift/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scottswift/subscriptions","organizations_url":"https://api.github.com/users/scottswift/orgs","repos_url":"https://api.github.com/users/scottswift/repos","events_url":"https://api.github.com/users/scottswift/events{/privacy}","received_events_url":"https://api.github.com/users/scottswift/received_events","type":"User","site_admin":false},"body":"maybe write a `onStrict` function?\r\n```onStrict f = BL.toStric . f . BL.fromStrict```","created_at":"2015-12-15T23:46:51Z","updated_at":"2015-12-15T23:46:51Z","html_url":"https://github.com/swift-nav/wolf/pull/17#discussion_r47717132","pull_request_url":"https://api.github.com/repos/swift-nav/wolf/pulls/17","_links":{"self":{"href":"https://api.github.com/repos/swift-nav/wolf/pulls/comments/47717132"},"html":{"href":"https://github.com/swift-nav/wolf/pull/17#discussion_r47717132"},"pull_request":{"href":"https://api.github.com/repos/swift-nav/wolf/pulls/17"}}},"pull_request":{"url":"https://api.github.com/repos/swift-nav/wolf/pulls/17","id":53767040,"html_url":"https://github.com/swift-nav/wolf/pull/17","diff_url":"https://github.com/swift-nav/wolf/pull/17.diff","patch_url":"https://github.com/swift-nav/wolf/pull/17.patch","issue_url":"https://api.github.com/repos/swift-nav/wolf/issues/17","number":17,"state":"open","locked":false,"title":"GZIP artifacts and metadata","user":{"login":"mfine","id":60851,"avatar_url":"https://avatars.githubusercontent.com/u/60851?v=3","gravatar_id":"","url":"https://api.github.com/users/mfine","html_url":"https://github.com/mfine","followers_url":"https://api.github.com/users/mfine/followers","following_url":"https://api.github.com/users/mfine/following{/other_user}","gists_url":"https://api.github.com/users/mfine/gists{/gist_id}","starred_url":"https://api.github.com/users/mfine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mfine/subscriptions","organizations_url":"https://api.github.com/users/mfine/orgs","repos_url":"https://api.github.com/users/mfine/repos","events_url":"https://api.github.com/users/mfine/events{/privacy}","received_events_url":"https://api.github.com/users/mfine/received_events","type":"User","site_admin":false},"body":"Pass in options to GZIP artifacts and metadata on behalf of workers. Command line options `gzip-artifacts` and `gzip-metadata` to toggle one or the other. Not currently smart about figuring out if something is already compressed on either side, so will need to be consistent with how this is used.\r\n\r\n/cc @scottswift @benjamin0 ","created_at":"2015-12-15T21:47:10Z","updated_at":"2015-12-15T23:46:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":"de3abb1b1ff70d6652bb66712f885e866939fdcb","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/swift-nav/wolf/pulls/17/commits","review_comments_url":"https://api.github.com/repos/swift-nav/wolf/pulls/17/comments","review_comment_url":"https://api.github.com/repos/swift-nav/wolf/pulls/comments{/number}","comments_url":"https://api.github.com/repos/swift-nav/wolf/issues/17/comments","statuses_url":"https://api.github.com/repos/swift-nav/wolf/statuses/012432107d4bef3261a04324b1864cf6fd83342b","head":{"label":"mfine:mfine-gzip","ref":"mfine-gzip","sha":"012432107d4bef3261a04324b1864cf6fd83342b","user":{"login":"mfine","id":60851,"avatar_url":"https://avatars.githubusercontent.com/u/60851?v=3","gravatar_id":"","url":"https://api.github.com/users/mfine","html_url":"https://github.com/mfine","followers_url":"https://api.github.com/users/mfine/followers","following_url":"https://api.github.com/users/mfine/following{/other_user}","gists_url":"https://api.github.com/users/mfine/gists{/gist_id}","starred_url":"https://api.github.com/users/mfine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mfine/subscriptions","organizations_url":"https://api.github.com/users/mfine/orgs","repos_url":"https://api.github.com/users/mfine/repos","events_url":"https://api.github.com/users/mfine/events{/privacy}","received_events_url":"https://api.github.com/users/mfine/received_events","type":"User","site_admin":false},"repo":{"id":37517550,"name":"wolf","full_name":"mfine/wolf","owner":{"login":"mfine","id":60851,"avatar_url":"https://avatars.githubusercontent.com/u/60851?v=3","gravatar_id":"","url":"https://api.github.com/users/mfine","html_url":"https://github.com/mfine","followers_url":"https://api.github.com/users/mfine/followers","following_url":"https://api.github.com/users/mfine/following{/other_user}","gists_url":"https://api.github.com/users/mfine/gists{/gist_id}","starred_url":"https://api.github.com/users/mfine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mfine/subscriptions","organizations_url":"https://api.github.com/users/mfine/orgs","repos_url":"https://api.github.com/users/mfine/repos","events_url":"https://api.github.com/users/mfine/events{/privacy}","received_events_url":"https://api.github.com/users/mfine/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mfine/wolf","description":"Wolf is a wrapper around Amazon Simple Workflow Service.","fork":true,"url":"https://api.github.com/repos/mfine/wolf","forks_url":"https://api.github.com/repos/mfine/wolf/forks","keys_url":"https://api.github.com/repos/mfine/wolf/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mfine/wolf/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mfine/wolf/teams","hooks_url":"https://api.github.com/repos/mfine/wolf/hooks","issue_events_url":"https://api.github.com/repos/mfine/wolf/issues/events{/number}","events_url":"https://api.github.com/repos/mfine/wolf/events","assignees_url":"https://api.github.com/repos/mfine/wolf/assignees{/user}","branches_url":"https://api.github.com/repos/mfine/wolf/branches{/branch}","tags_url":"https://api.github.com/repos/mfine/wolf/tags","blobs_url":"https://api.github.com/repos/mfine/wolf/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mfine/wolf/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mfine/wolf/git/refs{/sha}","trees_url":"https://api.github.com/repos/mfine/wolf/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mfine/wolf/statuses/{sha}","languages_url":"https://api.github.com/repos/mfine/wolf/languages","stargazers_url":"https://api.github.com/repos/mfine/wolf/stargazers","contributors_url":"https://api.github.com/repos/mfine/wolf/contributors","subscribers_url":"https://api.github.com/repos/mfine/wolf/subscribers","subscription_url":"https://api.github.com/repos/mfine/wolf/subscription","commits_url":"https://api.github.com/repos/mfine/wolf/commits{/sha}","git_commits_url":"https://api.github.com/repos/mfine/wolf/git/commits{/sha}","comments_url":"https://api.github.com/repos/mfine/wolf/comments{/number}","issue_comment_url":"https://api.github.com/repos/mfine/wolf/issues/comments{/number}","contents_url":"https://api.github.com/repos/mfine/wolf/contents/{+path}","compare_url":"https://api.github.com/repos/mfine/wolf/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mfine/wolf/merges","archive_url":"https://api.github.com/repos/mfine/wolf/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mfine/wolf/downloads","issues_url":"https://api.github.com/repos/mfine/wolf/issues{/number}","pulls_url":"https://api.github.com/repos/mfine/wolf/pulls{/number}","milestones_url":"https://api.github.com/repos/mfine/wolf/milestones{/number}","notifications_url":"https://api.github.com/repos/mfine/wolf/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mfine/wolf/labels{/name}","releases_url":"https://api.github.com/repos/mfine/wolf/releases{/id}","created_at":"2015-06-16T08:23:33Z","updated_at":"2015-06-16T08:23:33Z","pushed_at":"2015-12-15T21:44:50Z","git_url":"git://github.com/mfine/wolf.git","ssh_url":"git@github.com:mfine/wolf.git","clone_url":"https://github.com/mfine/wolf.git","svn_url":"https://github.com/mfine/wolf","homepage":"","size":155,"stargazers_count":0,"watchers_count":0,"language":"Haskell","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"swift-nav:master","ref":"master","sha":"a3cc58450a771b23e07c559896dabd014b70af35","user":{"login":"swift-nav","id":1069835,"avatar_url":"https://avatars.githubusercontent.com/u/1069835?v=3","gravatar_id":"","url":"https://api.github.com/users/swift-nav","html_url":"https://github.com/swift-nav","followers_url":"https://api.github.com/users/swift-nav/followers","following_url":"https://api.github.com/users/swift-nav/following{/other_user}","gists_url":"https://api.github.com/users/swift-nav/gists{/gist_id}","starred_url":"https://api.github.com/users/swift-nav/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/swift-nav/subscriptions","organizations_url":"https://api.github.com/users/swift-nav/orgs","repos_url":"https://api.github.com/users/swift-nav/repos","events_url":"https://api.github.com/users/swift-nav/events{/privacy}","received_events_url":"https://api.github.com/users/swift-nav/received_events","type":"Organization","site_admin":false},"repo":{"id":35476836,"name":"wolf","full_name":"swift-nav/wolf","owner":{"login":"swift-nav","id":1069835,"avatar_url":"https://avatars.githubusercontent.com/u/1069835?v=3","gravatar_id":"","url":"https://api.github.com/users/swift-nav","html_url":"https://github.com/swift-nav","followers_url":"https://api.github.com/users/swift-nav/followers","following_url":"https://api.github.com/users/swift-nav/following{/other_user}","gists_url":"https://api.github.com/users/swift-nav/gists{/gist_id}","starred_url":"https://api.github.com/users/swift-nav/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/swift-nav/subscriptions","organizations_url":"https://api.github.com/users/swift-nav/orgs","repos_url":"https://api.github.com/users/swift-nav/repos","events_url":"https://api.github.com/users/swift-nav/events{/privacy}","received_events_url":"https://api.github.com/users/swift-nav/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/swift-nav/wolf","description":"Wolf is a wrapper around Amazon Simple Workflow Service.","fork":false,"url":"https://api.github.com/repos/swift-nav/wolf","forks_url":"https://api.github.com/repos/swift-nav/wolf/forks","keys_url":"https://api.github.com/repos/swift-nav/wolf/keys{/key_id}","collaborators_url":"https://api.github.com/repos/swift-nav/wolf/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/swift-nav/wolf/teams","hooks_url":"https://api.github.com/repos/swift-nav/wolf/hooks","issue_events_url":"https://api.github.com/repos/swift-nav/wolf/issues/events{/number}","events_url":"https://api.github.com/repos/swift-nav/wolf/events","assignees_url":"https://api.github.com/repos/swift-nav/wolf/assignees{/user}","branches_url":"https://api.github.com/repos/swift-nav/wolf/branches{/branch}","tags_url":"https://api.github.com/repos/swift-nav/wolf/tags","blobs_url":"https://api.github.com/repos/swift-nav/wolf/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/swift-nav/wolf/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/swift-nav/wolf/git/refs{/sha}","trees_url":"https://api.github.com/repos/swift-nav/wolf/git/trees{/sha}","statuses_url":"https://api.github.com/repos/swift-nav/wolf/statuses/{sha}","languages_url":"https://api.github.com/repos/swift-nav/wolf/languages","stargazers_url":"https://api.github.com/repos/swift-nav/wolf/stargazers","contributors_url":"https://api.github.com/repos/swift-nav/wolf/contributors","subscribers_url":"https://api.github.com/repos/swift-nav/wolf/subscribers","subscription_url":"https://api.github.com/repos/swift-nav/wolf/subscription","commits_url":"https://api.github.com/repos/swift-nav/wolf/commits{/sha}","git_commits_url":"https://api.github.com/repos/swift-nav/wolf/git/commits{/sha}","comments_url":"https://api.github.com/repos/swift-nav/wolf/comments{/number}","issue_comment_url":"https://api.github.com/repos/swift-nav/wolf/issues/comments{/number}","contents_url":"https://api.github.com/repos/swift-nav/wolf/contents/{+path}","compare_url":"https://api.github.com/repos/swift-nav/wolf/compare/{base}...{head}","merges_url":"https://api.github.com/repos/swift-nav/wolf/merges","archive_url":"https://api.github.com/repos/swift-nav/wolf/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/swift-nav/wolf/downloads","issues_url":"https://api.github.com/repos/swift-nav/wolf/issues{/number}","pulls_url":"https://api.github.com/repos/swift-nav/wolf/pulls{/number}","milestones_url":"https://api.github.com/repos/swift-nav/wolf/milestones{/number}","notifications_url":"https://api.github.com/repos/swift-nav/wolf/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/swift-nav/wolf/labels{/name}","releases_url":"https://api.github.com/repos/swift-nav/wolf/releases{/id}","created_at":"2015-05-12T08:42:24Z","updated_at":"2015-12-02T22:57:31Z","pushed_at":"2015-12-15T21:47:11Z","git_url":"git://github.com/swift-nav/wolf.git","ssh_url":"git@github.com:swift-nav/wolf.git","clone_url":"https://github.com/swift-nav/wolf.git","svn_url":"https://github.com/swift-nav/wolf","homepage":"","size":157,"stargazers_count":5,"watchers_count":5,"language":"Haskell","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/swift-nav/wolf/pulls/17"},"html":{"href":"https://github.com/swift-nav/wolf/pull/17"},"issue":{"href":"https://api.github.com/repos/swift-nav/wolf/issues/17"},"comments":{"href":"https://api.github.com/repos/swift-nav/wolf/issues/17/comments"},"review_comments":{"href":"https://api.github.com/repos/swift-nav/wolf/pulls/17/comments"},"review_comment":{"href":"https://api.github.com/repos/swift-nav/wolf/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/swift-nav/wolf/pulls/17/commits"},"statuses":{"href":"https://api.github.com/repos/swift-nav/wolf/statuses/012432107d4bef3261a04324b1864cf6fd83342b"}}}}