{"action":"created","comment":{"url":"https://api.github.com/repos/BD2KGenomics/toil/pulls/comments/59638120","id":59638120,"diff_hunk":"@@ -0,0 +1,157 @@\n+# Copyright (C) 2015 UCSC Computational Genomics Lab\n+#\n+# Licensed under the Apache License, Version 2.0 (the \"License\");\n+# you may not use this file except in compliance with the License.\n+# You may obtain a copy of the License at\n+#\n+#     http://www.apache.org/licenses/LICENSE-2.0\n+#\n+# Unless required by applicable law or agreed to in writing, software\n+# distributed under the License is distributed on an \"AS IS\" BASIS,\n+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+# See the License for the specific language governing permissions and\n+# limitations under the License.\n+\n+from __future__ import absolute_import\n+import os, fcntl, time, tempfile, multiprocessing\n+import logging\n+from toil.job import Job\n+from toil.job import PromisedRequirement\n+from toil.test import ToilTest\n+\n+log = logging.getLogger(__name__)\n+\n+class MaxCoresPromisedRequirementTest(ToilTest):\n+    \"\"\"\n+    This test ensures that the PromisedRequirement method properly assigns\n+    resource requirements to the single machine batch system.\n+    \"\"\"\n+\n+    def setUp(self):\n+        super(MaxCoresPromisedRequirementTest, self).setUp()\n+        logging.basicConfig(level=logging.INFO)\n+","path":"src/toil/test/src/promisedRequirementTest.py","position":33,"original_position":33,"commit_id":"11156c632ee497b320074ef1da6a801ca95f733a","original_commit_id":"8c4b3b8f06bd4f1d2612392ec6472012ab343728","user":{"login":"hannes-ucsc","id":5143256,"avatar_url":"https://avatars.githubusercontent.com/u/5143256?v=3","gravatar_id":"","url":"https://api.github.com/users/hannes-ucsc","html_url":"https://github.com/hannes-ucsc","followers_url":"https://api.github.com/users/hannes-ucsc/followers","following_url":"https://api.github.com/users/hannes-ucsc/following{/other_user}","gists_url":"https://api.github.com/users/hannes-ucsc/gists{/gist_id}","starred_url":"https://api.github.com/users/hannes-ucsc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hannes-ucsc/subscriptions","organizations_url":"https://api.github.com/users/hannes-ucsc/orgs","repos_url":"https://api.github.com/users/hannes-ucsc/repos","events_url":"https://api.github.com/users/hannes-ucsc/events{/privacy}","received_events_url":"https://api.github.com/users/hannes-ucsc/received_events","type":"User","site_admin":false},"body":"get rid of empty line","created_at":"2016-04-13T22:39:16Z","updated_at":"2016-04-13T22:39:16Z","html_url":"https://github.com/BD2KGenomics/toil/pull/791#discussion_r59638120","pull_request_url":"https://api.github.com/repos/BD2KGenomics/toil/pulls/791","_links":{"self":{"href":"https://api.github.com/repos/BD2KGenomics/toil/pulls/comments/59638120"},"html":{"href":"https://github.com/BD2KGenomics/toil/pull/791#discussion_r59638120"},"pull_request":{"href":"https://api.github.com/repos/BD2KGenomics/toil/pulls/791"}}},"pull_request":{"url":"https://api.github.com/repos/BD2KGenomics/toil/pulls/791","id":66390667,"html_url":"https://github.com/BD2KGenomics/toil/pull/791","diff_url":"https://github.com/BD2KGenomics/toil/pull/791.diff","patch_url":"https://github.com/BD2KGenomics/toil/pull/791.patch","issue_url":"https://api.github.com/repos/BD2KGenomics/toil/issues/791","number":791,"state":"open","locked":false,"title":"Implement promised requirements (resolves #729)","user":{"login":"jpfeil","id":12463956,"avatar_url":"https://avatars.githubusercontent.com/u/12463956?v=3","gravatar_id":"","url":"https://api.github.com/users/jpfeil","html_url":"https://github.com/jpfeil","followers_url":"https://api.github.com/users/jpfeil/followers","following_url":"https://api.github.com/users/jpfeil/following{/other_user}","gists_url":"https://api.github.com/users/jpfeil/gists{/gist_id}","starred_url":"https://api.github.com/users/jpfeil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jpfeil/subscriptions","organizations_url":"https://api.github.com/users/jpfeil/orgs","repos_url":"https://api.github.com/users/jpfeil/repos","events_url":"https://api.github.com/users/jpfeil/events{/privacy}","received_events_url":"https://api.github.com/users/jpfeil/received_events","type":"User","site_admin":false},"body":"Resolves #729","created_at":"2016-04-13T20:59:57Z","updated_at":"2016-04-13T22:39:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4f7fc887ec38703512851c6f34756837cfb07115","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/BD2KGenomics/toil/pulls/791/commits","review_comments_url":"https://api.github.com/repos/BD2KGenomics/toil/pulls/791/comments","review_comment_url":"https://api.github.com/repos/BD2KGenomics/toil/pulls/comments{/number}","comments_url":"https://api.github.com/repos/BD2KGenomics/toil/issues/791/comments","statuses_url":"https://api.github.com/repos/BD2KGenomics/toil/statuses/11156c632ee497b320074ef1da6a801ca95f733a","head":{"label":"jpfeil:issues/729-promised-requirement","ref":"issues/729-promised-requirement","sha":"11156c632ee497b320074ef1da6a801ca95f733a","user":{"login":"jpfeil","id":12463956,"avatar_url":"https://avatars.githubusercontent.com/u/12463956?v=3","gravatar_id":"","url":"https://api.github.com/users/jpfeil","html_url":"https://github.com/jpfeil","followers_url":"https://api.github.com/users/jpfeil/followers","following_url":"https://api.github.com/users/jpfeil/following{/other_user}","gists_url":"https://api.github.com/users/jpfeil/gists{/gist_id}","starred_url":"https://api.github.com/users/jpfeil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jpfeil/subscriptions","organizations_url":"https://api.github.com/users/jpfeil/orgs","repos_url":"https://api.github.com/users/jpfeil/repos","events_url":"https://api.github.com/users/jpfeil/events{/privacy}","received_events_url":"https://api.github.com/users/jpfeil/received_events","type":"User","site_admin":false},"repo":{"id":56184306,"name":"toil","full_name":"jpfeil/toil","owner":{"login":"jpfeil","id":12463956,"avatar_url":"https://avatars.githubusercontent.com/u/12463956?v=3","gravatar_id":"","url":"https://api.github.com/users/jpfeil","html_url":"https://github.com/jpfeil","followers_url":"https://api.github.com/users/jpfeil/followers","following_url":"https://api.github.com/users/jpfeil/following{/other_user}","gists_url":"https://api.github.com/users/jpfeil/gists{/gist_id}","starred_url":"https://api.github.com/users/jpfeil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jpfeil/subscriptions","organizations_url":"https://api.github.com/users/jpfeil/orgs","repos_url":"https://api.github.com/users/jpfeil/repos","events_url":"https://api.github.com/users/jpfeil/events{/privacy}","received_events_url":"https://api.github.com/users/jpfeil/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jpfeil/toil","description":"Toil is a scalable, efficient, cross-platform pipeline management system, written entirely in Python, and designed around the principles of functional programming.","fork":true,"url":"https://api.github.com/repos/jpfeil/toil","forks_url":"https://api.github.com/repos/jpfeil/toil/forks","keys_url":"https://api.github.com/repos/jpfeil/toil/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jpfeil/toil/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jpfeil/toil/teams","hooks_url":"https://api.github.com/repos/jpfeil/toil/hooks","issue_events_url":"https://api.github.com/repos/jpfeil/toil/issues/events{/number}","events_url":"https://api.github.com/repos/jpfeil/toil/events","assignees_url":"https://api.github.com/repos/jpfeil/toil/assignees{/user}","branches_url":"https://api.github.com/repos/jpfeil/toil/branches{/branch}","tags_url":"https://api.github.com/repos/jpfeil/toil/tags","blobs_url":"https://api.github.com/repos/jpfeil/toil/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jpfeil/toil/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jpfeil/toil/git/refs{/sha}","trees_url":"https://api.github.com/repos/jpfeil/toil/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jpfeil/toil/statuses/{sha}","languages_url":"https://api.github.com/repos/jpfeil/toil/languages","stargazers_url":"https://api.github.com/repos/jpfeil/toil/stargazers","contributors_url":"https://api.github.com/repos/jpfeil/toil/contributors","subscribers_url":"https://api.github.com/repos/jpfeil/toil/subscribers","subscription_url":"https://api.github.com/repos/jpfeil/toil/subscription","commits_url":"https://api.github.com/repos/jpfeil/toil/commits{/sha}","git_commits_url":"https://api.github.com/repos/jpfeil/toil/git/commits{/sha}","comments_url":"https://api.github.com/repos/jpfeil/toil/comments{/number}","issue_comment_url":"https://api.github.com/repos/jpfeil/toil/issues/comments{/number}","contents_url":"https://api.github.com/repos/jpfeil/toil/contents/{+path}","compare_url":"https://api.github.com/repos/jpfeil/toil/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jpfeil/toil/merges","archive_url":"https://api.github.com/repos/jpfeil/toil/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jpfeil/toil/downloads","issues_url":"https://api.github.com/repos/jpfeil/toil/issues{/number}","pulls_url":"https://api.github.com/repos/jpfeil/toil/pulls{/number}","milestones_url":"https://api.github.com/repos/jpfeil/toil/milestones{/number}","notifications_url":"https://api.github.com/repos/jpfeil/toil/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jpfeil/toil/labels{/name}","releases_url":"https://api.github.com/repos/jpfeil/toil/releases{/id}","deployments_url":"https://api.github.com/repos/jpfeil/toil/deployments","created_at":"2016-04-13T20:35:58Z","updated_at":"2016-04-13T20:36:00Z","pushed_at":"2016-04-13T22:37:53Z","git_url":"git://github.com/jpfeil/toil.git","ssh_url":"git@github.com:jpfeil/toil.git","clone_url":"https://github.com/jpfeil/toil.git","svn_url":"https://github.com/jpfeil/toil","homepage":"","size":5705,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"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":"BD2KGenomics:master","ref":"master","sha":"1466e3fd5b51ef909e5cc931e95f88e01ae684d0","user":{"login":"BD2KGenomics","id":8701293,"avatar_url":"https://avatars.githubusercontent.com/u/8701293?v=3","gravatar_id":"","url":"https://api.github.com/users/BD2KGenomics","html_url":"https://github.com/BD2KGenomics","followers_url":"https://api.github.com/users/BD2KGenomics/followers","following_url":"https://api.github.com/users/BD2KGenomics/following{/other_user}","gists_url":"https://api.github.com/users/BD2KGenomics/gists{/gist_id}","starred_url":"https://api.github.com/users/BD2KGenomics/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BD2KGenomics/subscriptions","organizations_url":"https://api.github.com/users/BD2KGenomics/orgs","repos_url":"https://api.github.com/users/BD2KGenomics/repos","events_url":"https://api.github.com/users/BD2KGenomics/events{/privacy}","received_events_url":"https://api.github.com/users/BD2KGenomics/received_events","type":"Organization","site_admin":false},"repo":{"id":33148320,"name":"toil","full_name":"BD2KGenomics/toil","owner":{"login":"BD2KGenomics","id":8701293,"avatar_url":"https://avatars.githubusercontent.com/u/8701293?v=3","gravatar_id":"","url":"https://api.github.com/users/BD2KGenomics","html_url":"https://github.com/BD2KGenomics","followers_url":"https://api.github.com/users/BD2KGenomics/followers","following_url":"https://api.github.com/users/BD2KGenomics/following{/other_user}","gists_url":"https://api.github.com/users/BD2KGenomics/gists{/gist_id}","starred_url":"https://api.github.com/users/BD2KGenomics/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BD2KGenomics/subscriptions","organizations_url":"https://api.github.com/users/BD2KGenomics/orgs","repos_url":"https://api.github.com/users/BD2KGenomics/repos","events_url":"https://api.github.com/users/BD2KGenomics/events{/privacy}","received_events_url":"https://api.github.com/users/BD2KGenomics/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/BD2KGenomics/toil","description":"Toil is a scalable, efficient, cross-platform pipeline management system, written entirely in Python, and designed around the principles of functional programming.","fork":false,"url":"https://api.github.com/repos/BD2KGenomics/toil","forks_url":"https://api.github.com/repos/BD2KGenomics/toil/forks","keys_url":"https://api.github.com/repos/BD2KGenomics/toil/keys{/key_id}","collaborators_url":"https://api.github.com/repos/BD2KGenomics/toil/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/BD2KGenomics/toil/teams","hooks_url":"https://api.github.com/repos/BD2KGenomics/toil/hooks","issue_events_url":"https://api.github.com/repos/BD2KGenomics/toil/issues/events{/number}","events_url":"https://api.github.com/repos/BD2KGenomics/toil/events","assignees_url":"https://api.github.com/repos/BD2KGenomics/toil/assignees{/user}","branches_url":"https://api.github.com/repos/BD2KGenomics/toil/branches{/branch}","tags_url":"https://api.github.com/repos/BD2KGenomics/toil/tags","blobs_url":"https://api.github.com/repos/BD2KGenomics/toil/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/BD2KGenomics/toil/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/BD2KGenomics/toil/git/refs{/sha}","trees_url":"https://api.github.com/repos/BD2KGenomics/toil/git/trees{/sha}","statuses_url":"https://api.github.com/repos/BD2KGenomics/toil/statuses/{sha}","languages_url":"https://api.github.com/repos/BD2KGenomics/toil/languages","stargazers_url":"https://api.github.com/repos/BD2KGenomics/toil/stargazers","contributors_url":"https://api.github.com/repos/BD2KGenomics/toil/contributors","subscribers_url":"https://api.github.com/repos/BD2KGenomics/toil/subscribers","subscription_url":"https://api.github.com/repos/BD2KGenomics/toil/subscription","commits_url":"https://api.github.com/repos/BD2KGenomics/toil/commits{/sha}","git_commits_url":"https://api.github.com/repos/BD2KGenomics/toil/git/commits{/sha}","comments_url":"https://api.github.com/repos/BD2KGenomics/toil/comments{/number}","issue_comment_url":"https://api.github.com/repos/BD2KGenomics/toil/issues/comments{/number}","contents_url":"https://api.github.com/repos/BD2KGenomics/toil/contents/{+path}","compare_url":"https://api.github.com/repos/BD2KGenomics/toil/compare/{base}...{head}","merges_url":"https://api.github.com/repos/BD2KGenomics/toil/merges","archive_url":"https://api.github.com/repos/BD2KGenomics/toil/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/BD2KGenomics/toil/downloads","issues_url":"https://api.github.com/repos/BD2KGenomics/toil/issues{/number}","pulls_url":"https://api.github.com/repos/BD2KGenomics/toil/pulls{/number}","milestones_url":"https://api.github.com/repos/BD2KGenomics/toil/milestones{/number}","notifications_url":"https://api.github.com/repos/BD2KGenomics/toil/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/BD2KGenomics/toil/labels{/name}","releases_url":"https://api.github.com/repos/BD2KGenomics/toil/releases{/id}","deployments_url":"https://api.github.com/repos/BD2KGenomics/toil/deployments","created_at":"2015-03-30T21:08:58Z","updated_at":"2016-04-11T15:56:02Z","pushed_at":"2016-04-13T22:37:54Z","git_url":"git://github.com/BD2KGenomics/toil.git","ssh_url":"git@github.com:BD2KGenomics/toil.git","clone_url":"https://github.com/BD2KGenomics/toil.git","svn_url":"https://github.com/BD2KGenomics/toil","homepage":"","size":6003,"stargazers_count":33,"watchers_count":33,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":17,"mirror_url":null,"open_issues_count":153,"forks":17,"open_issues":153,"watchers":33,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/BD2KGenomics/toil/pulls/791"},"html":{"href":"https://github.com/BD2KGenomics/toil/pull/791"},"issue":{"href":"https://api.github.com/repos/BD2KGenomics/toil/issues/791"},"comments":{"href":"https://api.github.com/repos/BD2KGenomics/toil/issues/791/comments"},"review_comments":{"href":"https://api.github.com/repos/BD2KGenomics/toil/pulls/791/comments"},"review_comment":{"href":"https://api.github.com/repos/BD2KGenomics/toil/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/BD2KGenomics/toil/pulls/791/commits"},"statuses":{"href":"https://api.github.com/repos/BD2KGenomics/toil/statuses/11156c632ee497b320074ef1da6a801ca95f733a"}}}}