{"action":"created","comment":{"url":"https://api.github.com/repos/gradle/gradle/pulls/comments/157929972","pull_request_review_id":84654780,"id":157929972,"diff_hunk":"@@ -20,41 +20,49 @@\n import com.google.common.collect.ImmutableSortedMap;\n import com.google.common.collect.ImmutableSortedSet;\n import org.gradle.api.NonNullApi;\n-import org.gradle.internal.id.UniqueId;\n+import org.gradle.api.internal.tasks.OriginTaskExecutionMetadata;\n \n /**\n  * State of a task when it was executed.\n  */\n @NonNullApi\n public class HistoricalTaskExecution extends AbstractTaskExecution {\n+\n     private final boolean successful;\n+    private final OriginTaskExecutionMetadata originExecutionMetadata;\n     private final ImmutableSortedMap<String, FileCollectionSnapshot> inputFilesSnapshot;\n     private final FileCollectionSnapshot discoveredInputFilesSnapshot;\n     private final ImmutableSortedMap<String, FileCollectionSnapshot> outputFilesSnapshot;\n \n     public HistoricalTaskExecution(\n-        UniqueId buildInvocationId,\n         ImplementationSnapshot taskImplementation,\n         ImmutableList<ImplementationSnapshot> taskActionsImplementations,\n         ImmutableSortedMap<String, ValueSnapshot> inputProperties,\n         ImmutableSortedSet<String> outputPropertyNames,\n         ImmutableSortedMap<String, FileCollectionSnapshot> inputFilesSnapshot,\n         FileCollectionSnapshot discoveredInputFilesSnapshot,\n         ImmutableSortedMap<String, FileCollectionSnapshot> outputFilesSnapshot,\n-        boolean successful\n+        boolean successful,\n+        OriginTaskExecutionMetadata originExecutionMetadata\n     ) {\n-        super(buildInvocationId, taskImplementation, taskActionsImplementations, inputProperties, outputPropertyNames);\n+        super(taskImplementation, taskActionsImplementations, inputProperties, outputPropertyNames);\n         this.inputFilesSnapshot = inputFilesSnapshot;\n         this.discoveredInputFilesSnapshot = discoveredInputFilesSnapshot;\n         this.outputFilesSnapshot = outputFilesSnapshot;\n         this.successful = successful;\n+        this.originExecutionMetadata = originExecutionMetadata;\n     }\n \n     @Override\n     public boolean isSuccessful() {\n         return successful;\n     }\n \n+    @Override\n+    public OriginTaskExecutionMetadata getOriginExecutionMetadata() {","path":"subprojects/core/src/main/java/org/gradle/api/internal/changedetection/state/HistoricalTaskExecution.java","position":47,"original_position":47,"commit_id":"6ad9b595453bb3e3b0cbb658f0345aff7a921d86","original_commit_id":"a0beea001b33978bd152ccd6cd971bc2de195ca2","user":{"login":"ldaley","id":17825,"avatar_url":"https://avatars0.githubusercontent.com/u/17825?v=4","gravatar_id":"","url":"https://api.github.com/users/ldaley","html_url":"https://github.com/ldaley","followers_url":"https://api.github.com/users/ldaley/followers","following_url":"https://api.github.com/users/ldaley/following{/other_user}","gists_url":"https://api.github.com/users/ldaley/gists{/gist_id}","starred_url":"https://api.github.com/users/ldaley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ldaley/subscriptions","organizations_url":"https://api.github.com/users/ldaley/orgs","repos_url":"https://api.github.com/users/ldaley/repos","events_url":"https://api.github.com/users/ldaley/events{/privacy}","received_events_url":"https://api.github.com/users/ldaley/received_events","type":"User","site_admin":false},"body":"Added","created_at":"2017-12-20T03:21:28Z","updated_at":"2017-12-20T03:21:28Z","html_url":"https://github.com/gradle/gradle/pull/3846#discussion_r157929972","pull_request_url":"https://api.github.com/repos/gradle/gradle/pulls/3846","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/gradle/gradle/pulls/comments/157929972"},"html":{"href":"https://github.com/gradle/gradle/pull/3846#discussion_r157929972"},"pull_request":{"href":"https://api.github.com/repos/gradle/gradle/pulls/3846"}},"in_reply_to_id":157785215},"pull_request":{"url":"https://api.github.com/repos/gradle/gradle/pulls/3846","id":159091317,"html_url":"https://github.com/gradle/gradle/pull/3846","diff_url":"https://github.com/gradle/gradle/pull/3846.diff","patch_url":"https://github.com/gradle/gradle/pull/3846.patch","issue_url":"https://api.github.com/repos/gradle/gradle/issues/3846","number":3846,"state":"open","locked":false,"title":"Emit the origin build invocation ID and execution time of tasks reusing outputs","user":{"login":"ldaley","id":17825,"avatar_url":"https://avatars0.githubusercontent.com/u/17825?v=4","gravatar_id":"","url":"https://api.github.com/users/ldaley","html_url":"https://github.com/ldaley","followers_url":"https://api.github.com/users/ldaley/followers","following_url":"https://api.github.com/users/ldaley/following{/other_user}","gists_url":"https://api.github.com/users/ldaley/gists{/gist_id}","starred_url":"https://api.github.com/users/ldaley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ldaley/subscriptions","organizations_url":"https://api.github.com/users/ldaley/orgs","repos_url":"https://api.github.com/users/ldaley/repos","events_url":"https://api.github.com/users/ldaley/events{/privacy}","received_events_url":"https://api.github.com/users/ldaley/received_events","type":"User","site_admin":false},"body":"Previously, we emitted the build invocation ID for both up-to-date and from-cache, but emitted the original execution time only for from-cache. This is now unified.\r\n\r\nMoreover, these values now reflect the true origin when from-cache outputs are reused as part of incremental build. Previously, the values from the first build to consider the task up-to-date after a from cache was considered as the origin for subsequent executions. Now, the origin information is kept from the from-cache execution.\r\n\r\nCI: https://builds.gradle.org/project.html?projectId=Gradle&tab=projectOverview&branch_Gradle=ldaley%2Ftask-origin-execution-time","created_at":"2017-12-19T06:55:49Z","updated_at":"2017-12-20T03:21:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ce405578d63d48bcab922514cbd03167a06bf7ac","assignee":{"login":"ldaley","id":17825,"avatar_url":"https://avatars0.githubusercontent.com/u/17825?v=4","gravatar_id":"","url":"https://api.github.com/users/ldaley","html_url":"https://github.com/ldaley","followers_url":"https://api.github.com/users/ldaley/followers","following_url":"https://api.github.com/users/ldaley/following{/other_user}","gists_url":"https://api.github.com/users/ldaley/gists{/gist_id}","starred_url":"https://api.github.com/users/ldaley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ldaley/subscriptions","organizations_url":"https://api.github.com/users/ldaley/orgs","repos_url":"https://api.github.com/users/ldaley/repos","events_url":"https://api.github.com/users/ldaley/events{/privacy}","received_events_url":"https://api.github.com/users/ldaley/received_events","type":"User","site_admin":false},"assignees":[{"login":"ldaley","id":17825,"avatar_url":"https://avatars0.githubusercontent.com/u/17825?v=4","gravatar_id":"","url":"https://api.github.com/users/ldaley","html_url":"https://github.com/ldaley","followers_url":"https://api.github.com/users/ldaley/followers","following_url":"https://api.github.com/users/ldaley/following{/other_user}","gists_url":"https://api.github.com/users/ldaley/gists{/gist_id}","starred_url":"https://api.github.com/users/ldaley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ldaley/subscriptions","organizations_url":"https://api.github.com/users/ldaley/orgs","repos_url":"https://api.github.com/users/ldaley/repos","events_url":"https://api.github.com/users/ldaley/events{/privacy}","received_events_url":"https://api.github.com/users/ldaley/received_events","type":"User","site_admin":false}],"requested_reviewers":[{"login":"lptr","id":495366,"avatar_url":"https://avatars2.githubusercontent.com/u/495366?v=4","gravatar_id":"","url":"https://api.github.com/users/lptr","html_url":"https://github.com/lptr","followers_url":"https://api.github.com/users/lptr/followers","following_url":"https://api.github.com/users/lptr/following{/other_user}","gists_url":"https://api.github.com/users/lptr/gists{/gist_id}","starred_url":"https://api.github.com/users/lptr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lptr/subscriptions","organizations_url":"https://api.github.com/users/lptr/orgs","repos_url":"https://api.github.com/users/lptr/repos","events_url":"https://api.github.com/users/lptr/events{/privacy}","received_events_url":"https://api.github.com/users/lptr/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/gradle/gradle/milestones/50","html_url":"https://github.com/gradle/gradle/milestone/50","labels_url":"https://api.github.com/repos/gradle/gradle/milestones/50/labels","id":2912515,"number":50,"title":"4.5","description":"","creator":{"login":"bmuschko","id":440872,"avatar_url":"https://avatars2.githubusercontent.com/u/440872?v=4","gravatar_id":"","url":"https://api.github.com/users/bmuschko","html_url":"https://github.com/bmuschko","followers_url":"https://api.github.com/users/bmuschko/followers","following_url":"https://api.github.com/users/bmuschko/following{/other_user}","gists_url":"https://api.github.com/users/bmuschko/gists{/gist_id}","starred_url":"https://api.github.com/users/bmuschko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bmuschko/subscriptions","organizations_url":"https://api.github.com/users/bmuschko/orgs","repos_url":"https://api.github.com/users/bmuschko/repos","events_url":"https://api.github.com/users/bmuschko/events{/privacy}","received_events_url":"https://api.github.com/users/bmuschko/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":0,"state":"open","created_at":"2017-11-14T19:26:25Z","updated_at":"2017-12-19T06:56:35Z","due_on":"2018-01-08T08:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/gradle/gradle/pulls/3846/commits","review_comments_url":"https://api.github.com/repos/gradle/gradle/pulls/3846/comments","review_comment_url":"https://api.github.com/repos/gradle/gradle/pulls/comments{/number}","comments_url":"https://api.github.com/repos/gradle/gradle/issues/3846/comments","statuses_url":"https://api.github.com/repos/gradle/gradle/statuses/6ad9b595453bb3e3b0cbb658f0345aff7a921d86","head":{"label":"gradle:ldaley/task-origin-execution-time","ref":"ldaley/task-origin-execution-time","sha":"6ad9b595453bb3e3b0cbb658f0345aff7a921d86","user":{"login":"gradle","id":124156,"avatar_url":"https://avatars2.githubusercontent.com/u/124156?v=4","gravatar_id":"","url":"https://api.github.com/users/gradle","html_url":"https://github.com/gradle","followers_url":"https://api.github.com/users/gradle/followers","following_url":"https://api.github.com/users/gradle/following{/other_user}","gists_url":"https://api.github.com/users/gradle/gists{/gist_id}","starred_url":"https://api.github.com/users/gradle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gradle/subscriptions","organizations_url":"https://api.github.com/users/gradle/orgs","repos_url":"https://api.github.com/users/gradle/repos","events_url":"https://api.github.com/users/gradle/events{/privacy}","received_events_url":"https://api.github.com/users/gradle/received_events","type":"Organization","site_admin":false},"repo":{"id":302322,"name":"gradle","full_name":"gradle/gradle","owner":{"login":"gradle","id":124156,"avatar_url":"https://avatars2.githubusercontent.com/u/124156?v=4","gravatar_id":"","url":"https://api.github.com/users/gradle","html_url":"https://github.com/gradle","followers_url":"https://api.github.com/users/gradle/followers","following_url":"https://api.github.com/users/gradle/following{/other_user}","gists_url":"https://api.github.com/users/gradle/gists{/gist_id}","starred_url":"https://api.github.com/users/gradle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gradle/subscriptions","organizations_url":"https://api.github.com/users/gradle/orgs","repos_url":"https://api.github.com/users/gradle/repos","events_url":"https://api.github.com/users/gradle/events{/privacy}","received_events_url":"https://api.github.com/users/gradle/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/gradle/gradle","description":"Adaptable, fast automation for all","fork":false,"url":"https://api.github.com/repos/gradle/gradle","forks_url":"https://api.github.com/repos/gradle/gradle/forks","keys_url":"https://api.github.com/repos/gradle/gradle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gradle/gradle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gradle/gradle/teams","hooks_url":"https://api.github.com/repos/gradle/gradle/hooks","issue_events_url":"https://api.github.com/repos/gradle/gradle/issues/events{/number}","events_url":"https://api.github.com/repos/gradle/gradle/events","assignees_url":"https://api.github.com/repos/gradle/gradle/assignees{/user}","branches_url":"https://api.github.com/repos/gradle/gradle/branches{/branch}","tags_url":"https://api.github.com/repos/gradle/gradle/tags","blobs_url":"https://api.github.com/repos/gradle/gradle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gradle/gradle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gradle/gradle/git/refs{/sha}","trees_url":"https://api.github.com/repos/gradle/gradle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gradle/gradle/statuses/{sha}","languages_url":"https://api.github.com/repos/gradle/gradle/languages","stargazers_url":"https://api.github.com/repos/gradle/gradle/stargazers","contributors_url":"https://api.github.com/repos/gradle/gradle/contributors","subscribers_url":"https://api.github.com/repos/gradle/gradle/subscribers","subscription_url":"https://api.github.com/repos/gradle/gradle/subscription","commits_url":"https://api.github.com/repos/gradle/gradle/commits{/sha}","git_commits_url":"https://api.github.com/repos/gradle/gradle/git/commits{/sha}","comments_url":"https://api.github.com/repos/gradle/gradle/comments{/number}","issue_comment_url":"https://api.github.com/repos/gradle/gradle/issues/comments{/number}","contents_url":"https://api.github.com/repos/gradle/gradle/contents/{+path}","compare_url":"https://api.github.com/repos/gradle/gradle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gradle/gradle/merges","archive_url":"https://api.github.com/repos/gradle/gradle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gradle/gradle/downloads","issues_url":"https://api.github.com/repos/gradle/gradle/issues{/number}","pulls_url":"https://api.github.com/repos/gradle/gradle/pulls{/number}","milestones_url":"https://api.github.com/repos/gradle/gradle/milestones{/number}","notifications_url":"https://api.github.com/repos/gradle/gradle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gradle/gradle/labels{/name}","releases_url":"https://api.github.com/repos/gradle/gradle/releases{/id}","deployments_url":"https://api.github.com/repos/gradle/gradle/deployments","created_at":"2009-09-09T18:27:19Z","updated_at":"2017-12-19T23:30:46Z","pushed_at":"2017-12-20T03:13:37Z","git_url":"git://github.com/gradle/gradle.git","ssh_url":"git@github.com:gradle/gradle.git","clone_url":"https://github.com/gradle/gradle.git","svn_url":"https://github.com/gradle/gradle","homepage":"https://gradle.org","size":191971,"stargazers_count":5954,"watchers_count":5954,"language":"Java","has_issues":true,"has_projects":false,"has_downloads":false,"has_wiki":true,"has_pages":false,"forks_count":1985,"mirror_url":null,"archived":false,"open_issues_count":864,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":1985,"open_issues":864,"watchers":5954,"default_branch":"master"}},"base":{"label":"gradle:master","ref":"master","sha":"0478040d98e0049f9e04a37291c05cc7a2151ec9","user":{"login":"gradle","id":124156,"avatar_url":"https://avatars2.githubusercontent.com/u/124156?v=4","gravatar_id":"","url":"https://api.github.com/users/gradle","html_url":"https://github.com/gradle","followers_url":"https://api.github.com/users/gradle/followers","following_url":"https://api.github.com/users/gradle/following{/other_user}","gists_url":"https://api.github.com/users/gradle/gists{/gist_id}","starred_url":"https://api.github.com/users/gradle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gradle/subscriptions","organizations_url":"https://api.github.com/users/gradle/orgs","repos_url":"https://api.github.com/users/gradle/repos","events_url":"https://api.github.com/users/gradle/events{/privacy}","received_events_url":"https://api.github.com/users/gradle/received_events","type":"Organization","site_admin":false},"repo":{"id":302322,"name":"gradle","full_name":"gradle/gradle","owner":{"login":"gradle","id":124156,"avatar_url":"https://avatars2.githubusercontent.com/u/124156?v=4","gravatar_id":"","url":"https://api.github.com/users/gradle","html_url":"https://github.com/gradle","followers_url":"https://api.github.com/users/gradle/followers","following_url":"https://api.github.com/users/gradle/following{/other_user}","gists_url":"https://api.github.com/users/gradle/gists{/gist_id}","starred_url":"https://api.github.com/users/gradle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gradle/subscriptions","organizations_url":"https://api.github.com/users/gradle/orgs","repos_url":"https://api.github.com/users/gradle/repos","events_url":"https://api.github.com/users/gradle/events{/privacy}","received_events_url":"https://api.github.com/users/gradle/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/gradle/gradle","description":"Adaptable, fast automation for all","fork":false,"url":"https://api.github.com/repos/gradle/gradle","forks_url":"https://api.github.com/repos/gradle/gradle/forks","keys_url":"https://api.github.com/repos/gradle/gradle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gradle/gradle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gradle/gradle/teams","hooks_url":"https://api.github.com/repos/gradle/gradle/hooks","issue_events_url":"https://api.github.com/repos/gradle/gradle/issues/events{/number}","events_url":"https://api.github.com/repos/gradle/gradle/events","assignees_url":"https://api.github.com/repos/gradle/gradle/assignees{/user}","branches_url":"https://api.github.com/repos/gradle/gradle/branches{/branch}","tags_url":"https://api.github.com/repos/gradle/gradle/tags","blobs_url":"https://api.github.com/repos/gradle/gradle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gradle/gradle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gradle/gradle/git/refs{/sha}","trees_url":"https://api.github.com/repos/gradle/gradle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gradle/gradle/statuses/{sha}","languages_url":"https://api.github.com/repos/gradle/gradle/languages","stargazers_url":"https://api.github.com/repos/gradle/gradle/stargazers","contributors_url":"https://api.github.com/repos/gradle/gradle/contributors","subscribers_url":"https://api.github.com/repos/gradle/gradle/subscribers","subscription_url":"https://api.github.com/repos/gradle/gradle/subscription","commits_url":"https://api.github.com/repos/gradle/gradle/commits{/sha}","git_commits_url":"https://api.github.com/repos/gradle/gradle/git/commits{/sha}","comments_url":"https://api.github.com/repos/gradle/gradle/comments{/number}","issue_comment_url":"https://api.github.com/repos/gradle/gradle/issues/comments{/number}","contents_url":"https://api.github.com/repos/gradle/gradle/contents/{+path}","compare_url":"https://api.github.com/repos/gradle/gradle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gradle/gradle/merges","archive_url":"https://api.github.com/repos/gradle/gradle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gradle/gradle/downloads","issues_url":"https://api.github.com/repos/gradle/gradle/issues{/number}","pulls_url":"https://api.github.com/repos/gradle/gradle/pulls{/number}","milestones_url":"https://api.github.com/repos/gradle/gradle/milestones{/number}","notifications_url":"https://api.github.com/repos/gradle/gradle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gradle/gradle/labels{/name}","releases_url":"https://api.github.com/repos/gradle/gradle/releases{/id}","deployments_url":"https://api.github.com/repos/gradle/gradle/deployments","created_at":"2009-09-09T18:27:19Z","updated_at":"2017-12-19T23:30:46Z","pushed_at":"2017-12-20T03:13:37Z","git_url":"git://github.com/gradle/gradle.git","ssh_url":"git@github.com:gradle/gradle.git","clone_url":"https://github.com/gradle/gradle.git","svn_url":"https://github.com/gradle/gradle","homepage":"https://gradle.org","size":191971,"stargazers_count":5954,"watchers_count":5954,"language":"Java","has_issues":true,"has_projects":false,"has_downloads":false,"has_wiki":true,"has_pages":false,"forks_count":1985,"mirror_url":null,"archived":false,"open_issues_count":864,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":1985,"open_issues":864,"watchers":5954,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/gradle/gradle/pulls/3846"},"html":{"href":"https://github.com/gradle/gradle/pull/3846"},"issue":{"href":"https://api.github.com/repos/gradle/gradle/issues/3846"},"comments":{"href":"https://api.github.com/repos/gradle/gradle/issues/3846/comments"},"review_comments":{"href":"https://api.github.com/repos/gradle/gradle/pulls/3846/comments"},"review_comment":{"href":"https://api.github.com/repos/gradle/gradle/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/gradle/gradle/pulls/3846/commits"},"statuses":{"href":"https://api.github.com/repos/gradle/gradle/statuses/6ad9b595453bb3e3b0cbb658f0345aff7a921d86"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"ldaley"}}