{"action":"created","comment":{"url":"https://api.github.com/repos/distributed-system-analysis/pbench/pulls/comments/110713033","pull_request_review_id":31905288,"id":110713033,"diff_hunk":"@@ -0,0 +1,16 @@\n+#!/bin/bash\n+\n+benchmark_run_dir=$1\n+benchmark_bin=$2\n+\n+# Run the benchmark and record the duration\n+SECONDS=0\n+$benchmark_bin 2>&1 | tee $benchmark_results_dir/result.txt\n+benchmark_duration=$SECONDS\n+\n+# Checks if the duration is provided by callee\n+if [[ -f \"$benchmark_run_dir/user-benchmark-summary.json\" ]] &&  grep \"duration\" && grep -qw \"duration\" \"$benchmark_run_dir/user-benchmark-summary.json\"; then\n+\t:\n+else\n+\tprintf '{\\n\\t\"duration\": \"%s\",\\n\\t\"duration_units\": \"sec\"\\n}' \"$benchmark_duration\" | tee \"$benchmark_run_dir/user-benchmark-summary.json\" > /dev/null","path":"agent/bench-scripts/postprocess/user-benchmark-wrapper","position":15,"original_position":15,"commit_id":"0d45df49e76c7fcdeb6ea011eb4c2a12fd42008c","original_commit_id":"0d45df49e76c7fcdeb6ea011eb4c2a12fd42008c","user":{"login":"chaitanyaenr","id":14077093,"avatar_url":"https://avatars2.githubusercontent.com/u/14077093?v=3","gravatar_id":"","url":"https://api.github.com/users/chaitanyaenr","html_url":"https://github.com/chaitanyaenr","followers_url":"https://api.github.com/users/chaitanyaenr/followers","following_url":"https://api.github.com/users/chaitanyaenr/following{/other_user}","gists_url":"https://api.github.com/users/chaitanyaenr/gists{/gist_id}","starred_url":"https://api.github.com/users/chaitanyaenr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chaitanyaenr/subscriptions","organizations_url":"https://api.github.com/users/chaitanyaenr/orgs","repos_url":"https://api.github.com/users/chaitanyaenr/repos","events_url":"https://api.github.com/users/chaitanyaenr/events{/privacy}","received_events_url":"https://api.github.com/users/chaitanyaenr/received_events","type":"User","site_admin":false},"body":"yes it works even if the file does not exist","created_at":"2017-04-10T17:22:04Z","updated_at":"2017-04-10T17:22:04Z","html_url":"https://github.com/distributed-system-analysis/pbench/pull/545#discussion_r110713033","pull_request_url":"https://api.github.com/repos/distributed-system-analysis/pbench/pulls/545","_links":{"self":{"href":"https://api.github.com/repos/distributed-system-analysis/pbench/pulls/comments/110713033"},"html":{"href":"https://github.com/distributed-system-analysis/pbench/pull/545#discussion_r110713033"},"pull_request":{"href":"https://api.github.com/repos/distributed-system-analysis/pbench/pulls/545"}}},"pull_request":{"url":"https://api.github.com/repos/distributed-system-analysis/pbench/pulls/545","id":114405983,"html_url":"https://github.com/distributed-system-analysis/pbench/pull/545","diff_url":"https://github.com/distributed-system-analysis/pbench/pull/545.diff","patch_url":"https://github.com/distributed-system-analysis/pbench/pull/545.patch","issue_url":"https://api.github.com/repos/distributed-system-analysis/pbench/issues/545","number":545,"state":"open","locked":false,"title":"Add support to user-benchmark to emit a json file to be indexed","user":{"login":"chaitanyaenr","id":14077093,"avatar_url":"https://avatars2.githubusercontent.com/u/14077093?v=3","gravatar_id":"","url":"https://api.github.com/users/chaitanyaenr","html_url":"https://github.com/chaitanyaenr","followers_url":"https://api.github.com/users/chaitanyaenr/followers","following_url":"https://api.github.com/users/chaitanyaenr/following{/other_user}","gists_url":"https://api.github.com/users/chaitanyaenr/gists{/gist_id}","starred_url":"https://api.github.com/users/chaitanyaenr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chaitanyaenr/subscriptions","organizations_url":"https://api.github.com/users/chaitanyaenr/orgs","repos_url":"https://api.github.com/users/chaitanyaenr/repos","events_url":"https://api.github.com/users/chaitanyaenr/events{/privacy}","received_events_url":"https://api.github.com/users/chaitanyaenr/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-04-05T15:31:28Z","updated_at":"2017-04-10T17:22:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6ab95035f0326150eafae7ee2e95ad958c95b1d8","assignee":{"login":"chaitanyaenr","id":14077093,"avatar_url":"https://avatars2.githubusercontent.com/u/14077093?v=3","gravatar_id":"","url":"https://api.github.com/users/chaitanyaenr","html_url":"https://github.com/chaitanyaenr","followers_url":"https://api.github.com/users/chaitanyaenr/followers","following_url":"https://api.github.com/users/chaitanyaenr/following{/other_user}","gists_url":"https://api.github.com/users/chaitanyaenr/gists{/gist_id}","starred_url":"https://api.github.com/users/chaitanyaenr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chaitanyaenr/subscriptions","organizations_url":"https://api.github.com/users/chaitanyaenr/orgs","repos_url":"https://api.github.com/users/chaitanyaenr/repos","events_url":"https://api.github.com/users/chaitanyaenr/events{/privacy}","received_events_url":"https://api.github.com/users/chaitanyaenr/received_events","type":"User","site_admin":false},"assignees":[{"login":"chaitanyaenr","id":14077093,"avatar_url":"https://avatars2.githubusercontent.com/u/14077093?v=3","gravatar_id":"","url":"https://api.github.com/users/chaitanyaenr","html_url":"https://github.com/chaitanyaenr","followers_url":"https://api.github.com/users/chaitanyaenr/followers","following_url":"https://api.github.com/users/chaitanyaenr/following{/other_user}","gists_url":"https://api.github.com/users/chaitanyaenr/gists{/gist_id}","starred_url":"https://api.github.com/users/chaitanyaenr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chaitanyaenr/subscriptions","organizations_url":"https://api.github.com/users/chaitanyaenr/orgs","repos_url":"https://api.github.com/users/chaitanyaenr/repos","events_url":"https://api.github.com/users/chaitanyaenr/events{/privacy}","received_events_url":"https://api.github.com/users/chaitanyaenr/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/distributed-system-analysis/pbench/milestones/7","html_url":"https://github.com/distributed-system-analysis/pbench/milestone/7","labels_url":"https://api.github.com/repos/distributed-system-analysis/pbench/milestones/7/labels","id":2347827,"number":7,"title":"V0.43","description":"Primarily targeting the indexing work for benchmark results and tool data.","creator":{"login":"portante","id":949097,"avatar_url":"https://avatars1.githubusercontent.com/u/949097?v=3","gravatar_id":"","url":"https://api.github.com/users/portante","html_url":"https://github.com/portante","followers_url":"https://api.github.com/users/portante/followers","following_url":"https://api.github.com/users/portante/following{/other_user}","gists_url":"https://api.github.com/users/portante/gists{/gist_id}","starred_url":"https://api.github.com/users/portante/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/portante/subscriptions","organizations_url":"https://api.github.com/users/portante/orgs","repos_url":"https://api.github.com/users/portante/repos","events_url":"https://api.github.com/users/portante/events{/privacy}","received_events_url":"https://api.github.com/users/portante/received_events","type":"User","site_admin":false},"open_issues":40,"closed_issues":17,"state":"open","created_at":"2017-02-25T19:58:06Z","updated_at":"2017-04-07T14:50:05Z","due_on":"2017-03-25T07:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/distributed-system-analysis/pbench/pulls/545/commits","review_comments_url":"https://api.github.com/repos/distributed-system-analysis/pbench/pulls/545/comments","review_comment_url":"https://api.github.com/repos/distributed-system-analysis/pbench/pulls/comments{/number}","comments_url":"https://api.github.com/repos/distributed-system-analysis/pbench/issues/545/comments","statuses_url":"https://api.github.com/repos/distributed-system-analysis/pbench/statuses/0d45df49e76c7fcdeb6ea011eb4c2a12fd42008c","head":{"label":"chaitanyaenr:user_benchmark","ref":"user_benchmark","sha":"0d45df49e76c7fcdeb6ea011eb4c2a12fd42008c","user":{"login":"chaitanyaenr","id":14077093,"avatar_url":"https://avatars2.githubusercontent.com/u/14077093?v=3","gravatar_id":"","url":"https://api.github.com/users/chaitanyaenr","html_url":"https://github.com/chaitanyaenr","followers_url":"https://api.github.com/users/chaitanyaenr/followers","following_url":"https://api.github.com/users/chaitanyaenr/following{/other_user}","gists_url":"https://api.github.com/users/chaitanyaenr/gists{/gist_id}","starred_url":"https://api.github.com/users/chaitanyaenr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chaitanyaenr/subscriptions","organizations_url":"https://api.github.com/users/chaitanyaenr/orgs","repos_url":"https://api.github.com/users/chaitanyaenr/repos","events_url":"https://api.github.com/users/chaitanyaenr/events{/privacy}","received_events_url":"https://api.github.com/users/chaitanyaenr/received_events","type":"User","site_admin":false},"repo":{"id":61055800,"name":"pbench","full_name":"chaitanyaenr/pbench","owner":{"login":"chaitanyaenr","id":14077093,"avatar_url":"https://avatars2.githubusercontent.com/u/14077093?v=3","gravatar_id":"","url":"https://api.github.com/users/chaitanyaenr","html_url":"https://github.com/chaitanyaenr","followers_url":"https://api.github.com/users/chaitanyaenr/followers","following_url":"https://api.github.com/users/chaitanyaenr/following{/other_user}","gists_url":"https://api.github.com/users/chaitanyaenr/gists{/gist_id}","starred_url":"https://api.github.com/users/chaitanyaenr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chaitanyaenr/subscriptions","organizations_url":"https://api.github.com/users/chaitanyaenr/orgs","repos_url":"https://api.github.com/users/chaitanyaenr/repos","events_url":"https://api.github.com/users/chaitanyaenr/events{/privacy}","received_events_url":"https://api.github.com/users/chaitanyaenr/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/chaitanyaenr/pbench","description":"A benchmarking and performance analysis framework","fork":true,"url":"https://api.github.com/repos/chaitanyaenr/pbench","forks_url":"https://api.github.com/repos/chaitanyaenr/pbench/forks","keys_url":"https://api.github.com/repos/chaitanyaenr/pbench/keys{/key_id}","collaborators_url":"https://api.github.com/repos/chaitanyaenr/pbench/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/chaitanyaenr/pbench/teams","hooks_url":"https://api.github.com/repos/chaitanyaenr/pbench/hooks","issue_events_url":"https://api.github.com/repos/chaitanyaenr/pbench/issues/events{/number}","events_url":"https://api.github.com/repos/chaitanyaenr/pbench/events","assignees_url":"https://api.github.com/repos/chaitanyaenr/pbench/assignees{/user}","branches_url":"https://api.github.com/repos/chaitanyaenr/pbench/branches{/branch}","tags_url":"https://api.github.com/repos/chaitanyaenr/pbench/tags","blobs_url":"https://api.github.com/repos/chaitanyaenr/pbench/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/chaitanyaenr/pbench/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/chaitanyaenr/pbench/git/refs{/sha}","trees_url":"https://api.github.com/repos/chaitanyaenr/pbench/git/trees{/sha}","statuses_url":"https://api.github.com/repos/chaitanyaenr/pbench/statuses/{sha}","languages_url":"https://api.github.com/repos/chaitanyaenr/pbench/languages","stargazers_url":"https://api.github.com/repos/chaitanyaenr/pbench/stargazers","contributors_url":"https://api.github.com/repos/chaitanyaenr/pbench/contributors","subscribers_url":"https://api.github.com/repos/chaitanyaenr/pbench/subscribers","subscription_url":"https://api.github.com/repos/chaitanyaenr/pbench/subscription","commits_url":"https://api.github.com/repos/chaitanyaenr/pbench/commits{/sha}","git_commits_url":"https://api.github.com/repos/chaitanyaenr/pbench/git/commits{/sha}","comments_url":"https://api.github.com/repos/chaitanyaenr/pbench/comments{/number}","issue_comment_url":"https://api.github.com/repos/chaitanyaenr/pbench/issues/comments{/number}","contents_url":"https://api.github.com/repos/chaitanyaenr/pbench/contents/{+path}","compare_url":"https://api.github.com/repos/chaitanyaenr/pbench/compare/{base}...{head}","merges_url":"https://api.github.com/repos/chaitanyaenr/pbench/merges","archive_url":"https://api.github.com/repos/chaitanyaenr/pbench/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/chaitanyaenr/pbench/downloads","issues_url":"https://api.github.com/repos/chaitanyaenr/pbench/issues{/number}","pulls_url":"https://api.github.com/repos/chaitanyaenr/pbench/pulls{/number}","milestones_url":"https://api.github.com/repos/chaitanyaenr/pbench/milestones{/number}","notifications_url":"https://api.github.com/repos/chaitanyaenr/pbench/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/chaitanyaenr/pbench/labels{/name}","releases_url":"https://api.github.com/repos/chaitanyaenr/pbench/releases{/id}","deployments_url":"https://api.github.com/repos/chaitanyaenr/pbench/deployments","created_at":"2016-06-13T17:23:01Z","updated_at":"2016-06-13T17:23:03Z","pushed_at":"2017-04-10T17:21:13Z","git_url":"git://github.com/chaitanyaenr/pbench.git","ssh_url":"git@github.com:chaitanyaenr/pbench.git","clone_url":"https://github.com/chaitanyaenr/pbench.git","svn_url":"https://github.com/chaitanyaenr/pbench","homepage":"http://distributed-system-analysis.github.io/pbench/","size":18000,"stargazers_count":0,"watchers_count":0,"language":"Shell","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"distributed-system-analysis:master","ref":"master","sha":"9645ccbdaf08c6f4e1e782ab0698459e944b9cc8","user":{"login":"distributed-system-analysis","id":10777641,"avatar_url":"https://avatars1.githubusercontent.com/u/10777641?v=3","gravatar_id":"","url":"https://api.github.com/users/distributed-system-analysis","html_url":"https://github.com/distributed-system-analysis","followers_url":"https://api.github.com/users/distributed-system-analysis/followers","following_url":"https://api.github.com/users/distributed-system-analysis/following{/other_user}","gists_url":"https://api.github.com/users/distributed-system-analysis/gists{/gist_id}","starred_url":"https://api.github.com/users/distributed-system-analysis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/distributed-system-analysis/subscriptions","organizations_url":"https://api.github.com/users/distributed-system-analysis/orgs","repos_url":"https://api.github.com/users/distributed-system-analysis/repos","events_url":"https://api.github.com/users/distributed-system-analysis/events{/privacy}","received_events_url":"https://api.github.com/users/distributed-system-analysis/received_events","type":"Organization","site_admin":false},"repo":{"id":37891737,"name":"pbench","full_name":"distributed-system-analysis/pbench","owner":{"login":"distributed-system-analysis","id":10777641,"avatar_url":"https://avatars1.githubusercontent.com/u/10777641?v=3","gravatar_id":"","url":"https://api.github.com/users/distributed-system-analysis","html_url":"https://github.com/distributed-system-analysis","followers_url":"https://api.github.com/users/distributed-system-analysis/followers","following_url":"https://api.github.com/users/distributed-system-analysis/following{/other_user}","gists_url":"https://api.github.com/users/distributed-system-analysis/gists{/gist_id}","starred_url":"https://api.github.com/users/distributed-system-analysis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/distributed-system-analysis/subscriptions","organizations_url":"https://api.github.com/users/distributed-system-analysis/orgs","repos_url":"https://api.github.com/users/distributed-system-analysis/repos","events_url":"https://api.github.com/users/distributed-system-analysis/events{/privacy}","received_events_url":"https://api.github.com/users/distributed-system-analysis/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/distributed-system-analysis/pbench","description":"A benchmarking and performance analysis framework","fork":false,"url":"https://api.github.com/repos/distributed-system-analysis/pbench","forks_url":"https://api.github.com/repos/distributed-system-analysis/pbench/forks","keys_url":"https://api.github.com/repos/distributed-system-analysis/pbench/keys{/key_id}","collaborators_url":"https://api.github.com/repos/distributed-system-analysis/pbench/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/distributed-system-analysis/pbench/teams","hooks_url":"https://api.github.com/repos/distributed-system-analysis/pbench/hooks","issue_events_url":"https://api.github.com/repos/distributed-system-analysis/pbench/issues/events{/number}","events_url":"https://api.github.com/repos/distributed-system-analysis/pbench/events","assignees_url":"https://api.github.com/repos/distributed-system-analysis/pbench/assignees{/user}","branches_url":"https://api.github.com/repos/distributed-system-analysis/pbench/branches{/branch}","tags_url":"https://api.github.com/repos/distributed-system-analysis/pbench/tags","blobs_url":"https://api.github.com/repos/distributed-system-analysis/pbench/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/distributed-system-analysis/pbench/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/distributed-system-analysis/pbench/git/refs{/sha}","trees_url":"https://api.github.com/repos/distributed-system-analysis/pbench/git/trees{/sha}","statuses_url":"https://api.github.com/repos/distributed-system-analysis/pbench/statuses/{sha}","languages_url":"https://api.github.com/repos/distributed-system-analysis/pbench/languages","stargazers_url":"https://api.github.com/repos/distributed-system-analysis/pbench/stargazers","contributors_url":"https://api.github.com/repos/distributed-system-analysis/pbench/contributors","subscribers_url":"https://api.github.com/repos/distributed-system-analysis/pbench/subscribers","subscription_url":"https://api.github.com/repos/distributed-system-analysis/pbench/subscription","commits_url":"https://api.github.com/repos/distributed-system-analysis/pbench/commits{/sha}","git_commits_url":"https://api.github.com/repos/distributed-system-analysis/pbench/git/commits{/sha}","comments_url":"https://api.github.com/repos/distributed-system-analysis/pbench/comments{/number}","issue_comment_url":"https://api.github.com/repos/distributed-system-analysis/pbench/issues/comments{/number}","contents_url":"https://api.github.com/repos/distributed-system-analysis/pbench/contents/{+path}","compare_url":"https://api.github.com/repos/distributed-system-analysis/pbench/compare/{base}...{head}","merges_url":"https://api.github.com/repos/distributed-system-analysis/pbench/merges","archive_url":"https://api.github.com/repos/distributed-system-analysis/pbench/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/distributed-system-analysis/pbench/downloads","issues_url":"https://api.github.com/repos/distributed-system-analysis/pbench/issues{/number}","pulls_url":"https://api.github.com/repos/distributed-system-analysis/pbench/pulls{/number}","milestones_url":"https://api.github.com/repos/distributed-system-analysis/pbench/milestones{/number}","notifications_url":"https://api.github.com/repos/distributed-system-analysis/pbench/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/distributed-system-analysis/pbench/labels{/name}","releases_url":"https://api.github.com/repos/distributed-system-analysis/pbench/releases{/id}","deployments_url":"https://api.github.com/repos/distributed-system-analysis/pbench/deployments","created_at":"2015-06-23T02:08:30Z","updated_at":"2017-04-04T21:39:20Z","pushed_at":"2017-04-10T15:22:48Z","git_url":"git://github.com/distributed-system-analysis/pbench.git","ssh_url":"git@github.com:distributed-system-analysis/pbench.git","clone_url":"https://github.com/distributed-system-analysis/pbench.git","svn_url":"https://github.com/distributed-system-analysis/pbench","homepage":"http://distributed-system-analysis.github.io/pbench/","size":58915,"stargazers_count":34,"watchers_count":34,"language":"Shell","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":31,"mirror_url":null,"open_issues_count":151,"forks":31,"open_issues":151,"watchers":34,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/distributed-system-analysis/pbench/pulls/545"},"html":{"href":"https://github.com/distributed-system-analysis/pbench/pull/545"},"issue":{"href":"https://api.github.com/repos/distributed-system-analysis/pbench/issues/545"},"comments":{"href":"https://api.github.com/repos/distributed-system-analysis/pbench/issues/545/comments"},"review_comments":{"href":"https://api.github.com/repos/distributed-system-analysis/pbench/pulls/545/comments"},"review_comment":{"href":"https://api.github.com/repos/distributed-system-analysis/pbench/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/distributed-system-analysis/pbench/pulls/545/commits"},"statuses":{"href":"https://api.github.com/repos/distributed-system-analysis/pbench/statuses/0d45df49e76c7fcdeb6ea011eb4c2a12fd42008c"}}}}
{"actor":{"display_login":"chaitanyaenr"}}