)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":4690,"name":"melanie witt","display_name":"melwitt","email":"melwittt@gmail.com","username":"melwitt"},"change_message_id":"ddaa069991a3c9ca236561b20d330688932a63d8","unresolved":true,"context_lines":[{"line_number":9,"context_line":"During graceful shutdown, below is the order of call:"},{"line_number":10,"context_line":""},{"line_number":11,"context_line":"- rpcserver.stop(): RPC server is stopped so no new message can be"},{"line_number":12,"context_line":"  consumed by the RPC listener. Means no new messgae will be picked up"},{"line_number":13,"context_line":"  from rabittmq queue."},{"line_number":14,"context_line":""},{"line_number":15,"context_line":"- manager.graceful_shtdown: manager shutdown starts and wait for the"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":7,"id":"95098029_bd7002af","line":12,"range":{"start_line":12,"start_character":45,"end_line":12,"end_character":52},"updated":"2026-12-02 23:21:10.000000000","message":"message","commit_id":"7d2f341e10edb48d7415b0f76db3fab8c62adb56"},{"author":{"_account_id":4690,"name":"melanie witt","display_name":"melwitt","email":"melwittt@gmail.com","username":"melwitt"},"change_message_id":"ddaa069991a3c9ca236561b20d330688932a63d8","unresolved":true,"context_lines":[{"line_number":10,"context_line":""},{"line_number":11,"context_line":"- rpcserver.stop(): RPC server is stopped so no new message can be"},{"line_number":12,"context_line":"  consumed by the RPC listener. Means no new messgae will be picked up"},{"line_number":13,"context_line":"  from rabittmq queue."},{"line_number":14,"context_line":""},{"line_number":15,"context_line":"- manager.graceful_shtdown: manager shutdown starts and wait for the"},{"line_number":16,"context_line":"  in-progress tasks to complete. Once all in-progress tasks are finsihed,"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":7,"id":"cec8aa17_eaed81bc","line":13,"range":{"start_line":13,"start_character":7,"end_line":13,"end_character":15},"updated":"2026-12-02 23:21:10.000000000","message":"rabbitmq","commit_id":"7d2f341e10edb48d7415b0f76db3fab8c62adb56"},{"author":{"_account_id":4690,"name":"melanie witt","display_name":"melwitt","email":"melwittt@gmail.com","username":"melwitt"},"change_message_id":"ddaa069991a3c9ca236561b20d330688932a63d8","unresolved":true,"context_lines":[{"line_number":13,"context_line":"  from rabittmq queue."},{"line_number":14,"context_line":""},{"line_number":15,"context_line":"- manager.graceful_shtdown: manager shutdown starts and wait for the"},{"line_number":16,"context_line":"  in-progress tasks to complete. Once all in-progress tasks are finsihed,"},{"line_number":17,"context_line":"  manager finish its shutdown and also shutdown all the executors manager"},{"line_number":18,"context_line":"  has created."},{"line_number":19,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":7,"id":"80e0a712_8c49412d","line":16,"range":{"start_line":16,"start_character":64,"end_line":16,"end_character":72},"updated":"2026-12-02 23:21:10.000000000","message":"finished","commit_id":"7d2f341e10edb48d7415b0f76db3fab8c62adb56"},{"author":{"_account_id":4690,"name":"melanie witt","display_name":"melwitt","email":"melwittt@gmail.com","username":"melwitt"},"change_message_id":"ddaa069991a3c9ca236561b20d330688932a63d8","unresolved":true,"context_lines":[{"line_number":17,"context_line":"  manager finish its shutdown and also shutdown all the executors manager"},{"line_number":18,"context_line":"  has created."},{"line_number":19,"context_line":""},{"line_number":20,"context_line":"- rpcserver.wait(): This despath the already consumed message to service"},{"line_number":21,"context_line":"  manager. If RPC thread executor is slow then it can take time to dispatch"},{"line_number":22,"context_line":"  the message to service manager. If that delay is long then message can"},{"line_number":23,"context_line":"  arrive to manager after manager shutdown is finished (executors are also"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":7,"id":"6a0851dd_0035580d","line":20,"range":{"start_line":20,"start_character":25,"end_line":20,"end_character":32},"updated":"2026-12-02 23:21:10.000000000","message":"dispatches?","commit_id":"7d2f341e10edb48d7415b0f76db3fab8c62adb56"}],"/PATCHSET_LEVEL":[{"author":{"_account_id":4393,"name":"Dan Smith","email":"dms@danplanet.com","username":"danms"},"change_message_id":"1e063abdad55ae929df67c97ab02108025382efd","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":5,"id":"7c002e76_e00913c7","updated":"2026-11-13 21:01:13.000000000","message":"I might be missing something but I\u0027m not sure all the assertions assert what they claim to assert...","commit_id":"6a9f7a32068016eccb0e791fe4e8109b22013a21"}],"nova/tests/functional/regressions/test_bug_2169804.py":[{"author":{"_account_id":4393,"name":"Dan Smith","email":"dms@danplanet.com","username":"danms"},"change_message_id":"1e063abdad55ae929df67c97ab02108025382efd","unresolved":true,"context_lines":[{"line_number":92,"context_line":"        # no in-progress task and graceful_shutdown() does not wait for it and"},{"line_number":93,"context_line":"        # shuts down the executors."},{"line_number":94,"context_line":"        self.assertTrue("},{"line_number":95,"context_line":"            executors_shutdown.wait(timeout\u003d30),"},{"line_number":96,"context_line":"            \u0027Timed out waiting for the executors to be shutdown\u0027)"},{"line_number":97,"context_line":"        self.assertEqual("},{"line_number":98,"context_line":"            {}, self.scheduler_service.manager._in_progress_tasks)"}],"source_content_type":"text/x-python","patch_set":5,"id":"4d831db3_f361d2c3","line":95,"updated":"2026-11-13 21:01:13.000000000","message":"This doesn\u0027t assert that we didn\u0027t wait, does it?","commit_id":"6a9f7a32068016eccb0e791fe4e8109b22013a21"},{"author":{"_account_id":8556,"name":"Ghanshyam Maan","display_name":"Ghanshyam Maan","email":"gmaan.os14@gmail.com","username":"ghanshyam"},"change_message_id":"7363337d0639fc08caa58ca8490d637d81f6de6a","unresolved":false,"context_lines":[{"line_number":92,"context_line":"        # no in-progress task and graceful_shutdown() does not wait for it and"},{"line_number":93,"context_line":"        # shuts down the executors."},{"line_number":94,"context_line":"        self.assertTrue("},{"line_number":95,"context_line":"            executors_shutdown.wait(timeout\u003d30),"},{"line_number":96,"context_line":"            \u0027Timed out waiting for the executors to be shutdown\u0027)"},{"line_number":97,"context_line":"        self.assertEqual("},{"line_number":98,"context_line":"            {}, self.scheduler_service.manager._in_progress_tasks)"}],"source_content_type":"text/x-python","patch_set":5,"id":"1aa926e3_9cf4d87c","line":95,"in_reply_to":"10775de1_2fe60417","updated":"2026-11-14 00:57:41.000000000","message":"Done","commit_id":"6a9f7a32068016eccb0e791fe4e8109b22013a21"},{"author":{"_account_id":8556,"name":"Ghanshyam Maan","display_name":"Ghanshyam Maan","email":"gmaan.os14@gmail.com","username":"ghanshyam"},"change_message_id":"69e84553a47739143e804b341e48aec5518fa0cc","unresolved":true,"context_lines":[{"line_number":92,"context_line":"        # no in-progress task and graceful_shutdown() does not wait for it and"},{"line_number":93,"context_line":"        # shuts down the executors."},{"line_number":94,"context_line":"        self.assertTrue("},{"line_number":95,"context_line":"            executors_shutdown.wait(timeout\u003d30),"},{"line_number":96,"context_line":"            \u0027Timed out waiting for the executors to be shutdown\u0027)"},{"line_number":97,"context_line":"        self.assertEqual("},{"line_number":98,"context_line":"            {}, self.scheduler_service.manager._in_progress_tasks)"}],"source_content_type":"text/x-python","patch_set":5,"id":"10775de1_2fe60417","line":95,"in_reply_to":"4d831db3_f361d2c3","updated":"2026-11-14 00:39:39.000000000","message":"It checked the call to shutdown_all_executors, which the manager calls after waiting for in-progress tasks. I thought calling shutdown_all_executors was enough to know we didn\u0027t wait, but it waits for 30 sec, so it is guaranteed that there was no in-progress tasks. I should also assert the in-progress task count.","commit_id":"6a9f7a32068016eccb0e791fe4e8109b22013a21"},{"author":{"_account_id":4393,"name":"Dan Smith","email":"dms@danplanet.com","username":"danms"},"change_message_id":"1e063abdad55ae929df67c97ab02108025382efd","unresolved":true,"context_lines":[{"line_number":95,"context_line":"            executors_shutdown.wait(timeout\u003d30),"},{"line_number":96,"context_line":"            \u0027Timed out waiting for the executors to be shutdown\u0027)"},{"line_number":97,"context_line":"        self.assertEqual("},{"line_number":98,"context_line":"            {}, self.scheduler_service.manager._in_progress_tasks)"},{"line_number":99,"context_line":""},{"line_number":100,"context_line":"        # After manager graceful_shutdown is completed, rpcserver.wait() now"},{"line_number":101,"context_line":"        # dispatches the consumed message to the manager."}],"source_content_type":"text/x-python","patch_set":5,"id":"b6025bc3_17d80ecc","line":98,"updated":"2026-11-13 21:01:13.000000000","message":"And shouldn\u0027t we do this assert above the wait so that we don\u0027t allow for the case where we did wait and something finished underneath us?","commit_id":"6a9f7a32068016eccb0e791fe4e8109b22013a21"},{"author":{"_account_id":8556,"name":"Ghanshyam Maan","display_name":"Ghanshyam Maan","email":"gmaan.os14@gmail.com","username":"ghanshyam"},"change_message_id":"7363337d0639fc08caa58ca8490d637d81f6de6a","unresolved":false,"context_lines":[{"line_number":95,"context_line":"            executors_shutdown.wait(timeout\u003d30),"},{"line_number":96,"context_line":"            \u0027Timed out waiting for the executors to be shutdown\u0027)"},{"line_number":97,"context_line":"        self.assertEqual("},{"line_number":98,"context_line":"            {}, self.scheduler_service.manager._in_progress_tasks)"},{"line_number":99,"context_line":""},{"line_number":100,"context_line":"        # After manager graceful_shutdown is completed, rpcserver.wait() now"},{"line_number":101,"context_line":"        # dispatches the consumed message to the manager."}],"source_content_type":"text/x-python","patch_set":5,"id":"c076281a_481d43b4","line":98,"in_reply_to":"9e7b04e6_e8be7685","updated":"2026-11-14 00:57:41.000000000","message":"Done","commit_id":"6a9f7a32068016eccb0e791fe4e8109b22013a21"},{"author":{"_account_id":8556,"name":"Ghanshyam Maan","display_name":"Ghanshyam Maan","email":"gmaan.os14@gmail.com","username":"ghanshyam"},"change_message_id":"69e84553a47739143e804b341e48aec5518fa0cc","unresolved":true,"context_lines":[{"line_number":95,"context_line":"            executors_shutdown.wait(timeout\u003d30),"},{"line_number":96,"context_line":"            \u0027Timed out waiting for the executors to be shutdown\u0027)"},{"line_number":97,"context_line":"        self.assertEqual("},{"line_number":98,"context_line":"            {}, self.scheduler_service.manager._in_progress_tasks)"},{"line_number":99,"context_line":""},{"line_number":100,"context_line":"        # After manager graceful_shutdown is completed, rpcserver.wait() now"},{"line_number":101,"context_line":"        # dispatches the consumed message to the manager."}],"source_content_type":"text/x-python","patch_set":5,"id":"9e7b04e6_e8be7685","line":98,"in_reply_to":"b6025bc3_17d80ecc","updated":"2026-11-14 00:39:39.000000000","message":"yeah this one should go first","commit_id":"6a9f7a32068016eccb0e791fe4e8109b22013a21"},{"author":{"_account_id":4690,"name":"melanie witt","display_name":"melwitt","email":"melwittt@gmail.com","username":"melwitt"},"change_message_id":"ddaa069991a3c9ca236561b20d330688932a63d8","unresolved":true,"context_lines":[{"line_number":32,"context_line":"    \"\"\""},{"line_number":33,"context_line":""},{"line_number":34,"context_line":"    compute_driver \u003d \u0027fake.SmallFakeDriver\u0027"},{"line_number":35,"context_line":"    CAST_AS_CALL \u003d False"},{"line_number":36,"context_line":""},{"line_number":37,"context_line":"    def setUp(self):"},{"line_number":38,"context_line":"        super().setUp()"}],"source_content_type":"text/x-python","patch_set":7,"id":"a22c9279_3b77bfaa","line":35,"updated":"2026-12-02 23:21:10.000000000","message":"I had not realized this before but AI-assist pointed out that CAST_AS_CALL does not do anything in ProviderUsageBaseTestCase as that class does not make use of the CastAsCall fixture. Only the _IntegratedTestBase class uses it.","commit_id":"7d2f341e10edb48d7415b0f76db3fab8c62adb56"},{"author":{"_account_id":4690,"name":"melanie witt","display_name":"melwitt","email":"melwittt@gmail.com","username":"melwitt"},"change_message_id":"ddaa069991a3c9ca236561b20d330688932a63d8","unresolved":true,"context_lines":[{"line_number":87,"context_line":"        stop_thread \u003d threading.Thread(target\u003dself.scheduler_service.stop)"},{"line_number":88,"context_line":"        stop_thread.start()"},{"line_number":89,"context_line":"        self.addCleanup(stop_thread.join, 60)"},{"line_number":90,"context_line":""},{"line_number":91,"context_line":"        # The RPC server did not yet sent message to manager. manager see"},{"line_number":92,"context_line":"        # no in-progress task and graceful_shutdown() does not wait for it and"},{"line_number":93,"context_line":"        # shuts down the executors."}],"source_content_type":"text/x-python","patch_set":7,"id":"62a0aab5_962dde19","line":90,"updated":"2026-12-02 23:21:10.000000000","message":"Not a blocker, but a small run-time consideration: cleanups run LIFO, so if any of the asserts above fail before rpc_proceed.set() is reached in the test body, this join(60) runs while the scheduler service is still parked in the held dispatch (rpc_proceed.wait(timeout\u003d60) inside hold_dispatch). Until that hold expires, service.stop() can\u0027t finish, so a failing run of this test takes up to ~60 extra seconds in cleanup. Since job run time is generally always a concern, it would be nice to avoid this.\n\nEvent.set() is idempotent, so re-registering the release after the join makes it run first on cleanup and the join returns immediately:\n```\nself.addCleanup(stop_thread.join, 60)\nself.addCleanup(rpc_proceed.set)\n```\nAlternatively, move the self.addCleanup(rpc_proceed.set) out of _slow_dispatch() entirely and only register it here, after the join cleanup.","commit_id":"7d2f341e10edb48d7415b0f76db3fab8c62adb56"}]}
