)]}'
{"/PATCHSET_LEVEL":[{"author":{"_account_id":30491,"name":"Radosław Piliszek","display_name":"Radek","email":"radek@piliszek.it","username":"yoctozepto","status":"self-employed techologist, collaborating mostly with 7bulls.com"},"change_message_id":"8ab4b45db4f4ea9a116eaf109bcf8263cd235054","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":3,"id":"38094ea1_5dbadefc","updated":"2022-09-26 18:13:09.000000000","message":"Good direction but needs a little bit more work.","commit_id":"f06cb54ee88149678b2943801ae0e521502f88ba"},{"author":{"_account_id":35263,"name":"Matt Crees","email":"mattc@stackhpc.com","username":"mattcrees"},"change_message_id":"810c775c78bbde464c96988a6ab452f4e5f63e34","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":8,"id":"8e14f5c5_bcb91e13","updated":"2022-10-17 10:30:05.000000000","message":"recheck","commit_id":"e551189fc470cffcd0b8a0e9c0ca9d339fb0fd39"}],"blazar/plugins/oshosts/host_plugin.py":[{"author":{"_account_id":30491,"name":"Radosław Piliszek","display_name":"Radek","email":"radek@piliszek.it","username":"yoctozepto","status":"self-employed techologist, collaborating mostly with 7bulls.com"},"change_message_id":"ac651782570649631133e2cd7f6df1a3203047b4","unresolved":true,"context_lines":[{"line_number":599,"context_line":"                allocated_host_ids.append(host[\u0027id\u0027])"},{"line_number":600,"context_line":"        if len(not_allocated_host_ids) \u003e\u003d int(min_host):"},{"line_number":601,"context_line":"            if CONF[self.resource_type].randomize_host_selection:"},{"line_number":602,"context_line":"                Random(seed).shuffle(not_allocated_host_ids)"},{"line_number":603,"context_line":"            return not_allocated_host_ids[:int(max_host)]"},{"line_number":604,"context_line":"        all_host_ids \u003d allocated_host_ids + not_allocated_host_ids"},{"line_number":605,"context_line":"        if len(all_host_ids) \u003e\u003d int(min_host):"}],"source_content_type":"text/x-python","patch_set":6,"id":"1b9141ef_88be0ef3","line":602,"updated":"2022-10-11 11:44:20.000000000","message":"if we ever let user set the seed, we would need to build Random once and reuse it because otherwise we would be always forcing the same result; I gave seeding as an example of result stabilisation but for unit tests it makes more sense to mock shuffle instead as it\u0027s irrelevant to us how shuffle works - we just need to know it was called","commit_id":"f0536a553150cd793dbd5a048455f149f73e6322"},{"author":{"_account_id":35263,"name":"Matt Crees","email":"mattc@stackhpc.com","username":"mattcrees"},"change_message_id":"42b716b148d8e05c2c1a31c01a57b3d9bdb4fa97","unresolved":false,"context_lines":[{"line_number":599,"context_line":"                allocated_host_ids.append(host[\u0027id\u0027])"},{"line_number":600,"context_line":"        if len(not_allocated_host_ids) \u003e\u003d int(min_host):"},{"line_number":601,"context_line":"            if CONF[self.resource_type].randomize_host_selection:"},{"line_number":602,"context_line":"                Random(seed).shuffle(not_allocated_host_ids)"},{"line_number":603,"context_line":"            return not_allocated_host_ids[:int(max_host)]"},{"line_number":604,"context_line":"        all_host_ids \u003d allocated_host_ids + not_allocated_host_ids"},{"line_number":605,"context_line":"        if len(all_host_ids) \u003e\u003d int(min_host):"}],"source_content_type":"text/x-python","patch_set":6,"id":"5aa172e0_9003cdd1","line":602,"in_reply_to":"1b9141ef_88be0ef3","updated":"2022-11-23 11:07:34.000000000","message":"Done","commit_id":"f0536a553150cd793dbd5a048455f149f73e6322"},{"author":{"_account_id":30491,"name":"Radosław Piliszek","display_name":"Radek","email":"radek@piliszek.it","username":"yoctozepto","status":"self-employed techologist, collaborating mostly with 7bulls.com"},"change_message_id":"ac651782570649631133e2cd7f6df1a3203047b4","unresolved":true,"context_lines":[{"line_number":604,"context_line":"        all_host_ids \u003d allocated_host_ids + not_allocated_host_ids"},{"line_number":605,"context_line":"        if len(all_host_ids) \u003e\u003d int(min_host):"},{"line_number":606,"context_line":"            if CONF[self.resource_type].randomize_host_selection:"},{"line_number":607,"context_line":"                Random(seed).shuffle(all_host_ids)"},{"line_number":608,"context_line":"            return all_host_ids[:int(max_host)]"},{"line_number":609,"context_line":"        else:"},{"line_number":610,"context_line":"            return []"}],"source_content_type":"text/x-python","patch_set":6,"id":"64d92216_b8b08222","line":607,"updated":"2022-10-11 11:44:20.000000000","message":"ditto","commit_id":"f0536a553150cd793dbd5a048455f149f73e6322"},{"author":{"_account_id":35263,"name":"Matt Crees","email":"mattc@stackhpc.com","username":"mattcrees"},"change_message_id":"42b716b148d8e05c2c1a31c01a57b3d9bdb4fa97","unresolved":false,"context_lines":[{"line_number":604,"context_line":"        all_host_ids \u003d allocated_host_ids + not_allocated_host_ids"},{"line_number":605,"context_line":"        if len(all_host_ids) \u003e\u003d int(min_host):"},{"line_number":606,"context_line":"            if CONF[self.resource_type].randomize_host_selection:"},{"line_number":607,"context_line":"                Random(seed).shuffle(all_host_ids)"},{"line_number":608,"context_line":"            return all_host_ids[:int(max_host)]"},{"line_number":609,"context_line":"        else:"},{"line_number":610,"context_line":"            return []"}],"source_content_type":"text/x-python","patch_set":6,"id":"c1dd3f0e_b4753748","line":607,"in_reply_to":"64d92216_b8b08222","updated":"2022-11-23 11:07:34.000000000","message":"Done","commit_id":"f0536a553150cd793dbd5a048455f149f73e6322"},{"author":{"_account_id":15197,"name":"Pierre Riteau","email":"pierre@stackhpc.com","username":"priteau","status":"StackHPC"},"change_message_id":"78d341b10c9d7331381e9535004a809fd3afb139","unresolved":true,"context_lines":[{"line_number":67,"context_line":"                    \u0027reservations in the future is healed at one time.\u0027),"},{"line_number":68,"context_line":"    cfg.BoolOpt(\u0027randomize_host_selection\u0027,"},{"line_number":69,"context_line":"                default\u003dFalse,"},{"line_number":70,"context_line":"                help\u003d\u0027If it is enabled, a random host is selected when\u0027"},{"line_number":71,"context_line":"                     \u0027creating a lease.\u0027),"},{"line_number":72,"context_line":"]"},{"line_number":73,"context_line":""}],"source_content_type":"text/x-python","patch_set":8,"id":"df335124_7ee864c3","line":70,"range":{"start_line":70,"start_character":70,"end_line":70,"end_character":71},"updated":"2022-10-17 12:19:45.000000000","message":"missing space in string","commit_id":"e551189fc470cffcd0b8a0e9c0ca9d339fb0fd39"},{"author":{"_account_id":35263,"name":"Matt Crees","email":"mattc@stackhpc.com","username":"mattcrees"},"change_message_id":"42b716b148d8e05c2c1a31c01a57b3d9bdb4fa97","unresolved":false,"context_lines":[{"line_number":67,"context_line":"                    \u0027reservations in the future is healed at one time.\u0027),"},{"line_number":68,"context_line":"    cfg.BoolOpt(\u0027randomize_host_selection\u0027,"},{"line_number":69,"context_line":"                default\u003dFalse,"},{"line_number":70,"context_line":"                help\u003d\u0027If it is enabled, a random host is selected when\u0027"},{"line_number":71,"context_line":"                     \u0027creating a lease.\u0027),"},{"line_number":72,"context_line":"]"},{"line_number":73,"context_line":""}],"source_content_type":"text/x-python","patch_set":8,"id":"ba2a74f2_6b015bad","line":70,"range":{"start_line":70,"start_character":70,"end_line":70,"end_character":71},"in_reply_to":"df335124_7ee864c3","updated":"2022-11-23 11:07:34.000000000","message":"Done","commit_id":"e551189fc470cffcd0b8a0e9c0ca9d339fb0fd39"}],"blazar/tests/plugins/oshosts/test_physical_host_plugin.py":[{"author":{"_account_id":30491,"name":"Radosław Piliszek","display_name":"Radek","email":"radek@piliszek.it","username":"yoctozepto","status":"self-employed techologist, collaborating mostly with 7bulls.com"},"change_message_id":"8ab4b45db4f4ea9a116eaf109bcf8263cd235054","unresolved":true,"context_lines":[{"line_number":2272,"context_line":"            \u0027[]\u0027, \u0027[]\u0027, \u00271-3\u0027,"},{"line_number":2273,"context_line":"            datetime.datetime(2013, 12, 19, 20, 00),"},{"line_number":2274,"context_line":"            datetime.datetime(2013, 12, 19, 21, 00))"},{"line_number":2275,"context_line":"        self.assertEqual(set([\u0027host2\u0027, \u0027host3\u0027]), set(result))"},{"line_number":2276,"context_line":""},{"line_number":2277,"context_line":"    def test_matching_hosts_allocated_hosts(self):"},{"line_number":2278,"context_line":"        def host_allocation_get_all_by_values(**kwargs):"}],"source_content_type":"text/x-python","patch_set":3,"id":"52927de3_f187fbd6","line":2275,"updated":"2022-09-26 18:13:09.000000000","message":"existing tests should not be modified as the function should work as before when the param is not set; please provide new tests (e.g. with seeding) that check that the randomisation happens only when asked for","commit_id":"f06cb54ee88149678b2943801ae0e521502f88ba"},{"author":{"_account_id":35263,"name":"Matt Crees","email":"mattc@stackhpc.com","username":"mattcrees"},"change_message_id":"92e8205456207bf67c3e9306e2d4447a4508285c","unresolved":false,"context_lines":[{"line_number":2272,"context_line":"            \u0027[]\u0027, \u0027[]\u0027, \u00271-3\u0027,"},{"line_number":2273,"context_line":"            datetime.datetime(2013, 12, 19, 20, 00),"},{"line_number":2274,"context_line":"            datetime.datetime(2013, 12, 19, 21, 00))"},{"line_number":2275,"context_line":"        self.assertEqual(set([\u0027host2\u0027, \u0027host3\u0027]), set(result))"},{"line_number":2276,"context_line":""},{"line_number":2277,"context_line":"    def test_matching_hosts_allocated_hosts(self):"},{"line_number":2278,"context_line":"        def host_allocation_get_all_by_values(**kwargs):"}],"source_content_type":"text/x-python","patch_set":3,"id":"d49dbb50_df883cee","line":2275,"in_reply_to":"52927de3_f187fbd6","updated":"2022-09-30 15:41:17.000000000","message":"Done","commit_id":"f06cb54ee88149678b2943801ae0e521502f88ba"},{"author":{"_account_id":30491,"name":"Radosław Piliszek","display_name":"Radek","email":"radek@piliszek.it","username":"yoctozepto","status":"self-employed techologist, collaborating mostly with 7bulls.com"},"change_message_id":"ac651782570649631133e2cd7f6df1a3203047b4","unresolved":true,"context_lines":[{"line_number":2247,"context_line":""},{"line_number":2248,"context_line":"    def test_matching_hosts_not_allocated_hosts(self):"},{"line_number":2249,"context_line":"        self.cfg.CONF.set_override(\u0027randomize_host_selection\u0027, False,"},{"line_number":2250,"context_line":"                                   plugin.RESOURCE_TYPE)"},{"line_number":2251,"context_line":""},{"line_number":2252,"context_line":"        def host_allocation_get_all_by_values(**kwargs):"},{"line_number":2253,"context_line":"            if kwargs[\u0027compute_host_id\u0027] \u003d\u003d \u0027host1\u0027:"}],"source_content_type":"text/x-python","patch_set":6,"id":"20e2f064_c58d3001","line":2250,"updated":"2022-10-11 11:44:20.000000000","message":"is it really required here now? it is the default after all... (ditto all over the file)","commit_id":"f0536a553150cd793dbd5a048455f149f73e6322"},{"author":{"_account_id":35263,"name":"Matt Crees","email":"mattc@stackhpc.com","username":"mattcrees"},"change_message_id":"42b716b148d8e05c2c1a31c01a57b3d9bdb4fa97","unresolved":false,"context_lines":[{"line_number":2247,"context_line":""},{"line_number":2248,"context_line":"    def test_matching_hosts_not_allocated_hosts(self):"},{"line_number":2249,"context_line":"        self.cfg.CONF.set_override(\u0027randomize_host_selection\u0027, False,"},{"line_number":2250,"context_line":"                                   plugin.RESOURCE_TYPE)"},{"line_number":2251,"context_line":""},{"line_number":2252,"context_line":"        def host_allocation_get_all_by_values(**kwargs):"},{"line_number":2253,"context_line":"            if kwargs[\u0027compute_host_id\u0027] \u003d\u003d \u0027host1\u0027:"}],"source_content_type":"text/x-python","patch_set":6,"id":"094abfbf_f6c3b85e","line":2250,"in_reply_to":"20e2f064_c58d3001","updated":"2022-11-23 11:07:34.000000000","message":"Done","commit_id":"f0536a553150cd793dbd5a048455f149f73e6322"},{"author":{"_account_id":15197,"name":"Pierre Riteau","email":"pierre@stackhpc.com","username":"priteau","status":"StackHPC"},"change_message_id":"78d341b10c9d7331381e9535004a809fd3afb139","unresolved":true,"context_lines":[{"line_number":2247,"context_line":"        self.assertEqual(False, result)"},{"line_number":2248,"context_line":""},{"line_number":2249,"context_line":"    def test_matching_hosts_not_allocated_hosts(self):"},{"line_number":2250,"context_line":""},{"line_number":2251,"context_line":"        def host_allocation_get_all_by_values(**kwargs):"},{"line_number":2252,"context_line":"            if kwargs[\u0027compute_host_id\u0027] \u003d\u003d \u0027host1\u0027:"},{"line_number":2253,"context_line":"                return True"}],"source_content_type":"text/x-python","patch_set":8,"id":"db36c548_3dadda56","line":2250,"updated":"2022-10-17 12:19:45.000000000","message":"Remove added new line","commit_id":"e551189fc470cffcd0b8a0e9c0ca9d339fb0fd39"},{"author":{"_account_id":35263,"name":"Matt Crees","email":"mattc@stackhpc.com","username":"mattcrees"},"change_message_id":"42b716b148d8e05c2c1a31c01a57b3d9bdb4fa97","unresolved":false,"context_lines":[{"line_number":2247,"context_line":"        self.assertEqual(False, result)"},{"line_number":2248,"context_line":""},{"line_number":2249,"context_line":"    def test_matching_hosts_not_allocated_hosts(self):"},{"line_number":2250,"context_line":""},{"line_number":2251,"context_line":"        def host_allocation_get_all_by_values(**kwargs):"},{"line_number":2252,"context_line":"            if kwargs[\u0027compute_host_id\u0027] \u003d\u003d \u0027host1\u0027:"},{"line_number":2253,"context_line":"                return True"}],"source_content_type":"text/x-python","patch_set":8,"id":"95f3a728_a2bd0a50","line":2250,"in_reply_to":"db36c548_3dadda56","updated":"2022-11-23 11:07:34.000000000","message":"Done","commit_id":"e551189fc470cffcd0b8a0e9c0ca9d339fb0fd39"},{"author":{"_account_id":15197,"name":"Pierre Riteau","email":"pierre@stackhpc.com","username":"priteau","status":"StackHPC"},"change_message_id":"78d341b10c9d7331381e9535004a809fd3afb139","unresolved":true,"context_lines":[{"line_number":2340,"context_line":"    @mock.patch.object(random.Random, \"shuffle\")"},{"line_number":2341,"context_line":"    def test_random_matching_hosts_not_allocated_hosts(self, mock_shuffle):"},{"line_number":2342,"context_line":"        self.cfg.CONF.set_override(\u0027randomize_host_selection\u0027, True,"},{"line_number":2343,"context_line":"                                   plugin.RESOURCE_TYPE)"},{"line_number":2344,"context_line":""},{"line_number":2345,"context_line":"        def host_allocation_get_all_by_values(**kwargs):"},{"line_number":2346,"context_line":"            if kwargs[\u0027compute_host_id\u0027] \u003d\u003d \u0027host1\u0027:"}],"source_content_type":"text/x-python","patch_set":8,"id":"4b531b98_7f355f3c","line":2343,"range":{"start_line":2343,"start_character":35,"end_line":2343,"end_character":55},"updated":"2022-10-17 12:19:45.000000000","message":"group\u003d\u0027physical:host\u0027","commit_id":"e551189fc470cffcd0b8a0e9c0ca9d339fb0fd39"},{"author":{"_account_id":35263,"name":"Matt Crees","email":"mattc@stackhpc.com","username":"mattcrees"},"change_message_id":"42b716b148d8e05c2c1a31c01a57b3d9bdb4fa97","unresolved":false,"context_lines":[{"line_number":2340,"context_line":"    @mock.patch.object(random.Random, \"shuffle\")"},{"line_number":2341,"context_line":"    def test_random_matching_hosts_not_allocated_hosts(self, mock_shuffle):"},{"line_number":2342,"context_line":"        self.cfg.CONF.set_override(\u0027randomize_host_selection\u0027, True,"},{"line_number":2343,"context_line":"                                   plugin.RESOURCE_TYPE)"},{"line_number":2344,"context_line":""},{"line_number":2345,"context_line":"        def host_allocation_get_all_by_values(**kwargs):"},{"line_number":2346,"context_line":"            if kwargs[\u0027compute_host_id\u0027] \u003d\u003d \u0027host1\u0027:"}],"source_content_type":"text/x-python","patch_set":8,"id":"dda7dc26_36164cde","line":2343,"range":{"start_line":2343,"start_character":35,"end_line":2343,"end_character":55},"in_reply_to":"4b531b98_7f355f3c","updated":"2022-11-23 11:07:34.000000000","message":"Done","commit_id":"e551189fc470cffcd0b8a0e9c0ca9d339fb0fd39"},{"author":{"_account_id":15197,"name":"Pierre Riteau","email":"pierre@stackhpc.com","username":"priteau","status":"StackHPC"},"change_message_id":"78d341b10c9d7331381e9535004a809fd3afb139","unresolved":true,"context_lines":[{"line_number":2342,"context_line":"        self.cfg.CONF.set_override(\u0027randomize_host_selection\u0027, True,"},{"line_number":2343,"context_line":"                                   plugin.RESOURCE_TYPE)"},{"line_number":2344,"context_line":""},{"line_number":2345,"context_line":"        def host_allocation_get_all_by_values(**kwargs):"},{"line_number":2346,"context_line":"            if kwargs[\u0027compute_host_id\u0027] \u003d\u003d \u0027host1\u0027:"},{"line_number":2347,"context_line":"                return True"},{"line_number":2348,"context_line":"        host_get \u003d self.patch("},{"line_number":2349,"context_line":"            self.db_api,"},{"line_number":2350,"context_line":"            \u0027reservable_host_get_all_by_queries\u0027)"}],"source_content_type":"text/x-python","patch_set":8,"id":"7968d97a_91465fd1","line":2347,"range":{"start_line":2345,"start_character":0,"end_line":2347,"end_character":27},"updated":"2022-10-17 12:19:45.000000000","message":"Move inner function at the beginning of the outer function","commit_id":"e551189fc470cffcd0b8a0e9c0ca9d339fb0fd39"},{"author":{"_account_id":35263,"name":"Matt Crees","email":"mattc@stackhpc.com","username":"mattcrees"},"change_message_id":"42b716b148d8e05c2c1a31c01a57b3d9bdb4fa97","unresolved":false,"context_lines":[{"line_number":2342,"context_line":"        self.cfg.CONF.set_override(\u0027randomize_host_selection\u0027, True,"},{"line_number":2343,"context_line":"                                   plugin.RESOURCE_TYPE)"},{"line_number":2344,"context_line":""},{"line_number":2345,"context_line":"        def host_allocation_get_all_by_values(**kwargs):"},{"line_number":2346,"context_line":"            if kwargs[\u0027compute_host_id\u0027] \u003d\u003d \u0027host1\u0027:"},{"line_number":2347,"context_line":"                return True"},{"line_number":2348,"context_line":"        host_get \u003d self.patch("},{"line_number":2349,"context_line":"            self.db_api,"},{"line_number":2350,"context_line":"            \u0027reservable_host_get_all_by_queries\u0027)"}],"source_content_type":"text/x-python","patch_set":8,"id":"6ac935cc_c91c35c2","line":2347,"range":{"start_line":2345,"start_character":0,"end_line":2347,"end_character":27},"in_reply_to":"7968d97a_91465fd1","updated":"2022-11-23 11:07:34.000000000","message":"Done","commit_id":"e551189fc470cffcd0b8a0e9c0ca9d339fb0fd39"},{"author":{"_account_id":15197,"name":"Pierre Riteau","email":"pierre@stackhpc.com","username":"priteau","status":"StackHPC"},"change_message_id":"78d341b10c9d7331381e9535004a809fd3afb139","unresolved":true,"context_lines":[{"line_number":2373,"context_line":"    @mock.patch.object(random.Random, \"shuffle\")"},{"line_number":2374,"context_line":"    def test_random_matching_hosts_allocated_hosts(self, mock_shuffle):"},{"line_number":2375,"context_line":"        self.cfg.CONF.set_override(\u0027randomize_host_selection\u0027, True,"},{"line_number":2376,"context_line":"                                   plugin.RESOURCE_TYPE)"},{"line_number":2377,"context_line":""},{"line_number":2378,"context_line":"        def host_allocation_get_all_by_values(**kwargs):"},{"line_number":2379,"context_line":"            if kwargs[\u0027compute_host_id\u0027] \u003d\u003d \u0027host1\u0027:"}],"source_content_type":"text/x-python","patch_set":8,"id":"1705bde5_c8582efc","line":2376,"range":{"start_line":2376,"start_character":35,"end_line":2376,"end_character":55},"updated":"2022-10-17 12:19:45.000000000","message":"group\u003d\u0027physical:host\u0027","commit_id":"e551189fc470cffcd0b8a0e9c0ca9d339fb0fd39"},{"author":{"_account_id":35263,"name":"Matt Crees","email":"mattc@stackhpc.com","username":"mattcrees"},"change_message_id":"42b716b148d8e05c2c1a31c01a57b3d9bdb4fa97","unresolved":false,"context_lines":[{"line_number":2373,"context_line":"    @mock.patch.object(random.Random, \"shuffle\")"},{"line_number":2374,"context_line":"    def test_random_matching_hosts_allocated_hosts(self, mock_shuffle):"},{"line_number":2375,"context_line":"        self.cfg.CONF.set_override(\u0027randomize_host_selection\u0027, True,"},{"line_number":2376,"context_line":"                                   plugin.RESOURCE_TYPE)"},{"line_number":2377,"context_line":""},{"line_number":2378,"context_line":"        def host_allocation_get_all_by_values(**kwargs):"},{"line_number":2379,"context_line":"            if kwargs[\u0027compute_host_id\u0027] \u003d\u003d \u0027host1\u0027:"}],"source_content_type":"text/x-python","patch_set":8,"id":"f6cfd9bb_0b7afc74","line":2376,"range":{"start_line":2376,"start_character":35,"end_line":2376,"end_character":55},"in_reply_to":"1705bde5_c8582efc","updated":"2022-11-23 11:07:34.000000000","message":"Done","commit_id":"e551189fc470cffcd0b8a0e9c0ca9d339fb0fd39"},{"author":{"_account_id":15197,"name":"Pierre Riteau","email":"pierre@stackhpc.com","username":"priteau","status":"StackHPC"},"change_message_id":"78d341b10c9d7331381e9535004a809fd3afb139","unresolved":true,"context_lines":[{"line_number":2406,"context_line":"    @mock.patch.object(random.Random, \"shuffle\")"},{"line_number":2407,"context_line":"    def test_random_matching_hosts_allocated_cleaning_time(self, mock_shuffle):"},{"line_number":2408,"context_line":"        self.cfg.CONF.set_override(\u0027randomize_host_selection\u0027, True,"},{"line_number":2409,"context_line":"                                   plugin.RESOURCE_TYPE)"},{"line_number":2410,"context_line":""},{"line_number":2411,"context_line":"        def host_allocation_get_all_by_values(**kwargs):"},{"line_number":2412,"context_line":"            if kwargs[\u0027compute_host_id\u0027] \u003d\u003d \u0027host1\u0027:"}],"source_content_type":"text/x-python","patch_set":8,"id":"5cf67c40_9abdb688","line":2409,"range":{"start_line":2409,"start_character":35,"end_line":2409,"end_character":55},"updated":"2022-10-17 12:19:45.000000000","message":"group\u003d\u0027physical:host\u0027","commit_id":"e551189fc470cffcd0b8a0e9c0ca9d339fb0fd39"},{"author":{"_account_id":35263,"name":"Matt Crees","email":"mattc@stackhpc.com","username":"mattcrees"},"change_message_id":"42b716b148d8e05c2c1a31c01a57b3d9bdb4fa97","unresolved":false,"context_lines":[{"line_number":2406,"context_line":"    @mock.patch.object(random.Random, \"shuffle\")"},{"line_number":2407,"context_line":"    def test_random_matching_hosts_allocated_cleaning_time(self, mock_shuffle):"},{"line_number":2408,"context_line":"        self.cfg.CONF.set_override(\u0027randomize_host_selection\u0027, True,"},{"line_number":2409,"context_line":"                                   plugin.RESOURCE_TYPE)"},{"line_number":2410,"context_line":""},{"line_number":2411,"context_line":"        def host_allocation_get_all_by_values(**kwargs):"},{"line_number":2412,"context_line":"            if kwargs[\u0027compute_host_id\u0027] \u003d\u003d \u0027host1\u0027:"}],"source_content_type":"text/x-python","patch_set":8,"id":"4a196f4a_8804128f","line":2409,"range":{"start_line":2409,"start_character":35,"end_line":2409,"end_character":55},"in_reply_to":"5cf67c40_9abdb688","updated":"2022-11-23 11:07:34.000000000","message":"Done","commit_id":"e551189fc470cffcd0b8a0e9c0ca9d339fb0fd39"}],"releasenotes/notes/option-for-randomising-host-selection-101e95baab67dd88.yaml":[{"author":{"_account_id":30491,"name":"Radosław Piliszek","display_name":"Radek","email":"radek@piliszek.it","username":"yoctozepto","status":"self-employed techologist, collaborating mostly with 7bulls.com"},"change_message_id":"8ab4b45db4f4ea9a116eaf109bcf8263cd235054","unresolved":true,"context_lines":[{"line_number":2,"context_line":"features:"},{"line_number":3,"context_line":"  - |"},{"line_number":4,"context_line":"    Optional randomness added to physical host selection when creating a lease."},{"line_number":5,"context_line":"    Can be switched on/off with the config option \u0027randomize_host_selection\u0027."},{"line_number":6,"context_line":""}],"source_content_type":"text/x-yaml","patch_set":3,"id":"4023e3be_1ef1a059","line":5,"range":{"start_line":5,"start_character":51,"end_line":5,"end_character":75},"updated":"2022-09-26 18:13:09.000000000","message":"nit\" putting this between `` and `` makes the code render better","commit_id":"f06cb54ee88149678b2943801ae0e521502f88ba"},{"author":{"_account_id":35263,"name":"Matt Crees","email":"mattc@stackhpc.com","username":"mattcrees"},"change_message_id":"92e8205456207bf67c3e9306e2d4447a4508285c","unresolved":false,"context_lines":[{"line_number":2,"context_line":"features:"},{"line_number":3,"context_line":"  - |"},{"line_number":4,"context_line":"    Optional randomness added to physical host selection when creating a lease."},{"line_number":5,"context_line":"    Can be switched on/off with the config option \u0027randomize_host_selection\u0027."},{"line_number":6,"context_line":""}],"source_content_type":"text/x-yaml","patch_set":3,"id":"720f110e_fdcf5238","line":5,"range":{"start_line":5,"start_character":51,"end_line":5,"end_character":75},"in_reply_to":"4023e3be_1ef1a059","updated":"2022-09-30 15:41:17.000000000","message":"Done","commit_id":"f06cb54ee88149678b2943801ae0e521502f88ba"},{"author":{"_account_id":30491,"name":"Radosław Piliszek","display_name":"Radek","email":"radek@piliszek.it","username":"yoctozepto","status":"self-employed techologist, collaborating mostly with 7bulls.com"},"change_message_id":"8ab4b45db4f4ea9a116eaf109bcf8263cd235054","unresolved":true,"context_lines":[{"line_number":3,"context_line":"  - |"},{"line_number":4,"context_line":"    Optional randomness added to physical host selection when creating a lease."},{"line_number":5,"context_line":"    Can be switched on/off with the config option \u0027randomize_host_selection\u0027."},{"line_number":6,"context_line":""}],"source_content_type":"text/x-yaml","patch_set":3,"id":"b177d7e8_33fdce7d","line":6,"updated":"2022-09-26 18:13:09.000000000","message":"nit: extra empty line","commit_id":"f06cb54ee88149678b2943801ae0e521502f88ba"},{"author":{"_account_id":35263,"name":"Matt Crees","email":"mattc@stackhpc.com","username":"mattcrees"},"change_message_id":"92e8205456207bf67c3e9306e2d4447a4508285c","unresolved":false,"context_lines":[{"line_number":3,"context_line":"  - |"},{"line_number":4,"context_line":"    Optional randomness added to physical host selection when creating a lease."},{"line_number":5,"context_line":"    Can be switched on/off with the config option \u0027randomize_host_selection\u0027."},{"line_number":6,"context_line":""}],"source_content_type":"text/x-yaml","patch_set":3,"id":"6213a366_1c684424","line":6,"in_reply_to":"b177d7e8_33fdce7d","updated":"2022-09-30 15:41:17.000000000","message":"Done","commit_id":"f06cb54ee88149678b2943801ae0e521502f88ba"},{"author":{"_account_id":15197,"name":"Pierre Riteau","email":"pierre@stackhpc.com","username":"priteau","status":"StackHPC"},"change_message_id":"78d341b10c9d7331381e9535004a809fd3afb139","unresolved":true,"context_lines":[{"line_number":2,"context_line":"features:"},{"line_number":3,"context_line":"  - |"},{"line_number":4,"context_line":"    Optional randomness added to physical host selection when creating a lease."},{"line_number":5,"context_line":"    Can be switched on/off with the config option ``randomize_host_selection``."}],"source_content_type":"text/x-yaml","patch_set":8,"id":"caefad69_c3b32687","line":5,"range":{"start_line":5,"start_character":52,"end_line":5,"end_character":76},"updated":"2022-10-17 12:19:45.000000000","message":"[physical:host]/randomize_host_selection","commit_id":"e551189fc470cffcd0b8a0e9c0ca9d339fb0fd39"},{"author":{"_account_id":35263,"name":"Matt Crees","email":"mattc@stackhpc.com","username":"mattcrees"},"change_message_id":"42b716b148d8e05c2c1a31c01a57b3d9bdb4fa97","unresolved":false,"context_lines":[{"line_number":2,"context_line":"features:"},{"line_number":3,"context_line":"  - |"},{"line_number":4,"context_line":"    Optional randomness added to physical host selection when creating a lease."},{"line_number":5,"context_line":"    Can be switched on/off with the config option ``randomize_host_selection``."}],"source_content_type":"text/x-yaml","patch_set":8,"id":"147703b3_64ccddd1","line":5,"range":{"start_line":5,"start_character":52,"end_line":5,"end_character":76},"in_reply_to":"caefad69_c3b32687","updated":"2022-11-23 11:07:34.000000000","message":"Done","commit_id":"e551189fc470cffcd0b8a0e9c0ca9d339fb0fd39"}]}
