)]}'
{"jenkins/__init__.py":[{"author":{"_account_id":6987,"name":"Khai Do","email":"zaro0508@gmail.com","username":"zaro0508"},"change_message_id":"038ae2de2b8ddfd11d5ff7a67939bf62e23e23f5","unresolved":false,"context_lines":[{"line_number":727,"context_line":"            self._build_url(STOP_BUILD, locals()), b\u0027\u0027))"},{"line_number":728,"context_line":""},{"line_number":729,"context_line":"    def get_running_builds(self):"},{"line_number":730,"context_line":"        \u0027\u0027\u0027Return list of running builds.\u0027\u0027\u0027"},{"line_number":731,"context_line":"        builds \u003d []"},{"line_number":732,"context_line":"        nodes \u003d self.get_nodes()"},{"line_number":733,"context_line":"        for node in nodes:"}],"source_content_type":"text/x-python","patch_set":2,"id":"ba15a1d1_00f2b8d2","line":730,"updated":"2015-09-14 21:42:47.000000000","message":"nit: \u0027of running\u0027/\u0027of currently running\u0027\n\nIt\u0027s a little unclear as to what is in the returned builds object.  From reading the doc i would tend to think that it\u0027s just a list of job names, however it\u0027s actually a list of executables.  Specifying the return type and adding an example similar to get_info() would help.","commit_id":"9cd6cd845eeaff0ae49a94c6748ac34fc414e9f8"},{"author":{"_account_id":679,"name":"Kevin L. Mitchell","email":"klmitch@mit.edu","username":"klmitch"},"change_message_id":"a3f66cf7efbfa093206c7be7ef30c7f04e3afdda","unresolved":false,"context_lines":[{"line_number":727,"context_line":"            self._build_url(STOP_BUILD, locals()), b\u0027\u0027))"},{"line_number":728,"context_line":""},{"line_number":729,"context_line":"    def get_running_builds(self):"},{"line_number":730,"context_line":"        \u0027\u0027\u0027Return list of running builds.\u0027\u0027\u0027"},{"line_number":731,"context_line":"        builds \u003d []"},{"line_number":732,"context_line":"        nodes \u003d self.get_nodes()"},{"line_number":733,"context_line":"        for node in nodes:"}],"source_content_type":"text/x-python","patch_set":2,"id":"ba15a1d1_0dabd075","line":730,"in_reply_to":"ba15a1d1_00f2b8d2","updated":"2015-09-14 22:41:56.000000000","message":"Agreed, documentation is needed for the return type.  Also, I think it would be better if this gave you the names (and maybe build numbers) of the jobs; I can imagine that someone using this interface would want to use the return value to manually kill off some of the running builds.","commit_id":"9cd6cd845eeaff0ae49a94c6748ac34fc414e9f8"},{"author":{"_account_id":6987,"name":"Khai Do","email":"zaro0508@gmail.com","username":"zaro0508"},"change_message_id":"8f8cf53d6a0659cca6ada7682ed96b54fca1e1a3","unresolved":false,"context_lines":[{"line_number":729,"context_line":"    def get_running_builds(self):"},{"line_number":730,"context_line":"        \u0027\u0027\u0027Return list of running builds."},{"line_number":731,"context_line":""},{"line_number":732,"context_line":"        Each build is a dict with keys \u0027name\u0027, \u0027number\u0027, and \u0027url\u0027."},{"line_number":733,"context_line":""},{"line_number":734,"context_line":"        :returns: List of builds, ``[ { str: str, str: int, str:str} ]``"},{"line_number":735,"context_line":"        \u0027\u0027\u0027"}],"source_content_type":"text/x-python","patch_set":3,"id":"ba15a1d1_2656c35c","line":732,"updated":"2015-09-15 20:44:10.000000000","message":"Providing the \u0027estimatedDuration\u0027 time might be useful.\n\nAn example of the resulting output from this method would be helpful.","commit_id":"c704ab4c9f7fdfe5b766765d3811a5191e7634ab"},{"author":{"_account_id":4146,"name":"Clark Boylan","email":"cboylan@sapwetik.org","username":"cboylan"},"change_message_id":"b16adc1e1a4e93e2f6bb2eac62ed8120ae463a61","unresolved":false,"context_lines":[{"line_number":729,"context_line":"    def get_running_builds(self):"},{"line_number":730,"context_line":"        \u0027\u0027\u0027Return list of running builds."},{"line_number":731,"context_line":""},{"line_number":732,"context_line":"        Each build is a dict with keys \u0027name\u0027, \u0027number\u0027, and \u0027url\u0027."},{"line_number":733,"context_line":""},{"line_number":734,"context_line":"        :returns: List of builds, ``[ { str: str, str: int, str:str} ]``"},{"line_number":735,"context_line":"        \u0027\u0027\u0027"}],"source_content_type":"text/x-python","patch_set":3,"id":"ba15a1d1_37158b3f","line":732,"in_reply_to":"ba15a1d1_2656c35c","updated":"2015-09-15 21:24:01.000000000","message":"This docstring does exactly what get_nodes does below. You want me to also add python interactive interpreter output?","commit_id":"c704ab4c9f7fdfe5b766765d3811a5191e7634ab"},{"author":{"_account_id":6987,"name":"Khai Do","email":"zaro0508@gmail.com","username":"zaro0508"},"change_message_id":"2b5bed3a91df6955abce79f2adaa119894e6eb40","unresolved":false,"context_lines":[{"line_number":729,"context_line":"    def get_running_builds(self):"},{"line_number":730,"context_line":"        \u0027\u0027\u0027Return list of running builds."},{"line_number":731,"context_line":""},{"line_number":732,"context_line":"        Each build is a dict with keys \u0027name\u0027, \u0027number\u0027, and \u0027url\u0027."},{"line_number":733,"context_line":""},{"line_number":734,"context_line":"        :returns: List of builds, ``[ { str: str, str: int, str:str} ]``"},{"line_number":735,"context_line":"        \u0027\u0027\u0027"}],"source_content_type":"text/x-python","patch_set":3,"id":"ba15a1d1_52104d4e","line":732,"in_reply_to":"ba15a1d1_37158b3f","updated":"2015-09-15 21:45:01.000000000","message":"yes, if you don\u0027t mind.","commit_id":"c704ab4c9f7fdfe5b766765d3811a5191e7634ab"},{"author":{"_account_id":6987,"name":"Khai Do","email":"zaro0508@gmail.com","username":"zaro0508"},"change_message_id":"8f8cf53d6a0659cca6ada7682ed96b54fca1e1a3","unresolved":false,"context_lines":[{"line_number":748,"context_line":"                if executable:"},{"line_number":749,"context_line":"                    number \u003d executable[\u0027number\u0027]"},{"line_number":750,"context_line":"                    str_num \u003d str(number)"},{"line_number":751,"context_line":"                    full_name \u003d executable[\u0027fullDisplayName\u0027]"},{"line_number":752,"context_line":"                    if full_name.endswith(\u0027#\u0027 + str_num):"},{"line_number":753,"context_line":"                        name \u003d full_name[:-(len(str_num) + 2)]"},{"line_number":754,"context_line":"                    else:"}],"source_content_type":"text/x-python","patch_set":3,"id":"ba15a1d1_e6820b94","line":751,"updated":"2015-09-15 20:44:10.000000000","message":"I don\u0027t see a difference between fullDisplayName and \"actual name\".  What is this \u0027actual name\u0027 you are referring to?","commit_id":"c704ab4c9f7fdfe5b766765d3811a5191e7634ab"},{"author":{"_account_id":679,"name":"Kevin L. Mitchell","email":"klmitch@mit.edu","username":"klmitch"},"change_message_id":"4712c740f5c191b0f9be02a8c1a1f31f07a8cc50","unresolved":false,"context_lines":[{"line_number":748,"context_line":"                if executable:"},{"line_number":749,"context_line":"                    number \u003d executable[\u0027number\u0027]"},{"line_number":750,"context_line":"                    str_num \u003d str(number)"},{"line_number":751,"context_line":"                    full_name \u003d executable[\u0027fullDisplayName\u0027]"},{"line_number":752,"context_line":"                    if full_name.endswith(\u0027#\u0027 + str_num):"},{"line_number":753,"context_line":"                        name \u003d full_name[:-(len(str_num) + 2)]"},{"line_number":754,"context_line":"                    else:"}],"source_content_type":"text/x-python","patch_set":3,"id":"ba15a1d1_cb05957a","line":751,"updated":"2015-09-15 18:28:17.000000000","message":"Wouldn\u0027t this be the job\u0027s display name, rather than its actual name?  I would be expecting the actual name, the name I would pass to, e.g., stop_build().","commit_id":"c704ab4c9f7fdfe5b766765d3811a5191e7634ab"},{"author":{"_account_id":679,"name":"Kevin L. Mitchell","email":"klmitch@mit.edu","username":"klmitch"},"change_message_id":"d2aa3a03bf0bd5437ac9620ec7f70570c13989af","unresolved":false,"context_lines":[{"line_number":748,"context_line":"                if executable:"},{"line_number":749,"context_line":"                    number \u003d executable[\u0027number\u0027]"},{"line_number":750,"context_line":"                    str_num \u003d str(number)"},{"line_number":751,"context_line":"                    full_name \u003d executable[\u0027fullDisplayName\u0027]"},{"line_number":752,"context_line":"                    if full_name.endswith(\u0027#\u0027 + str_num):"},{"line_number":753,"context_line":"                        name \u003d full_name[:-(len(str_num) + 2)]"},{"line_number":754,"context_line":"                    else:"}],"source_content_type":"text/x-python","patch_set":3,"id":"ba15a1d1_32435944","line":751,"in_reply_to":"ba15a1d1_975b372e","updated":"2015-09-15 21:46:17.000000000","message":"OK, I just did some testing, and I\u0027ve confirmed that fullDisplayName is exactly what I worried that it was: the display name of the job.  It looks like the only way to get the job name that I want is to parse the URL…","commit_id":"c704ab4c9f7fdfe5b766765d3811a5191e7634ab"},{"author":{"_account_id":4146,"name":"Clark Boylan","email":"cboylan@sapwetik.org","username":"cboylan"},"change_message_id":"b16adc1e1a4e93e2f6bb2eac62ed8120ae463a61","unresolved":false,"context_lines":[{"line_number":748,"context_line":"                if executable:"},{"line_number":749,"context_line":"                    number \u003d executable[\u0027number\u0027]"},{"line_number":750,"context_line":"                    str_num \u003d str(number)"},{"line_number":751,"context_line":"                    full_name \u003d executable[\u0027fullDisplayName\u0027]"},{"line_number":752,"context_line":"                    if full_name.endswith(\u0027#\u0027 + str_num):"},{"line_number":753,"context_line":"                        name \u003d full_name[:-(len(str_num) + 2)]"},{"line_number":754,"context_line":"                    else:"}],"source_content_type":"text/x-python","patch_set":3,"id":"ba15a1d1_975b372e","line":751,"in_reply_to":"ba15a1d1_bc998221","updated":"2015-09-15 21:24:01.000000000","message":"Again, the fullDisplayName in the test is verbatim from Jenkins... You get what appears to be the job name with #run_number appended. In this case fullDisplay name is \"test #1\". The only other alternative I see here is to parse the name out of the url value. I get that you want ot just get the name but it does not exist here.","commit_id":"c704ab4c9f7fdfe5b766765d3811a5191e7634ab"},{"author":{"_account_id":4146,"name":"Clark Boylan","email":"cboylan@sapwetik.org","username":"cboylan"},"change_message_id":"3e4d95a83ab086cdff913df38233cef2209d46d2","unresolved":false,"context_lines":[{"line_number":748,"context_line":"                if executable:"},{"line_number":749,"context_line":"                    number \u003d executable[\u0027number\u0027]"},{"line_number":750,"context_line":"                    str_num \u003d str(number)"},{"line_number":751,"context_line":"                    full_name \u003d executable[\u0027fullDisplayName\u0027]"},{"line_number":752,"context_line":"                    if full_name.endswith(\u0027#\u0027 + str_num):"},{"line_number":753,"context_line":"                        name \u003d full_name[:-(len(str_num) + 2)]"},{"line_number":754,"context_line":"                    else:"}],"source_content_type":"text/x-python","patch_set":3,"id":"ba15a1d1_d64e986e","line":751,"in_reply_to":"ba15a1d1_cb05957a","updated":"2015-09-15 18:41:48.000000000","message":"The data structure called \"build\" in https://review.openstack.org/#/c/223276/3/tests/test_build.py is verbatim what you get from Jenkins. There are two values with the job name in it. fullDisplayName and url. I chose to parse it out of fullDisplayName instead of url.\n\nIf you can find a better way to do this given what Jenkins tells you I would be glad to do it that way but this seems to be our only option (parse either of those two fields).","commit_id":"c704ab4c9f7fdfe5b766765d3811a5191e7634ab"},{"author":{"_account_id":679,"name":"Kevin L. Mitchell","email":"klmitch@mit.edu","username":"klmitch"},"change_message_id":"971baec628414c8d657a4415ae278165042584e3","unresolved":false,"context_lines":[{"line_number":748,"context_line":"                if executable:"},{"line_number":749,"context_line":"                    number \u003d executable[\u0027number\u0027]"},{"line_number":750,"context_line":"                    str_num \u003d str(number)"},{"line_number":751,"context_line":"                    full_name \u003d executable[\u0027fullDisplayName\u0027]"},{"line_number":752,"context_line":"                    if full_name.endswith(\u0027#\u0027 + str_num):"},{"line_number":753,"context_line":"                        name \u003d full_name[:-(len(str_num) + 2)]"},{"line_number":754,"context_line":"                    else:"}],"source_content_type":"text/x-python","patch_set":3,"id":"ba15a1d1_bc998221","line":751,"in_reply_to":"ba15a1d1_e6820b94","updated":"2015-09-15 21:19:50.000000000","message":"What\u0027s bothering me—and I\u0027ll confess I haven\u0027t looked at the Jenkins API docs on this point—but a job has both a \"name,\" that you use to query it through the API; and a \"display name,\" which you can populate with a human-friendly name for the UI.  I want to make sure that what\u0027s being returned is the former, rather than the latter, as I\u0027m expecting that passing a display name to something like stop_build() would give an error.  (For the record, my not having checked an example yet is why I didn\u0027t vote when making the above comment…)","commit_id":"c704ab4c9f7fdfe5b766765d3811a5191e7634ab"}],"tests/test_build.py":[{"author":{"_account_id":6987,"name":"Khai Do","email":"zaro0508@gmail.com","username":"zaro0508"},"change_message_id":"038ae2de2b8ddfd11d5ff7a67939bf62e23e23f5","unresolved":false,"context_lines":[{"line_number":134,"context_line":"    @patch.object(jenkins.Jenkins, \u0027get_nodes\u0027)"},{"line_number":135,"context_line":"    def test_with_builds(self, nodes_mock, node_info_mock):"},{"line_number":136,"context_line":"        nodes_to_return \u003d [{"},{"line_number":137,"context_line":"            \u0027name\u0027: \"master\", \u0027offline\u0027: False"},{"line_number":138,"context_line":"        }]"},{"line_number":139,"context_line":"        nodes_mock.return_value \u003d nodes_to_return"},{"line_number":140,"context_line":"        build \u003d {"}],"source_content_type":"text/x-python","patch_set":2,"id":"ba15a1d1_60529469","line":137,"updated":"2015-09-14 21:42:47.000000000","message":"how about specifying non master node for one of these tests?","commit_id":"9cd6cd845eeaff0ae49a94c6748ac34fc414e9f8"},{"author":{"_account_id":6987,"name":"Khai Do","email":"zaro0508@gmail.com","username":"zaro0508"},"change_message_id":"8f8cf53d6a0659cca6ada7682ed96b54fca1e1a3","unresolved":false,"context_lines":[{"line_number":134,"context_line":"    @patch.object(jenkins.Jenkins, \u0027get_nodes\u0027)"},{"line_number":135,"context_line":"    def test_with_builds(self, nodes_mock, node_info_mock):"},{"line_number":136,"context_line":"        nodes_to_return \u003d [{"},{"line_number":137,"context_line":"            \u0027name\u0027: \"master\", \u0027offline\u0027: False"},{"line_number":138,"context_line":"        }]"},{"line_number":139,"context_line":"        nodes_mock.return_value \u003d nodes_to_return"},{"line_number":140,"context_line":"        build \u003d {"}],"source_content_type":"text/x-python","patch_set":3,"id":"ba15a1d1_3910244e","line":137,"updated":"2015-09-15 20:44:10.000000000","message":"how about making one of these tests exercise the path with a non master node?","commit_id":"c704ab4c9f7fdfe5b766765d3811a5191e7634ab"},{"author":{"_account_id":4146,"name":"Clark Boylan","email":"cboylan@sapwetik.org","username":"cboylan"},"change_message_id":"b16adc1e1a4e93e2f6bb2eac62ed8120ae463a61","unresolved":false,"context_lines":[{"line_number":134,"context_line":"    @patch.object(jenkins.Jenkins, \u0027get_nodes\u0027)"},{"line_number":135,"context_line":"    def test_with_builds(self, nodes_mock, node_info_mock):"},{"line_number":136,"context_line":"        nodes_to_return \u003d [{"},{"line_number":137,"context_line":"            \u0027name\u0027: \"master\", \u0027offline\u0027: False"},{"line_number":138,"context_line":"        }]"},{"line_number":139,"context_line":"        nodes_mock.return_value \u003d nodes_to_return"},{"line_number":140,"context_line":"        build \u003d {"}],"source_content_type":"text/x-python","patch_set":3,"id":"ba15a1d1_d79f6fb2","line":137,"in_reply_to":"ba15a1d1_3910244e","updated":"2015-09-15 21:24:01.000000000","message":"It won\u0027t actually affect the coverage really other than to get the one line that doesn\u0027t special case master. I can add it.","commit_id":"c704ab4c9f7fdfe5b766765d3811a5191e7634ab"}]}
