{"action":"opened","number":55,"pull_request":{"url":"https://api.github.com/repos/mono/monkeywrench/pulls/55","id":42170143,"html_url":"https://github.com/mono/monkeywrench/pull/55","diff_url":"https://github.com/mono/monkeywrench/pull/55.diff","patch_url":"https://github.com/mono/monkeywrench/pull/55.patch","issue_url":"https://api.github.com/repos/mono/monkeywrench/issues/55","number":55,"state":"open","locked":false,"title":"New Revision Work assignment algorithm","user":{"login":"ColonelThirtyTwo","id":692896,"avatar_url":"https://avatars.githubusercontent.com/u/692896?v=3","gravatar_id":"","url":"https://api.github.com/users/ColonelThirtyTwo","html_url":"https://github.com/ColonelThirtyTwo","followers_url":"https://api.github.com/users/ColonelThirtyTwo/followers","following_url":"https://api.github.com/users/ColonelThirtyTwo/following{/other_user}","gists_url":"https://api.github.com/users/ColonelThirtyTwo/gists{/gist_id}","starred_url":"https://api.github.com/users/ColonelThirtyTwo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ColonelThirtyTwo/subscriptions","organizations_url":"https://api.github.com/users/ColonelThirtyTwo/orgs","repos_url":"https://api.github.com/users/ColonelThirtyTwo/repos","events_url":"https://api.github.com/users/ColonelThirtyTwo/events{/privacy}","received_events_url":"https://api.github.com/users/ColonelThirtyTwo/received_events","type":"User","site_admin":false},"body":"When a bot asks for work to do, currently Wrench tries to give it one revision work per assigned lane. This isn't good for hosts with many lanes that don't see many commits, as one bot hogs the revision works for lanes that it isn't working on yet.\r\n\r\nThis patch alters the algorithm to give each bot only one revision work to work on at a time, by getting the list of the most recent unassigned incomplete revision works for each assigned lane and then randomly picking one. This should allow work to be distributed more evenly throughout the bots while also not starving infrequently-used lanes of bots.\r\n\r\n@duncanmak @rolfbjarne ","created_at":"2015-08-11T19:53:06Z","updated_at":"2015-08-11T19:53:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mono/monkeywrench/pulls/55/commits","review_comments_url":"https://api.github.com/repos/mono/monkeywrench/pulls/55/comments","review_comment_url":"https://api.github.com/repos/mono/monkeywrench/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mono/monkeywrench/issues/55/comments","statuses_url":"https://api.github.com/repos/mono/monkeywrench/statuses/0e4ddfaf0e70ede94405b16048b3b6ad0a2f8c99","head":{"label":"ColonelThirtyTwo:random-single-revwork-selection","ref":"random-single-revwork-selection","sha":"0e4ddfaf0e70ede94405b16048b3b6ad0a2f8c99","user":{"login":"ColonelThirtyTwo","id":692896,"avatar_url":"https://avatars.githubusercontent.com/u/692896?v=3","gravatar_id":"","url":"https://api.github.com/users/ColonelThirtyTwo","html_url":"https://github.com/ColonelThirtyTwo","followers_url":"https://api.github.com/users/ColonelThirtyTwo/followers","following_url":"https://api.github.com/users/ColonelThirtyTwo/following{/other_user}","gists_url":"https://api.github.com/users/ColonelThirtyTwo/gists{/gist_id}","starred_url":"https://api.github.com/users/ColonelThirtyTwo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ColonelThirtyTwo/subscriptions","organizations_url":"https://api.github.com/users/ColonelThirtyTwo/orgs","repos_url":"https://api.github.com/users/ColonelThirtyTwo/repos","events_url":"https://api.github.com/users/ColonelThirtyTwo/events{/privacy}","received_events_url":"https://api.github.com/users/ColonelThirtyTwo/received_events","type":"User","site_admin":false},"repo":{"id":29688992,"name":"monkeywrench","full_name":"ColonelThirtyTwo/monkeywrench","owner":{"login":"ColonelThirtyTwo","id":692896,"avatar_url":"https://avatars.githubusercontent.com/u/692896?v=3","gravatar_id":"","url":"https://api.github.com/users/ColonelThirtyTwo","html_url":"https://github.com/ColonelThirtyTwo","followers_url":"https://api.github.com/users/ColonelThirtyTwo/followers","following_url":"https://api.github.com/users/ColonelThirtyTwo/following{/other_user}","gists_url":"https://api.github.com/users/ColonelThirtyTwo/gists{/gist_id}","starred_url":"https://api.github.com/users/ColonelThirtyTwo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ColonelThirtyTwo/subscriptions","organizations_url":"https://api.github.com/users/ColonelThirtyTwo/orgs","repos_url":"https://api.github.com/users/ColonelThirtyTwo/repos","events_url":"https://api.github.com/users/ColonelThirtyTwo/events{/privacy}","received_events_url":"https://api.github.com/users/ColonelThirtyTwo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ColonelThirtyTwo/monkeywrench","description":"Continuous build system used by Mono and Moonlight.","fork":true,"url":"https://api.github.com/repos/ColonelThirtyTwo/monkeywrench","forks_url":"https://api.github.com/repos/ColonelThirtyTwo/monkeywrench/forks","keys_url":"https://api.github.com/repos/ColonelThirtyTwo/monkeywrench/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ColonelThirtyTwo/monkeywrench/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ColonelThirtyTwo/monkeywrench/teams","hooks_url":"https://api.github.com/repos/ColonelThirtyTwo/monkeywrench/hooks","issue_events_url":"https://api.github.com/repos/ColonelThirtyTwo/monkeywrench/issues/events{/number}","events_url":"https://api.github.com/repos/ColonelThirtyTwo/monkeywrench/events","assignees_url":"https://api.github.com/repos/ColonelThirtyTwo/monkeywrench/assignees{/user}","branches_url":"https://api.github.com/repos/ColonelThirtyTwo/monkeywrench/branches{/branch}","tags_url":"https://api.github.com/repos/ColonelThirtyTwo/monkeywrench/tags","blobs_url":"https://api.github.com/repos/ColonelThirtyTwo/monkeywrench/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ColonelThirtyTwo/monkeywrench/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ColonelThirtyTwo/monkeywrench/git/refs{/sha}","trees_url":"https://api.github.com/repos/ColonelThirtyTwo/monkeywrench/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ColonelThirtyTwo/monkeywrench/statuses/{sha}","languages_url":"https://api.github.com/repos/ColonelThirtyTwo/monkeywrench/languages","stargazers_url":"https://api.github.com/repos/ColonelThirtyTwo/monkeywrench/stargazers","contributors_url":"https://api.github.com/repos/ColonelThirtyTwo/monkeywrench/contributors","subscribers_url":"https://api.github.com/repos/ColonelThirtyTwo/monkeywrench/subscribers","subscription_url":"https://api.github.com/repos/ColonelThirtyTwo/monkeywrench/subscription","commits_url":"https://api.github.com/repos/ColonelThirtyTwo/monkeywrench/commits{/sha}","git_commits_url":"https://api.github.com/repos/ColonelThirtyTwo/monkeywrench/git/commits{/sha}","comments_url":"https://api.github.com/repos/ColonelThirtyTwo/monkeywrench/comments{/number}","issue_comment_url":"https://api.github.com/repos/ColonelThirtyTwo/monkeywrench/issues/comments{/number}","contents_url":"https://api.github.com/repos/ColonelThirtyTwo/monkeywrench/contents/{+path}","compare_url":"https://api.github.com/repos/ColonelThirtyTwo/monkeywrench/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ColonelThirtyTwo/monkeywrench/merges","archive_url":"https://api.github.com/repos/ColonelThirtyTwo/monkeywrench/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ColonelThirtyTwo/monkeywrench/downloads","issues_url":"https://api.github.com/repos/ColonelThirtyTwo/monkeywrench/issues{/number}","pulls_url":"https://api.github.com/repos/ColonelThirtyTwo/monkeywrench/pulls{/number}","milestones_url":"https://api.github.com/repos/ColonelThirtyTwo/monkeywrench/milestones{/number}","notifications_url":"https://api.github.com/repos/ColonelThirtyTwo/monkeywrench/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ColonelThirtyTwo/monkeywrench/labels{/name}","releases_url":"https://api.github.com/repos/ColonelThirtyTwo/monkeywrench/releases{/id}","created_at":"2015-01-22T16:48:07Z","updated_at":"2015-05-06T14:12:56Z","pushed_at":"2015-08-11T19:12:25Z","git_url":"git://github.com/ColonelThirtyTwo/monkeywrench.git","ssh_url":"git@github.com:ColonelThirtyTwo/monkeywrench.git","clone_url":"https://github.com/ColonelThirtyTwo/monkeywrench.git","svn_url":"https://github.com/ColonelThirtyTwo/monkeywrench","homepage":"http://www.mono-project.com/","size":7404,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":false,"has_downloads":false,"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":"mono:master","ref":"master","sha":"390d7d0a612da2094f975324af3ae68e3450214e","user":{"login":"mono","id":53395,"avatar_url":"https://avatars.githubusercontent.com/u/53395?v=3","gravatar_id":"","url":"https://api.github.com/users/mono","html_url":"https://github.com/mono","followers_url":"https://api.github.com/users/mono/followers","following_url":"https://api.github.com/users/mono/following{/other_user}","gists_url":"https://api.github.com/users/mono/gists{/gist_id}","starred_url":"https://api.github.com/users/mono/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mono/subscriptions","organizations_url":"https://api.github.com/users/mono/orgs","repos_url":"https://api.github.com/users/mono/repos","events_url":"https://api.github.com/users/mono/events{/privacy}","received_events_url":"https://api.github.com/users/mono/received_events","type":"Organization","site_admin":false},"repo":{"id":791288,"name":"monkeywrench","full_name":"mono/monkeywrench","owner":{"login":"mono","id":53395,"avatar_url":"https://avatars.githubusercontent.com/u/53395?v=3","gravatar_id":"","url":"https://api.github.com/users/mono","html_url":"https://github.com/mono","followers_url":"https://api.github.com/users/mono/followers","following_url":"https://api.github.com/users/mono/following{/other_user}","gists_url":"https://api.github.com/users/mono/gists{/gist_id}","starred_url":"https://api.github.com/users/mono/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mono/subscriptions","organizations_url":"https://api.github.com/users/mono/orgs","repos_url":"https://api.github.com/users/mono/repos","events_url":"https://api.github.com/users/mono/events{/privacy}","received_events_url":"https://api.github.com/users/mono/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mono/monkeywrench","description":"Continuous build system used by Mono and Moonlight.","fork":false,"url":"https://api.github.com/repos/mono/monkeywrench","forks_url":"https://api.github.com/repos/mono/monkeywrench/forks","keys_url":"https://api.github.com/repos/mono/monkeywrench/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mono/monkeywrench/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mono/monkeywrench/teams","hooks_url":"https://api.github.com/repos/mono/monkeywrench/hooks","issue_events_url":"https://api.github.com/repos/mono/monkeywrench/issues/events{/number}","events_url":"https://api.github.com/repos/mono/monkeywrench/events","assignees_url":"https://api.github.com/repos/mono/monkeywrench/assignees{/user}","branches_url":"https://api.github.com/repos/mono/monkeywrench/branches{/branch}","tags_url":"https://api.github.com/repos/mono/monkeywrench/tags","blobs_url":"https://api.github.com/repos/mono/monkeywrench/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mono/monkeywrench/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mono/monkeywrench/git/refs{/sha}","trees_url":"https://api.github.com/repos/mono/monkeywrench/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mono/monkeywrench/statuses/{sha}","languages_url":"https://api.github.com/repos/mono/monkeywrench/languages","stargazers_url":"https://api.github.com/repos/mono/monkeywrench/stargazers","contributors_url":"https://api.github.com/repos/mono/monkeywrench/contributors","subscribers_url":"https://api.github.com/repos/mono/monkeywrench/subscribers","subscription_url":"https://api.github.com/repos/mono/monkeywrench/subscription","commits_url":"https://api.github.com/repos/mono/monkeywrench/commits{/sha}","git_commits_url":"https://api.github.com/repos/mono/monkeywrench/git/commits{/sha}","comments_url":"https://api.github.com/repos/mono/monkeywrench/comments{/number}","issue_comment_url":"https://api.github.com/repos/mono/monkeywrench/issues/comments{/number}","contents_url":"https://api.github.com/repos/mono/monkeywrench/contents/{+path}","compare_url":"https://api.github.com/repos/mono/monkeywrench/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mono/monkeywrench/merges","archive_url":"https://api.github.com/repos/mono/monkeywrench/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mono/monkeywrench/downloads","issues_url":"https://api.github.com/repos/mono/monkeywrench/issues{/number}","pulls_url":"https://api.github.com/repos/mono/monkeywrench/pulls{/number}","milestones_url":"https://api.github.com/repos/mono/monkeywrench/milestones{/number}","notifications_url":"https://api.github.com/repos/mono/monkeywrench/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mono/monkeywrench/labels{/name}","releases_url":"https://api.github.com/repos/mono/monkeywrench/releases{/id}","created_at":"2010-07-22T16:05:55Z","updated_at":"2015-07-07T22:03:21Z","pushed_at":"2015-08-11T19:53:06Z","git_url":"git://github.com/mono/monkeywrench.git","ssh_url":"git@github.com:mono/monkeywrench.git","clone_url":"https://github.com/mono/monkeywrench.git","svn_url":"https://github.com/mono/monkeywrench","homepage":"http://www.mono-project.com/","size":8168,"stargazers_count":27,"watchers_count":27,"language":"C#","has_issues":false,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":21,"mirror_url":null,"open_issues_count":1,"forks":21,"open_issues":1,"watchers":27,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mono/monkeywrench/pulls/55"},"html":{"href":"https://github.com/mono/monkeywrench/pull/55"},"issue":{"href":"https://api.github.com/repos/mono/monkeywrench/issues/55"},"comments":{"href":"https://api.github.com/repos/mono/monkeywrench/issues/55/comments"},"review_comments":{"href":"https://api.github.com/repos/mono/monkeywrench/pulls/55/comments"},"review_comment":{"href":"https://api.github.com/repos/mono/monkeywrench/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mono/monkeywrench/pulls/55/commits"},"statuses":{"href":"https://api.github.com/repos/mono/monkeywrench/statuses/0e4ddfaf0e70ede94405b16048b3b6ad0a2f8c99"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":166,"deletions":224,"changed_files":2}}