{"action":"created","comment":{"url":"https://api.github.com/repos/openshift/origin/pulls/comments/108429664","pull_request_review_id":29458804,"id":108429664,"diff_hunk":"@@ -75,3 +78,58 @@ func HasTriggerType(triggerType BuildTriggerType, bc *BuildConfig) bool {\n \tmatches := FindTriggerPolicy(triggerType, bc)\n \treturn len(matches) > 0\n }\n+\n+// RecordStageAndStepInfo records details about each build stage and step\n+func RecordStageAndStepInfo(stages []StageInfo, stageName StageName, stepName StepName, startTime unversioned.Time, endTime unversioned.Time) []StageInfo {\n+\tvar stepDuration int64\n+\n+\t// Make sure that the stages slice is initialized\n+\tif len(stages) == 0 {\n+\t\tstages = make([]StageInfo, 0)\n+\t}\n+\n+\t// If the stage already exists in the slice, update the endTime and DurationMilliseconds, and append the new step.","path":"pkg/build/api/helpers.go","position":25,"original_position":25,"commit_id":"940b9e15dcb45fb470f1330872f5368cd4499279","original_commit_id":"940b9e15dcb45fb470f1330872f5368cd4499279","user":{"login":"coreydaley","id":5060301,"avatar_url":"https://avatars1.githubusercontent.com/u/5060301?v=3","gravatar_id":"","url":"https://api.github.com/users/coreydaley","html_url":"https://github.com/coreydaley","followers_url":"https://api.github.com/users/coreydaley/followers","following_url":"https://api.github.com/users/coreydaley/following{/other_user}","gists_url":"https://api.github.com/users/coreydaley/gists{/gist_id}","starred_url":"https://api.github.com/users/coreydaley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coreydaley/subscriptions","organizations_url":"https://api.github.com/users/coreydaley/orgs","repos_url":"https://api.github.com/users/coreydaley/repos","events_url":"https://api.github.com/users/coreydaley/events{/privacy}","received_events_url":"https://api.github.com/users/coreydaley/received_events","type":"User","site_admin":false},"body":"Thanks, will push an update","created_at":"2017-03-28T14:03:20Z","updated_at":"2017-03-28T14:03:20Z","html_url":"https://github.com/openshift/origin/pull/13307#discussion_r108429664","pull_request_url":"https://api.github.com/repos/openshift/origin/pulls/13307","_links":{"self":{"href":"https://api.github.com/repos/openshift/origin/pulls/comments/108429664"},"html":{"href":"https://github.com/openshift/origin/pull/13307#discussion_r108429664"},"pull_request":{"href":"https://api.github.com/repos/openshift/origin/pulls/13307"}}},"pull_request":{"url":"https://api.github.com/repos/openshift/origin/pulls/13307","id":109733143,"html_url":"https://github.com/openshift/origin/pull/13307","diff_url":"https://github.com/openshift/origin/pull/13307.diff","patch_url":"https://github.com/openshift/origin/pull/13307.patch","issue_url":"https://api.github.com/repos/openshift/origin/issues/13307","number":13307,"state":"open","locked":false,"title":"Gather build step timing information and output using oc describe","user":{"login":"coreydaley","id":5060301,"avatar_url":"https://avatars1.githubusercontent.com/u/5060301?v=3","gravatar_id":"","url":"https://api.github.com/users/coreydaley","html_url":"https://github.com/coreydaley","followers_url":"https://api.github.com/users/coreydaley/followers","following_url":"https://api.github.com/users/coreydaley/following{/other_user}","gists_url":"https://api.github.com/users/coreydaley/gists{/gist_id}","starred_url":"https://api.github.com/users/coreydaley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coreydaley/subscriptions","organizations_url":"https://api.github.com/users/coreydaley/orgs","repos_url":"https://api.github.com/users/coreydaley/repos","events_url":"https://api.github.com/users/coreydaley/events{/privacy}","received_events_url":"https://api.github.com/users/coreydaley/received_events","type":"User","site_admin":false},"body":"Gathers build step timing information for significant step of the build process and makes it available to the 'oc describe' command.\r\nDependent on https://github.com/openshift/source-to-image/pull/694","created_at":"2017-03-08T16:36:21Z","updated_at":"2017-03-28T14:03:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":"94ae562f5bbbe0db177bd70449084b83ce0af117","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/openshift/origin/pulls/13307/commits","review_comments_url":"https://api.github.com/repos/openshift/origin/pulls/13307/comments","review_comment_url":"https://api.github.com/repos/openshift/origin/pulls/comments{/number}","comments_url":"https://api.github.com/repos/openshift/origin/issues/13307/comments","statuses_url":"https://api.github.com/repos/openshift/origin/statuses/940b9e15dcb45fb470f1330872f5368cd4499279","head":{"label":"coreydaley:add_build_substatus","ref":"add_build_substatus","sha":"940b9e15dcb45fb470f1330872f5368cd4499279","user":{"login":"coreydaley","id":5060301,"avatar_url":"https://avatars1.githubusercontent.com/u/5060301?v=3","gravatar_id":"","url":"https://api.github.com/users/coreydaley","html_url":"https://github.com/coreydaley","followers_url":"https://api.github.com/users/coreydaley/followers","following_url":"https://api.github.com/users/coreydaley/following{/other_user}","gists_url":"https://api.github.com/users/coreydaley/gists{/gist_id}","starred_url":"https://api.github.com/users/coreydaley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coreydaley/subscriptions","organizations_url":"https://api.github.com/users/coreydaley/orgs","repos_url":"https://api.github.com/users/coreydaley/repos","events_url":"https://api.github.com/users/coreydaley/events{/privacy}","received_events_url":"https://api.github.com/users/coreydaley/received_events","type":"User","site_admin":false},"repo":{"id":75228250,"name":"origin","full_name":"coreydaley/origin","owner":{"login":"coreydaley","id":5060301,"avatar_url":"https://avatars1.githubusercontent.com/u/5060301?v=3","gravatar_id":"","url":"https://api.github.com/users/coreydaley","html_url":"https://github.com/coreydaley","followers_url":"https://api.github.com/users/coreydaley/followers","following_url":"https://api.github.com/users/coreydaley/following{/other_user}","gists_url":"https://api.github.com/users/coreydaley/gists{/gist_id}","starred_url":"https://api.github.com/users/coreydaley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coreydaley/subscriptions","organizations_url":"https://api.github.com/users/coreydaley/orgs","repos_url":"https://api.github.com/users/coreydaley/repos","events_url":"https://api.github.com/users/coreydaley/events{/privacy}","received_events_url":"https://api.github.com/users/coreydaley/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/coreydaley/origin","description":"Enterprise Kubernetes for Developers","fork":true,"url":"https://api.github.com/repos/coreydaley/origin","forks_url":"https://api.github.com/repos/coreydaley/origin/forks","keys_url":"https://api.github.com/repos/coreydaley/origin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/coreydaley/origin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/coreydaley/origin/teams","hooks_url":"https://api.github.com/repos/coreydaley/origin/hooks","issue_events_url":"https://api.github.com/repos/coreydaley/origin/issues/events{/number}","events_url":"https://api.github.com/repos/coreydaley/origin/events","assignees_url":"https://api.github.com/repos/coreydaley/origin/assignees{/user}","branches_url":"https://api.github.com/repos/coreydaley/origin/branches{/branch}","tags_url":"https://api.github.com/repos/coreydaley/origin/tags","blobs_url":"https://api.github.com/repos/coreydaley/origin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/coreydaley/origin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/coreydaley/origin/git/refs{/sha}","trees_url":"https://api.github.com/repos/coreydaley/origin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/coreydaley/origin/statuses/{sha}","languages_url":"https://api.github.com/repos/coreydaley/origin/languages","stargazers_url":"https://api.github.com/repos/coreydaley/origin/stargazers","contributors_url":"https://api.github.com/repos/coreydaley/origin/contributors","subscribers_url":"https://api.github.com/repos/coreydaley/origin/subscribers","subscription_url":"https://api.github.com/repos/coreydaley/origin/subscription","commits_url":"https://api.github.com/repos/coreydaley/origin/commits{/sha}","git_commits_url":"https://api.github.com/repos/coreydaley/origin/git/commits{/sha}","comments_url":"https://api.github.com/repos/coreydaley/origin/comments{/number}","issue_comment_url":"https://api.github.com/repos/coreydaley/origin/issues/comments{/number}","contents_url":"https://api.github.com/repos/coreydaley/origin/contents/{+path}","compare_url":"https://api.github.com/repos/coreydaley/origin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/coreydaley/origin/merges","archive_url":"https://api.github.com/repos/coreydaley/origin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/coreydaley/origin/downloads","issues_url":"https://api.github.com/repos/coreydaley/origin/issues{/number}","pulls_url":"https://api.github.com/repos/coreydaley/origin/pulls{/number}","milestones_url":"https://api.github.com/repos/coreydaley/origin/milestones{/number}","notifications_url":"https://api.github.com/repos/coreydaley/origin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/coreydaley/origin/labels{/name}","releases_url":"https://api.github.com/repos/coreydaley/origin/releases{/id}","deployments_url":"https://api.github.com/repos/coreydaley/origin/deployments","created_at":"2016-11-30T21:22:02Z","updated_at":"2016-11-30T21:22:12Z","pushed_at":"2017-03-27T14:43:25Z","git_url":"git://github.com/coreydaley/origin.git","ssh_url":"git@github.com:coreydaley/origin.git","clone_url":"https://github.com/coreydaley/origin.git","svn_url":"https://github.com/coreydaley/origin","homepage":"http://www.openshift.org","size":567140,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"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":"openshift:master","ref":"master","sha":"d260e80ed1e9d3d27419588d0c9563a5c2d8fdd1","user":{"login":"openshift","id":792337,"avatar_url":"https://avatars0.githubusercontent.com/u/792337?v=3","gravatar_id":"","url":"https://api.github.com/users/openshift","html_url":"https://github.com/openshift","followers_url":"https://api.github.com/users/openshift/followers","following_url":"https://api.github.com/users/openshift/following{/other_user}","gists_url":"https://api.github.com/users/openshift/gists{/gist_id}","starred_url":"https://api.github.com/users/openshift/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openshift/subscriptions","organizations_url":"https://api.github.com/users/openshift/orgs","repos_url":"https://api.github.com/users/openshift/repos","events_url":"https://api.github.com/users/openshift/events{/privacy}","received_events_url":"https://api.github.com/users/openshift/received_events","type":"Organization","site_admin":false},"repo":{"id":22442668,"name":"origin","full_name":"openshift/origin","owner":{"login":"openshift","id":792337,"avatar_url":"https://avatars0.githubusercontent.com/u/792337?v=3","gravatar_id":"","url":"https://api.github.com/users/openshift","html_url":"https://github.com/openshift","followers_url":"https://api.github.com/users/openshift/followers","following_url":"https://api.github.com/users/openshift/following{/other_user}","gists_url":"https://api.github.com/users/openshift/gists{/gist_id}","starred_url":"https://api.github.com/users/openshift/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openshift/subscriptions","organizations_url":"https://api.github.com/users/openshift/orgs","repos_url":"https://api.github.com/users/openshift/repos","events_url":"https://api.github.com/users/openshift/events{/privacy}","received_events_url":"https://api.github.com/users/openshift/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/openshift/origin","description":"Enterprise Kubernetes for Developers","fork":false,"url":"https://api.github.com/repos/openshift/origin","forks_url":"https://api.github.com/repos/openshift/origin/forks","keys_url":"https://api.github.com/repos/openshift/origin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/openshift/origin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/openshift/origin/teams","hooks_url":"https://api.github.com/repos/openshift/origin/hooks","issue_events_url":"https://api.github.com/repos/openshift/origin/issues/events{/number}","events_url":"https://api.github.com/repos/openshift/origin/events","assignees_url":"https://api.github.com/repos/openshift/origin/assignees{/user}","branches_url":"https://api.github.com/repos/openshift/origin/branches{/branch}","tags_url":"https://api.github.com/repos/openshift/origin/tags","blobs_url":"https://api.github.com/repos/openshift/origin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/openshift/origin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/openshift/origin/git/refs{/sha}","trees_url":"https://api.github.com/repos/openshift/origin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/openshift/origin/statuses/{sha}","languages_url":"https://api.github.com/repos/openshift/origin/languages","stargazers_url":"https://api.github.com/repos/openshift/origin/stargazers","contributors_url":"https://api.github.com/repos/openshift/origin/contributors","subscribers_url":"https://api.github.com/repos/openshift/origin/subscribers","subscription_url":"https://api.github.com/repos/openshift/origin/subscription","commits_url":"https://api.github.com/repos/openshift/origin/commits{/sha}","git_commits_url":"https://api.github.com/repos/openshift/origin/git/commits{/sha}","comments_url":"https://api.github.com/repos/openshift/origin/comments{/number}","issue_comment_url":"https://api.github.com/repos/openshift/origin/issues/comments{/number}","contents_url":"https://api.github.com/repos/openshift/origin/contents/{+path}","compare_url":"https://api.github.com/repos/openshift/origin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/openshift/origin/merges","archive_url":"https://api.github.com/repos/openshift/origin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/openshift/origin/downloads","issues_url":"https://api.github.com/repos/openshift/origin/issues{/number}","pulls_url":"https://api.github.com/repos/openshift/origin/pulls{/number}","milestones_url":"https://api.github.com/repos/openshift/origin/milestones{/number}","notifications_url":"https://api.github.com/repos/openshift/origin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/openshift/origin/labels{/name}","releases_url":"https://api.github.com/repos/openshift/origin/releases{/id}","deployments_url":"https://api.github.com/repos/openshift/origin/deployments","created_at":"2014-07-30T20:04:05Z","updated_at":"2017-03-28T06:18:27Z","pushed_at":"2017-03-28T13:50:48Z","git_url":"git://github.com/openshift/origin.git","ssh_url":"git@github.com:openshift/origin.git","clone_url":"https://github.com/openshift/origin.git","svn_url":"https://github.com/openshift/origin","homepage":"http://www.openshift.org","size":622763,"stargazers_count":2620,"watchers_count":2620,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1748,"mirror_url":null,"open_issues_count":1157,"forks":1748,"open_issues":1157,"watchers":2620,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/openshift/origin/pulls/13307"},"html":{"href":"https://github.com/openshift/origin/pull/13307"},"issue":{"href":"https://api.github.com/repos/openshift/origin/issues/13307"},"comments":{"href":"https://api.github.com/repos/openshift/origin/issues/13307/comments"},"review_comments":{"href":"https://api.github.com/repos/openshift/origin/pulls/13307/comments"},"review_comment":{"href":"https://api.github.com/repos/openshift/origin/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/openshift/origin/pulls/13307/commits"},"statuses":{"href":"https://api.github.com/repos/openshift/origin/statuses/940b9e15dcb45fb470f1330872f5368cd4499279"}}}}
{"actor":{"display_login":"coreydaley"}}