{"action":"created","comment":{"url":"https://api.github.com/repos/citusdata/test-automation/pulls/comments/141406300","pull_request_review_id":65615517,"id":141406300,"diff_hunk":"@@ -17,3 +25,135 @@ def regression():\n     'Runs Citus\\' regression tests'\n     with cd(config.paths['citus-repo']):\n         run('make check')\n+\n+@task\n+@runs_once\n+@roles('master')\n+def dml_tests(*args):\n+    'Runs pg-bench dml tests using the given config options'\n+    dir_path = '/home/ec2-user/'\n+    results_file = open(dir_path + 'dml_benchmark_results.csv', 'w')\n+    config_parser = ConfigParser.ConfigParser()\n+\n+    # If no argument is given, run default tests\n+    # Note that you can change test sql by updating insert.sql, update.sql and delete.sql\n+    if len(args) == 0:\n+        config_parser.read('default_config.ini')\n+    elif len(args) == 1:\n+        config_parser.read(args)\n+    else:\n+        print('You should use the default config or give the name of your own config file')\n+\n+    # before tests, create a file for the copy\n+    copy_file = open('copy_data_file', 'w')\n+    for i in range(1,10000):\n+        copy_file.write(str(i) + ',' + str(i) + ',' + str(i) + ',' + str(i))\n+        if i != 9999:\n+            copy_file.write('/n')","path":"fabfile/run.py","position":44,"original_position":44,"commit_id":"3c807573a6bd78586a67bc09f6100d2fedf7e688","original_commit_id":"3c807573a6bd78586a67bc09f6100d2fedf7e688","user":{"login":"mtuncer","id":9413470,"avatar_url":"https://avatars3.githubusercontent.com/u/9413470?v=4","gravatar_id":"","url":"https://api.github.com/users/mtuncer","html_url":"https://github.com/mtuncer","followers_url":"https://api.github.com/users/mtuncer/followers","following_url":"https://api.github.com/users/mtuncer/following{/other_user}","gists_url":"https://api.github.com/users/mtuncer/gists{/gist_id}","starred_url":"https://api.github.com/users/mtuncer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mtuncer/subscriptions","organizations_url":"https://api.github.com/users/mtuncer/orgs","repos_url":"https://api.github.com/users/mtuncer/repos","events_url":"https://api.github.com/users/mtuncer/events{/privacy}","received_events_url":"https://api.github.com/users/mtuncer/received_events","type":"User","site_admin":false},"body":"maybe it is worth to describe what you do here","created_at":"2017-09-27T17:01:28Z","updated_at":"2017-09-27T17:01:28Z","html_url":"https://github.com/citusdata/test-automation/pull/62#discussion_r141406300","pull_request_url":"https://api.github.com/repos/citusdata/test-automation/pulls/62","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/citusdata/test-automation/pulls/comments/141406300"},"html":{"href":"https://github.com/citusdata/test-automation/pull/62#discussion_r141406300"},"pull_request":{"href":"https://api.github.com/repos/citusdata/test-automation/pulls/62"}},"in_reply_to_id":141402735},"pull_request":{"url":"https://api.github.com/repos/citusdata/test-automation/pulls/62","id":139259670,"html_url":"https://github.com/citusdata/test-automation/pull/62","diff_url":"https://github.com/citusdata/test-automation/pull/62.diff","patch_url":"https://github.com/citusdata/test-automation/pull/62.patch","issue_url":"https://api.github.com/repos/citusdata/test-automation/issues/62","number":62,"state":"open","locked":false,"title":"Automate dml_benchmarks","user":{"login":"velioglu","id":10241593,"avatar_url":"https://avatars3.githubusercontent.com/u/10241593?v=4","gravatar_id":"","url":"https://api.github.com/users/velioglu","html_url":"https://github.com/velioglu","followers_url":"https://api.github.com/users/velioglu/followers","following_url":"https://api.github.com/users/velioglu/following{/other_user}","gists_url":"https://api.github.com/users/velioglu/gists{/gist_id}","starred_url":"https://api.github.com/users/velioglu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/velioglu/subscriptions","organizations_url":"https://api.github.com/users/velioglu/orgs","repos_url":"https://api.github.com/users/velioglu/repos","events_url":"https://api.github.com/users/velioglu/events{/privacy}","received_events_url":"https://api.github.com/users/velioglu/received_events","type":"User","site_admin":false},"body":"Fixes #56 \r\n\r\nAutomates dml_benchmark tests and updates readme file accordingly. ","created_at":"2017-09-05T08:01:02Z","updated_at":"2017-09-27T17:01:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3c6b515bd57557e91cd5725b5bb60d7f174be928","assignee":{"login":"mtuncer","id":9413470,"avatar_url":"https://avatars3.githubusercontent.com/u/9413470?v=4","gravatar_id":"","url":"https://api.github.com/users/mtuncer","html_url":"https://github.com/mtuncer","followers_url":"https://api.github.com/users/mtuncer/followers","following_url":"https://api.github.com/users/mtuncer/following{/other_user}","gists_url":"https://api.github.com/users/mtuncer/gists{/gist_id}","starred_url":"https://api.github.com/users/mtuncer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mtuncer/subscriptions","organizations_url":"https://api.github.com/users/mtuncer/orgs","repos_url":"https://api.github.com/users/mtuncer/repos","events_url":"https://api.github.com/users/mtuncer/events{/privacy}","received_events_url":"https://api.github.com/users/mtuncer/received_events","type":"User","site_admin":false},"assignees":[{"login":"mtuncer","id":9413470,"avatar_url":"https://avatars3.githubusercontent.com/u/9413470?v=4","gravatar_id":"","url":"https://api.github.com/users/mtuncer","html_url":"https://github.com/mtuncer","followers_url":"https://api.github.com/users/mtuncer/followers","following_url":"https://api.github.com/users/mtuncer/following{/other_user}","gists_url":"https://api.github.com/users/mtuncer/gists{/gist_id}","starred_url":"https://api.github.com/users/mtuncer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mtuncer/subscriptions","organizations_url":"https://api.github.com/users/mtuncer/orgs","repos_url":"https://api.github.com/users/mtuncer/repos","events_url":"https://api.github.com/users/mtuncer/events{/privacy}","received_events_url":"https://api.github.com/users/mtuncer/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/citusdata/test-automation/pulls/62/commits","review_comments_url":"https://api.github.com/repos/citusdata/test-automation/pulls/62/comments","review_comment_url":"https://api.github.com/repos/citusdata/test-automation/pulls/comments{/number}","comments_url":"https://api.github.com/repos/citusdata/test-automation/issues/62/comments","statuses_url":"https://api.github.com/repos/citusdata/test-automation/statuses/3c807573a6bd78586a67bc09f6100d2fedf7e688","head":{"label":"citusdata:automate_dml","ref":"automate_dml","sha":"3c807573a6bd78586a67bc09f6100d2fedf7e688","user":{"login":"citusdata","id":2545424,"avatar_url":"https://avatars2.githubusercontent.com/u/2545424?v=4","gravatar_id":"","url":"https://api.github.com/users/citusdata","html_url":"https://github.com/citusdata","followers_url":"https://api.github.com/users/citusdata/followers","following_url":"https://api.github.com/users/citusdata/following{/other_user}","gists_url":"https://api.github.com/users/citusdata/gists{/gist_id}","starred_url":"https://api.github.com/users/citusdata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/citusdata/subscriptions","organizations_url":"https://api.github.com/users/citusdata/orgs","repos_url":"https://api.github.com/users/citusdata/repos","events_url":"https://api.github.com/users/citusdata/events{/privacy}","received_events_url":"https://api.github.com/users/citusdata/received_events","type":"Organization","site_admin":false},"repo":{"id":76336560,"name":"test-automation","full_name":"citusdata/test-automation","owner":{"login":"citusdata","id":2545424,"avatar_url":"https://avatars2.githubusercontent.com/u/2545424?v=4","gravatar_id":"","url":"https://api.github.com/users/citusdata","html_url":"https://github.com/citusdata","followers_url":"https://api.github.com/users/citusdata/followers","following_url":"https://api.github.com/users/citusdata/following{/other_user}","gists_url":"https://api.github.com/users/citusdata/gists{/gist_id}","starred_url":"https://api.github.com/users/citusdata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/citusdata/subscriptions","organizations_url":"https://api.github.com/users/citusdata/orgs","repos_url":"https://api.github.com/users/citusdata/repos","events_url":"https://api.github.com/users/citusdata/events{/privacy}","received_events_url":"https://api.github.com/users/citusdata/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/citusdata/test-automation","description":"Tools for making our tests easier to run","fork":false,"url":"https://api.github.com/repos/citusdata/test-automation","forks_url":"https://api.github.com/repos/citusdata/test-automation/forks","keys_url":"https://api.github.com/repos/citusdata/test-automation/keys{/key_id}","collaborators_url":"https://api.github.com/repos/citusdata/test-automation/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/citusdata/test-automation/teams","hooks_url":"https://api.github.com/repos/citusdata/test-automation/hooks","issue_events_url":"https://api.github.com/repos/citusdata/test-automation/issues/events{/number}","events_url":"https://api.github.com/repos/citusdata/test-automation/events","assignees_url":"https://api.github.com/repos/citusdata/test-automation/assignees{/user}","branches_url":"https://api.github.com/repos/citusdata/test-automation/branches{/branch}","tags_url":"https://api.github.com/repos/citusdata/test-automation/tags","blobs_url":"https://api.github.com/repos/citusdata/test-automation/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/citusdata/test-automation/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/citusdata/test-automation/git/refs{/sha}","trees_url":"https://api.github.com/repos/citusdata/test-automation/git/trees{/sha}","statuses_url":"https://api.github.com/repos/citusdata/test-automation/statuses/{sha}","languages_url":"https://api.github.com/repos/citusdata/test-automation/languages","stargazers_url":"https://api.github.com/repos/citusdata/test-automation/stargazers","contributors_url":"https://api.github.com/repos/citusdata/test-automation/contributors","subscribers_url":"https://api.github.com/repos/citusdata/test-automation/subscribers","subscription_url":"https://api.github.com/repos/citusdata/test-automation/subscription","commits_url":"https://api.github.com/repos/citusdata/test-automation/commits{/sha}","git_commits_url":"https://api.github.com/repos/citusdata/test-automation/git/commits{/sha}","comments_url":"https://api.github.com/repos/citusdata/test-automation/comments{/number}","issue_comment_url":"https://api.github.com/repos/citusdata/test-automation/issues/comments{/number}","contents_url":"https://api.github.com/repos/citusdata/test-automation/contents/{+path}","compare_url":"https://api.github.com/repos/citusdata/test-automation/compare/{base}...{head}","merges_url":"https://api.github.com/repos/citusdata/test-automation/merges","archive_url":"https://api.github.com/repos/citusdata/test-automation/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/citusdata/test-automation/downloads","issues_url":"https://api.github.com/repos/citusdata/test-automation/issues{/number}","pulls_url":"https://api.github.com/repos/citusdata/test-automation/pulls{/number}","milestones_url":"https://api.github.com/repos/citusdata/test-automation/milestones{/number}","notifications_url":"https://api.github.com/repos/citusdata/test-automation/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/citusdata/test-automation/labels{/name}","releases_url":"https://api.github.com/repos/citusdata/test-automation/releases{/id}","deployments_url":"https://api.github.com/repos/citusdata/test-automation/deployments","created_at":"2016-12-13T08:02:28Z","updated_at":"2017-01-11T01:10:19Z","pushed_at":"2017-09-19T21:15:45Z","git_url":"git://github.com/citusdata/test-automation.git","ssh_url":"git@github.com:citusdata/test-automation.git","clone_url":"https://github.com/citusdata/test-automation.git","svn_url":"https://github.com/citusdata/test-automation","homepage":null,"size":866,"stargazers_count":2,"watchers_count":2,"language":"C","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":42,"forks":1,"open_issues":42,"watchers":2,"default_branch":"master"}},"base":{"label":"citusdata:master","ref":"master","sha":"c231150a2b85f709f2a7be04930cef1ab775ec84","user":{"login":"citusdata","id":2545424,"avatar_url":"https://avatars2.githubusercontent.com/u/2545424?v=4","gravatar_id":"","url":"https://api.github.com/users/citusdata","html_url":"https://github.com/citusdata","followers_url":"https://api.github.com/users/citusdata/followers","following_url":"https://api.github.com/users/citusdata/following{/other_user}","gists_url":"https://api.github.com/users/citusdata/gists{/gist_id}","starred_url":"https://api.github.com/users/citusdata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/citusdata/subscriptions","organizations_url":"https://api.github.com/users/citusdata/orgs","repos_url":"https://api.github.com/users/citusdata/repos","events_url":"https://api.github.com/users/citusdata/events{/privacy}","received_events_url":"https://api.github.com/users/citusdata/received_events","type":"Organization","site_admin":false},"repo":{"id":76336560,"name":"test-automation","full_name":"citusdata/test-automation","owner":{"login":"citusdata","id":2545424,"avatar_url":"https://avatars2.githubusercontent.com/u/2545424?v=4","gravatar_id":"","url":"https://api.github.com/users/citusdata","html_url":"https://github.com/citusdata","followers_url":"https://api.github.com/users/citusdata/followers","following_url":"https://api.github.com/users/citusdata/following{/other_user}","gists_url":"https://api.github.com/users/citusdata/gists{/gist_id}","starred_url":"https://api.github.com/users/citusdata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/citusdata/subscriptions","organizations_url":"https://api.github.com/users/citusdata/orgs","repos_url":"https://api.github.com/users/citusdata/repos","events_url":"https://api.github.com/users/citusdata/events{/privacy}","received_events_url":"https://api.github.com/users/citusdata/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/citusdata/test-automation","description":"Tools for making our tests easier to run","fork":false,"url":"https://api.github.com/repos/citusdata/test-automation","forks_url":"https://api.github.com/repos/citusdata/test-automation/forks","keys_url":"https://api.github.com/repos/citusdata/test-automation/keys{/key_id}","collaborators_url":"https://api.github.com/repos/citusdata/test-automation/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/citusdata/test-automation/teams","hooks_url":"https://api.github.com/repos/citusdata/test-automation/hooks","issue_events_url":"https://api.github.com/repos/citusdata/test-automation/issues/events{/number}","events_url":"https://api.github.com/repos/citusdata/test-automation/events","assignees_url":"https://api.github.com/repos/citusdata/test-automation/assignees{/user}","branches_url":"https://api.github.com/repos/citusdata/test-automation/branches{/branch}","tags_url":"https://api.github.com/repos/citusdata/test-automation/tags","blobs_url":"https://api.github.com/repos/citusdata/test-automation/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/citusdata/test-automation/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/citusdata/test-automation/git/refs{/sha}","trees_url":"https://api.github.com/repos/citusdata/test-automation/git/trees{/sha}","statuses_url":"https://api.github.com/repos/citusdata/test-automation/statuses/{sha}","languages_url":"https://api.github.com/repos/citusdata/test-automation/languages","stargazers_url":"https://api.github.com/repos/citusdata/test-automation/stargazers","contributors_url":"https://api.github.com/repos/citusdata/test-automation/contributors","subscribers_url":"https://api.github.com/repos/citusdata/test-automation/subscribers","subscription_url":"https://api.github.com/repos/citusdata/test-automation/subscription","commits_url":"https://api.github.com/repos/citusdata/test-automation/commits{/sha}","git_commits_url":"https://api.github.com/repos/citusdata/test-automation/git/commits{/sha}","comments_url":"https://api.github.com/repos/citusdata/test-automation/comments{/number}","issue_comment_url":"https://api.github.com/repos/citusdata/test-automation/issues/comments{/number}","contents_url":"https://api.github.com/repos/citusdata/test-automation/contents/{+path}","compare_url":"https://api.github.com/repos/citusdata/test-automation/compare/{base}...{head}","merges_url":"https://api.github.com/repos/citusdata/test-automation/merges","archive_url":"https://api.github.com/repos/citusdata/test-automation/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/citusdata/test-automation/downloads","issues_url":"https://api.github.com/repos/citusdata/test-automation/issues{/number}","pulls_url":"https://api.github.com/repos/citusdata/test-automation/pulls{/number}","milestones_url":"https://api.github.com/repos/citusdata/test-automation/milestones{/number}","notifications_url":"https://api.github.com/repos/citusdata/test-automation/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/citusdata/test-automation/labels{/name}","releases_url":"https://api.github.com/repos/citusdata/test-automation/releases{/id}","deployments_url":"https://api.github.com/repos/citusdata/test-automation/deployments","created_at":"2016-12-13T08:02:28Z","updated_at":"2017-01-11T01:10:19Z","pushed_at":"2017-09-19T21:15:45Z","git_url":"git://github.com/citusdata/test-automation.git","ssh_url":"git@github.com:citusdata/test-automation.git","clone_url":"https://github.com/citusdata/test-automation.git","svn_url":"https://github.com/citusdata/test-automation","homepage":null,"size":866,"stargazers_count":2,"watchers_count":2,"language":"C","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":42,"forks":1,"open_issues":42,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/citusdata/test-automation/pulls/62"},"html":{"href":"https://github.com/citusdata/test-automation/pull/62"},"issue":{"href":"https://api.github.com/repos/citusdata/test-automation/issues/62"},"comments":{"href":"https://api.github.com/repos/citusdata/test-automation/issues/62/comments"},"review_comments":{"href":"https://api.github.com/repos/citusdata/test-automation/pulls/62/comments"},"review_comment":{"href":"https://api.github.com/repos/citusdata/test-automation/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/citusdata/test-automation/pulls/62/commits"},"statuses":{"href":"https://api.github.com/repos/citusdata/test-automation/statuses/3c807573a6bd78586a67bc09f6100d2fedf7e688"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"mtuncer"}}