{"action":"created","comment":{"url":"https://api.github.com/repos/measurement-kit/network-meter/pulls/comments/41003671","id":41003671,"diff_hunk":"@@ -0,0 +1,43 @@\n+/* handler.js\n+ * Manages tests running in parallel\n+ */\n+var child_process = require('child_process');\n+var configure = require('./configure.js');\n+\n+exports.startTest = function(name_, command, directory) {\n+    var process = child_process.exec(command, { cwd : directory });\n+    var container = { name : name_,\n+                      test: process };\n+\n+    process.stdout.on('data', function (data) {\n+          console.log('stdout: ' + data);\n+    });\n+\n+\n+    process.on('close', function(container) {\n+        var index = tests.indexOf(container);\n+        tests.splice( index, 1 );\n+        exports.updateTests(configure.getState());\n+    });\n+\n+    tests.push(container);\n+\n+    return process;\n+}\n+\n+exports.killTest = function(test) {\n+    test.kill('SIGINT');","path":"handler.js","position":30,"original_position":29,"commit_id":"a8b4d12a613767fa10f566cf248a7cf5dabb94d7","original_commit_id":"2e94a1745973cdf44a0eaac9120cf791a61827e2","user":{"login":"0xPoly","id":2194999,"avatar_url":"https://avatars.githubusercontent.com/u/2194999?v=3","gravatar_id":"","url":"https://api.github.com/users/0xPoly","html_url":"https://github.com/0xPoly","followers_url":"https://api.github.com/users/0xPoly/followers","following_url":"https://api.github.com/users/0xPoly/following{/other_user}","gists_url":"https://api.github.com/users/0xPoly/gists{/gist_id}","starred_url":"https://api.github.com/users/0xPoly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/0xPoly/subscriptions","organizations_url":"https://api.github.com/users/0xPoly/orgs","repos_url":"https://api.github.com/users/0xPoly/repos","events_url":"https://api.github.com/users/0xPoly/events{/privacy}","received_events_url":"https://api.github.com/users/0xPoly/received_events","type":"User","site_admin":false},"body":"added #33 ","created_at":"2015-10-02T09:16:31Z","updated_at":"2015-10-02T09:16:31Z","html_url":"https://github.com/measurement-kit/network-meter/pull/32#discussion_r41003671","pull_request_url":"https://api.github.com/repos/measurement-kit/network-meter/pulls/32","_links":{"self":{"href":"https://api.github.com/repos/measurement-kit/network-meter/pulls/comments/41003671"},"html":{"href":"https://github.com/measurement-kit/network-meter/pull/32#discussion_r41003671"},"pull_request":{"href":"https://api.github.com/repos/measurement-kit/network-meter/pulls/32"}}},"pull_request":{"url":"https://api.github.com/repos/measurement-kit/network-meter/pulls/32","id":46540112,"html_url":"https://github.com/measurement-kit/network-meter/pull/32","diff_url":"https://github.com/measurement-kit/network-meter/pull/32.diff","patch_url":"https://github.com/measurement-kit/network-meter/pull/32.patch","issue_url":"https://api.github.com/repos/measurement-kit/network-meter/issues/32","number":32,"state":"open","locked":false,"title":"Parallel Test Handler","user":{"login":"0xPoly","id":2194999,"avatar_url":"https://avatars.githubusercontent.com/u/2194999?v=3","gravatar_id":"","url":"https://api.github.com/users/0xPoly","html_url":"https://github.com/0xPoly","followers_url":"https://api.github.com/users/0xPoly/followers","following_url":"https://api.github.com/users/0xPoly/following{/other_user}","gists_url":"https://api.github.com/users/0xPoly/gists{/gist_id}","starred_url":"https://api.github.com/users/0xPoly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/0xPoly/subscriptions","organizations_url":"https://api.github.com/users/0xPoly/orgs","repos_url":"https://api.github.com/users/0xPoly/repos","events_url":"https://api.github.com/users/0xPoly/events{/privacy}","received_events_url":"https://api.github.com/users/0xPoly/received_events","type":"User","site_admin":false},"body":"NM now can run multiple tests at the same time. An overview of which are running tests at any given time is available on the 'status' page.","created_at":"2015-10-01T15:40:33Z","updated_at":"2015-10-02T09:16:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":"62b69d2c210545dee82b592509f9bb79da990dca","assignee":{"login":"bassosimone","id":337298,"avatar_url":"https://avatars.githubusercontent.com/u/337298?v=3","gravatar_id":"","url":"https://api.github.com/users/bassosimone","html_url":"https://github.com/bassosimone","followers_url":"https://api.github.com/users/bassosimone/followers","following_url":"https://api.github.com/users/bassosimone/following{/other_user}","gists_url":"https://api.github.com/users/bassosimone/gists{/gist_id}","starred_url":"https://api.github.com/users/bassosimone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bassosimone/subscriptions","organizations_url":"https://api.github.com/users/bassosimone/orgs","repos_url":"https://api.github.com/users/bassosimone/repos","events_url":"https://api.github.com/users/bassosimone/events{/privacy}","received_events_url":"https://api.github.com/users/bassosimone/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/measurement-kit/network-meter/pulls/32/commits","review_comments_url":"https://api.github.com/repos/measurement-kit/network-meter/pulls/32/comments","review_comment_url":"https://api.github.com/repos/measurement-kit/network-meter/pulls/comments{/number}","comments_url":"https://api.github.com/repos/measurement-kit/network-meter/issues/32/comments","statuses_url":"https://api.github.com/repos/measurement-kit/network-meter/statuses/a8b4d12a613767fa10f566cf248a7cf5dabb94d7","head":{"label":"measurement-kit:handler","ref":"handler","sha":"a8b4d12a613767fa10f566cf248a7cf5dabb94d7","user":{"login":"measurement-kit","id":11982841,"avatar_url":"https://avatars.githubusercontent.com/u/11982841?v=3","gravatar_id":"","url":"https://api.github.com/users/measurement-kit","html_url":"https://github.com/measurement-kit","followers_url":"https://api.github.com/users/measurement-kit/followers","following_url":"https://api.github.com/users/measurement-kit/following{/other_user}","gists_url":"https://api.github.com/users/measurement-kit/gists{/gist_id}","starred_url":"https://api.github.com/users/measurement-kit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/measurement-kit/subscriptions","organizations_url":"https://api.github.com/users/measurement-kit/orgs","repos_url":"https://api.github.com/users/measurement-kit/repos","events_url":"https://api.github.com/users/measurement-kit/events{/privacy}","received_events_url":"https://api.github.com/users/measurement-kit/received_events","type":"Organization","site_admin":false},"repo":{"id":35334187,"name":"network-meter","full_name":"measurement-kit/network-meter","owner":{"login":"measurement-kit","id":11982841,"avatar_url":"https://avatars.githubusercontent.com/u/11982841?v=3","gravatar_id":"","url":"https://api.github.com/users/measurement-kit","html_url":"https://github.com/measurement-kit","followers_url":"https://api.github.com/users/measurement-kit/followers","following_url":"https://api.github.com/users/measurement-kit/following{/other_user}","gists_url":"https://api.github.com/users/measurement-kit/gists{/gist_id}","starred_url":"https://api.github.com/users/measurement-kit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/measurement-kit/subscriptions","organizations_url":"https://api.github.com/users/measurement-kit/orgs","repos_url":"https://api.github.com/users/measurement-kit/repos","events_url":"https://api.github.com/users/measurement-kit/events{/privacy}","received_events_url":"https://api.github.com/users/measurement-kit/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/measurement-kit/network-meter","description":"Graphical frontend for various network tests","fork":false,"url":"https://api.github.com/repos/measurement-kit/network-meter","forks_url":"https://api.github.com/repos/measurement-kit/network-meter/forks","keys_url":"https://api.github.com/repos/measurement-kit/network-meter/keys{/key_id}","collaborators_url":"https://api.github.com/repos/measurement-kit/network-meter/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/measurement-kit/network-meter/teams","hooks_url":"https://api.github.com/repos/measurement-kit/network-meter/hooks","issue_events_url":"https://api.github.com/repos/measurement-kit/network-meter/issues/events{/number}","events_url":"https://api.github.com/repos/measurement-kit/network-meter/events","assignees_url":"https://api.github.com/repos/measurement-kit/network-meter/assignees{/user}","branches_url":"https://api.github.com/repos/measurement-kit/network-meter/branches{/branch}","tags_url":"https://api.github.com/repos/measurement-kit/network-meter/tags","blobs_url":"https://api.github.com/repos/measurement-kit/network-meter/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/measurement-kit/network-meter/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/measurement-kit/network-meter/git/refs{/sha}","trees_url":"https://api.github.com/repos/measurement-kit/network-meter/git/trees{/sha}","statuses_url":"https://api.github.com/repos/measurement-kit/network-meter/statuses/{sha}","languages_url":"https://api.github.com/repos/measurement-kit/network-meter/languages","stargazers_url":"https://api.github.com/repos/measurement-kit/network-meter/stargazers","contributors_url":"https://api.github.com/repos/measurement-kit/network-meter/contributors","subscribers_url":"https://api.github.com/repos/measurement-kit/network-meter/subscribers","subscription_url":"https://api.github.com/repos/measurement-kit/network-meter/subscription","commits_url":"https://api.github.com/repos/measurement-kit/network-meter/commits{/sha}","git_commits_url":"https://api.github.com/repos/measurement-kit/network-meter/git/commits{/sha}","comments_url":"https://api.github.com/repos/measurement-kit/network-meter/comments{/number}","issue_comment_url":"https://api.github.com/repos/measurement-kit/network-meter/issues/comments{/number}","contents_url":"https://api.github.com/repos/measurement-kit/network-meter/contents/{+path}","compare_url":"https://api.github.com/repos/measurement-kit/network-meter/compare/{base}...{head}","merges_url":"https://api.github.com/repos/measurement-kit/network-meter/merges","archive_url":"https://api.github.com/repos/measurement-kit/network-meter/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/measurement-kit/network-meter/downloads","issues_url":"https://api.github.com/repos/measurement-kit/network-meter/issues{/number}","pulls_url":"https://api.github.com/repos/measurement-kit/network-meter/pulls{/number}","milestones_url":"https://api.github.com/repos/measurement-kit/network-meter/milestones{/number}","notifications_url":"https://api.github.com/repos/measurement-kit/network-meter/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/measurement-kit/network-meter/labels{/name}","releases_url":"https://api.github.com/repos/measurement-kit/network-meter/releases{/id}","created_at":"2015-05-09T15:42:30Z","updated_at":"2015-07-06T23:06:53Z","pushed_at":"2015-10-02T09:14:33Z","git_url":"git://github.com/measurement-kit/network-meter.git","ssh_url":"git@github.com:measurement-kit/network-meter.git","clone_url":"https://github.com/measurement-kit/network-meter.git","svn_url":"https://github.com/measurement-kit/network-meter","homepage":"","size":699,"stargazers_count":2,"watchers_count":2,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":13,"forks":3,"open_issues":13,"watchers":2,"default_branch":"master"}},"base":{"label":"measurement-kit:master","ref":"master","sha":"0c259c244366b9afa3729ac21c377d4ef0457a97","user":{"login":"measurement-kit","id":11982841,"avatar_url":"https://avatars.githubusercontent.com/u/11982841?v=3","gravatar_id":"","url":"https://api.github.com/users/measurement-kit","html_url":"https://github.com/measurement-kit","followers_url":"https://api.github.com/users/measurement-kit/followers","following_url":"https://api.github.com/users/measurement-kit/following{/other_user}","gists_url":"https://api.github.com/users/measurement-kit/gists{/gist_id}","starred_url":"https://api.github.com/users/measurement-kit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/measurement-kit/subscriptions","organizations_url":"https://api.github.com/users/measurement-kit/orgs","repos_url":"https://api.github.com/users/measurement-kit/repos","events_url":"https://api.github.com/users/measurement-kit/events{/privacy}","received_events_url":"https://api.github.com/users/measurement-kit/received_events","type":"Organization","site_admin":false},"repo":{"id":35334187,"name":"network-meter","full_name":"measurement-kit/network-meter","owner":{"login":"measurement-kit","id":11982841,"avatar_url":"https://avatars.githubusercontent.com/u/11982841?v=3","gravatar_id":"","url":"https://api.github.com/users/measurement-kit","html_url":"https://github.com/measurement-kit","followers_url":"https://api.github.com/users/measurement-kit/followers","following_url":"https://api.github.com/users/measurement-kit/following{/other_user}","gists_url":"https://api.github.com/users/measurement-kit/gists{/gist_id}","starred_url":"https://api.github.com/users/measurement-kit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/measurement-kit/subscriptions","organizations_url":"https://api.github.com/users/measurement-kit/orgs","repos_url":"https://api.github.com/users/measurement-kit/repos","events_url":"https://api.github.com/users/measurement-kit/events{/privacy}","received_events_url":"https://api.github.com/users/measurement-kit/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/measurement-kit/network-meter","description":"Graphical frontend for various network tests","fork":false,"url":"https://api.github.com/repos/measurement-kit/network-meter","forks_url":"https://api.github.com/repos/measurement-kit/network-meter/forks","keys_url":"https://api.github.com/repos/measurement-kit/network-meter/keys{/key_id}","collaborators_url":"https://api.github.com/repos/measurement-kit/network-meter/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/measurement-kit/network-meter/teams","hooks_url":"https://api.github.com/repos/measurement-kit/network-meter/hooks","issue_events_url":"https://api.github.com/repos/measurement-kit/network-meter/issues/events{/number}","events_url":"https://api.github.com/repos/measurement-kit/network-meter/events","assignees_url":"https://api.github.com/repos/measurement-kit/network-meter/assignees{/user}","branches_url":"https://api.github.com/repos/measurement-kit/network-meter/branches{/branch}","tags_url":"https://api.github.com/repos/measurement-kit/network-meter/tags","blobs_url":"https://api.github.com/repos/measurement-kit/network-meter/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/measurement-kit/network-meter/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/measurement-kit/network-meter/git/refs{/sha}","trees_url":"https://api.github.com/repos/measurement-kit/network-meter/git/trees{/sha}","statuses_url":"https://api.github.com/repos/measurement-kit/network-meter/statuses/{sha}","languages_url":"https://api.github.com/repos/measurement-kit/network-meter/languages","stargazers_url":"https://api.github.com/repos/measurement-kit/network-meter/stargazers","contributors_url":"https://api.github.com/repos/measurement-kit/network-meter/contributors","subscribers_url":"https://api.github.com/repos/measurement-kit/network-meter/subscribers","subscription_url":"https://api.github.com/repos/measurement-kit/network-meter/subscription","commits_url":"https://api.github.com/repos/measurement-kit/network-meter/commits{/sha}","git_commits_url":"https://api.github.com/repos/measurement-kit/network-meter/git/commits{/sha}","comments_url":"https://api.github.com/repos/measurement-kit/network-meter/comments{/number}","issue_comment_url":"https://api.github.com/repos/measurement-kit/network-meter/issues/comments{/number}","contents_url":"https://api.github.com/repos/measurement-kit/network-meter/contents/{+path}","compare_url":"https://api.github.com/repos/measurement-kit/network-meter/compare/{base}...{head}","merges_url":"https://api.github.com/repos/measurement-kit/network-meter/merges","archive_url":"https://api.github.com/repos/measurement-kit/network-meter/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/measurement-kit/network-meter/downloads","issues_url":"https://api.github.com/repos/measurement-kit/network-meter/issues{/number}","pulls_url":"https://api.github.com/repos/measurement-kit/network-meter/pulls{/number}","milestones_url":"https://api.github.com/repos/measurement-kit/network-meter/milestones{/number}","notifications_url":"https://api.github.com/repos/measurement-kit/network-meter/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/measurement-kit/network-meter/labels{/name}","releases_url":"https://api.github.com/repos/measurement-kit/network-meter/releases{/id}","created_at":"2015-05-09T15:42:30Z","updated_at":"2015-07-06T23:06:53Z","pushed_at":"2015-10-02T09:14:33Z","git_url":"git://github.com/measurement-kit/network-meter.git","ssh_url":"git@github.com:measurement-kit/network-meter.git","clone_url":"https://github.com/measurement-kit/network-meter.git","svn_url":"https://github.com/measurement-kit/network-meter","homepage":"","size":699,"stargazers_count":2,"watchers_count":2,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":13,"forks":3,"open_issues":13,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/measurement-kit/network-meter/pulls/32"},"html":{"href":"https://github.com/measurement-kit/network-meter/pull/32"},"issue":{"href":"https://api.github.com/repos/measurement-kit/network-meter/issues/32"},"comments":{"href":"https://api.github.com/repos/measurement-kit/network-meter/issues/32/comments"},"review_comments":{"href":"https://api.github.com/repos/measurement-kit/network-meter/pulls/32/comments"},"review_comment":{"href":"https://api.github.com/repos/measurement-kit/network-meter/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/measurement-kit/network-meter/pulls/32/commits"},"statuses":{"href":"https://api.github.com/repos/measurement-kit/network-meter/statuses/a8b4d12a613767fa10f566cf248a7cf5dabb94d7"}}}}