GitHub PullRequestReviewCommentEvent at 2014-07-09 22:24:01
Repository: testreduce
Actor: hardikj
Payload: {"action":"created","comment":{"url":"https://api.github.com/repos/gwicke/testreduce/pulls/comments/14740171","id":14740171,"diff_hunk":"@@ -37,17 +37,27 @@ var insertTestBlobs = function(prefix, titles) {\n     });\n };\n \n-var insertTestByScore = function(prefix, title) {\n-    console.log(\"insert called on testbyscore\")\n-    var query = \"insert into test_by_score (commit, delta, test, score) values (?, ?, ?, ?);\",\n-        commit = new Buffer(DUMMYCOMMIT),\n-        delta = 0,\n-        test = createTestBlob(prefix, title),\n-        score = Math.floor(Math.random() * (10000));\n-    client.execute(query, [commit, delta, test, score], 1, function(err, result) {\n+var insertTestByScore = function(prefix, titles) {\n+    var query = \"insert into test_by_score (commit, delta, test, score) values (?, ?, ?, ?);\";\n+    var queries = titles.map(function(title) {\n+        return {\n+                query : query,\n+                params: [\n+                        commit = new Buffer(DUMMYCOMMIT),","path":"articles/importCassandra.js","position":18,"original_position":18,"commit_id":"6fd66f7812372d50e3438ec2f962c0540445dcb5","original_commit_id":"6fd66f7812372d50e3438ec2f962c0540445dcb5","user":{"login":"hardikj","id":3114839,"avatar_url":"https://avatars.githubusercontent.com/u/3114839?","gravatar_id":"e27830eeacc7287dc50548f0b192631a","url":"https://api.github.com/users/hardikj","html_url":"https://github.com/hardikj","followers_url":"https://api.github.com/users/hardikj/followers","following_url":"https://api.github.com/users/hardikj/following{/other_user}","gists_url":"https://api.github.com/users/hardikj/gists{/gist_id}","starred_url":"https://api.github.com/users/hardikj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hardikj/subscriptions","organizations_url":"https://api.github.com/users/hardikj/orgs","repos_url":"https://api.github.com/users/hardikj/repos","events_url":"https://api.github.com/users/hardikj/events{/privacy}","received_events_url":"https://api.github.com/users/hardikj/received_events","type":"User","site_admin":false},"body":"why are we pushing dummy commit here?\r\nwhen I start the server I get \"no tests\" since this dummy commit don't match lastCommit","created_at":"2014-07-09T22:24:01Z","updated_at":"2014-07-09T22:24:01Z","html_url":"https://github.com/gwicke/testreduce/pull/46#discussion_r14740171","pull_request_url":"https://api.github.com/repos/gwicke/testreduce/pulls/46","_links":{"self":{"href":"https://api.github.com/repos/gwicke/testreduce/pulls/comments/14740171"},"html":{"href":"https://github.com/gwicke/testreduce/pull/46#discussion_r14740171"},"pull_request":{"href":"https://api.github.com/repos/gwicke/testreduce/pulls/46"}}},"pull_request":{"url":"https://api.github.com/repos/gwicke/testreduce/pulls/46","id":18190567,"html_url":"https://github.com/gwicke/testreduce/pull/46","diff_url":"https://github.com/gwicke/testreduce/pull/46.diff","patch_url":"https://github.com/gwicke/testreduce/pull/46.patch","issue_url":"https://api.github.com/repos/gwicke/testreduce/issues/46","number":46,"state":"open","title":"Client should not crash Server when db is empty and importCassandra should fill test_by_score","user":{"login":"hardikj","id":3114839,"avatar_url":"https://avatars.githubusercontent.com/u/3114839?","gravatar_id":"e27830eeacc7287dc50548f0b192631a","url":"https://api.github.com/users/hardikj","html_url":"https://github.com/hardikj","followers_url":"https://api.github.com/users/hardikj/followers","following_url":"https://api.github.com/users/hardikj/following{/other_user}","gists_url":"https://api.github.com/users/hardikj/gists{/gist_id}","starred_url":"https://api.github.com/users/hardikj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hardikj/subscriptions","organizations_url":"https://api.github.com/users/hardikj/orgs","repos_url":"https://api.github.com/users/hardikj/repos","events_url":"https://api.github.com/users/hardikj/events{/privacy}","received_events_url":"https://api.github.com/users/hardikj/received_events","type":"User","site_admin":false},"body":"","created_at":"2014-07-09T22:22:37Z","updated_at":"2014-07-09T22:24:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4220964a770bfc90c23eba5886b2e970a8307506","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/gwicke/testreduce/pulls/46/commits","review_comments_url":"https://api.github.com/repos/gwicke/testreduce/pulls/46/comments","review_comment_url":"https://api.github.com/repos/gwicke/testreduce/pulls/comments/{number}","comments_url":"https://api.github.com/repos/gwicke/testreduce/issues/46/comments","statuses_url":"https://api.github.com/repos/gwicke/testreduce/statuses/6fd66f7812372d50e3438ec2f962c0540445dcb5","head":{"label":"hardikj:empty_db_support","ref":"empty_db_support","sha":"6fd66f7812372d50e3438ec2f962c0540445dcb5","user":{"login":"hardikj","id":3114839,"avatar_url":"https://avatars.githubusercontent.com/u/3114839?","gravatar_id":"e27830eeacc7287dc50548f0b192631a","url":"https://api.github.com/users/hardikj","html_url":"https://github.com/hardikj","followers_url":"https://api.github.com/users/hardikj/followers","following_url":"https://api.github.com/users/hardikj/following{/other_user}","gists_url":"https://api.github.com/users/hardikj/gists{/gist_id}","starred_url":"https://api.github.com/users/hardikj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hardikj/subscriptions","organizations_url":"https://api.github.com/users/hardikj/orgs","repos_url":"https://api.github.com/users/hardikj/repos","events_url":"https://api.github.com/users/hardikj/events{/privacy}","received_events_url":"https://api.github.com/users/hardikj/received_events","type":"User","site_admin":false},"repo":{"id":21549589,"name":"testreduce","full_name":"hardikj/testreduce","owner":{"login":"hardikj","id":3114839,"avatar_url":"https://avatars.githubusercontent.com/u/3114839?","gravatar_id":"e27830eeacc7287dc50548f0b192631a","url":"https://api.github.com/users/hardikj","html_url":"https://github.com/hardikj","followers_url":"https://api.github.com/users/hardikj/followers","following_url":"https://api.github.com/users/hardikj/following{/other_user}","gists_url":"https://api.github.com/users/hardikj/gists{/gist_id}","starred_url":"https://api.github.com/users/hardikj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hardikj/subscriptions","organizations_url":"https://api.github.com/users/hardikj/orgs","repos_url":"https://api.github.com/users/hardikj/repos","events_url":"https://api.github.com/users/hardikj/events{/privacy}","received_events_url":"https://api.github.com/users/hardikj/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/hardikj/testreduce","description":"Distributed testing server originally developed for Parsoid round-trip testing on a large corpus of Wikipedia pages","fork":true,"url":"https://api.github.com/repos/hardikj/testreduce","forks_url":"https://api.github.com/repos/hardikj/testreduce/forks","keys_url":"https://api.github.com/repos/hardikj/testreduce/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hardikj/testreduce/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hardikj/testreduce/teams","hooks_url":"https://api.github.com/repos/hardikj/testreduce/hooks","issue_events_url":"https://api.github.com/repos/hardikj/testreduce/issues/events{/number}","events_url":"https://api.github.com/repos/hardikj/testreduce/events","assignees_url":"https://api.github.com/repos/hardikj/testreduce/assignees{/user}","branches_url":"https://api.github.com/repos/hardikj/testreduce/branches{/branch}","tags_url":"https://api.github.com/repos/hardikj/testreduce/tags","blobs_url":"https://api.github.com/repos/hardikj/testreduce/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hardikj/testreduce/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hardikj/testreduce/git/refs{/sha}","trees_url":"https://api.github.com/repos/hardikj/testreduce/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hardikj/testreduce/statuses/{sha}","languages_url":"https://api.github.com/repos/hardikj/testreduce/languages","stargazers_url":"https://api.github.com/repos/hardikj/testreduce/stargazers","contributors_url":"https://api.github.com/repos/hardikj/testreduce/contributors","subscribers_url":"https://api.github.com/repos/hardikj/testreduce/subscribers","subscription_url":"https://api.github.com/repos/hardikj/testreduce/subscription","commits_url":"https://api.github.com/repos/hardikj/testreduce/commits{/sha}","git_commits_url":"https://api.github.com/repos/hardikj/testreduce/git/commits{/sha}","comments_url":"https://api.github.com/repos/hardikj/testreduce/comments{/number}","issue_comment_url":"https://api.github.com/repos/hardikj/testreduce/issues/comments/{number}","contents_url":"https://api.github.com/repos/hardikj/testreduce/contents/{+path}","compare_url":"https://api.github.com/repos/hardikj/testreduce/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hardikj/testreduce/merges","archive_url":"https://api.github.com/repos/hardikj/testreduce/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hardikj/testreduce/downloads","issues_url":"https://api.github.com/repos/hardikj/testreduce/issues{/number}","pulls_url":"https://api.github.com/repos/hardikj/testreduce/pulls{/number}","milestones_url":"https://api.github.com/repos/hardikj/testreduce/milestones{/number}","notifications_url":"https://api.github.com/repos/hardikj/testreduce/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hardikj/testreduce/labels{/name}","releases_url":"https://api.github.com/repos/hardikj/testreduce/releases{/id}","created_at":"2014-07-06T22:07:03Z","updated_at":"2014-06-26T20:16:11Z","pushed_at":"2014-07-09T22:21:20Z","git_url":"git://github.com/hardikj/testreduce.git","ssh_url":"git@github.com:hardikj/testreduce.git","clone_url":"https://github.com/hardikj/testreduce.git","svn_url":"https://github.com/hardikj/testreduce","homepage":null,"size":10011,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_downloads":true,"has_wiki":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"gwicke:empty_db_support","ref":"empty_db_support","sha":"1511fed7108f1985eafbfab3af6034bb8ef8cd6d","user":{"login":"gwicke","id":1225898,"avatar_url":"https://avatars.githubusercontent.com/u/1225898?","gravatar_id":"ffb9bcad7a682c8317f6533ca61240a4","url":"https://api.github.com/users/gwicke","html_url":"https://github.com/gwicke","followers_url":"https://api.github.com/users/gwicke/followers","following_url":"https://api.github.com/users/gwicke/following{/other_user}","gists_url":"https://api.github.com/users/gwicke/gists{/gist_id}","starred_url":"https://api.github.com/users/gwicke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gwicke/subscriptions","organizations_url":"https://api.github.com/users/gwicke/orgs","repos_url":"https://api.github.com/users/gwicke/repos","events_url":"https://api.github.com/users/gwicke/events{/privacy}","received_events_url":"https://api.github.com/users/gwicke/received_events","type":"User","site_admin":false},"repo":{"id":16601418,"name":"testreduce","full_name":"gwicke/testreduce","owner":{"login":"gwicke","id":1225898,"avatar_url":"https://avatars.githubusercontent.com/u/1225898?","gravatar_id":"ffb9bcad7a682c8317f6533ca61240a4","url":"https://api.github.com/users/gwicke","html_url":"https://github.com/gwicke","followers_url":"https://api.github.com/users/gwicke/followers","following_url":"https://api.github.com/users/gwicke/following{/other_user}","gists_url":"https://api.github.com/users/gwicke/gists{/gist_id}","starred_url":"https://api.github.com/users/gwicke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gwicke/subscriptions","organizations_url":"https://api.github.com/users/gwicke/orgs","repos_url":"https://api.github.com/users/gwicke/repos","events_url":"https://api.github.com/users/gwicke/events{/privacy}","received_events_url":"https://api.github.com/users/gwicke/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/gwicke/testreduce","description":"Distributed testing server originally developed for Parsoid round-trip testing on a large corpus of Wikipedia pages","fork":false,"url":"https://api.github.com/repos/gwicke/testreduce","forks_url":"https://api.github.com/repos/gwicke/testreduce/forks","keys_url":"https://api.github.com/repos/gwicke/testreduce/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gwicke/testreduce/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gwicke/testreduce/teams","hooks_url":"https://api.github.com/repos/gwicke/testreduce/hooks","issue_events_url":"https://api.github.com/repos/gwicke/testreduce/issues/events{/number}","events_url":"https://api.github.com/repos/gwicke/testreduce/events","assignees_url":"https://api.github.com/repos/gwicke/testreduce/assignees{/user}","branches_url":"https://api.github.com/repos/gwicke/testreduce/branches{/branch}","tags_url":"https://api.github.com/repos/gwicke/testreduce/tags","blobs_url":"https://api.github.com/repos/gwicke/testreduce/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gwicke/testreduce/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gwicke/testreduce/git/refs{/sha}","trees_url":"https://api.github.com/repos/gwicke/testreduce/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gwicke/testreduce/statuses/{sha}","languages_url":"https://api.github.com/repos/gwicke/testreduce/languages","stargazers_url":"https://api.github.com/repos/gwicke/testreduce/stargazers","contributors_url":"https://api.github.com/repos/gwicke/testreduce/contributors","subscribers_url":"https://api.github.com/repos/gwicke/testreduce/subscribers","subscription_url":"https://api.github.com/repos/gwicke/testreduce/subscription","commits_url":"https://api.github.com/repos/gwicke/testreduce/commits{/sha}","git_commits_url":"https://api.github.com/repos/gwicke/testreduce/git/commits{/sha}","comments_url":"https://api.github.com/repos/gwicke/testreduce/comments{/number}","issue_comment_url":"https://api.github.com/repos/gwicke/testreduce/issues/comments/{number}","contents_url":"https://api.github.com/repos/gwicke/testreduce/contents/{+path}","compare_url":"https://api.github.com/repos/gwicke/testreduce/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gwicke/testreduce/merges","archive_url":"https://api.github.com/repos/gwicke/testreduce/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gwicke/testreduce/downloads","issues_url":"https://api.github.com/repos/gwicke/testreduce/issues{/number}","pulls_url":"https://api.github.com/repos/gwicke/testreduce/pulls{/number}","milestones_url":"https://api.github.com/repos/gwicke/testreduce/milestones{/number}","notifications_url":"https://api.github.com/repos/gwicke/testreduce/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gwicke/testreduce/labels{/name}","releases_url":"https://api.github.com/repos/gwicke/testreduce/releases{/id}","created_at":"2014-02-07T01:57:05Z","updated_at":"2014-06-26T20:16:11Z","pushed_at":"2014-07-09T20:17:00Z","git_url":"git://github.com/gwicke/testreduce.git","ssh_url":"git@github.com:gwicke/testreduce.git","clone_url":"https://github.com/gwicke/testreduce.git","svn_url":"https://github.com/gwicke/testreduce","homepage":null,"size":9782,"stargazers_count":6,"watchers_count":6,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"forks_count":11,"mirror_url":null,"open_issues_count":16,"forks":11,"open_issues":16,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/gwicke/testreduce/pulls/46"},"html":{"href":"https://github.com/gwicke/testreduce/pull/46"},"issue":{"href":"https://api.github.com/repos/gwicke/testreduce/issues/46"},"comments":{"href":"https://api.github.com/repos/gwicke/testreduce/issues/46/comments"},"review_comments":{"href":"https://api.github.com/repos/gwicke/testreduce/pulls/46/comments"},"review_comment":{"href":"https://api.github.com/repos/gwicke/testreduce/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/gwicke/testreduce/pulls/46/commits"},"statuses":{"href":"https://api.github.com/repos/gwicke/testreduce/statuses/6fd66f7812372d50e3438ec2f962c0540445dcb5"}}}}