{"action":"created","comment":{"url":"https://api.github.com/repos/apple/swift/pulls/comments/235553344","pull_request_review_id":177445577,"id":235553344,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzNTU1MzM0NA==","diff_hunk":"@@ -0,0 +1,109 @@\n+#if os(macOS) || os(iOS) || os(watchOS) || os(tvOS)\n+import Darwin\n+#else\n+import Glibc\n+#endif\n+import CTensorFlow\n+import CTensorFlowUnittest\n+import TensorFlow\n+import StdlibUnittest\n+\n+typealias CTFServer = OpaquePointer\n+\n+@usableFromInline\n+func debugLog(_ message: @autoclosure () -> String,\n+              file: StaticString = #file,\n+              line: UInt = #line) {\n+  if _RuntimeConfig.printsDebugLog {\n+    print(\"[\\(file):\\(line)] \\(message())\")\n+    // This helps dump more log before a crash.\n+    fflush(stdout)\n+  }\n+}\n+\n+\n+private class TestCluster {\n+  var num_tasks:Int = 0\n+  var servers: [CTFServer] = []\n+  public var serverDef:String = \"\"\n+\n+  public init(num_tasks: Int) {\n+    self.num_tasks = num_tasks\n+    self.serverDef = startServers()\n+  }\n+\n+  deinit {\n+    // TODO: There is no clean way to shutdown GrpcServers yet.\n+  }\n+\n+  private func getServerDef(tasks: String, task_index: Int) -> String {\n+    return  \"\"\"\n+      cluster {\n+        job {\n+          name: \"localhost\"\n+          \\(tasks)\n+        }\n+      }\n+      job_name: \"localhost\"\n+      task_index: \\(task_index)\n+      protocol: \"grpc\"\n+      \"\"\"\n+  }\n+\n+  private func getTasks() -> String {","path":"stdlib/private/TensorFlowUnittest/TensorFlowUnittestRemote.swift","position":53,"original_position":53,"commit_id":"aff46c64cd197784f6e5d21c0912025e05dd99c5","original_commit_id":"aff46c64cd197784f6e5d21c0912025e05dd99c5","user":{"login":"mhong","id":969799,"node_id":"MDQ6VXNlcjk2OTc5OQ==","avatar_url":"https://avatars3.githubusercontent.com/u/969799?v=4","gravatar_id":"","url":"https://api.github.com/users/mhong","html_url":"https://github.com/mhong","followers_url":"https://api.github.com/users/mhong/followers","following_url":"https://api.github.com/users/mhong/following{/other_user}","gists_url":"https://api.github.com/users/mhong/gists{/gist_id}","starred_url":"https://api.github.com/users/mhong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mhong/subscriptions","organizations_url":"https://api.github.com/users/mhong/orgs","repos_url":"https://api.github.com/users/mhong/repos","events_url":"https://api.github.com/users/mhong/events{/privacy}","received_events_url":"https://api.github.com/users/mhong/received_events","type":"User","site_admin":false},"body":"how about `getTasksProto()` or `getTasksConfig()`?","created_at":"2018-11-21T22:15:12Z","updated_at":"2018-11-21T22:19:56Z","html_url":"https://github.com/apple/swift/pull/20695#discussion_r235553344","pull_request_url":"https://api.github.com/repos/apple/swift/pulls/20695","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/apple/swift/pulls/comments/235553344"},"html":{"href":"https://github.com/apple/swift/pull/20695#discussion_r235553344"},"pull_request":{"href":"https://api.github.com/repos/apple/swift/pulls/20695"}}},"pull_request":{"url":"https://api.github.com/repos/apple/swift/pulls/20695","id":232800851,"node_id":"MDExOlB1bGxSZXF1ZXN0MjMyODAwODUx","html_url":"https://github.com/apple/swift/pull/20695","diff_url":"https://github.com/apple/swift/pull/20695.diff","patch_url":"https://github.com/apple/swift/pull/20695.patch","issue_url":"https://api.github.com/repos/apple/swift/issues/20695","number":20695,"state":"open","locked":false,"title":"Adding support for remote execution in CompilerRuntime.","user":{"login":"bgogul","id":6721579,"node_id":"MDQ6VXNlcjY3MjE1Nzk=","avatar_url":"https://avatars3.githubusercontent.com/u/6721579?v=4","gravatar_id":"","url":"https://api.github.com/users/bgogul","html_url":"https://github.com/bgogul","followers_url":"https://api.github.com/users/bgogul/followers","following_url":"https://api.github.com/users/bgogul/following{/other_user}","gists_url":"https://api.github.com/users/bgogul/gists{/gist_id}","starred_url":"https://api.github.com/users/bgogul/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bgogul/subscriptions","organizations_url":"https://api.github.com/users/bgogul/orgs","repos_url":"https://api.github.com/users/bgogul/repos","events_url":"https://api.github.com/users/bgogul/events{/privacy}","received_events_url":"https://api.github.com/users/bgogul/received_events","type":"User","site_admin":false},"body":"A first step towards integrating remote eager execution. Related to https://bugs.swift.org/browse/SR-8718\r\n","created_at":"2018-11-21T21:20:32Z","updated_at":"2018-11-21T22:19:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":"67af2f0b50e8a211b8d96ecff5e9963f37244f57","assignee":null,"assignees":[],"requested_reviewers":[{"login":"rxwei","id":856507,"node_id":"MDQ6VXNlcjg1NjUwNw==","avatar_url":"https://avatars0.githubusercontent.com/u/856507?v=4","gravatar_id":"","url":"https://api.github.com/users/rxwei","html_url":"https://github.com/rxwei","followers_url":"https://api.github.com/users/rxwei/followers","following_url":"https://api.github.com/users/rxwei/following{/other_user}","gists_url":"https://api.github.com/users/rxwei/gists{/gist_id}","starred_url":"https://api.github.com/users/rxwei/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rxwei/subscriptions","organizations_url":"https://api.github.com/users/rxwei/orgs","repos_url":"https://api.github.com/users/rxwei/repos","events_url":"https://api.github.com/users/rxwei/events{/privacy}","received_events_url":"https://api.github.com/users/rxwei/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/apple/swift/pulls/20695/commits","review_comments_url":"https://api.github.com/repos/apple/swift/pulls/20695/comments","review_comment_url":"https://api.github.com/repos/apple/swift/pulls/comments{/number}","comments_url":"https://api.github.com/repos/apple/swift/issues/20695/comments","statuses_url":"https://api.github.com/repos/apple/swift/statuses/aff46c64cd197784f6e5d21c0912025e05dd99c5","head":{"label":"bgogul:remote_unittest","ref":"remote_unittest","sha":"aff46c64cd197784f6e5d21c0912025e05dd99c5","user":{"login":"bgogul","id":6721579,"node_id":"MDQ6VXNlcjY3MjE1Nzk=","avatar_url":"https://avatars3.githubusercontent.com/u/6721579?v=4","gravatar_id":"","url":"https://api.github.com/users/bgogul","html_url":"https://github.com/bgogul","followers_url":"https://api.github.com/users/bgogul/followers","following_url":"https://api.github.com/users/bgogul/following{/other_user}","gists_url":"https://api.github.com/users/bgogul/gists{/gist_id}","starred_url":"https://api.github.com/users/bgogul/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bgogul/subscriptions","organizations_url":"https://api.github.com/users/bgogul/orgs","repos_url":"https://api.github.com/users/bgogul/repos","events_url":"https://api.github.com/users/bgogul/events{/privacy}","received_events_url":"https://api.github.com/users/bgogul/received_events","type":"User","site_admin":false},"repo":{"id":138326487,"node_id":"MDEwOlJlcG9zaXRvcnkxMzgzMjY0ODc=","name":"swift","full_name":"bgogul/swift","private":false,"owner":{"login":"bgogul","id":6721579,"node_id":"MDQ6VXNlcjY3MjE1Nzk=","avatar_url":"https://avatars3.githubusercontent.com/u/6721579?v=4","gravatar_id":"","url":"https://api.github.com/users/bgogul","html_url":"https://github.com/bgogul","followers_url":"https://api.github.com/users/bgogul/followers","following_url":"https://api.github.com/users/bgogul/following{/other_user}","gists_url":"https://api.github.com/users/bgogul/gists{/gist_id}","starred_url":"https://api.github.com/users/bgogul/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bgogul/subscriptions","organizations_url":"https://api.github.com/users/bgogul/orgs","repos_url":"https://api.github.com/users/bgogul/repos","events_url":"https://api.github.com/users/bgogul/events{/privacy}","received_events_url":"https://api.github.com/users/bgogul/received_events","type":"User","site_admin":false},"html_url":"https://github.com/bgogul/swift","description":"The Swift Programming Language","fork":true,"url":"https://api.github.com/repos/bgogul/swift","forks_url":"https://api.github.com/repos/bgogul/swift/forks","keys_url":"https://api.github.com/repos/bgogul/swift/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bgogul/swift/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bgogul/swift/teams","hooks_url":"https://api.github.com/repos/bgogul/swift/hooks","issue_events_url":"https://api.github.com/repos/bgogul/swift/issues/events{/number}","events_url":"https://api.github.com/repos/bgogul/swift/events","assignees_url":"https://api.github.com/repos/bgogul/swift/assignees{/user}","branches_url":"https://api.github.com/repos/bgogul/swift/branches{/branch}","tags_url":"https://api.github.com/repos/bgogul/swift/tags","blobs_url":"https://api.github.com/repos/bgogul/swift/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bgogul/swift/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bgogul/swift/git/refs{/sha}","trees_url":"https://api.github.com/repos/bgogul/swift/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bgogul/swift/statuses/{sha}","languages_url":"https://api.github.com/repos/bgogul/swift/languages","stargazers_url":"https://api.github.com/repos/bgogul/swift/stargazers","contributors_url":"https://api.github.com/repos/bgogul/swift/contributors","subscribers_url":"https://api.github.com/repos/bgogul/swift/subscribers","subscription_url":"https://api.github.com/repos/bgogul/swift/subscription","commits_url":"https://api.github.com/repos/bgogul/swift/commits{/sha}","git_commits_url":"https://api.github.com/repos/bgogul/swift/git/commits{/sha}","comments_url":"https://api.github.com/repos/bgogul/swift/comments{/number}","issue_comment_url":"https://api.github.com/repos/bgogul/swift/issues/comments{/number}","contents_url":"https://api.github.com/repos/bgogul/swift/contents/{+path}","compare_url":"https://api.github.com/repos/bgogul/swift/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bgogul/swift/merges","archive_url":"https://api.github.com/repos/bgogul/swift/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bgogul/swift/downloads","issues_url":"https://api.github.com/repos/bgogul/swift/issues{/number}","pulls_url":"https://api.github.com/repos/bgogul/swift/pulls{/number}","milestones_url":"https://api.github.com/repos/bgogul/swift/milestones{/number}","notifications_url":"https://api.github.com/repos/bgogul/swift/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bgogul/swift/labels{/name}","releases_url":"https://api.github.com/repos/bgogul/swift/releases{/id}","deployments_url":"https://api.github.com/repos/bgogul/swift/deployments","created_at":"2018-06-22T16:46:45Z","updated_at":"2018-08-06T20:56:52Z","pushed_at":"2018-11-21T21:17:57Z","git_url":"git://github.com/bgogul/swift.git","ssh_url":"git@github.com:bgogul/swift.git","clone_url":"https://github.com/bgogul/swift.git","svn_url":"https://github.com/bgogul/swift","homepage":"https://swift.org/","size":355240,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"apple:tensorflow","ref":"tensorflow","sha":"2538fca7f914e56f3822e5b6a415d48278c5d38f","user":{"login":"apple","id":10639145,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEwNjM5MTQ1","avatar_url":"https://avatars0.githubusercontent.com/u/10639145?v=4","gravatar_id":"","url":"https://api.github.com/users/apple","html_url":"https://github.com/apple","followers_url":"https://api.github.com/users/apple/followers","following_url":"https://api.github.com/users/apple/following{/other_user}","gists_url":"https://api.github.com/users/apple/gists{/gist_id}","starred_url":"https://api.github.com/users/apple/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apple/subscriptions","organizations_url":"https://api.github.com/users/apple/orgs","repos_url":"https://api.github.com/users/apple/repos","events_url":"https://api.github.com/users/apple/events{/privacy}","received_events_url":"https://api.github.com/users/apple/received_events","type":"Organization","site_admin":false},"repo":{"id":44838949,"node_id":"MDEwOlJlcG9zaXRvcnk0NDgzODk0OQ==","name":"swift","full_name":"apple/swift","private":false,"owner":{"login":"apple","id":10639145,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEwNjM5MTQ1","avatar_url":"https://avatars0.githubusercontent.com/u/10639145?v=4","gravatar_id":"","url":"https://api.github.com/users/apple","html_url":"https://github.com/apple","followers_url":"https://api.github.com/users/apple/followers","following_url":"https://api.github.com/users/apple/following{/other_user}","gists_url":"https://api.github.com/users/apple/gists{/gist_id}","starred_url":"https://api.github.com/users/apple/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apple/subscriptions","organizations_url":"https://api.github.com/users/apple/orgs","repos_url":"https://api.github.com/users/apple/repos","events_url":"https://api.github.com/users/apple/events{/privacy}","received_events_url":"https://api.github.com/users/apple/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/apple/swift","description":"The Swift Programming Language","fork":false,"url":"https://api.github.com/repos/apple/swift","forks_url":"https://api.github.com/repos/apple/swift/forks","keys_url":"https://api.github.com/repos/apple/swift/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apple/swift/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apple/swift/teams","hooks_url":"https://api.github.com/repos/apple/swift/hooks","issue_events_url":"https://api.github.com/repos/apple/swift/issues/events{/number}","events_url":"https://api.github.com/repos/apple/swift/events","assignees_url":"https://api.github.com/repos/apple/swift/assignees{/user}","branches_url":"https://api.github.com/repos/apple/swift/branches{/branch}","tags_url":"https://api.github.com/repos/apple/swift/tags","blobs_url":"https://api.github.com/repos/apple/swift/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apple/swift/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apple/swift/git/refs{/sha}","trees_url":"https://api.github.com/repos/apple/swift/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apple/swift/statuses/{sha}","languages_url":"https://api.github.com/repos/apple/swift/languages","stargazers_url":"https://api.github.com/repos/apple/swift/stargazers","contributors_url":"https://api.github.com/repos/apple/swift/contributors","subscribers_url":"https://api.github.com/repos/apple/swift/subscribers","subscription_url":"https://api.github.com/repos/apple/swift/subscription","commits_url":"https://api.github.com/repos/apple/swift/commits{/sha}","git_commits_url":"https://api.github.com/repos/apple/swift/git/commits{/sha}","comments_url":"https://api.github.com/repos/apple/swift/comments{/number}","issue_comment_url":"https://api.github.com/repos/apple/swift/issues/comments{/number}","contents_url":"https://api.github.com/repos/apple/swift/contents/{+path}","compare_url":"https://api.github.com/repos/apple/swift/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apple/swift/merges","archive_url":"https://api.github.com/repos/apple/swift/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apple/swift/downloads","issues_url":"https://api.github.com/repos/apple/swift/issues{/number}","pulls_url":"https://api.github.com/repos/apple/swift/pulls{/number}","milestones_url":"https://api.github.com/repos/apple/swift/milestones{/number}","notifications_url":"https://api.github.com/repos/apple/swift/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apple/swift/labels{/name}","releases_url":"https://api.github.com/repos/apple/swift/releases{/id}","deployments_url":"https://api.github.com/repos/apple/swift/deployments","created_at":"2015-10-23T21:15:07Z","updated_at":"2018-11-21T20:19:49Z","pushed_at":"2018-11-21T21:20:33Z","git_url":"git://github.com/apple/swift.git","ssh_url":"git@github.com:apple/swift.git","clone_url":"https://github.com/apple/swift.git","svn_url":"https://github.com/apple/swift","homepage":"https://swift.org","size":366141,"stargazers_count":45816,"watchers_count":45816,"language":"C++","has_issues":false,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":7265,"mirror_url":null,"archived":false,"open_issues_count":427,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":7265,"open_issues":427,"watchers":45816,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/apple/swift/pulls/20695"},"html":{"href":"https://github.com/apple/swift/pull/20695"},"issue":{"href":"https://api.github.com/repos/apple/swift/issues/20695"},"comments":{"href":"https://api.github.com/repos/apple/swift/issues/20695/comments"},"review_comments":{"href":"https://api.github.com/repos/apple/swift/pulls/20695/comments"},"review_comment":{"href":"https://api.github.com/repos/apple/swift/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/apple/swift/pulls/20695/commits"},"statuses":{"href":"https://api.github.com/repos/apple/swift/statuses/aff46c64cd197784f6e5d21c0912025e05dd99c5"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"mhong"}}