{"action":"created","comment":{"url":"https://api.github.com/repos/fastlane/ci/pulls/comments/194812599","pull_request_review_id":128055205,"id":194812599,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5NDgxMjU5OQ==","diff_hunk":"@@ -43,3 +45,57 @@ message Command {\n   // a map of the environment to be given to the child process.\n   map<string,string> env = 3;\n }\n+\n+// an Invocation is a invocation of Fastlane.\n+// TODO: remove Command when we stop shelling out to the fastlane bin\n+message InvocationRequest {\n+  Command command = 1;\n+}\n+\n+message InvocationResponse {\n+\n+  message Artifact {\n+    string filename = 1;\n+    bytes chunk = 2;\n+  }\n+\n+  // Error is used to capture where a particular build failed and for what reason.\n+  // This is useful in presenting the error to the user or being able to link to the test cases on the web.\n+  // If we have an Error in our stream, we can assume the stream will close.\n+  message Error {\n+    // in case we don't have a file, line_number, etc we can put a description here.\n+    // e.g. Agent cannot clone the repo because of permissions errors.\n+    string error_description = 1;\n+\n+    string file = 2;\n+    uint32 line_number = 3;\n+    string stacktrace = 4;\n+    uint32 exit_status = 5;\n+  }\n+\n+  // the status of the current Build\n+  message Status {\n+    enum State {\n+      PENDING = 0;\n+      RUNNING = 1;\n+      FINISHING = 2;  // job was successful, but we are still transmitting artifact.\n+      BROKEN = 3;\n+      SUCCEEDED = 4;\n+      FAILED = 5;     // failed is when a test failed, error is when it could not complete the run.\n+      REJECTED = 6;\n+    }\n+\n+    State state = 1;\n+    string description = 2; // provide more info for rejection.\n+  }\n+\n+  // we can only have an error or an artifact.","path":"protos/agent.proto","position":77,"original_position":77,"commit_id":"6c02ee259d320056f039da3b4eb8b5234d5e522e","original_commit_id":"6c02ee259d320056f039da3b4eb8b5234d5e522e","user":{"login":"bogdanbrato","id":39315620,"node_id":"MDQ6VXNlcjM5MzE1NjIw","avatar_url":"https://avatars0.githubusercontent.com/u/39315620?v=4","gravatar_id":"","url":"https://api.github.com/users/bogdanbrato","html_url":"https://github.com/bogdanbrato","followers_url":"https://api.github.com/users/bogdanbrato/followers","following_url":"https://api.github.com/users/bogdanbrato/following{/other_user}","gists_url":"https://api.github.com/users/bogdanbrato/gists{/gist_id}","starred_url":"https://api.github.com/users/bogdanbrato/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bogdanbrato/subscriptions","organizations_url":"https://api.github.com/users/bogdanbrato/orgs","repos_url":"https://api.github.com/users/bogdanbrato/repos","events_url":"https://api.github.com/users/bogdanbrato/events{/privacy}","received_events_url":"https://api.github.com/users/bogdanbrato/received_events","type":"User","site_admin":false},"body":"This comment needs an update to reflect the new status of the oneof field.","created_at":"2018-06-12T16:49:35Z","updated_at":"2018-06-12T16:49:35Z","html_url":"https://github.com/fastlane/ci/pull/951#discussion_r194812599","pull_request_url":"https://api.github.com/repos/fastlane/ci/pulls/951","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/fastlane/ci/pulls/comments/194812599"},"html":{"href":"https://github.com/fastlane/ci/pull/951#discussion_r194812599"},"pull_request":{"href":"https://api.github.com/repos/fastlane/ci/pulls/951"}}},"pull_request":{"url":"https://api.github.com/repos/fastlane/ci/pulls/951","id":191886268,"node_id":"MDExOlB1bGxSZXF1ZXN0MTkxODg2MjY4","html_url":"https://github.com/fastlane/ci/pull/951","diff_url":"https://github.com/fastlane/ci/pull/951.diff","patch_url":"https://github.com/fastlane/ci/pull/951.patch","issue_url":"https://api.github.com/repos/fastlane/ci/issues/951","number":951,"state":"open","locked":false,"title":"[WIP] Distributed fastlane.ci builds","user":{"login":"KrauseFx","id":869950,"node_id":"MDQ6VXNlcjg2OTk1MA==","avatar_url":"https://avatars2.githubusercontent.com/u/869950?v=4","gravatar_id":"","url":"https://api.github.com/users/KrauseFx","html_url":"https://github.com/KrauseFx","followers_url":"https://api.github.com/users/KrauseFx/followers","following_url":"https://api.github.com/users/KrauseFx/following{/other_user}","gists_url":"https://api.github.com/users/KrauseFx/gists{/gist_id}","starred_url":"https://api.github.com/users/KrauseFx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KrauseFx/subscriptions","organizations_url":"https://api.github.com/users/KrauseFx/orgs","repos_url":"https://api.github.com/users/KrauseFx/repos","events_url":"https://api.github.com/users/KrauseFx/events{/privacy}","received_events_url":"https://api.github.com/users/KrauseFx/received_events","type":"User","site_admin":false},"body":"Fixes https://github.com/fastlane/ci/issues/457\r\n\r\n**Open tasks:**\r\n\r\n- [x] Get rid of the Rakefile in the worker and replace with a Ruby class #987 (@snatchev)\r\n- [x] Storing of artifacts, which includes storing & loading previous build outputs #987 (@snatchev)\r\n- [x] Pass on exceptions from the worker to the fastlane.ci #987\r\n- [x] Fix `ws` being `nil` causing a crash (https://github.com/fastlane/ci/issues/826) (@taquitos)\r\n- [x] Rename `Server < Service` class to something else #987 (@snatchev) \r\n\r\n**Moved to separate tasks**\r\n- Seems like we need to flush the output on some part of the stack (https://github.com/fastlane/ci/issues/954)\r\n- Additional new lines at the end (https://github.com/fastlane/ci/issues/955)\r\n- A worker needs a way to tell master that they can't handle a given job (https://github.com/fastlane/ci/issues/958)\r\n- Automatic Xcode installation (https://github.com/fastlane/ci/issues/446) depends on https://github.com/fastlane/ci/issues/958\r\n- Enable certificates for HTTPs encryption for distributed builds\r\n- Use our Git Helper as part of the worker (https://github.com/fastlane/ci/issues/966)\r\n- Discovery or management of worker nodes inside the network (https://github.com/fastlane/ci/issues/967)","created_at":"2018-05-31T22:04:47Z","updated_at":"2018-06-12T16:49:35Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f4969cbb11c17d28f053ce7cc13ef01e88b95368","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[{"name":"ci-container","id":2758648,"node_id":"MDQ6VGVhbTI3NTg2NDg=","slug":"ci-container","description":"Dream team responsible for some of the container stuff for fastlane.ci","privacy":"closed","url":"https://api.github.com/teams/2758648","members_url":"https://api.github.com/teams/2758648/members{/member}","repositories_url":"https://api.github.com/teams/2758648/repos","permission":"pull"},{"name":"ci-backend","id":2759645,"node_id":"MDQ6VGVhbTI3NTk2NDU=","slug":"ci-backend","description":"All backend related fastlane.ci code","privacy":"closed","url":"https://api.github.com/teams/2759645","members_url":"https://api.github.com/teams/2759645/members{/member}","repositories_url":"https://api.github.com/teams/2759645/repos","permission":"pull"}],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/fastlane/ci/pulls/951/commits","review_comments_url":"https://api.github.com/repos/fastlane/ci/pulls/951/comments","review_comment_url":"https://api.github.com/repos/fastlane/ci/pulls/comments{/number}","comments_url":"https://api.github.com/repos/fastlane/ci/issues/951/comments","statuses_url":"https://api.github.com/repos/fastlane/ci/statuses/6c02ee259d320056f039da3b4eb8b5234d5e522e","head":{"label":"fastlane:hookup-remote-runner","ref":"hookup-remote-runner","sha":"6c02ee259d320056f039da3b4eb8b5234d5e522e","user":{"login":"fastlane","id":11098337,"node_id":"MDEyOk9yZ2FuaXphdGlvbjExMDk4MzM3","avatar_url":"https://avatars2.githubusercontent.com/u/11098337?v=4","gravatar_id":"","url":"https://api.github.com/users/fastlane","html_url":"https://github.com/fastlane","followers_url":"https://api.github.com/users/fastlane/followers","following_url":"https://api.github.com/users/fastlane/following{/other_user}","gists_url":"https://api.github.com/users/fastlane/gists{/gist_id}","starred_url":"https://api.github.com/users/fastlane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fastlane/subscriptions","organizations_url":"https://api.github.com/users/fastlane/orgs","repos_url":"https://api.github.com/users/fastlane/repos","events_url":"https://api.github.com/users/fastlane/events{/privacy}","received_events_url":"https://api.github.com/users/fastlane/received_events","type":"Organization","site_admin":false},"repo":{"id":114287404,"node_id":"MDEwOlJlcG9zaXRvcnkxMTQyODc0MDQ=","name":"ci","full_name":"fastlane/ci","owner":{"login":"fastlane","id":11098337,"node_id":"MDEyOk9yZ2FuaXphdGlvbjExMDk4MzM3","avatar_url":"https://avatars2.githubusercontent.com/u/11098337?v=4","gravatar_id":"","url":"https://api.github.com/users/fastlane","html_url":"https://github.com/fastlane","followers_url":"https://api.github.com/users/fastlane/followers","following_url":"https://api.github.com/users/fastlane/following{/other_user}","gists_url":"https://api.github.com/users/fastlane/gists{/gist_id}","starred_url":"https://api.github.com/users/fastlane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fastlane/subscriptions","organizations_url":"https://api.github.com/users/fastlane/orgs","repos_url":"https://api.github.com/users/fastlane/repos","events_url":"https://api.github.com/users/fastlane/events{/privacy}","received_events_url":"https://api.github.com/users/fastlane/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/fastlane/ci","description":"Open source, self hosted, mobile optimized CI powered by fastlane","fork":false,"url":"https://api.github.com/repos/fastlane/ci","forks_url":"https://api.github.com/repos/fastlane/ci/forks","keys_url":"https://api.github.com/repos/fastlane/ci/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fastlane/ci/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fastlane/ci/teams","hooks_url":"https://api.github.com/repos/fastlane/ci/hooks","issue_events_url":"https://api.github.com/repos/fastlane/ci/issues/events{/number}","events_url":"https://api.github.com/repos/fastlane/ci/events","assignees_url":"https://api.github.com/repos/fastlane/ci/assignees{/user}","branches_url":"https://api.github.com/repos/fastlane/ci/branches{/branch}","tags_url":"https://api.github.com/repos/fastlane/ci/tags","blobs_url":"https://api.github.com/repos/fastlane/ci/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fastlane/ci/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fastlane/ci/git/refs{/sha}","trees_url":"https://api.github.com/repos/fastlane/ci/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fastlane/ci/statuses/{sha}","languages_url":"https://api.github.com/repos/fastlane/ci/languages","stargazers_url":"https://api.github.com/repos/fastlane/ci/stargazers","contributors_url":"https://api.github.com/repos/fastlane/ci/contributors","subscribers_url":"https://api.github.com/repos/fastlane/ci/subscribers","subscription_url":"https://api.github.com/repos/fastlane/ci/subscription","commits_url":"https://api.github.com/repos/fastlane/ci/commits{/sha}","git_commits_url":"https://api.github.com/repos/fastlane/ci/git/commits{/sha}","comments_url":"https://api.github.com/repos/fastlane/ci/comments{/number}","issue_comment_url":"https://api.github.com/repos/fastlane/ci/issues/comments{/number}","contents_url":"https://api.github.com/repos/fastlane/ci/contents/{+path}","compare_url":"https://api.github.com/repos/fastlane/ci/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fastlane/ci/merges","archive_url":"https://api.github.com/repos/fastlane/ci/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fastlane/ci/downloads","issues_url":"https://api.github.com/repos/fastlane/ci/issues{/number}","pulls_url":"https://api.github.com/repos/fastlane/ci/pulls{/number}","milestones_url":"https://api.github.com/repos/fastlane/ci/milestones{/number}","notifications_url":"https://api.github.com/repos/fastlane/ci/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fastlane/ci/labels{/name}","releases_url":"https://api.github.com/repos/fastlane/ci/releases{/id}","deployments_url":"https://api.github.com/repos/fastlane/ci/deployments","created_at":"2017-12-14T19:17:22Z","updated_at":"2018-06-12T16:33:34Z","pushed_at":"2018-06-12T16:33:36Z","git_url":"git://github.com/fastlane/ci.git","ssh_url":"git@github.com:fastlane/ci.git","clone_url":"https://github.com/fastlane/ci.git","svn_url":"https://github.com/fastlane/ci","homepage":"https://fastlane.tools","size":3155,"stargazers_count":2019,"watchers_count":2019,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":67,"mirror_url":null,"archived":false,"open_issues_count":128,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":67,"open_issues":128,"watchers":2019,"default_branch":"master"}},"base":{"label":"fastlane:master","ref":"master","sha":"a604efeadc3fbb6f34996389e45a0f7c775a1a26","user":{"login":"fastlane","id":11098337,"node_id":"MDEyOk9yZ2FuaXphdGlvbjExMDk4MzM3","avatar_url":"https://avatars2.githubusercontent.com/u/11098337?v=4","gravatar_id":"","url":"https://api.github.com/users/fastlane","html_url":"https://github.com/fastlane","followers_url":"https://api.github.com/users/fastlane/followers","following_url":"https://api.github.com/users/fastlane/following{/other_user}","gists_url":"https://api.github.com/users/fastlane/gists{/gist_id}","starred_url":"https://api.github.com/users/fastlane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fastlane/subscriptions","organizations_url":"https://api.github.com/users/fastlane/orgs","repos_url":"https://api.github.com/users/fastlane/repos","events_url":"https://api.github.com/users/fastlane/events{/privacy}","received_events_url":"https://api.github.com/users/fastlane/received_events","type":"Organization","site_admin":false},"repo":{"id":114287404,"node_id":"MDEwOlJlcG9zaXRvcnkxMTQyODc0MDQ=","name":"ci","full_name":"fastlane/ci","owner":{"login":"fastlane","id":11098337,"node_id":"MDEyOk9yZ2FuaXphdGlvbjExMDk4MzM3","avatar_url":"https://avatars2.githubusercontent.com/u/11098337?v=4","gravatar_id":"","url":"https://api.github.com/users/fastlane","html_url":"https://github.com/fastlane","followers_url":"https://api.github.com/users/fastlane/followers","following_url":"https://api.github.com/users/fastlane/following{/other_user}","gists_url":"https://api.github.com/users/fastlane/gists{/gist_id}","starred_url":"https://api.github.com/users/fastlane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fastlane/subscriptions","organizations_url":"https://api.github.com/users/fastlane/orgs","repos_url":"https://api.github.com/users/fastlane/repos","events_url":"https://api.github.com/users/fastlane/events{/privacy}","received_events_url":"https://api.github.com/users/fastlane/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/fastlane/ci","description":"Open source, self hosted, mobile optimized CI powered by fastlane","fork":false,"url":"https://api.github.com/repos/fastlane/ci","forks_url":"https://api.github.com/repos/fastlane/ci/forks","keys_url":"https://api.github.com/repos/fastlane/ci/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fastlane/ci/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fastlane/ci/teams","hooks_url":"https://api.github.com/repos/fastlane/ci/hooks","issue_events_url":"https://api.github.com/repos/fastlane/ci/issues/events{/number}","events_url":"https://api.github.com/repos/fastlane/ci/events","assignees_url":"https://api.github.com/repos/fastlane/ci/assignees{/user}","branches_url":"https://api.github.com/repos/fastlane/ci/branches{/branch}","tags_url":"https://api.github.com/repos/fastlane/ci/tags","blobs_url":"https://api.github.com/repos/fastlane/ci/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fastlane/ci/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fastlane/ci/git/refs{/sha}","trees_url":"https://api.github.com/repos/fastlane/ci/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fastlane/ci/statuses/{sha}","languages_url":"https://api.github.com/repos/fastlane/ci/languages","stargazers_url":"https://api.github.com/repos/fastlane/ci/stargazers","contributors_url":"https://api.github.com/repos/fastlane/ci/contributors","subscribers_url":"https://api.github.com/repos/fastlane/ci/subscribers","subscription_url":"https://api.github.com/repos/fastlane/ci/subscription","commits_url":"https://api.github.com/repos/fastlane/ci/commits{/sha}","git_commits_url":"https://api.github.com/repos/fastlane/ci/git/commits{/sha}","comments_url":"https://api.github.com/repos/fastlane/ci/comments{/number}","issue_comment_url":"https://api.github.com/repos/fastlane/ci/issues/comments{/number}","contents_url":"https://api.github.com/repos/fastlane/ci/contents/{+path}","compare_url":"https://api.github.com/repos/fastlane/ci/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fastlane/ci/merges","archive_url":"https://api.github.com/repos/fastlane/ci/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fastlane/ci/downloads","issues_url":"https://api.github.com/repos/fastlane/ci/issues{/number}","pulls_url":"https://api.github.com/repos/fastlane/ci/pulls{/number}","milestones_url":"https://api.github.com/repos/fastlane/ci/milestones{/number}","notifications_url":"https://api.github.com/repos/fastlane/ci/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fastlane/ci/labels{/name}","releases_url":"https://api.github.com/repos/fastlane/ci/releases{/id}","deployments_url":"https://api.github.com/repos/fastlane/ci/deployments","created_at":"2017-12-14T19:17:22Z","updated_at":"2018-06-12T16:33:34Z","pushed_at":"2018-06-12T16:33:36Z","git_url":"git://github.com/fastlane/ci.git","ssh_url":"git@github.com:fastlane/ci.git","clone_url":"https://github.com/fastlane/ci.git","svn_url":"https://github.com/fastlane/ci","homepage":"https://fastlane.tools","size":3155,"stargazers_count":2019,"watchers_count":2019,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":67,"mirror_url":null,"archived":false,"open_issues_count":128,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":67,"open_issues":128,"watchers":2019,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/fastlane/ci/pulls/951"},"html":{"href":"https://github.com/fastlane/ci/pull/951"},"issue":{"href":"https://api.github.com/repos/fastlane/ci/issues/951"},"comments":{"href":"https://api.github.com/repos/fastlane/ci/issues/951/comments"},"review_comments":{"href":"https://api.github.com/repos/fastlane/ci/pulls/951/comments"},"review_comment":{"href":"https://api.github.com/repos/fastlane/ci/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/fastlane/ci/pulls/951/commits"},"statuses":{"href":"https://api.github.com/repos/fastlane/ci/statuses/6c02ee259d320056f039da3b4eb8b5234d5e522e"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"bogdanbrato"}}