{"action":"created","comment":{"url":"https://api.github.com/repos/Nordstrom/serverless-artillery/pulls/comments/219932899","pull_request_review_id":158225538,"id":219932899,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxOTkzMjg5OQ==","diff_hunk":"@@ -0,0 +1,93 @@\n+const { tmpdir } = require('os')\n+const { join } = require('path')\n+const cp = require('child_process')\n+\n+const { randomString } = require('./target/handler')\n+const { pipe, tap } = require('./target/fn')\n+\n+const defaultRoot = join(tmpdir(), 'slsart-integration')\n+const defaultSeparator = '-'.repeat(process.stdout.columns)\n+\n+const pure = {\n+  execAsync: (exec = cp.exec) =>\n+    (command, options = {}) =>\n+      new Promise((resolve, reject) =>\n+        exec(command, options, (err, stdout, stderr) =>\n+          (err\n+            ? reject(new Error(`${err.message} ${stderr}`))\n+            : resolve(stdout)))),\n+\n+  deployTarget: (\n+    source = join(__dirname, 'target'),\n+    instanceId = randomString(8),\n+    execAsync = pure.execAsync(),\n+    log = console.log,\n+    warn = console.error,\n+    separator = defaultSeparator,\n+    root = defaultRoot\n+  ) =>\n+    ((execSource, execDestination, destination) =>\n+      pipe(\n+        () => log(`Staging target to ${destination}\\n${separator}`),","path":"tests/integration/deployToTemp.js","position":31,"original_position":31,"commit_id":"02c0973e3c3de8ba11b3dc70d63ce17893182a1c","original_commit_id":"984b603c1e91e64649f162330198229f1777280f","user":{"login":"gwsii","id":1920378,"node_id":"MDQ6VXNlcjE5MjAzNzg=","avatar_url":"https://avatars3.githubusercontent.com/u/1920378?v=4","gravatar_id":"","url":"https://api.github.com/users/gwsii","html_url":"https://github.com/gwsii","followers_url":"https://api.github.com/users/gwsii/followers","following_url":"https://api.github.com/users/gwsii/following{/other_user}","gists_url":"https://api.github.com/users/gwsii/gists{/gist_id}","starred_url":"https://api.github.com/users/gwsii/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gwsii/subscriptions","organizations_url":"https://api.github.com/users/gwsii/orgs","repos_url":"https://api.github.com/users/gwsii/repos","events_url":"https://api.github.com/users/gwsii/events{/privacy}","received_events_url":"https://api.github.com/users/gwsii/received_events","type":"User","site_admin":false},"body":"Visually aesthetic code is easier to read. I often struggle to parse the code in this code base and so applaud attempts to make it more legible.","created_at":"2018-09-24T18:02:14Z","updated_at":"2018-09-24T18:02:14Z","html_url":"https://github.com/Nordstrom/serverless-artillery/pull/181#discussion_r219932899","pull_request_url":"https://api.github.com/repos/Nordstrom/serverless-artillery/pulls/181","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/Nordstrom/serverless-artillery/pulls/comments/219932899"},"html":{"href":"https://github.com/Nordstrom/serverless-artillery/pull/181#discussion_r219932899"},"pull_request":{"href":"https://api.github.com/repos/Nordstrom/serverless-artillery/pulls/181"}},"in_reply_to_id":219337079},"pull_request":{"url":"https://api.github.com/repos/Nordstrom/serverless-artillery/pulls/181","id":216108535,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE2MTA4NTM1","html_url":"https://github.com/Nordstrom/serverless-artillery/pull/181","diff_url":"https://github.com/Nordstrom/serverless-artillery/pull/181.diff","patch_url":"https://github.com/Nordstrom/serverless-artillery/pull/181.patch","issue_url":"https://api.github.com/repos/Nordstrom/serverless-artillery/issues/181","number":181,"state":"open","locked":false,"title":"Integration target","user":{"login":"Sullux","id":438228,"node_id":"MDQ6VXNlcjQzODIyOA==","avatar_url":"https://avatars2.githubusercontent.com/u/438228?v=4","gravatar_id":"","url":"https://api.github.com/users/Sullux","html_url":"https://github.com/Sullux","followers_url":"https://api.github.com/users/Sullux/followers","following_url":"https://api.github.com/users/Sullux/following{/other_user}","gists_url":"https://api.github.com/users/Sullux/gists{/gist_id}","starred_url":"https://api.github.com/users/Sullux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sullux/subscriptions","organizations_url":"https://api.github.com/users/Sullux/orgs","repos_url":"https://api.github.com/users/Sullux/repos","events_url":"https://api.github.com/users/Sullux/events{/privacy}","received_events_url":"https://api.github.com/users/Sullux/received_events","type":"User","site_admin":false},"body":"Add the integration target and tools for temporary deployment/removal plus easy cleanup of past deployments.","created_at":"2018-09-17T20:42:04Z","updated_at":"2018-09-24T18:02:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":"af25e3cd0790d886cbff1f64c4baecbdb90a908b","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Nordstrom/serverless-artillery/pulls/181/commits","review_comments_url":"https://api.github.com/repos/Nordstrom/serverless-artillery/pulls/181/comments","review_comment_url":"https://api.github.com/repos/Nordstrom/serverless-artillery/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Nordstrom/serverless-artillery/issues/181/comments","statuses_url":"https://api.github.com/repos/Nordstrom/serverless-artillery/statuses/02c0973e3c3de8ba11b3dc70d63ce17893182a1c","head":{"label":"Nordstrom:integration-target","ref":"integration-target","sha":"02c0973e3c3de8ba11b3dc70d63ce17893182a1c","user":{"login":"Nordstrom","id":2488485,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI0ODg0ODU=","avatar_url":"https://avatars3.githubusercontent.com/u/2488485?v=4","gravatar_id":"","url":"https://api.github.com/users/Nordstrom","html_url":"https://github.com/Nordstrom","followers_url":"https://api.github.com/users/Nordstrom/followers","following_url":"https://api.github.com/users/Nordstrom/following{/other_user}","gists_url":"https://api.github.com/users/Nordstrom/gists{/gist_id}","starred_url":"https://api.github.com/users/Nordstrom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nordstrom/subscriptions","organizations_url":"https://api.github.com/users/Nordstrom/orgs","repos_url":"https://api.github.com/users/Nordstrom/repos","events_url":"https://api.github.com/users/Nordstrom/events{/privacy}","received_events_url":"https://api.github.com/users/Nordstrom/received_events","type":"Organization","site_admin":false},"repo":{"id":65584082,"node_id":"MDEwOlJlcG9zaXRvcnk2NTU4NDA4Mg==","name":"serverless-artillery","full_name":"Nordstrom/serverless-artillery","private":false,"owner":{"login":"Nordstrom","id":2488485,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI0ODg0ODU=","avatar_url":"https://avatars3.githubusercontent.com/u/2488485?v=4","gravatar_id":"","url":"https://api.github.com/users/Nordstrom","html_url":"https://github.com/Nordstrom","followers_url":"https://api.github.com/users/Nordstrom/followers","following_url":"https://api.github.com/users/Nordstrom/following{/other_user}","gists_url":"https://api.github.com/users/Nordstrom/gists{/gist_id}","starred_url":"https://api.github.com/users/Nordstrom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nordstrom/subscriptions","organizations_url":"https://api.github.com/users/Nordstrom/orgs","repos_url":"https://api.github.com/users/Nordstrom/repos","events_url":"https://api.github.com/users/Nordstrom/events{/privacy}","received_events_url":"https://api.github.com/users/Nordstrom/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/Nordstrom/serverless-artillery","description":"Combine serverless with artillery and you get serverless-artillery for instant, cheap, and easy performance testing at scale.","fork":false,"url":"https://api.github.com/repos/Nordstrom/serverless-artillery","forks_url":"https://api.github.com/repos/Nordstrom/serverless-artillery/forks","keys_url":"https://api.github.com/repos/Nordstrom/serverless-artillery/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Nordstrom/serverless-artillery/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Nordstrom/serverless-artillery/teams","hooks_url":"https://api.github.com/repos/Nordstrom/serverless-artillery/hooks","issue_events_url":"https://api.github.com/repos/Nordstrom/serverless-artillery/issues/events{/number}","events_url":"https://api.github.com/repos/Nordstrom/serverless-artillery/events","assignees_url":"https://api.github.com/repos/Nordstrom/serverless-artillery/assignees{/user}","branches_url":"https://api.github.com/repos/Nordstrom/serverless-artillery/branches{/branch}","tags_url":"https://api.github.com/repos/Nordstrom/serverless-artillery/tags","blobs_url":"https://api.github.com/repos/Nordstrom/serverless-artillery/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Nordstrom/serverless-artillery/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Nordstrom/serverless-artillery/git/refs{/sha}","trees_url":"https://api.github.com/repos/Nordstrom/serverless-artillery/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Nordstrom/serverless-artillery/statuses/{sha}","languages_url":"https://api.github.com/repos/Nordstrom/serverless-artillery/languages","stargazers_url":"https://api.github.com/repos/Nordstrom/serverless-artillery/stargazers","contributors_url":"https://api.github.com/repos/Nordstrom/serverless-artillery/contributors","subscribers_url":"https://api.github.com/repos/Nordstrom/serverless-artillery/subscribers","subscription_url":"https://api.github.com/repos/Nordstrom/serverless-artillery/subscription","commits_url":"https://api.github.com/repos/Nordstrom/serverless-artillery/commits{/sha}","git_commits_url":"https://api.github.com/repos/Nordstrom/serverless-artillery/git/commits{/sha}","comments_url":"https://api.github.com/repos/Nordstrom/serverless-artillery/comments{/number}","issue_comment_url":"https://api.github.com/repos/Nordstrom/serverless-artillery/issues/comments{/number}","contents_url":"https://api.github.com/repos/Nordstrom/serverless-artillery/contents/{+path}","compare_url":"https://api.github.com/repos/Nordstrom/serverless-artillery/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Nordstrom/serverless-artillery/merges","archive_url":"https://api.github.com/repos/Nordstrom/serverless-artillery/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Nordstrom/serverless-artillery/downloads","issues_url":"https://api.github.com/repos/Nordstrom/serverless-artillery/issues{/number}","pulls_url":"https://api.github.com/repos/Nordstrom/serverless-artillery/pulls{/number}","milestones_url":"https://api.github.com/repos/Nordstrom/serverless-artillery/milestones{/number}","notifications_url":"https://api.github.com/repos/Nordstrom/serverless-artillery/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Nordstrom/serverless-artillery/labels{/name}","releases_url":"https://api.github.com/repos/Nordstrom/serverless-artillery/releases{/id}","deployments_url":"https://api.github.com/repos/Nordstrom/serverless-artillery/deployments","created_at":"2016-08-12T21:17:28Z","updated_at":"2018-09-20T18:12:36Z","pushed_at":"2018-09-21T17:38:30Z","git_url":"git://github.com/Nordstrom/serverless-artillery.git","ssh_url":"git@github.com:Nordstrom/serverless-artillery.git","clone_url":"https://github.com/Nordstrom/serverless-artillery.git","svn_url":"https://github.com/Nordstrom/serverless-artillery","homepage":"","size":1043,"stargazers_count":281,"watchers_count":281,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":31,"mirror_url":null,"archived":false,"open_issues_count":45,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":31,"open_issues":45,"watchers":281,"default_branch":"master"}},"base":{"label":"Nordstrom:monitoring-mode","ref":"monitoring-mode","sha":"4151fc4e420162e27fd05fdd112458960684636a","user":{"login":"Nordstrom","id":2488485,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI0ODg0ODU=","avatar_url":"https://avatars3.githubusercontent.com/u/2488485?v=4","gravatar_id":"","url":"https://api.github.com/users/Nordstrom","html_url":"https://github.com/Nordstrom","followers_url":"https://api.github.com/users/Nordstrom/followers","following_url":"https://api.github.com/users/Nordstrom/following{/other_user}","gists_url":"https://api.github.com/users/Nordstrom/gists{/gist_id}","starred_url":"https://api.github.com/users/Nordstrom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nordstrom/subscriptions","organizations_url":"https://api.github.com/users/Nordstrom/orgs","repos_url":"https://api.github.com/users/Nordstrom/repos","events_url":"https://api.github.com/users/Nordstrom/events{/privacy}","received_events_url":"https://api.github.com/users/Nordstrom/received_events","type":"Organization","site_admin":false},"repo":{"id":65584082,"node_id":"MDEwOlJlcG9zaXRvcnk2NTU4NDA4Mg==","name":"serverless-artillery","full_name":"Nordstrom/serverless-artillery","private":false,"owner":{"login":"Nordstrom","id":2488485,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI0ODg0ODU=","avatar_url":"https://avatars3.githubusercontent.com/u/2488485?v=4","gravatar_id":"","url":"https://api.github.com/users/Nordstrom","html_url":"https://github.com/Nordstrom","followers_url":"https://api.github.com/users/Nordstrom/followers","following_url":"https://api.github.com/users/Nordstrom/following{/other_user}","gists_url":"https://api.github.com/users/Nordstrom/gists{/gist_id}","starred_url":"https://api.github.com/users/Nordstrom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nordstrom/subscriptions","organizations_url":"https://api.github.com/users/Nordstrom/orgs","repos_url":"https://api.github.com/users/Nordstrom/repos","events_url":"https://api.github.com/users/Nordstrom/events{/privacy}","received_events_url":"https://api.github.com/users/Nordstrom/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/Nordstrom/serverless-artillery","description":"Combine serverless with artillery and you get serverless-artillery for instant, cheap, and easy performance testing at scale.","fork":false,"url":"https://api.github.com/repos/Nordstrom/serverless-artillery","forks_url":"https://api.github.com/repos/Nordstrom/serverless-artillery/forks","keys_url":"https://api.github.com/repos/Nordstrom/serverless-artillery/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Nordstrom/serverless-artillery/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Nordstrom/serverless-artillery/teams","hooks_url":"https://api.github.com/repos/Nordstrom/serverless-artillery/hooks","issue_events_url":"https://api.github.com/repos/Nordstrom/serverless-artillery/issues/events{/number}","events_url":"https://api.github.com/repos/Nordstrom/serverless-artillery/events","assignees_url":"https://api.github.com/repos/Nordstrom/serverless-artillery/assignees{/user}","branches_url":"https://api.github.com/repos/Nordstrom/serverless-artillery/branches{/branch}","tags_url":"https://api.github.com/repos/Nordstrom/serverless-artillery/tags","blobs_url":"https://api.github.com/repos/Nordstrom/serverless-artillery/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Nordstrom/serverless-artillery/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Nordstrom/serverless-artillery/git/refs{/sha}","trees_url":"https://api.github.com/repos/Nordstrom/serverless-artillery/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Nordstrom/serverless-artillery/statuses/{sha}","languages_url":"https://api.github.com/repos/Nordstrom/serverless-artillery/languages","stargazers_url":"https://api.github.com/repos/Nordstrom/serverless-artillery/stargazers","contributors_url":"https://api.github.com/repos/Nordstrom/serverless-artillery/contributors","subscribers_url":"https://api.github.com/repos/Nordstrom/serverless-artillery/subscribers","subscription_url":"https://api.github.com/repos/Nordstrom/serverless-artillery/subscription","commits_url":"https://api.github.com/repos/Nordstrom/serverless-artillery/commits{/sha}","git_commits_url":"https://api.github.com/repos/Nordstrom/serverless-artillery/git/commits{/sha}","comments_url":"https://api.github.com/repos/Nordstrom/serverless-artillery/comments{/number}","issue_comment_url":"https://api.github.com/repos/Nordstrom/serverless-artillery/issues/comments{/number}","contents_url":"https://api.github.com/repos/Nordstrom/serverless-artillery/contents/{+path}","compare_url":"https://api.github.com/repos/Nordstrom/serverless-artillery/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Nordstrom/serverless-artillery/merges","archive_url":"https://api.github.com/repos/Nordstrom/serverless-artillery/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Nordstrom/serverless-artillery/downloads","issues_url":"https://api.github.com/repos/Nordstrom/serverless-artillery/issues{/number}","pulls_url":"https://api.github.com/repos/Nordstrom/serverless-artillery/pulls{/number}","milestones_url":"https://api.github.com/repos/Nordstrom/serverless-artillery/milestones{/number}","notifications_url":"https://api.github.com/repos/Nordstrom/serverless-artillery/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Nordstrom/serverless-artillery/labels{/name}","releases_url":"https://api.github.com/repos/Nordstrom/serverless-artillery/releases{/id}","deployments_url":"https://api.github.com/repos/Nordstrom/serverless-artillery/deployments","created_at":"2016-08-12T21:17:28Z","updated_at":"2018-09-20T18:12:36Z","pushed_at":"2018-09-21T17:38:30Z","git_url":"git://github.com/Nordstrom/serverless-artillery.git","ssh_url":"git@github.com:Nordstrom/serverless-artillery.git","clone_url":"https://github.com/Nordstrom/serverless-artillery.git","svn_url":"https://github.com/Nordstrom/serverless-artillery","homepage":"","size":1043,"stargazers_count":281,"watchers_count":281,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":31,"mirror_url":null,"archived":false,"open_issues_count":45,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":31,"open_issues":45,"watchers":281,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Nordstrom/serverless-artillery/pulls/181"},"html":{"href":"https://github.com/Nordstrom/serverless-artillery/pull/181"},"issue":{"href":"https://api.github.com/repos/Nordstrom/serverless-artillery/issues/181"},"comments":{"href":"https://api.github.com/repos/Nordstrom/serverless-artillery/issues/181/comments"},"review_comments":{"href":"https://api.github.com/repos/Nordstrom/serverless-artillery/pulls/181/comments"},"review_comment":{"href":"https://api.github.com/repos/Nordstrom/serverless-artillery/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Nordstrom/serverless-artillery/pulls/181/commits"},"statuses":{"href":"https://api.github.com/repos/Nordstrom/serverless-artillery/statuses/02c0973e3c3de8ba11b3dc70d63ce17893182a1c"}},"author_association":"NONE"}}
{"actor":{"display_login":"gwsii"}}