{"action":"created","comment":{"url":"https://api.github.com/repos/intel-hpdd/device-scanner/pulls/comments/169768246","pull_request_review_id":98348952,"id":169768246,"diff_hunk":"@@ -11,29 +11,34 @@ open Fable.Import.Node.PowerPack\n open Fable.PowerPack\n open IML.StatefulPromise.StatefulPromise\n \n-type PromiseResultS = unit -> ChildProcess.ChildProcessPromiseResult\n-type CommandResult<'a, 'b> = Result<'a * PromiseResultS list, 'b * PromiseResultS list>\n+\n+type CommandError = Err\n+type CommandResult = Out\n+type CommandRollback = unit -> ChildProcess.ChildProcessPromiseResult\n+type State = Result<CommandResult, CommandError> list * CommandRollback list\n+type CommandResult<'a, 'b> = Result<'a * State, 'b * State>\n \n let shellCommand (cmd:string) =\n-  sprintf \"ssh devicescannernode '%s'\" cmd\n+  let newCommand = sprintf \"ssh devicescannernode '%s'\" cmd\n+  printfn \"Running command: %s\" newCommand","path":"IML.IntegrationTestFramework/source/IntegrationTestFramework.fs","position":16,"original_position":16,"commit_id":"a790d0d7e169d3509496cf7dc54d3766236a4349","original_commit_id":"a790d0d7e169d3509496cf7dc54d3766236a4349","user":{"login":"johnsonw","id":1100657,"avatar_url":"https://avatars0.githubusercontent.com/u/1100657?v=4","gravatar_id":"","url":"https://api.github.com/users/johnsonw","html_url":"https://github.com/johnsonw","followers_url":"https://api.github.com/users/johnsonw/followers","following_url":"https://api.github.com/users/johnsonw/following{/other_user}","gists_url":"https://api.github.com/users/johnsonw/gists{/gist_id}","starred_url":"https://api.github.com/users/johnsonw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnsonw/subscriptions","organizations_url":"https://api.github.com/users/johnsonw/orgs","repos_url":"https://api.github.com/users/johnsonw/repos","events_url":"https://api.github.com/users/johnsonw/events{/privacy}","received_events_url":"https://api.github.com/users/johnsonw/received_events","type":"User","site_admin":false},"body":"removed","created_at":"2018-02-21T20:30:12Z","updated_at":"2018-02-21T20:30:12Z","html_url":"https://github.com/intel-hpdd/device-scanner/pull/80#discussion_r169768246","pull_request_url":"https://api.github.com/repos/intel-hpdd/device-scanner/pulls/80","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/intel-hpdd/device-scanner/pulls/comments/169768246"},"html":{"href":"https://github.com/intel-hpdd/device-scanner/pull/80#discussion_r169768246"},"pull_request":{"href":"https://api.github.com/repos/intel-hpdd/device-scanner/pulls/80"}},"in_reply_to_id":168282204},"pull_request":{"url":"https://api.github.com/repos/intel-hpdd/device-scanner/pulls/80","id":168697592,"html_url":"https://github.com/intel-hpdd/device-scanner/pull/80","diff_url":"https://github.com/intel-hpdd/device-scanner/pull/80.diff","patch_url":"https://github.com/intel-hpdd/device-scanner/pull/80.patch","issue_url":"https://api.github.com/repos/intel-hpdd/device-scanner/issues/80","number":80,"state":"open","locked":false,"title":"Update command state","user":{"login":"johnsonw","id":1100657,"avatar_url":"https://avatars0.githubusercontent.com/u/1100657?v=4","gravatar_id":"","url":"https://api.github.com/users/johnsonw","html_url":"https://github.com/johnsonw","followers_url":"https://api.github.com/users/johnsonw/followers","following_url":"https://api.github.com/users/johnsonw/following{/other_user}","gists_url":"https://api.github.com/users/johnsonw/gists{/gist_id}","starred_url":"https://api.github.com/users/johnsonw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnsonw/subscriptions","organizations_url":"https://api.github.com/users/johnsonw/orgs","repos_url":"https://api.github.com/users/johnsonw/repos","events_url":"https://api.github.com/users/johnsonw/events{/privacy}","received_events_url":"https://api.github.com/users/johnsonw/received_events","type":"User","site_admin":false},"body":"Include command results along with rollbacks in the state. The state will contain two separate lists to handle this.","created_at":"2018-02-12T21:50:56Z","updated_at":"2018-02-21T20:30:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d6e834fde660af9bd2bcfc1c53edfe7b896b75cd","assignee":{"login":"johnsonw","id":1100657,"avatar_url":"https://avatars0.githubusercontent.com/u/1100657?v=4","gravatar_id":"","url":"https://api.github.com/users/johnsonw","html_url":"https://github.com/johnsonw","followers_url":"https://api.github.com/users/johnsonw/followers","following_url":"https://api.github.com/users/johnsonw/following{/other_user}","gists_url":"https://api.github.com/users/johnsonw/gists{/gist_id}","starred_url":"https://api.github.com/users/johnsonw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnsonw/subscriptions","organizations_url":"https://api.github.com/users/johnsonw/orgs","repos_url":"https://api.github.com/users/johnsonw/repos","events_url":"https://api.github.com/users/johnsonw/events{/privacy}","received_events_url":"https://api.github.com/users/johnsonw/received_events","type":"User","site_admin":false},"assignees":[{"login":"johnsonw","id":1100657,"avatar_url":"https://avatars0.githubusercontent.com/u/1100657?v=4","gravatar_id":"","url":"https://api.github.com/users/johnsonw","html_url":"https://github.com/johnsonw","followers_url":"https://api.github.com/users/johnsonw/followers","following_url":"https://api.github.com/users/johnsonw/following{/other_user}","gists_url":"https://api.github.com/users/johnsonw/gists{/gist_id}","starred_url":"https://api.github.com/users/johnsonw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnsonw/subscriptions","organizations_url":"https://api.github.com/users/johnsonw/orgs","repos_url":"https://api.github.com/users/johnsonw/repos","events_url":"https://api.github.com/users/johnsonw/events{/privacy}","received_events_url":"https://api.github.com/users/johnsonw/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":594273631,"url":"https://api.github.com/repos/intel-hpdd/device-scanner/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"milestone":null,"commits_url":"https://api.github.com/repos/intel-hpdd/device-scanner/pulls/80/commits","review_comments_url":"https://api.github.com/repos/intel-hpdd/device-scanner/pulls/80/comments","review_comment_url":"https://api.github.com/repos/intel-hpdd/device-scanner/pulls/comments{/number}","comments_url":"https://api.github.com/repos/intel-hpdd/device-scanner/issues/80/comments","statuses_url":"https://api.github.com/repos/intel-hpdd/device-scanner/statuses/a790d0d7e169d3509496cf7dc54d3766236a4349","head":{"label":"intel-hpdd:integration-test-error-handling","ref":"integration-test-error-handling","sha":"a790d0d7e169d3509496cf7dc54d3766236a4349","user":{"login":"intel-hpdd","id":20727479,"avatar_url":"https://avatars3.githubusercontent.com/u/20727479?v=4","gravatar_id":"","url":"https://api.github.com/users/intel-hpdd","html_url":"https://github.com/intel-hpdd","followers_url":"https://api.github.com/users/intel-hpdd/followers","following_url":"https://api.github.com/users/intel-hpdd/following{/other_user}","gists_url":"https://api.github.com/users/intel-hpdd/gists{/gist_id}","starred_url":"https://api.github.com/users/intel-hpdd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/intel-hpdd/subscriptions","organizations_url":"https://api.github.com/users/intel-hpdd/orgs","repos_url":"https://api.github.com/users/intel-hpdd/repos","events_url":"https://api.github.com/users/intel-hpdd/events{/privacy}","received_events_url":"https://api.github.com/users/intel-hpdd/received_events","type":"Organization","site_admin":false},"repo":{"id":89747077,"name":"device-scanner","full_name":"intel-hpdd/device-scanner","owner":{"login":"intel-hpdd","id":20727479,"avatar_url":"https://avatars3.githubusercontent.com/u/20727479?v=4","gravatar_id":"","url":"https://api.github.com/users/intel-hpdd","html_url":"https://github.com/intel-hpdd","followers_url":"https://api.github.com/users/intel-hpdd/followers","following_url":"https://api.github.com/users/intel-hpdd/following{/other_user}","gists_url":"https://api.github.com/users/intel-hpdd/gists{/gist_id}","starred_url":"https://api.github.com/users/intel-hpdd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/intel-hpdd/subscriptions","organizations_url":"https://api.github.com/users/intel-hpdd/orgs","repos_url":"https://api.github.com/users/intel-hpdd/repos","events_url":"https://api.github.com/users/intel-hpdd/events{/privacy}","received_events_url":"https://api.github.com/users/intel-hpdd/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/intel-hpdd/device-scanner","description":"Builds an in-memory representation of devices using Udev and ZED.","fork":false,"url":"https://api.github.com/repos/intel-hpdd/device-scanner","forks_url":"https://api.github.com/repos/intel-hpdd/device-scanner/forks","keys_url":"https://api.github.com/repos/intel-hpdd/device-scanner/keys{/key_id}","collaborators_url":"https://api.github.com/repos/intel-hpdd/device-scanner/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/intel-hpdd/device-scanner/teams","hooks_url":"https://api.github.com/repos/intel-hpdd/device-scanner/hooks","issue_events_url":"https://api.github.com/repos/intel-hpdd/device-scanner/issues/events{/number}","events_url":"https://api.github.com/repos/intel-hpdd/device-scanner/events","assignees_url":"https://api.github.com/repos/intel-hpdd/device-scanner/assignees{/user}","branches_url":"https://api.github.com/repos/intel-hpdd/device-scanner/branches{/branch}","tags_url":"https://api.github.com/repos/intel-hpdd/device-scanner/tags","blobs_url":"https://api.github.com/repos/intel-hpdd/device-scanner/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/intel-hpdd/device-scanner/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/intel-hpdd/device-scanner/git/refs{/sha}","trees_url":"https://api.github.com/repos/intel-hpdd/device-scanner/git/trees{/sha}","statuses_url":"https://api.github.com/repos/intel-hpdd/device-scanner/statuses/{sha}","languages_url":"https://api.github.com/repos/intel-hpdd/device-scanner/languages","stargazers_url":"https://api.github.com/repos/intel-hpdd/device-scanner/stargazers","contributors_url":"https://api.github.com/repos/intel-hpdd/device-scanner/contributors","subscribers_url":"https://api.github.com/repos/intel-hpdd/device-scanner/subscribers","subscription_url":"https://api.github.com/repos/intel-hpdd/device-scanner/subscription","commits_url":"https://api.github.com/repos/intel-hpdd/device-scanner/commits{/sha}","git_commits_url":"https://api.github.com/repos/intel-hpdd/device-scanner/git/commits{/sha}","comments_url":"https://api.github.com/repos/intel-hpdd/device-scanner/comments{/number}","issue_comment_url":"https://api.github.com/repos/intel-hpdd/device-scanner/issues/comments{/number}","contents_url":"https://api.github.com/repos/intel-hpdd/device-scanner/contents/{+path}","compare_url":"https://api.github.com/repos/intel-hpdd/device-scanner/compare/{base}...{head}","merges_url":"https://api.github.com/repos/intel-hpdd/device-scanner/merges","archive_url":"https://api.github.com/repos/intel-hpdd/device-scanner/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/intel-hpdd/device-scanner/downloads","issues_url":"https://api.github.com/repos/intel-hpdd/device-scanner/issues{/number}","pulls_url":"https://api.github.com/repos/intel-hpdd/device-scanner/pulls{/number}","milestones_url":"https://api.github.com/repos/intel-hpdd/device-scanner/milestones{/number}","notifications_url":"https://api.github.com/repos/intel-hpdd/device-scanner/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/intel-hpdd/device-scanner/labels{/name}","releases_url":"https://api.github.com/repos/intel-hpdd/device-scanner/releases{/id}","deployments_url":"https://api.github.com/repos/intel-hpdd/device-scanner/deployments","created_at":"2017-04-28T21:45:57Z","updated_at":"2018-01-04T03:31:57Z","pushed_at":"2018-02-21T20:03:07Z","git_url":"git://github.com/intel-hpdd/device-scanner.git","ssh_url":"git@github.com:intel-hpdd/device-scanner.git","clone_url":"https://github.com/intel-hpdd/device-scanner.git","svn_url":"https://github.com/intel-hpdd/device-scanner","homepage":"","size":610,"stargazers_count":4,"watchers_count":4,"language":"F#","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":4,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":0,"open_issues":4,"watchers":4,"default_branch":"master"}},"base":{"label":"intel-hpdd:master","ref":"master","sha":"a87793b6da305d7220389986b055079299a58f7e","user":{"login":"intel-hpdd","id":20727479,"avatar_url":"https://avatars3.githubusercontent.com/u/20727479?v=4","gravatar_id":"","url":"https://api.github.com/users/intel-hpdd","html_url":"https://github.com/intel-hpdd","followers_url":"https://api.github.com/users/intel-hpdd/followers","following_url":"https://api.github.com/users/intel-hpdd/following{/other_user}","gists_url":"https://api.github.com/users/intel-hpdd/gists{/gist_id}","starred_url":"https://api.github.com/users/intel-hpdd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/intel-hpdd/subscriptions","organizations_url":"https://api.github.com/users/intel-hpdd/orgs","repos_url":"https://api.github.com/users/intel-hpdd/repos","events_url":"https://api.github.com/users/intel-hpdd/events{/privacy}","received_events_url":"https://api.github.com/users/intel-hpdd/received_events","type":"Organization","site_admin":false},"repo":{"id":89747077,"name":"device-scanner","full_name":"intel-hpdd/device-scanner","owner":{"login":"intel-hpdd","id":20727479,"avatar_url":"https://avatars3.githubusercontent.com/u/20727479?v=4","gravatar_id":"","url":"https://api.github.com/users/intel-hpdd","html_url":"https://github.com/intel-hpdd","followers_url":"https://api.github.com/users/intel-hpdd/followers","following_url":"https://api.github.com/users/intel-hpdd/following{/other_user}","gists_url":"https://api.github.com/users/intel-hpdd/gists{/gist_id}","starred_url":"https://api.github.com/users/intel-hpdd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/intel-hpdd/subscriptions","organizations_url":"https://api.github.com/users/intel-hpdd/orgs","repos_url":"https://api.github.com/users/intel-hpdd/repos","events_url":"https://api.github.com/users/intel-hpdd/events{/privacy}","received_events_url":"https://api.github.com/users/intel-hpdd/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/intel-hpdd/device-scanner","description":"Builds an in-memory representation of devices using Udev and ZED.","fork":false,"url":"https://api.github.com/repos/intel-hpdd/device-scanner","forks_url":"https://api.github.com/repos/intel-hpdd/device-scanner/forks","keys_url":"https://api.github.com/repos/intel-hpdd/device-scanner/keys{/key_id}","collaborators_url":"https://api.github.com/repos/intel-hpdd/device-scanner/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/intel-hpdd/device-scanner/teams","hooks_url":"https://api.github.com/repos/intel-hpdd/device-scanner/hooks","issue_events_url":"https://api.github.com/repos/intel-hpdd/device-scanner/issues/events{/number}","events_url":"https://api.github.com/repos/intel-hpdd/device-scanner/events","assignees_url":"https://api.github.com/repos/intel-hpdd/device-scanner/assignees{/user}","branches_url":"https://api.github.com/repos/intel-hpdd/device-scanner/branches{/branch}","tags_url":"https://api.github.com/repos/intel-hpdd/device-scanner/tags","blobs_url":"https://api.github.com/repos/intel-hpdd/device-scanner/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/intel-hpdd/device-scanner/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/intel-hpdd/device-scanner/git/refs{/sha}","trees_url":"https://api.github.com/repos/intel-hpdd/device-scanner/git/trees{/sha}","statuses_url":"https://api.github.com/repos/intel-hpdd/device-scanner/statuses/{sha}","languages_url":"https://api.github.com/repos/intel-hpdd/device-scanner/languages","stargazers_url":"https://api.github.com/repos/intel-hpdd/device-scanner/stargazers","contributors_url":"https://api.github.com/repos/intel-hpdd/device-scanner/contributors","subscribers_url":"https://api.github.com/repos/intel-hpdd/device-scanner/subscribers","subscription_url":"https://api.github.com/repos/intel-hpdd/device-scanner/subscription","commits_url":"https://api.github.com/repos/intel-hpdd/device-scanner/commits{/sha}","git_commits_url":"https://api.github.com/repos/intel-hpdd/device-scanner/git/commits{/sha}","comments_url":"https://api.github.com/repos/intel-hpdd/device-scanner/comments{/number}","issue_comment_url":"https://api.github.com/repos/intel-hpdd/device-scanner/issues/comments{/number}","contents_url":"https://api.github.com/repos/intel-hpdd/device-scanner/contents/{+path}","compare_url":"https://api.github.com/repos/intel-hpdd/device-scanner/compare/{base}...{head}","merges_url":"https://api.github.com/repos/intel-hpdd/device-scanner/merges","archive_url":"https://api.github.com/repos/intel-hpdd/device-scanner/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/intel-hpdd/device-scanner/downloads","issues_url":"https://api.github.com/repos/intel-hpdd/device-scanner/issues{/number}","pulls_url":"https://api.github.com/repos/intel-hpdd/device-scanner/pulls{/number}","milestones_url":"https://api.github.com/repos/intel-hpdd/device-scanner/milestones{/number}","notifications_url":"https://api.github.com/repos/intel-hpdd/device-scanner/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/intel-hpdd/device-scanner/labels{/name}","releases_url":"https://api.github.com/repos/intel-hpdd/device-scanner/releases{/id}","deployments_url":"https://api.github.com/repos/intel-hpdd/device-scanner/deployments","created_at":"2017-04-28T21:45:57Z","updated_at":"2018-01-04T03:31:57Z","pushed_at":"2018-02-21T20:03:07Z","git_url":"git://github.com/intel-hpdd/device-scanner.git","ssh_url":"git@github.com:intel-hpdd/device-scanner.git","clone_url":"https://github.com/intel-hpdd/device-scanner.git","svn_url":"https://github.com/intel-hpdd/device-scanner","homepage":"","size":610,"stargazers_count":4,"watchers_count":4,"language":"F#","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":4,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":0,"open_issues":4,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/intel-hpdd/device-scanner/pulls/80"},"html":{"href":"https://github.com/intel-hpdd/device-scanner/pull/80"},"issue":{"href":"https://api.github.com/repos/intel-hpdd/device-scanner/issues/80"},"comments":{"href":"https://api.github.com/repos/intel-hpdd/device-scanner/issues/80/comments"},"review_comments":{"href":"https://api.github.com/repos/intel-hpdd/device-scanner/pulls/80/comments"},"review_comment":{"href":"https://api.github.com/repos/intel-hpdd/device-scanner/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/intel-hpdd/device-scanner/pulls/80/commits"},"statuses":{"href":"https://api.github.com/repos/intel-hpdd/device-scanner/statuses/a790d0d7e169d3509496cf7dc54d3766236a4349"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"johnsonw"}}