)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":9545,"name":"Andriy Kurilin","email":"andr.kurilin@gmail.com","username":"akurilin"},"change_message_id":"9971ad6c3b7fcaa3d552b8d691fcf8fed0f2c5ee","unresolved":false,"context_lines":[{"line_number":4,"context_line":"Commit:     John Wu \u003cweiwu@cisco.com\u003e"},{"line_number":5,"context_line":"CommitDate: 2015-03-10 20:15:46 -0700"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Add base for Swift API Benchmarks - Patch-2"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"This patch adds swift scenarios, cleanup resource, and unit tests."},{"line_number":10,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":5,"id":"9a80dd14_05952e32","line":7,"updated":"2015-03-13 21:24:18.000000000","message":"please use for swift related patches tag [Swift] in first line of commit message, like in sahara - https://review.openstack.org/#/c/161188/","commit_id":"8306c6168f27a7f2a9969540206c187f10f0b3a2"},{"author":{"_account_id":15029,"name":"John Wu","email":"weiwu@cisco.com","username":"johnwwu"},"change_message_id":"11ed0f4b06ffb7a44de7d1e727772d7c299d077b","unresolved":false,"context_lines":[{"line_number":4,"context_line":"Commit:     John Wu \u003cweiwu@cisco.com\u003e"},{"line_number":5,"context_line":"CommitDate: 2015-03-10 20:15:46 -0700"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Add base for Swift API Benchmarks - Patch-2"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"This patch adds swift scenarios, cleanup resource, and unit tests."},{"line_number":10,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":5,"id":"9a80dd14_88093333","line":7,"in_reply_to":"9a80dd14_05952e32","updated":"2015-03-13 22:18:26.000000000","message":"Will make the change.","commit_id":"8306c6168f27a7f2a9969540206c187f10f0b3a2"}],"rally-jobs/rally-neutron.yaml":[{"author":{"_account_id":10475,"name":"Alexander Maretskiy","email":"amaretskiy@mirantis.com","username":"maretskiy"},"change_message_id":"1083d7a96b44eb7734ad1caf8cd22f0905b3f57e","unresolved":false,"context_lines":[{"line_number":759,"context_line":"        object_size: 5120"},{"line_number":760,"context_line":"      runner:"},{"line_number":761,"context_line":"        type: \"constant\""},{"line_number":762,"context_line":"        times: 1"},{"line_number":763,"context_line":"        concurrency: 1"},{"line_number":764,"context_line":"      context:"},{"line_number":765,"context_line":"        users:"}],"source_content_type":"text/x-yaml","patch_set":1,"id":"ba7be1f8_40b132e0","line":762,"updated":"2015-03-02 15:18:42.000000000","message":"Please use at least 2 iterations, since single run is not very useful.\n\nAlso, use concurrency \u003e1:\n\n times: 2\n concurrency: 2","commit_id":"8a81f490c5e46b6af41752899482beffa360af6a"},{"author":{"_account_id":10475,"name":"Alexander Maretskiy","email":"amaretskiy@mirantis.com","username":"maretskiy"},"change_message_id":"1083d7a96b44eb7734ad1caf8cd22f0905b3f57e","unresolved":false,"context_lines":[{"line_number":799,"context_line":"      runner:"},{"line_number":800,"context_line":"        type: \"constant\""},{"line_number":801,"context_line":"        times: 3"},{"line_number":802,"context_line":"        concurrency: 1"},{"line_number":803,"context_line":"      context:"},{"line_number":804,"context_line":"        users:"},{"line_number":805,"context_line":"          tenants: 1"}],"source_content_type":"text/x-yaml","patch_set":1,"id":"ba7be1f8_80f88a7d","line":802,"updated":"2015-03-02 15:18:42.000000000","message":"Please use concurrency: 2 (if we use \"constant\" runner, it makes sense to use concurrency, otherwise that is similar to \"serial\" runner)","commit_id":"8a81f490c5e46b6af41752899482beffa360af6a"},{"author":{"_account_id":6172,"name":"Boris Pavlovic","email":"boris@pavlovic.me","username":"boris-42"},"change_message_id":"614ac934fa6ba8e2703f22350fe0c471c84e1113","unresolved":false,"context_lines":[{"line_number":765,"context_line":"        users:"},{"line_number":766,"context_line":"          tenants: 1"},{"line_number":767,"context_line":"          users_per_tenant: 1"},{"line_number":768,"context_line":"        roles:"},{"line_number":769,"context_line":"          - \"admin\""},{"line_number":770,"context_line":"      sla:"},{"line_number":771,"context_line":"        failure_rate:"}],"source_content_type":"text/x-yaml","patch_set":4,"id":"9a80dd14_fbe97be6","line":768,"updated":"2015-03-09 23:54:35.000000000","message":"Why do we need \"admin\" role for just creating and listing objects?","commit_id":"5f521aa08e7a832b023c10fcee259617938f0c46"},{"author":{"_account_id":15029,"name":"John Wu","email":"weiwu@cisco.com","username":"johnwwu"},"change_message_id":"800f6013fb4f37569d5785faef3818ce8cc3439a","unresolved":false,"context_lines":[{"line_number":765,"context_line":"        users:"},{"line_number":766,"context_line":"          tenants: 1"},{"line_number":767,"context_line":"          users_per_tenant: 1"},{"line_number":768,"context_line":"        roles:"},{"line_number":769,"context_line":"          - \"admin\""},{"line_number":770,"context_line":"      sla:"},{"line_number":771,"context_line":"        failure_rate:"}],"source_content_type":"text/x-yaml","patch_set":4,"id":"9a80dd14_c1576ac8","line":768,"in_reply_to":"9a80dd14_fbe97be6","updated":"2015-03-11 03:29:26.000000000","message":"To create or modify container, the user must be in one of the role defined in /etc/swift/proxy-server.conf:\n\n  operator_roles \u003d admin, SwiftOperator\n\nWe started with \"SwiftOperator\" role but for some reason, the DevStack used for the \"rally-nuetron.yaml\" does not have the proper Swift setup so I changed it to use \"admin\" role since it\u0027s guarantee to be there.","commit_id":"5f521aa08e7a832b023c10fcee259617938f0c46"}],"rally/benchmark/context/cleanup/resources.py":[{"author":{"_account_id":8576,"name":"Yair Fried","email":"yfried@redhat.com","username":"yfried"},"change_message_id":"ed51195d8c3752fd872d462e83b7f6f9b8841258","unresolved":false,"context_lines":[{"line_number":299,"context_line":"_swift_order \u003d get_order(1000)"},{"line_number":300,"context_line":""},{"line_number":301,"context_line":""},{"line_number":302,"context_line":"class SwiftMixin(SynchronizedDeletion, base.ResourceManager):"},{"line_number":303,"context_line":""},{"line_number":304,"context_line":"    def _manager(self):"},{"line_number":305,"context_line":"        return getattr(self.user, self._service)()"}],"source_content_type":"text/x-python","patch_set":2,"id":"ba7be1f8_1eb756d9","line":302,"updated":"2015-03-03 14:48:32.000000000","message":"what about @resource decorator?\nsee L90 NeutronMixin","commit_id":"54f4f7ab03503674743af6906c5cfbf5c5a33f1f"},{"author":{"_account_id":15029,"name":"John Wu","email":"weiwu@cisco.com","username":"johnwwu"},"change_message_id":"7ca25e5406d41f3580f719970e3f2b55a5975f54","unresolved":false,"context_lines":[{"line_number":299,"context_line":"_swift_order \u003d get_order(1000)"},{"line_number":300,"context_line":""},{"line_number":301,"context_line":""},{"line_number":302,"context_line":"class SwiftMixin(SynchronizedDeletion, base.ResourceManager):"},{"line_number":303,"context_line":""},{"line_number":304,"context_line":"    def _manager(self):"},{"line_number":305,"context_line":"        return getattr(self.user, self._service)()"}],"source_content_type":"text/x-python","patch_set":2,"id":"ba7be1f8_696a45b4","line":302,"in_reply_to":"ba7be1f8_1eb756d9","updated":"2015-03-04 01:27:18.000000000","message":"I\u0027m still new to Python but is this necessary since ResourceManager class already calls the @resource decorator with \"service\u003dNone, resource\u003dNone\" and the SwiftMixin class would never be called directly?","commit_id":"54f4f7ab03503674743af6906c5cfbf5c5a33f1f"},{"author":{"_account_id":8576,"name":"Yair Fried","email":"yfried@redhat.com","username":"yfried"},"change_message_id":"ed51195d8c3752fd872d462e83b7f6f9b8841258","unresolved":false,"context_lines":[{"line_number":305,"context_line":"        return getattr(self.user, self._service)()"},{"line_number":306,"context_line":""},{"line_number":307,"context_line":"    def id(self):"},{"line_number":308,"context_line":"        return self.raw_resource"},{"line_number":309,"context_line":""},{"line_number":310,"context_line":"    def delete(self):"},{"line_number":311,"context_line":"        delete_method \u003d getattr(self._manager(), \"delete_%s\" % self._resource)"}],"source_content_type":"text/x-python","patch_set":2,"id":"ba7be1f8_7e005266","line":308,"updated":"2015-03-03 14:48:32.000000000","message":"why not self.raw_resource[\"id\"]?","commit_id":"54f4f7ab03503674743af6906c5cfbf5c5a33f1f"},{"author":{"_account_id":15029,"name":"John Wu","email":"weiwu@cisco.com","username":"johnwwu"},"change_message_id":"7ca25e5406d41f3580f719970e3f2b55a5975f54","unresolved":false,"context_lines":[{"line_number":305,"context_line":"        return getattr(self.user, self._service)()"},{"line_number":306,"context_line":""},{"line_number":307,"context_line":"    def id(self):"},{"line_number":308,"context_line":"        return self.raw_resource"},{"line_number":309,"context_line":""},{"line_number":310,"context_line":"    def delete(self):"},{"line_number":311,"context_line":"        delete_method \u003d getattr(self._manager(), \"delete_%s\" % self._resource)"}],"source_content_type":"text/x-python","patch_set":2,"id":"ba7be1f8_e1965393","line":308,"in_reply_to":"ba7be1f8_7e005266","updated":"2015-03-04 01:27:18.000000000","message":"Swift does not return id, name should already be unique.\n\nThe reason we return raw_resource directly here and call delete with *raw_resource so it can be generic for both SwiftObject and SwiftContainer cleanup.  For object delete we need both container name and object name and for container delete we just need container name, doing it this way we can share the code.\n\nOf course, we are always open to rewrite if there is a better way to do this.","commit_id":"54f4f7ab03503674743af6906c5cfbf5c5a33f1f"},{"author":{"_account_id":8576,"name":"Yair Fried","email":"yfried@redhat.com","username":"yfried"},"change_message_id":"ed51195d8c3752fd872d462e83b7f6f9b8841258","unresolved":false,"context_lines":[{"line_number":318,"context_line":""},{"line_number":319,"context_line":"    def list(self):"},{"line_number":320,"context_line":"        object_list \u003d list()"},{"line_number":321,"context_line":"        headers, containers \u003d self._manager().get_account(full_listing\u003dTrue)"},{"line_number":322,"context_line":"        for con in containers:"},{"line_number":323,"context_line":"            headers, objects \u003d self._manager().get_container(con[\"name\"],"},{"line_number":324,"context_line":"                                                             full_listing\u003dTrue)"}],"source_content_type":"text/x-python","patch_set":2,"id":"ba7be1f8_fede02d9","line":321,"updated":"2015-03-03 14:48:32.000000000","message":"s/headers/_headers","commit_id":"54f4f7ab03503674743af6906c5cfbf5c5a33f1f"},{"author":{"_account_id":15029,"name":"John Wu","email":"weiwu@cisco.com","username":"johnwwu"},"change_message_id":"7ca25e5406d41f3580f719970e3f2b55a5975f54","unresolved":false,"context_lines":[{"line_number":318,"context_line":""},{"line_number":319,"context_line":"    def list(self):"},{"line_number":320,"context_line":"        object_list \u003d list()"},{"line_number":321,"context_line":"        headers, containers \u003d self._manager().get_account(full_listing\u003dTrue)"},{"line_number":322,"context_line":"        for con in containers:"},{"line_number":323,"context_line":"            headers, objects \u003d self._manager().get_container(con[\"name\"],"},{"line_number":324,"context_line":"                                                             full_listing\u003dTrue)"}],"source_content_type":"text/x-python","patch_set":2,"id":"ba7be1f8_2764f1b7","line":321,"in_reply_to":"ba7be1f8_fede02d9","updated":"2015-03-04 01:27:18.000000000","message":"Will make the change.","commit_id":"54f4f7ab03503674743af6906c5cfbf5c5a33f1f"},{"author":{"_account_id":8576,"name":"Yair Fried","email":"yfried@redhat.com","username":"yfried"},"change_message_id":"ed51195d8c3752fd872d462e83b7f6f9b8841258","unresolved":false,"context_lines":[{"line_number":333,"context_line":"class SwiftContainer(SwiftMixin):"},{"line_number":334,"context_line":""},{"line_number":335,"context_line":"    def list(self):"},{"line_number":336,"context_line":"        headers, containers \u003d self._manager().get_account(full_listing\u003dTrue)"},{"line_number":337,"context_line":"        return [[con[\"name\"]] for con in containers]"},{"line_number":338,"context_line":""},{"line_number":339,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"ba7be1f8_9e542655","line":336,"updated":"2015-03-03 14:48:32.000000000","message":"s/headers/_headers","commit_id":"54f4f7ab03503674743af6906c5cfbf5c5a33f1f"},{"author":{"_account_id":15029,"name":"John Wu","email":"weiwu@cisco.com","username":"johnwwu"},"change_message_id":"7ca25e5406d41f3580f719970e3f2b55a5975f54","unresolved":false,"context_lines":[{"line_number":333,"context_line":"class SwiftContainer(SwiftMixin):"},{"line_number":334,"context_line":""},{"line_number":335,"context_line":"    def list(self):"},{"line_number":336,"context_line":"        headers, containers \u003d self._manager().get_account(full_listing\u003dTrue)"},{"line_number":337,"context_line":"        return [[con[\"name\"]] for con in containers]"},{"line_number":338,"context_line":""},{"line_number":339,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"ba7be1f8_a76f0191","line":336,"in_reply_to":"ba7be1f8_9e542655","updated":"2015-03-04 01:27:18.000000000","message":"Will make the change.","commit_id":"54f4f7ab03503674743af6906c5cfbf5c5a33f1f"},{"author":{"_account_id":6172,"name":"Boris Pavlovic","email":"boris@pavlovic.me","username":"boris-42"},"change_message_id":"614ac934fa6ba8e2703f22350fe0c471c84e1113","unresolved":false,"context_lines":[{"line_number":315,"context_line":"class SwiftMixin(SynchronizedDeletion, base.ResourceManager):"},{"line_number":316,"context_line":""},{"line_number":317,"context_line":"    def _manager(self):"},{"line_number":318,"context_line":"        return getattr(self.user, self._service)()"},{"line_number":319,"context_line":""},{"line_number":320,"context_line":"    def id(self):"},{"line_number":321,"context_line":"        return self.raw_resource"}],"source_content_type":"text/x-python","patch_set":4,"id":"9a80dd14_dbad979c","line":318,"updated":"2015-03-09 23:54:35.000000000","message":"could you refactor this method to support admin cleanup as well.\n\n  def _manager(self): \n    client \u003d self._admin_required and self.admin or self.user\n    return getattr(client, self._service)()","commit_id":"5f521aa08e7a832b023c10fcee259617938f0c46"},{"author":{"_account_id":15029,"name":"John Wu","email":"weiwu@cisco.com","username":"johnwwu"},"change_message_id":"800f6013fb4f37569d5785faef3818ce8cc3439a","unresolved":false,"context_lines":[{"line_number":315,"context_line":"class SwiftMixin(SynchronizedDeletion, base.ResourceManager):"},{"line_number":316,"context_line":""},{"line_number":317,"context_line":"    def _manager(self):"},{"line_number":318,"context_line":"        return getattr(self.user, self._service)()"},{"line_number":319,"context_line":""},{"line_number":320,"context_line":"    def id(self):"},{"line_number":321,"context_line":"        return self.raw_resource"}],"source_content_type":"text/x-python","patch_set":4,"id":"9a80dd14_c1aa0a84","line":318,"in_reply_to":"9a80dd14_dbad979c","updated":"2015-03-11 03:29:26.000000000","message":"Done","commit_id":"5f521aa08e7a832b023c10fcee259617938f0c46"},{"author":{"_account_id":6172,"name":"Boris Pavlovic","email":"boris@pavlovic.me","username":"boris-42"},"change_message_id":"614ac934fa6ba8e2703f22350fe0c471c84e1113","unresolved":false,"context_lines":[{"line_number":322,"context_line":""},{"line_number":323,"context_line":"    def delete(self):"},{"line_number":324,"context_line":"        delete_method \u003d getattr(self._manager(), \"delete_%s\" % self._resource)"},{"line_number":325,"context_line":"        delete_method(*self.raw_resource)"},{"line_number":326,"context_line":""},{"line_number":327,"context_line":""},{"line_number":328,"context_line":"@base.resource(\"swift\", \"object\", order\u003dnext(_swift_order),"}],"source_content_type":"text/x-python","patch_set":4,"id":"9a80dd14_fb417ba9","line":325,"updated":"2015-03-09 23:54:35.000000000","message":"please add note here: \n\n  *self.raw_resource is required because for deleting container we are passing only container name, to delete object we should pass as first argument container and second is object name.","commit_id":"5f521aa08e7a832b023c10fcee259617938f0c46"},{"author":{"_account_id":15029,"name":"John Wu","email":"weiwu@cisco.com","username":"johnwwu"},"change_message_id":"800f6013fb4f37569d5785faef3818ce8cc3439a","unresolved":false,"context_lines":[{"line_number":322,"context_line":""},{"line_number":323,"context_line":"    def delete(self):"},{"line_number":324,"context_line":"        delete_method \u003d getattr(self._manager(), \"delete_%s\" % self._resource)"},{"line_number":325,"context_line":"        delete_method(*self.raw_resource)"},{"line_number":326,"context_line":""},{"line_number":327,"context_line":""},{"line_number":328,"context_line":"@base.resource(\"swift\", \"object\", order\u003dnext(_swift_order),"}],"source_content_type":"text/x-python","patch_set":4,"id":"9a80dd14_8115729d","line":325,"in_reply_to":"9a80dd14_fb417ba9","updated":"2015-03-11 03:29:26.000000000","message":"Done","commit_id":"5f521aa08e7a832b023c10fcee259617938f0c46"},{"author":{"_account_id":10475,"name":"Alexander Maretskiy","email":"amaretskiy@mirantis.com","username":"maretskiy"},"change_message_id":"98bedd02b24b473fe65a5e2dd74d6827e40689f9","unresolved":false,"context_lines":[{"line_number":311,"context_line":"_swift_order \u003d get_order(1000)"},{"line_number":312,"context_line":""},{"line_number":313,"context_line":""},{"line_number":314,"context_line":"@base.resource(service\u003dNone, resource\u003dNone)"},{"line_number":315,"context_line":"class SwiftMixin(SynchronizedDeletion, base.ResourceManager):"},{"line_number":316,"context_line":""},{"line_number":317,"context_line":"    def _manager(self):"}],"source_content_type":"text/x-python","patch_set":5,"id":"9a80dd14_d9b6adf8","line":314,"updated":"2015-03-13 16:48:52.000000000","message":"This line is probably not required since SwiftMixin is used as base class only (subclasses must be decorated).\n\nI see that was so in first patch set","commit_id":"8306c6168f27a7f2a9969540206c187f10f0b3a2"},{"author":{"_account_id":15029,"name":"John Wu","email":"weiwu@cisco.com","username":"johnwwu"},"change_message_id":"2fdbe33a77f425195a4bd82019ddb3190bbcc865","unresolved":false,"context_lines":[{"line_number":311,"context_line":"_swift_order \u003d get_order(1000)"},{"line_number":312,"context_line":""},{"line_number":313,"context_line":""},{"line_number":314,"context_line":"@base.resource(service\u003dNone, resource\u003dNone)"},{"line_number":315,"context_line":"class SwiftMixin(SynchronizedDeletion, base.ResourceManager):"},{"line_number":316,"context_line":""},{"line_number":317,"context_line":"    def _manager(self):"}],"source_content_type":"text/x-python","patch_set":5,"id":"9a80dd14_6e1334b8","line":314,"in_reply_to":"9a80dd14_d9b6adf8","updated":"2015-03-13 18:39:09.000000000","message":"Yes, that was only later added from one of the review comment.  I agree, will remove it.","commit_id":"8306c6168f27a7f2a9969540206c187f10f0b3a2"},{"author":{"_account_id":10475,"name":"Alexander Maretskiy","email":"amaretskiy@mirantis.com","username":"maretskiy"},"change_message_id":"5ccfbf2d48701af448e3ebc09f9572d6c1a8dfd3","unresolved":false,"context_lines":[{"line_number":322,"context_line":""},{"line_number":323,"context_line":"    def delete(self):"},{"line_number":324,"context_line":"        delete_method \u003d getattr(self._manager(), \"delete_%s\" % self._resource)"},{"line_number":325,"context_line":"        # *self.raw_resource is required because for deleting container we are"},{"line_number":326,"context_line":"        # passing only container name, to delete object we should pass as first"},{"line_number":327,"context_line":"        # argument container and second is object name."},{"line_number":328,"context_line":"        delete_method(*self.raw_resource)"}],"source_content_type":"text/x-python","patch_set":6,"id":"9a80dd14_56e3f1a3","line":325,"updated":"2015-03-17 14:42:13.000000000","message":"I suggest using format:\n\n # NOTE({name}): {comment test here}\n\nPlease change this if there will be another patch sets.\n\nRef: http://docs.openstack.org/developer/hacking/","commit_id":"f2c1257b6a135a85539050acd7b8a8b53dd7ca5a"},{"author":{"_account_id":15029,"name":"John Wu","email":"weiwu@cisco.com","username":"johnwwu"},"change_message_id":"6a27f6b0ee3d6f7d5fd0d94b25b03805b885b4d2","unresolved":false,"context_lines":[{"line_number":322,"context_line":""},{"line_number":323,"context_line":"    def delete(self):"},{"line_number":324,"context_line":"        delete_method \u003d getattr(self._manager(), \"delete_%s\" % self._resource)"},{"line_number":325,"context_line":"        # *self.raw_resource is required because for deleting container we are"},{"line_number":326,"context_line":"        # passing only container name, to delete object we should pass as first"},{"line_number":327,"context_line":"        # argument container and second is object name."},{"line_number":328,"context_line":"        delete_method(*self.raw_resource)"}],"source_content_type":"text/x-python","patch_set":6,"id":"9a80dd14_d2aefa2e","line":325,"in_reply_to":"9a80dd14_56e3f1a3","updated":"2015-03-18 02:35:31.000000000","message":"Done","commit_id":"f2c1257b6a135a85539050acd7b8a8b53dd7ca5a"},{"author":{"_account_id":8122,"name":"Cyril Roelandt","email":"cyril@redhat.com","username":"cyril.roelandt.enovance"},"change_message_id":"afb970a9e5e1591fe8465a7770d1dcc6b3372cf3","unresolved":false,"context_lines":[{"line_number":333,"context_line":"class SwiftObject(SwiftMixin):"},{"line_number":334,"context_line":""},{"line_number":335,"context_line":"    def list(self):"},{"line_number":336,"context_line":"        object_list \u003d list()"},{"line_number":337,"context_line":"        _headers, containers \u003d self._manager().get_account(full_listing\u003dTrue)"},{"line_number":338,"context_line":"        for con in containers:"},{"line_number":339,"context_line":"            _headers, objects \u003d self._manager().get_container("}],"source_content_type":"text/x-python","patch_set":8,"id":"1a6ced46_8d48095d","line":336,"updated":"2015-03-23 15:17:46.000000000","message":"Why wouldn\u0027t you just write \"object_list \u003d []\"?","commit_id":"b233837898a3c7cb7180fe9ca1f5f57161056ff7"},{"author":{"_account_id":15029,"name":"John Wu","email":"weiwu@cisco.com","username":"johnwwu"},"change_message_id":"56f9f35967bbdfec8fa60920b6e7cb149d8bbe8d","unresolved":false,"context_lines":[{"line_number":333,"context_line":"class SwiftObject(SwiftMixin):"},{"line_number":334,"context_line":""},{"line_number":335,"context_line":"    def list(self):"},{"line_number":336,"context_line":"        object_list \u003d list()"},{"line_number":337,"context_line":"        _headers, containers \u003d self._manager().get_account(full_listing\u003dTrue)"},{"line_number":338,"context_line":"        for con in containers:"},{"line_number":339,"context_line":"            _headers, objects \u003d self._manager().get_container("}],"source_content_type":"text/x-python","patch_set":8,"id":"1a6ced46_ff17564f","line":336,"in_reply_to":"1a6ced46_61ce765c","updated":"2015-03-24 01:31:32.000000000","message":"Done","commit_id":"b233837898a3c7cb7180fe9ca1f5f57161056ff7"},{"author":{"_account_id":6172,"name":"Boris Pavlovic","email":"boris@pavlovic.me","username":"boris-42"},"change_message_id":"b0a817186513c40a6575e3374db8c3e4f64aeee3","unresolved":false,"context_lines":[{"line_number":333,"context_line":"class SwiftObject(SwiftMixin):"},{"line_number":334,"context_line":""},{"line_number":335,"context_line":"    def list(self):"},{"line_number":336,"context_line":"        object_list \u003d list()"},{"line_number":337,"context_line":"        _headers, containers \u003d self._manager().get_account(full_listing\u003dTrue)"},{"line_number":338,"context_line":"        for con in containers:"},{"line_number":339,"context_line":"            _headers, objects \u003d self._manager().get_container("}],"source_content_type":"text/x-python","patch_set":8,"id":"1a6ced46_61ce765c","line":336,"in_reply_to":"1a6ced46_8d48095d","updated":"2015-03-23 15:34:05.000000000","message":"Yep it is better to use []","commit_id":"b233837898a3c7cb7180fe9ca1f5f57161056ff7"},{"author":{"_account_id":8122,"name":"Cyril Roelandt","email":"cyril@redhat.com","username":"cyril.roelandt.enovance"},"change_message_id":"afb970a9e5e1591fe8465a7770d1dcc6b3372cf3","unresolved":false,"context_lines":[{"line_number":336,"context_line":"        object_list \u003d list()"},{"line_number":337,"context_line":"        _headers, containers \u003d self._manager().get_account(full_listing\u003dTrue)"},{"line_number":338,"context_line":"        for con in containers:"},{"line_number":339,"context_line":"            _headers, objects \u003d self._manager().get_container("},{"line_number":340,"context_line":"                con[\"name\"],"},{"line_number":341,"context_line":"                full_listing\u003dTrue)"},{"line_number":342,"context_line":"            for obj in objects:"}],"source_content_type":"text/x-python","patch_set":8,"id":"1a6ced46_6db90d2e","line":339,"updated":"2015-03-23 15:17:46.000000000","message":"Here and two lines above, if you do not plan on using \"_headers\", I think the usual Python idiom is to use \"_\" as a variable name. This would also prevent static analyzers from reporting false positives about unused variables.","commit_id":"b233837898a3c7cb7180fe9ca1f5f57161056ff7"},{"author":{"_account_id":6172,"name":"Boris Pavlovic","email":"boris@pavlovic.me","username":"boris-42"},"change_message_id":"b0a817186513c40a6575e3374db8c3e4f64aeee3","unresolved":false,"context_lines":[{"line_number":336,"context_line":"        object_list \u003d list()"},{"line_number":337,"context_line":"        _headers, containers \u003d self._manager().get_account(full_listing\u003dTrue)"},{"line_number":338,"context_line":"        for con in containers:"},{"line_number":339,"context_line":"            _headers, objects \u003d self._manager().get_container("},{"line_number":340,"context_line":"                con[\"name\"],"},{"line_number":341,"context_line":"                full_listing\u003dTrue)"},{"line_number":342,"context_line":"            for obj in objects:"}],"source_content_type":"text/x-python","patch_set":8,"id":"1a6ced46_6123d605","line":339,"in_reply_to":"1a6ced46_6db90d2e","updated":"2015-03-23 15:34:05.000000000","message":"Cyril, \n\nUnfortunately we are in OpenStack world, so we shouldn\u0027t use \"_\" as variable name, because it is some kind of reserved variable:\n  \nhttps://github.com/stackforge/rally/blob/master/rally/benchmark/context/sahara/sahara_cluster.py#L22","commit_id":"b233837898a3c7cb7180fe9ca1f5f57161056ff7"},{"author":{"_account_id":10475,"name":"Alexander Maretskiy","email":"amaretskiy@mirantis.com","username":"maretskiy"},"change_message_id":"75c6aa0bf2dca4d0c2258b6afe6bfcceb6ced1f2","unresolved":false,"context_lines":[{"line_number":336,"context_line":"        object_list \u003d list()"},{"line_number":337,"context_line":"        _headers, containers \u003d self._manager().get_account(full_listing\u003dTrue)"},{"line_number":338,"context_line":"        for con in containers:"},{"line_number":339,"context_line":"            _headers, objects \u003d self._manager().get_container("},{"line_number":340,"context_line":"                con[\"name\"],"},{"line_number":341,"context_line":"                full_listing\u003dTrue)"},{"line_number":342,"context_line":"            for obj in objects:"}],"source_content_type":"text/x-python","patch_set":8,"id":"1a6ced46_a1906eed","line":339,"in_reply_to":"1a6ced46_6db90d2e","updated":"2015-03-23 15:35:19.000000000","message":"`_\u0027 clashes with wide-used gettext translation function. I know another popular idiom `dummy\u0027, for example:\n\n dummy, my_var \u003d some_tuple","commit_id":"b233837898a3c7cb7180fe9ca1f5f57161056ff7"},{"author":{"_account_id":15029,"name":"John Wu","email":"weiwu@cisco.com","username":"johnwwu"},"change_message_id":"56f9f35967bbdfec8fa60920b6e7cb149d8bbe8d","unresolved":false,"context_lines":[{"line_number":336,"context_line":"        object_list \u003d list()"},{"line_number":337,"context_line":"        _headers, containers \u003d self._manager().get_account(full_listing\u003dTrue)"},{"line_number":338,"context_line":"        for con in containers:"},{"line_number":339,"context_line":"            _headers, objects \u003d self._manager().get_container("},{"line_number":340,"context_line":"                con[\"name\"],"},{"line_number":341,"context_line":"                full_listing\u003dTrue)"},{"line_number":342,"context_line":"            for obj in objects:"}],"source_content_type":"text/x-python","patch_set":8,"id":"1a6ced46_bc908796","line":339,"in_reply_to":"1a6ced46_a1906eed","updated":"2015-03-24 01:31:32.000000000","message":"Changed to:\n            dummy, objects \u003d self._manager().get_container(","commit_id":"b233837898a3c7cb7180fe9ca1f5f57161056ff7"},{"author":{"_account_id":8122,"name":"Cyril Roelandt","email":"cyril@redhat.com","username":"cyril.roelandt.enovance"},"change_message_id":"afb970a9e5e1591fe8465a7770d1dcc6b3372cf3","unresolved":false,"context_lines":[{"line_number":350,"context_line":"class SwiftContainer(SwiftMixin):"},{"line_number":351,"context_line":""},{"line_number":352,"context_line":"    def list(self):"},{"line_number":353,"context_line":"        _headers, containers \u003d self._manager().get_account(full_listing\u003dTrue)"},{"line_number":354,"context_line":"        return [[con[\"name\"]] for con in containers]"},{"line_number":355,"context_line":""},{"line_number":356,"context_line":""}],"source_content_type":"text/x-python","patch_set":8,"id":"1a6ced46_6d902d96","line":353,"updated":"2015-03-23 15:17:46.000000000","message":"Same here.","commit_id":"b233837898a3c7cb7180fe9ca1f5f57161056ff7"},{"author":{"_account_id":15029,"name":"John Wu","email":"weiwu@cisco.com","username":"johnwwu"},"change_message_id":"56f9f35967bbdfec8fa60920b6e7cb149d8bbe8d","unresolved":false,"context_lines":[{"line_number":350,"context_line":"class SwiftContainer(SwiftMixin):"},{"line_number":351,"context_line":""},{"line_number":352,"context_line":"    def list(self):"},{"line_number":353,"context_line":"        _headers, containers \u003d self._manager().get_account(full_listing\u003dTrue)"},{"line_number":354,"context_line":"        return [[con[\"name\"]] for con in containers]"},{"line_number":355,"context_line":""},{"line_number":356,"context_line":""}],"source_content_type":"text/x-python","patch_set":8,"id":"1a6ced46_fce91f1b","line":353,"in_reply_to":"1a6ced46_6d902d96","updated":"2015-03-24 01:31:32.000000000","message":"Changed to:\n        dummy, containers \u003d self._manager().get_account(full_listing\u003dTrue)","commit_id":"b233837898a3c7cb7180fe9ca1f5f57161056ff7"}],"rally/benchmark/scenarios/base.py":[{"author":{"_account_id":8576,"name":"Yair Fried","email":"yfried@redhat.com","username":"yfried"},"change_message_id":"dc77a3dee3634365f15e5b43fb4dc29919107c40","unresolved":false,"context_lines":[{"line_number":276,"context_line":"        :param scenario_instance: instance of subclass of base scenario"},{"line_number":277,"context_line":"        :param name: name of the ActionBuilder"},{"line_number":278,"context_line":"        \"\"\""},{"line_number":279,"context_line":"        if not name:"},{"line_number":280,"context_line":"            return"},{"line_number":281,"context_line":"        super(AtomicAction, self).__init__()"},{"line_number":282,"context_line":"        self.scenario_instance \u003d scenario_instance"}],"source_content_type":"text/x-python","patch_set":7,"id":"9a80dd14_83b5ff7f","line":279,"updated":"2015-03-18 09:17:38.000000000","message":"So, this is a hack to AtomicAction - IIUC by not declaring name, you are cancelling the call to it.\nIMO this is not the right way because:  \n\n1 - It\u0027s implicit. If you are \"disabling\" AtomicAction it should be clear from the argument.\n\n2 - If you don\u0027t want to use AtomicAction - just don\u0027t.\n\nAlso,\nThis is a big change to AtomicAction. If you do this, you should please explain this in docstring and commit messag - how is this related to the patch?","commit_id":"dc423a7957b4015e029382dec6ad70d2f98162ab"},{"author":{"_account_id":10475,"name":"Alexander Maretskiy","email":"amaretskiy@mirantis.com","username":"maretskiy"},"change_message_id":"4ef23798114c579cdd9aa2ae11839c9140c03e55","unresolved":false,"context_lines":[{"line_number":276,"context_line":"        :param scenario_instance: instance of subclass of base scenario"},{"line_number":277,"context_line":"        :param name: name of the ActionBuilder"},{"line_number":278,"context_line":"        \"\"\""},{"line_number":279,"context_line":"        if not name:"},{"line_number":280,"context_line":"            return"},{"line_number":281,"context_line":"        super(AtomicAction, self).__init__()"},{"line_number":282,"context_line":"        self.scenario_instance \u003d scenario_instance"}],"source_content_type":"text/x-python","patch_set":7,"id":"9a80dd14_f7a49a09","line":279,"in_reply_to":"9a80dd14_83b5ff7f","updated":"2015-03-18 17:37:06.000000000","message":"Yair, I agreed that using `name\u0027 for use/disable atomic action looks implicit, but this can be normal. For example, that is common pattern to use value of `0\u0027 to disable limits at all. So if atomic action name is boolean false (for example, None) that is reasonable to disable timing - that is rather explicit that implicit.\n\nThis change is very important since it reduces duplicated code.\n\n\nAgreed that some explanation must be added to docstring - that is why I put `-1\u0027 for this patch set - missing this really makes usage of AtomicAction implicit","commit_id":"dc423a7957b4015e029382dec6ad70d2f98162ab"},{"author":{"_account_id":8576,"name":"Yair Fried","email":"yfried@redhat.com","username":"yfried"},"change_message_id":"dc77a3dee3634365f15e5b43fb4dc29919107c40","unresolved":false,"context_lines":[{"line_number":295,"context_line":"            return name_template % atomic_action_iteration"},{"line_number":296,"context_line":""},{"line_number":297,"context_line":"    def __exit__(self, type, value, tb):"},{"line_number":298,"context_line":"        if not hasattr(self, \"name\"):"},{"line_number":299,"context_line":"            return"},{"line_number":300,"context_line":"        super(AtomicAction, self).__exit__(type, value, tb)"},{"line_number":301,"context_line":"        if type is None:"}],"source_content_type":"text/x-python","patch_set":7,"id":"9a80dd14_c30a9726","line":298,"updated":"2015-03-18 09:17:38.000000000","message":"ditto","commit_id":"dc423a7957b4015e029382dec6ad70d2f98162ab"},{"author":{"_account_id":8576,"name":"Yair Fried","email":"yfried@redhat.com","username":"yfried"},"change_message_id":"8f511e836554df0513c85c5c133c939c778b7a2f","unresolved":false,"context_lines":[{"line_number":273,"context_line":"    def __init__(self, scenario_instance, name):"},{"line_number":274,"context_line":"        \"\"\"Create a new instance of the AtomicAction."},{"line_number":275,"context_line":""},{"line_number":276,"context_line":"        :param scenario_instance: instance of subclass of base scenario"},{"line_number":277,"context_line":"        :param name: name of the ActionBuilder, if name is not a valid string"},{"line_number":278,"context_line":"                     type then it will not perform the atomic operation"},{"line_number":279,"context_line":"        \"\"\""}],"source_content_type":"text/x-python","patch_set":8,"id":"9a80dd14_70dfcbd6","line":276,"updated":"2015-03-18 20:40:21.000000000","message":"please add changes to commit message and explain in docstring why this hack is needed.\nPlease add a todo to remove this once we solve the problem","commit_id":"b233837898a3c7cb7180fe9ca1f5f57161056ff7"},{"author":{"_account_id":8576,"name":"Yair Fried","email":"yfried@redhat.com","username":"yfried"},"change_message_id":"8f511e836554df0513c85c5c133c939c778b7a2f","unresolved":false,"context_lines":[{"line_number":275,"context_line":""},{"line_number":276,"context_line":"        :param scenario_instance: instance of subclass of base scenario"},{"line_number":277,"context_line":"        :param name: name of the ActionBuilder, if name is not a valid string"},{"line_number":278,"context_line":"                     type then it will not perform the atomic operation"},{"line_number":279,"context_line":"        \"\"\""},{"line_number":280,"context_line":"        if isinstance(name, str) and len(name):"},{"line_number":281,"context_line":"            super(AtomicAction, self).__init__()"}],"source_content_type":"text/x-python","patch_set":8,"id":"9a80dd14_d059578f","line":278,"updated":"2015-03-18 20:40:21.000000000","message":"@Alexander,\nI know it was your idea to add this (read the previous comments). I still disagree, with this change. IMO, sometimes you can\u0027t avoid code duplication.\n\nWe have a problem with AtomicAction that cannot be used in loops. The solution cannot be hacking it to act other than expected. Sometimes you can\u0027t avoid duplicating the code.\n\nI suggest code duplication and to open a bug on AtomicAction, with a todo to remove code duplication once it\u0027s fixed.","commit_id":"b233837898a3c7cb7180fe9ca1f5f57161056ff7"},{"author":{"_account_id":15029,"name":"John Wu","email":"weiwu@cisco.com","username":"johnwwu"},"change_message_id":"56f9f35967bbdfec8fa60920b6e7cb149d8bbe8d","unresolved":false,"context_lines":[{"line_number":275,"context_line":""},{"line_number":276,"context_line":"        :param scenario_instance: instance of subclass of base scenario"},{"line_number":277,"context_line":"        :param name: name of the ActionBuilder, if name is not a valid string"},{"line_number":278,"context_line":"                     type then it will not perform the atomic operation"},{"line_number":279,"context_line":"        \"\"\""},{"line_number":280,"context_line":"        if isinstance(name, str) and len(name):"},{"line_number":281,"context_line":"            super(AtomicAction, self).__init__()"}],"source_content_type":"text/x-python","patch_set":8,"id":"1a6ced46_654bcf2b","line":278,"in_reply_to":"1a6ced46_c1dd6a16","updated":"2015-03-24 01:31:32.000000000","message":"Done, reverted back the changes.\n\n@Boris,\n\nFor the proper_key, not sure if this is what you have intended, I have made the check in the scenario method.  Please let me know if I should try to restructure the code and move it inside the utils method instead or some other better way.","commit_id":"b233837898a3c7cb7180fe9ca1f5f57161056ff7"},{"author":{"_account_id":6172,"name":"Boris Pavlovic","email":"boris@pavlovic.me","username":"boris-42"},"change_message_id":"b0a817186513c40a6575e3374db8c3e4f64aeee3","unresolved":false,"context_lines":[{"line_number":275,"context_line":""},{"line_number":276,"context_line":"        :param scenario_instance: instance of subclass of base scenario"},{"line_number":277,"context_line":"        :param name: name of the ActionBuilder, if name is not a valid string"},{"line_number":278,"context_line":"                     type then it will not perform the atomic operation"},{"line_number":279,"context_line":"        \"\"\""},{"line_number":280,"context_line":"        if isinstance(name, str) and len(name):"},{"line_number":281,"context_line":"            super(AtomicAction, self).__init__()"}],"source_content_type":"text/x-python","patch_set":8,"id":"1a6ced46_c1dd6a16","line":278,"in_reply_to":"9a80dd14_a0d01054","updated":"2015-03-23 15:34:05.000000000","message":"@John,\n\nSo please revert this change. And use approach that we discussed before. \n\nIn utils method you are generting proper key and using with\n\n  AtomicAction(proper_key): \n    ...\n\n\nOne thing that you can do is to have nice generation of proper_key.\nLike if it is only 1 element then you put \"create_object\", if there are many \"create_x_objects\".","commit_id":"b233837898a3c7cb7180fe9ca1f5f57161056ff7"},{"author":{"_account_id":6172,"name":"Boris Pavlovic","email":"boris@pavlovic.me","username":"boris-42"},"change_message_id":"8febd3efd9f3504ce06a6c39f4dad4ad8b321f84","unresolved":false,"context_lines":[{"line_number":275,"context_line":""},{"line_number":276,"context_line":"        :param scenario_instance: instance of subclass of base scenario"},{"line_number":277,"context_line":"        :param name: name of the ActionBuilder, if name is not a valid string"},{"line_number":278,"context_line":"                     type then it will not perform the atomic operation"},{"line_number":279,"context_line":"        \"\"\""},{"line_number":280,"context_line":"        if isinstance(name, str) and len(name):"},{"line_number":281,"context_line":"            super(AtomicAction, self).__init__()"}],"source_content_type":"text/x-python","patch_set":8,"id":"9a80dd14_a0d01054","line":278,"in_reply_to":"9a80dd14_d059578f","updated":"2015-03-18 22:14:48.000000000","message":"@John, \n\nPlease make a short pause in updating this patch. Alex sometimes makes fast decisions that are totally wrong. Like this one. I am going to talk with him tomorrow regarding to this issue. \n\nThis change is fundamental change in Rally framework (not just adding/changing plugins).\n\nSuch changes requires separated patches and discussions with whole Rally team (not just core team) because they affects whole framework.\n\nSorry about this.","commit_id":"b233837898a3c7cb7180fe9ca1f5f57161056ff7"}],"rally/benchmark/scenarios/swift/objects.py":[{"author":{"_account_id":10475,"name":"Alexander Maretskiy","email":"amaretskiy@mirantis.com","username":"maretskiy"},"change_message_id":"1083d7a96b44eb7734ad1caf8cd22f0905b3f57e","unresolved":false,"context_lines":[{"line_number":27,"context_line":"    @validation.required_services(consts.Service.SWIFT)"},{"line_number":28,"context_line":"    @validation.required_openstack(users\u003dTrue)"},{"line_number":29,"context_line":"    @base.scenario(context\u003d{\"cleanup\": [\"swift\"]})"},{"line_number":30,"context_line":"    def create_and_list_object(self, containers_per_account\u003d1,"},{"line_number":31,"context_line":"                               objects_per_container\u003d1, object_size\u003d1024,"},{"line_number":32,"context_line":"                               **kwargs):"},{"line_number":33,"context_line":"        \"\"\"Create containers and objects then list all objects."}],"source_content_type":"text/x-python","patch_set":1,"id":"ba7be1f8_c09362f8","line":30,"updated":"2015-03-02 15:18:42.000000000","message":"Plural `create_and_list_objects\u0027 looks more logical, since we run `_list_objects\u0027","commit_id":"8a81f490c5e46b6af41752899482beffa360af6a"},{"author":{"_account_id":8576,"name":"Yair Fried","email":"yfried@redhat.com","username":"yfried"},"change_message_id":"ed51195d8c3752fd872d462e83b7f6f9b8841258","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# Copyright 2015: Cisco Systems, Inc."},{"line_number":2,"context_line":"# All Rights Reserved."},{"line_number":3,"context_line":"#"},{"line_number":4,"context_line":"#    Licensed under the Apache License, Version 2.0 (the \"License\"); you may"}],"source_content_type":"text/x-python","patch_set":2,"id":"ba7be1f8_71b243e6","line":1,"updated":"2015-03-03 14:48:32.000000000","message":"Not sure that company copyright is valid here.\nI believe openstack rules void this line","commit_id":"54f4f7ab03503674743af6906c5cfbf5c5a33f1f"},{"author":{"_account_id":15029,"name":"John Wu","email":"weiwu@cisco.com","username":"johnwwu"},"change_message_id":"7ca25e5406d41f3580f719970e3f2b55a5975f54","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# Copyright 2015: Cisco Systems, Inc."},{"line_number":2,"context_line":"# All Rights Reserved."},{"line_number":3,"context_line":"#"},{"line_number":4,"context_line":"#    Licensed under the Apache License, Version 2.0 (the \"License\"); you may"}],"source_content_type":"text/x-python","patch_set":2,"id":"ba7be1f8_21f94b4e","line":1,"in_reply_to":"ba7be1f8_71b243e6","updated":"2015-03-04 01:27:18.000000000","message":"I don\u0027t think Cisco is not requiring us to put this line, we are just trying to be consistent with the rest of Rally files.","commit_id":"54f4f7ab03503674743af6906c5cfbf5c5a33f1f"},{"author":{"_account_id":8576,"name":"Yair Fried","email":"yfried@redhat.com","username":"yfried"},"change_message_id":"ed51195d8c3752fd872d462e83b7f6f9b8841258","unresolved":false,"context_lines":[{"line_number":32,"context_line":"                                **kwargs):"},{"line_number":33,"context_line":"        \"\"\"Create containers and objects then list all objects."},{"line_number":34,"context_line":""},{"line_number":35,"context_line":"        :param containers_per_account: int, number of containers to create"},{"line_number":36,"context_line":"        :param objects_per_container: int, number of objects to upload"},{"line_number":37,"context_line":"        :param object_size: int, temporary local object size"},{"line_number":38,"context_line":"        :param kwargs: dict, optional parameters to create container"}],"source_content_type":"text/x-python","patch_set":2,"id":"ba7be1f8_71ade39a","line":35,"updated":"2015-03-03 14:48:32.000000000","message":"not sure that variable type (ie int) is required. seems inconsistent with the rest of rally","commit_id":"54f4f7ab03503674743af6906c5cfbf5c5a33f1f"},{"author":{"_account_id":10475,"name":"Alexander Maretskiy","email":"amaretskiy@mirantis.com","username":"maretskiy"},"change_message_id":"8c86f9477df7808c66d658f32ff70714de221a6e","unresolved":false,"context_lines":[{"line_number":32,"context_line":"                                **kwargs):"},{"line_number":33,"context_line":"        \"\"\"Create containers and objects then list all objects."},{"line_number":34,"context_line":""},{"line_number":35,"context_line":"        :param containers_per_account: int, number of containers to create"},{"line_number":36,"context_line":"        :param objects_per_container: int, number of objects to upload"},{"line_number":37,"context_line":"        :param object_size: int, temporary local object size"},{"line_number":38,"context_line":"        :param kwargs: dict, optional parameters to create container"}],"source_content_type":"text/x-python","patch_set":2,"id":"ba7be1f8_f498e176","line":35,"in_reply_to":"ba7be1f8_71ade39a","updated":"2015-03-03 15:01:36.000000000","message":"This docstring looks nice for me\n\nParameters types is *very* important data, and this must be defined in docstring.\n\nIf you see missed types somewhere in the project - this is the topic to fix that :)","commit_id":"54f4f7ab03503674743af6906c5cfbf5c5a33f1f"},{"author":{"_account_id":6172,"name":"Boris Pavlovic","email":"boris@pavlovic.me","username":"boris-42"},"change_message_id":"614ac934fa6ba8e2703f22350fe0c471c84e1113","unresolved":false,"context_lines":[{"line_number":27,"context_line":"    @validation.required_services(consts.Service.SWIFT)"},{"line_number":28,"context_line":"    @validation.required_openstack(users\u003dTrue)"},{"line_number":29,"context_line":"    @base.scenario(context\u003d{\"cleanup\": [\"swift\"]})"},{"line_number":30,"context_line":"    def create_and_list_objects(self, containers_per_account\u003d1,"},{"line_number":31,"context_line":"                                objects_per_container\u003d1, object_size\u003d1024,"},{"line_number":32,"context_line":"                                **kwargs):"},{"line_number":33,"context_line":"        \"\"\"Create containers and objects then list all objects."}],"source_content_type":"text/x-python","patch_set":4,"id":"9a80dd14_5ec27553","line":30,"updated":"2015-03-09 23:54:35.000000000","message":"name is actually misleading because we are creating containers and objects.","commit_id":"5f521aa08e7a832b023c10fcee259617938f0c46"},{"author":{"_account_id":15029,"name":"John Wu","email":"weiwu@cisco.com","username":"johnwwu"},"change_message_id":"800f6013fb4f37569d5785faef3818ce8cc3439a","unresolved":false,"context_lines":[{"line_number":27,"context_line":"    @validation.required_services(consts.Service.SWIFT)"},{"line_number":28,"context_line":"    @validation.required_openstack(users\u003dTrue)"},{"line_number":29,"context_line":"    @base.scenario(context\u003d{\"cleanup\": [\"swift\"]})"},{"line_number":30,"context_line":"    def create_and_list_objects(self, containers_per_account\u003d1,"},{"line_number":31,"context_line":"                                objects_per_container\u003d1, object_size\u003d1024,"},{"line_number":32,"context_line":"                                **kwargs):"},{"line_number":33,"context_line":"        \"\"\"Create containers and objects then list all objects."}],"source_content_type":"text/x-python","patch_set":4,"id":"9a80dd14_44a9c822","line":30,"in_reply_to":"9a80dd14_5ec27553","updated":"2015-03-11 03:29:26.000000000","message":"For now I have changed all the scenario names to:\n- create_container_and_object_then_list_objects\n- create_container_and_object_then_delete_all\n- create container_and_object_then_download_object\n\nPlease let me know if this makes more sense or not.","commit_id":"5f521aa08e7a832b023c10fcee259617938f0c46"},{"author":{"_account_id":6172,"name":"Boris Pavlovic","email":"boris@pavlovic.me","username":"boris-42"},"change_message_id":"614ac934fa6ba8e2703f22350fe0c471c84e1113","unresolved":false,"context_lines":[{"line_number":28,"context_line":"    @validation.required_openstack(users\u003dTrue)"},{"line_number":29,"context_line":"    @base.scenario(context\u003d{\"cleanup\": [\"swift\"]})"},{"line_number":30,"context_line":"    def create_and_list_objects(self, containers_per_account\u003d1,"},{"line_number":31,"context_line":"                                objects_per_container\u003d1, object_size\u003d1024,"},{"line_number":32,"context_line":"                                **kwargs):"},{"line_number":33,"context_line":"        \"\"\"Create containers and objects then list all objects."},{"line_number":34,"context_line":""}],"source_content_type":"text/x-python","patch_set":4,"id":"9a80dd14_5eec35bb","line":31,"updated":"2015-03-09 23:54:35.000000000","message":"Do we actually need to create N containers on every iteration. \n\nI believe it\u0027s better to specify amount of \"times\" in runner to repeat this N times that will be equal to containers_per_account/amount_of_users.","commit_id":"5f521aa08e7a832b023c10fcee259617938f0c46"},{"author":{"_account_id":15029,"name":"John Wu","email":"weiwu@cisco.com","username":"johnwwu"},"change_message_id":"800f6013fb4f37569d5785faef3818ce8cc3439a","unresolved":false,"context_lines":[{"line_number":28,"context_line":"    @validation.required_openstack(users\u003dTrue)"},{"line_number":29,"context_line":"    @base.scenario(context\u003d{\"cleanup\": [\"swift\"]})"},{"line_number":30,"context_line":"    def create_and_list_objects(self, containers_per_account\u003d1,"},{"line_number":31,"context_line":"                                objects_per_container\u003d1, object_size\u003d1024,"},{"line_number":32,"context_line":"                                **kwargs):"},{"line_number":33,"context_line":"        \"\"\"Create containers and objects then list all objects."},{"line_number":34,"context_line":""}],"source_content_type":"text/x-python","patch_set":4,"id":"9a80dd14_2475b4ca","line":31,"in_reply_to":"9a80dd14_5eec35bb","updated":"2015-03-11 03:29:26.000000000","message":"Ok, I have removed it from all the scenarios.","commit_id":"5f521aa08e7a832b023c10fcee259617938f0c46"},{"author":{"_account_id":6172,"name":"Boris Pavlovic","email":"boris@pavlovic.me","username":"boris-42"},"change_message_id":"614ac934fa6ba8e2703f22350fe0c471c84e1113","unresolved":false,"context_lines":[{"line_number":43,"context_line":"            # set dummy file to specified object size"},{"line_number":44,"context_line":"            dummy_file.truncate(object_size)"},{"line_number":45,"context_line":"            # create container"},{"line_number":46,"context_line":"            for i in range(containers_per_account):"},{"line_number":47,"context_line":"                container_name \u003d self._generate_random_name("},{"line_number":48,"context_line":"                                          prefix\u003d\"rally_ctx_container_\")"},{"line_number":49,"context_line":"                self._create_container(container_name, **kwargs)"}],"source_content_type":"text/x-python","patch_set":4,"id":"9a80dd14_bedc5147","line":46,"updated":"2015-03-09 23:54:35.000000000","message":"Rally is not designed to call atomic actions in loop. \n\nYou should rather use AtomicAction class directly and do things like in designate:\n\n  https://github.com/stackforge/rally/blob/master/rally/benchmark/scenarios/designate/basic.py#L132-L135","commit_id":"5f521aa08e7a832b023c10fcee259617938f0c46"},{"author":{"_account_id":15029,"name":"John Wu","email":"weiwu@cisco.com","username":"johnwwu"},"change_message_id":"800f6013fb4f37569d5785faef3818ce8cc3439a","unresolved":false,"context_lines":[{"line_number":43,"context_line":"            # set dummy file to specified object size"},{"line_number":44,"context_line":"            dummy_file.truncate(object_size)"},{"line_number":45,"context_line":"            # create container"},{"line_number":46,"context_line":"            for i in range(containers_per_account):"},{"line_number":47,"context_line":"                container_name \u003d self._generate_random_name("},{"line_number":48,"context_line":"                                          prefix\u003d\"rally_ctx_container_\")"},{"line_number":49,"context_line":"                self._create_container(container_name, **kwargs)"}],"source_content_type":"text/x-python","patch_set":4,"id":"9a80dd14_ca25bf5c","line":46,"in_reply_to":"9a80dd14_bedc5147","updated":"2015-03-11 03:29:26.000000000","message":"Done","commit_id":"5f521aa08e7a832b023c10fcee259617938f0c46"},{"author":{"_account_id":6172,"name":"Boris Pavlovic","email":"boris@pavlovic.me","username":"boris-42"},"change_message_id":"614ac934fa6ba8e2703f22350fe0c471c84e1113","unresolved":false,"context_lines":[{"line_number":44,"context_line":"            dummy_file.truncate(object_size)"},{"line_number":45,"context_line":"            # create container"},{"line_number":46,"context_line":"            for i in range(containers_per_account):"},{"line_number":47,"context_line":"                container_name \u003d self._generate_random_name("},{"line_number":48,"context_line":"                                          prefix\u003d\"rally_ctx_container_\")"},{"line_number":49,"context_line":"                self._create_container(container_name, **kwargs)"},{"line_number":50,"context_line":"                objects_dict[container_name] \u003d list()"}],"source_content_type":"text/x-python","patch_set":4,"id":"9a80dd14_fe56c95a","line":47,"updated":"2015-03-09 23:54:35.000000000","message":"Put this to _create_container and _create_object methods, to avoid code duplication in future. We did this for nova, and working on refactoring glance.","commit_id":"5f521aa08e7a832b023c10fcee259617938f0c46"},{"author":{"_account_id":15029,"name":"John Wu","email":"weiwu@cisco.com","username":"johnwwu"},"change_message_id":"800f6013fb4f37569d5785faef3818ce8cc3439a","unresolved":false,"context_lines":[{"line_number":44,"context_line":"            dummy_file.truncate(object_size)"},{"line_number":45,"context_line":"            # create container"},{"line_number":46,"context_line":"            for i in range(containers_per_account):"},{"line_number":47,"context_line":"                container_name \u003d self._generate_random_name("},{"line_number":48,"context_line":"                                          prefix\u003d\"rally_ctx_container_\")"},{"line_number":49,"context_line":"                self._create_container(container_name, **kwargs)"},{"line_number":50,"context_line":"                objects_dict[container_name] \u003d list()"}],"source_content_type":"text/x-python","patch_set":4,"id":"9a80dd14_36a92f25","line":47,"in_reply_to":"9a80dd14_fe56c95a","updated":"2015-03-11 03:29:26.000000000","message":"Done","commit_id":"5f521aa08e7a832b023c10fcee259617938f0c46"},{"author":{"_account_id":6172,"name":"Boris Pavlovic","email":"boris@pavlovic.me","username":"boris-42"},"change_message_id":"614ac934fa6ba8e2703f22350fe0c471c84e1113","unresolved":false,"context_lines":[{"line_number":68,"context_line":"    @validation.required_openstack(users\u003dTrue)"},{"line_number":69,"context_line":"    @base.scenario(context\u003d{\"cleanup\": [\"swift\"]})"},{"line_number":70,"context_line":"    def create_and_delete_object(self, containers_per_account\u003d1,"},{"line_number":71,"context_line":"                                 objects_per_container\u003d1, object_size\u003d1024,"},{"line_number":72,"context_line":"                                 **kwargs):"},{"line_number":73,"context_line":"        \"\"\"Create and delete containers and objects."},{"line_number":74,"context_line":""}],"source_content_type":"text/x-python","patch_set":4,"id":"9a80dd14_deeae572","line":71,"updated":"2015-03-09 23:54:35.000000000","message":"same comments here as in previous patch.","commit_id":"5f521aa08e7a832b023c10fcee259617938f0c46"},{"author":{"_account_id":15029,"name":"John Wu","email":"weiwu@cisco.com","username":"johnwwu"},"change_message_id":"800f6013fb4f37569d5785faef3818ce8cc3439a","unresolved":false,"context_lines":[{"line_number":68,"context_line":"    @validation.required_openstack(users\u003dTrue)"},{"line_number":69,"context_line":"    @base.scenario(context\u003d{\"cleanup\": [\"swift\"]})"},{"line_number":70,"context_line":"    def create_and_delete_object(self, containers_per_account\u003d1,"},{"line_number":71,"context_line":"                                 objects_per_container\u003d1, object_size\u003d1024,"},{"line_number":72,"context_line":"                                 **kwargs):"},{"line_number":73,"context_line":"        \"\"\"Create and delete containers and objects."},{"line_number":74,"context_line":""}],"source_content_type":"text/x-python","patch_set":4,"id":"9a80dd14_668f7476","line":71,"in_reply_to":"9a80dd14_deeae572","updated":"2015-03-11 03:29:26.000000000","message":"Done, made the name change.","commit_id":"5f521aa08e7a832b023c10fcee259617938f0c46"},{"author":{"_account_id":10475,"name":"Alexander Maretskiy","email":"amaretskiy@mirantis.com","username":"maretskiy"},"change_message_id":"98bedd02b24b473fe65a5e2dd74d6827e40689f9","unresolved":false,"context_lines":[{"line_number":49,"context_line":"                    self._upload_object(container_name, dummy_file,"},{"line_number":50,"context_line":"                                        atomic_action\u003dFalse)"},{"line_number":51,"context_line":"        finally:"},{"line_number":52,"context_line":"            # delete dummy file"},{"line_number":53,"context_line":"            dummy_file.close()"},{"line_number":54,"context_line":""},{"line_number":55,"context_line":"        self._list_objects(container_name)"}],"source_content_type":"text/x-python","patch_set":5,"id":"9a80dd14_d484b40c","line":52,"updated":"2015-03-13 16:48:52.000000000","message":"This comment is obvious","commit_id":"8306c6168f27a7f2a9969540206c187f10f0b3a2"},{"author":{"_account_id":15029,"name":"John Wu","email":"weiwu@cisco.com","username":"johnwwu"},"change_message_id":"2fdbe33a77f425195a4bd82019ddb3190bbcc865","unresolved":false,"context_lines":[{"line_number":49,"context_line":"                    self._upload_object(container_name, dummy_file,"},{"line_number":50,"context_line":"                                        atomic_action\u003dFalse)"},{"line_number":51,"context_line":"        finally:"},{"line_number":52,"context_line":"            # delete dummy file"},{"line_number":53,"context_line":"            dummy_file.close()"},{"line_number":54,"context_line":""},{"line_number":55,"context_line":"        self._list_objects(container_name)"}],"source_content_type":"text/x-python","patch_set":5,"id":"9a80dd14_2e74dcfc","line":52,"in_reply_to":"9a80dd14_d484b40c","updated":"2015-03-13 18:39:09.000000000","message":"Done","commit_id":"8306c6168f27a7f2a9969540206c187f10f0b3a2"},{"author":{"_account_id":10475,"name":"Alexander Maretskiy","email":"amaretskiy@mirantis.com","username":"maretskiy"},"change_message_id":"98bedd02b24b473fe65a5e2dd74d6827e40689f9","unresolved":false,"context_lines":[{"line_number":83,"context_line":"                                                     atomic_action\u003dFalse)"},{"line_number":84,"context_line":"                    objects_list.append(object_name)"},{"line_number":85,"context_line":"        finally:"},{"line_number":86,"context_line":"            # delete dummy file"},{"line_number":87,"context_line":"            dummy_file.close()"},{"line_number":88,"context_line":""},{"line_number":89,"context_line":"        key \u003d \"swift.delete_%s_objects\" % objects_per_container"}],"source_content_type":"text/x-python","patch_set":5,"id":"9a80dd14_948ebc2c","line":86,"updated":"2015-03-13 16:48:52.000000000","message":"ditto","commit_id":"8306c6168f27a7f2a9969540206c187f10f0b3a2"},{"author":{"_account_id":15029,"name":"John Wu","email":"weiwu@cisco.com","username":"johnwwu"},"change_message_id":"2fdbe33a77f425195a4bd82019ddb3190bbcc865","unresolved":false,"context_lines":[{"line_number":83,"context_line":"                                                     atomic_action\u003dFalse)"},{"line_number":84,"context_line":"                    objects_list.append(object_name)"},{"line_number":85,"context_line":"        finally:"},{"line_number":86,"context_line":"            # delete dummy file"},{"line_number":87,"context_line":"            dummy_file.close()"},{"line_number":88,"context_line":""},{"line_number":89,"context_line":"        key \u003d \"swift.delete_%s_objects\" % objects_per_container"}],"source_content_type":"text/x-python","patch_set":5,"id":"9a80dd14_0e52b866","line":86,"in_reply_to":"9a80dd14_948ebc2c","updated":"2015-03-13 18:39:09.000000000","message":"Done","commit_id":"8306c6168f27a7f2a9969540206c187f10f0b3a2"},{"author":{"_account_id":10475,"name":"Alexander Maretskiy","email":"amaretskiy@mirantis.com","username":"maretskiy"},"change_message_id":"98bedd02b24b473fe65a5e2dd74d6827e40689f9","unresolved":false,"context_lines":[{"line_number":122,"context_line":"                                                     atomic_action\u003dFalse)"},{"line_number":123,"context_line":"                    objects_list.append(object_name)"},{"line_number":124,"context_line":"        finally:"},{"line_number":125,"context_line":"            # delete dummy file"},{"line_number":126,"context_line":"            dummy_file.close()"},{"line_number":127,"context_line":""},{"line_number":128,"context_line":"        key \u003d \"swift.download_%s_objects\" % objects_per_container"}],"source_content_type":"text/x-python","patch_set":5,"id":"9a80dd14_349c306a","line":125,"updated":"2015-03-13 16:48:52.000000000","message":"ditto","commit_id":"8306c6168f27a7f2a9969540206c187f10f0b3a2"},{"author":{"_account_id":15029,"name":"John Wu","email":"weiwu@cisco.com","username":"johnwwu"},"change_message_id":"2fdbe33a77f425195a4bd82019ddb3190bbcc865","unresolved":false,"context_lines":[{"line_number":122,"context_line":"                                                     atomic_action\u003dFalse)"},{"line_number":123,"context_line":"                    objects_list.append(object_name)"},{"line_number":124,"context_line":"        finally:"},{"line_number":125,"context_line":"            # delete dummy file"},{"line_number":126,"context_line":"            dummy_file.close()"},{"line_number":127,"context_line":""},{"line_number":128,"context_line":"        key \u003d \"swift.download_%s_objects\" % objects_per_container"}],"source_content_type":"text/x-python","patch_set":5,"id":"9a80dd14_6ec89422","line":125,"in_reply_to":"9a80dd14_349c306a","updated":"2015-03-13 18:39:09.000000000","message":"Done","commit_id":"8306c6168f27a7f2a9969540206c187f10f0b3a2"},{"author":{"_account_id":8122,"name":"Cyril Roelandt","email":"cyril@redhat.com","username":"cyril.roelandt.enovance"},"change_message_id":"afb970a9e5e1591fe8465a7770d1dcc6b3372cf3","unresolved":false,"context_lines":[{"line_number":41,"context_line":"        try:"},{"line_number":42,"context_line":"            # set dummy file to specified object size"},{"line_number":43,"context_line":"            dummy_file.truncate(object_size)"},{"line_number":44,"context_line":"            _headers, container_name \u003d self._create_container(**kwargs)"},{"line_number":45,"context_line":"            key \u003d \"swift.create_%s_objects\" % objects_per_container"},{"line_number":46,"context_line":"            with base.AtomicAction(self, key):"},{"line_number":47,"context_line":"                for i in range(objects_per_container):"}],"source_content_type":"text/x-python","patch_set":8,"id":"1a6ced46_ed5a5d82","line":44,"updated":"2015-03-23 15:17:46.000000000","message":"\"_headers\" should be \"_\". Also, do we really want the methods from utils.py to return the headers?","commit_id":"b233837898a3c7cb7180fe9ca1f5f57161056ff7"},{"author":{"_account_id":15029,"name":"John Wu","email":"weiwu@cisco.com","username":"johnwwu"},"change_message_id":"56f9f35967bbdfec8fa60920b6e7cb149d8bbe8d","unresolved":false,"context_lines":[{"line_number":41,"context_line":"        try:"},{"line_number":42,"context_line":"            # set dummy file to specified object size"},{"line_number":43,"context_line":"            dummy_file.truncate(object_size)"},{"line_number":44,"context_line":"            _headers, container_name \u003d self._create_container(**kwargs)"},{"line_number":45,"context_line":"            key \u003d \"swift.create_%s_objects\" % objects_per_container"},{"line_number":46,"context_line":"            with base.AtomicAction(self, key):"},{"line_number":47,"context_line":"                for i in range(objects_per_container):"}],"source_content_type":"text/x-python","patch_set":8,"id":"1a6ced46_1c699bf9","line":44,"in_reply_to":"1a6ced46_ed5a5d82","updated":"2015-03-24 01:31:32.000000000","message":"s/_headers/dummy/\n\nI thought about this before but decided to return the headers also just in case this info is needed in another context.  For example, the headers return info like: content type for object\u0027s MIME type, bytes for object\u0027s size, Etag for the object\u0027s MD5 checksum, etc... which can be useful for some other type of testing.","commit_id":"b233837898a3c7cb7180fe9ca1f5f57161056ff7"},{"author":{"_account_id":8122,"name":"Cyril Roelandt","email":"cyril@redhat.com","username":"cyril.roelandt.enovance"},"change_message_id":"afb970a9e5e1591fe8465a7770d1dcc6b3372cf3","unresolved":false,"context_lines":[{"line_number":49,"context_line":"                    self._upload_object(container_name, dummy_file,"},{"line_number":50,"context_line":"                                        atomic_action\u003dFalse)"},{"line_number":51,"context_line":"        finally:"},{"line_number":52,"context_line":"            dummy_file.close()"},{"line_number":53,"context_line":""},{"line_number":54,"context_line":"        self._list_objects(container_name)"},{"line_number":55,"context_line":""}],"source_content_type":"text/x-python","patch_set":8,"id":"1a6ced46_ed833dca","line":52,"updated":"2015-03-23 15:17:46.000000000","message":"Instead of this \"try: ... finally:...\", maybe you could use \"with tempfile.TemporaryFile() as dummy_file:...\". Same for all other uses of \"try: finally\" :)","commit_id":"b233837898a3c7cb7180fe9ca1f5f57161056ff7"},{"author":{"_account_id":15029,"name":"John Wu","email":"weiwu@cisco.com","username":"johnwwu"},"change_message_id":"56f9f35967bbdfec8fa60920b6e7cb149d8bbe8d","unresolved":false,"context_lines":[{"line_number":49,"context_line":"                    self._upload_object(container_name, dummy_file,"},{"line_number":50,"context_line":"                                        atomic_action\u003dFalse)"},{"line_number":51,"context_line":"        finally:"},{"line_number":52,"context_line":"            dummy_file.close()"},{"line_number":53,"context_line":""},{"line_number":54,"context_line":"        self._list_objects(container_name)"},{"line_number":55,"context_line":""}],"source_content_type":"text/x-python","patch_set":8,"id":"1a6ced46_4245ee6e","line":52,"in_reply_to":"1a6ced46_81e532aa","updated":"2015-03-24 01:31:32.000000000","message":"Done","commit_id":"b233837898a3c7cb7180fe9ca1f5f57161056ff7"},{"author":{"_account_id":6172,"name":"Boris Pavlovic","email":"boris@pavlovic.me","username":"boris-42"},"change_message_id":"b0a817186513c40a6575e3374db8c3e4f64aeee3","unresolved":false,"context_lines":[{"line_number":49,"context_line":"                    self._upload_object(container_name, dummy_file,"},{"line_number":50,"context_line":"                                        atomic_action\u003dFalse)"},{"line_number":51,"context_line":"        finally:"},{"line_number":52,"context_line":"            dummy_file.close()"},{"line_number":53,"context_line":""},{"line_number":54,"context_line":"        self._list_objects(container_name)"},{"line_number":55,"context_line":""}],"source_content_type":"text/x-python","patch_set":8,"id":"1a6ced46_81e532aa","line":52,"in_reply_to":"1a6ced46_ed833dca","updated":"2015-03-23 15:34:05.000000000","message":"+1","commit_id":"b233837898a3c7cb7180fe9ca1f5f57161056ff7"}],"rally/benchmark/scenarios/swift/utils.py":[{"author":{"_account_id":10475,"name":"Alexander Maretskiy","email":"amaretskiy@mirantis.com","username":"maretskiy"},"change_message_id":"1083d7a96b44eb7734ad1caf8cd22f0905b3f57e","unresolved":false,"context_lines":[{"line_number":43,"context_line":"        return self.clients(\"swift\").put_container(container_name, **kwargs)"},{"line_number":44,"context_line":""},{"line_number":45,"context_line":"    @base.atomic_action_timer(\"swift.delete_container\")"},{"line_number":46,"context_line":"    def _delete_container(self, container, **kwargs):"},{"line_number":47,"context_line":"        \"\"\"Delete given container."},{"line_number":48,"context_line":""},{"line_number":49,"context_line":"        :param container: The container to delete."}],"source_content_type":"text/x-python","patch_set":1,"id":"ba7be1f8_16369d52","line":46,"updated":"2015-03-02 15:18:42.000000000","message":"I propose to rename s/container/container_name/","commit_id":"8a81f490c5e46b6af41752899482beffa360af6a"},{"author":{"_account_id":10475,"name":"Alexander Maretskiy","email":"amaretskiy@mirantis.com","username":"maretskiy"},"change_message_id":"1083d7a96b44eb7734ad1caf8cd22f0905b3f57e","unresolved":false,"context_lines":[{"line_number":46,"context_line":"    def _delete_container(self, container, **kwargs):"},{"line_number":47,"context_line":"        \"\"\"Delete given container."},{"line_number":48,"context_line":""},{"line_number":49,"context_line":"        :param container: The container to delete."},{"line_number":50,"context_line":"        :param kwargs: Other optional parameters to delete_container."},{"line_number":51,"context_line":"        \"\"\""},{"line_number":52,"context_line":"        return self.clients(\"swift\").delete_container(container, **kwargs)"}],"source_content_type":"text/x-python","patch_set":1,"id":"ba7be1f8_9620cdf8","line":49,"updated":"2015-03-02 15:18:42.000000000","message":"param looks like instance but that is actually a string.\n\n :param container_name: str container name to delete","commit_id":"8a81f490c5e46b6af41752899482beffa360af6a"},{"author":{"_account_id":10475,"name":"Alexander Maretskiy","email":"amaretskiy@mirantis.com","username":"maretskiy"},"change_message_id":"1083d7a96b44eb7734ad1caf8cd22f0905b3f57e","unresolved":false,"context_lines":[{"line_number":64,"context_line":"                                                   **kwargs)"},{"line_number":65,"context_line":""},{"line_number":66,"context_line":"    @base.atomic_action_timer(\"swift.upload_object\")"},{"line_number":67,"context_line":"    def _upload_object(self, container, content, object_name\u003dNone, **kwargs):"},{"line_number":68,"context_line":"        \"\"\"Upload content to a given container."},{"line_number":69,"context_line":""},{"line_number":70,"context_line":"        :param container: The container to upload to."}],"source_content_type":"text/x-python","patch_set":1,"id":"ba7be1f8_56549553","line":67,"updated":"2015-03-02 15:18:42.000000000","message":"ditto s/container/container_name/","commit_id":"8a81f490c5e46b6af41752899482beffa360af6a"},{"author":{"_account_id":10475,"name":"Alexander Maretskiy","email":"amaretskiy@mirantis.com","username":"maretskiy"},"change_message_id":"1083d7a96b44eb7734ad1caf8cd22f0905b3f57e","unresolved":false,"context_lines":[{"line_number":68,"context_line":"        \"\"\"Upload content to a given container."},{"line_number":69,"context_line":""},{"line_number":70,"context_line":"        :param container: The container to upload to."},{"line_number":71,"context_line":"        :param content: Content to upload."},{"line_number":72,"context_line":"        :param object_name: String used to name the content."},{"line_number":73,"context_line":"        :param kwargs: Other optional parameters to put_object."},{"line_number":74,"context_line":"        \"\"\""}],"source_content_type":"text/x-python","patch_set":1,"id":"ba7be1f8_768439b1","line":71,"updated":"2015-03-02 15:18:42.000000000","message":"Please add at type definition to each param, for example:\n\n :param content: file stream, content to upload.","commit_id":"8a81f490c5e46b6af41752899482beffa360af6a"},{"author":{"_account_id":8576,"name":"Yair Fried","email":"yfried@redhat.com","username":"yfried"},"change_message_id":"ed51195d8c3752fd872d462e83b7f6f9b8841258","unresolved":false,"context_lines":[{"line_number":30,"context_line":"                                                 **kwargs)"},{"line_number":31,"context_line":""},{"line_number":32,"context_line":"    @base.atomic_action_timer(\"swift.create_container\")"},{"line_number":33,"context_line":"    def _create_container_name(self, container_name, public\u003dFalse, **kwargs):"},{"line_number":34,"context_line":"        \"\"\"Create a new container with given name."},{"line_number":35,"context_line":""},{"line_number":36,"context_line":"        :param container_name: str, name of the container to create"}],"source_content_type":"text/x-python","patch_set":2,"id":"ba7be1f8_11eae70e","line":33,"updated":"2015-03-03 14:48:32.000000000","message":"create_container_WITH_name","commit_id":"54f4f7ab03503674743af6906c5cfbf5c5a33f1f"},{"author":{"_account_id":15029,"name":"John Wu","email":"weiwu@cisco.com","username":"johnwwu"},"change_message_id":"7ca25e5406d41f3580f719970e3f2b55a5975f54","unresolved":false,"context_lines":[{"line_number":30,"context_line":"                                                 **kwargs)"},{"line_number":31,"context_line":""},{"line_number":32,"context_line":"    @base.atomic_action_timer(\"swift.create_container\")"},{"line_number":33,"context_line":"    def _create_container_name(self, container_name, public\u003dFalse, **kwargs):"},{"line_number":34,"context_line":"        \"\"\"Create a new container with given name."},{"line_number":35,"context_line":""},{"line_number":36,"context_line":"        :param container_name: str, name of the container to create"}],"source_content_type":"text/x-python","patch_set":2,"id":"ba7be1f8_8f921955","line":33,"in_reply_to":"ba7be1f8_11eae70e","updated":"2015-03-04 01:27:18.000000000","message":"Originally we started with just \"_create_container\" to mimic what Horizon and CLI uses, this kind of makes more sense to me.  Changing to \"_create_container_name\" still kind of makes sense since Swift API behavior was difference from the other components.  Now if we change it to \"_create_container_WITH_name\", it starting to get quite long and the format feels like it doesn\u0027t quite follow rest of Rally\u0027s format.\n\nWe are open to make the change to whichever makes more sense.","commit_id":"54f4f7ab03503674743af6906c5cfbf5c5a33f1f"},{"author":{"_account_id":8576,"name":"Yair Fried","email":"yfried@redhat.com","username":"yfried"},"change_message_id":"ed51195d8c3752fd872d462e83b7f6f9b8841258","unresolved":false,"context_lines":[{"line_number":43,"context_line":"        return self.clients(\"swift\").put_container(container_name, **kwargs)"},{"line_number":44,"context_line":""},{"line_number":45,"context_line":"    @base.atomic_action_timer(\"swift.delete_container\")"},{"line_number":46,"context_line":"    def _delete_container_name(self, container_name, **kwargs):"},{"line_number":47,"context_line":"        \"\"\"Delete a container with given name."},{"line_number":48,"context_line":""},{"line_number":49,"context_line":"        :param container_name: str, name of the container to delete"}],"source_content_type":"text/x-python","patch_set":2,"id":"ba7be1f8_715a43f3","line":46,"updated":"2015-03-03 14:48:32.000000000","message":"delete_container_BY_name","commit_id":"54f4f7ab03503674743af6906c5cfbf5c5a33f1f"},{"author":{"_account_id":15029,"name":"John Wu","email":"weiwu@cisco.com","username":"johnwwu"},"change_message_id":"7ca25e5406d41f3580f719970e3f2b55a5975f54","unresolved":false,"context_lines":[{"line_number":43,"context_line":"        return self.clients(\"swift\").put_container(container_name, **kwargs)"},{"line_number":44,"context_line":""},{"line_number":45,"context_line":"    @base.atomic_action_timer(\"swift.delete_container\")"},{"line_number":46,"context_line":"    def _delete_container_name(self, container_name, **kwargs):"},{"line_number":47,"context_line":"        \"\"\"Delete a container with given name."},{"line_number":48,"context_line":""},{"line_number":49,"context_line":"        :param container_name: str, name of the container to delete"}],"source_content_type":"text/x-python","patch_set":2,"id":"ba7be1f8_afe35da2","line":46,"in_reply_to":"ba7be1f8_715a43f3","updated":"2015-03-04 01:27:18.000000000","message":"Same concern as \"_create_container_name\", will make the change to whichever makes more sense.","commit_id":"54f4f7ab03503674743af6906c5cfbf5c5a33f1f"},{"author":{"_account_id":8576,"name":"Yair Fried","email":"yfried@redhat.com","username":"yfried"},"change_message_id":"b95637761fb622030584d6ee4490b68ddcd1cb7a","unresolved":false,"context_lines":[{"line_number":30,"context_line":"                                                 **kwargs)"},{"line_number":31,"context_line":""},{"line_number":32,"context_line":"    @base.atomic_action_timer(\"swift.create_container\")"},{"line_number":33,"context_line":"    def _create_container_WITH_name(self, container_name, public\u003dFalse,"},{"line_number":34,"context_line":"                                    **kwargs):"},{"line_number":35,"context_line":"        \"\"\"Create a new container with given name."},{"line_number":36,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"9a80dd14_ab38c3ef","line":33,"updated":"2015-03-08 08:46:33.000000000","message":"I\u0027m ok with \"create|delete_container\" if this is the proper swift API, but if you choose to make the name more specific, than you need to use a proper naming, as you aren\u0027t creating|deleting the container\u0027s name.\nThe UPPER case lettering uncalled for. I apologize for misleading you.\nLast - please use \"by\" instead of \"with\" for both delete and create.","commit_id":"ff74c2deecf17ee0f08afb17ce6fb7f48efb0bde"},{"author":{"_account_id":15029,"name":"John Wu","email":"weiwu@cisco.com","username":"johnwwu"},"change_message_id":"6988aa15e3ab0f94cba48806de1e6602501c6e60","unresolved":false,"context_lines":[{"line_number":30,"context_line":"                                                 **kwargs)"},{"line_number":31,"context_line":""},{"line_number":32,"context_line":"    @base.atomic_action_timer(\"swift.create_container\")"},{"line_number":33,"context_line":"    def _create_container_WITH_name(self, container_name, public\u003dFalse,"},{"line_number":34,"context_line":"                                    **kwargs):"},{"line_number":35,"context_line":"        \"\"\"Create a new container with given name."},{"line_number":36,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"9a80dd14_4e8e757a","line":33,"in_reply_to":"9a80dd14_ab38c3ef","updated":"2015-03-08 09:31:18.000000000","message":"Done, made the change to \"create|delete_container\".","commit_id":"ff74c2deecf17ee0f08afb17ce6fb7f48efb0bde"},{"author":{"_account_id":10475,"name":"Alexander Maretskiy","email":"amaretskiy@mirantis.com","username":"maretskiy"},"change_message_id":"98bedd02b24b473fe65a5e2dd74d6827e40689f9","unresolved":false,"context_lines":[{"line_number":26,"context_line":"        :param full_listing: bool, enable unlimit number of listing returned"},{"line_number":27,"context_line":"        :param kwargs: dict, other optional parameters to get_account"},{"line_number":28,"context_line":""},{"line_number":29,"context_line":"        returns: list of response headers and list of containers"},{"line_number":30,"context_line":"        \"\"\""},{"line_number":31,"context_line":"        return self.clients(\"swift\").get_account(full_listing\u003dfull_listing,"},{"line_number":32,"context_line":"                                                 **kwargs)"}],"source_content_type":"text/x-python","patch_set":5,"id":"9a80dd14_341d10bf","line":29,"updated":"2015-03-13 16:48:52.000000000","message":"s/returns:/:returns:/","commit_id":"8306c6168f27a7f2a9969540206c187f10f0b3a2"},{"author":{"_account_id":15029,"name":"John Wu","email":"weiwu@cisco.com","username":"johnwwu"},"change_message_id":"2fdbe33a77f425195a4bd82019ddb3190bbcc865","unresolved":false,"context_lines":[{"line_number":26,"context_line":"        :param full_listing: bool, enable unlimit number of listing returned"},{"line_number":27,"context_line":"        :param kwargs: dict, other optional parameters to get_account"},{"line_number":28,"context_line":""},{"line_number":29,"context_line":"        returns: list of response headers and list of containers"},{"line_number":30,"context_line":"        \"\"\""},{"line_number":31,"context_line":"        return self.clients(\"swift\").get_account(full_listing\u003dfull_listing,"},{"line_number":32,"context_line":"                                                 **kwargs)"}],"source_content_type":"text/x-python","patch_set":5,"id":"9a80dd14_ee02c43c","line":29,"in_reply_to":"9a80dd14_341d10bf","updated":"2015-03-13 18:39:09.000000000","message":"Done","commit_id":"8306c6168f27a7f2a9969540206c187f10f0b3a2"},{"author":{"_account_id":10475,"name":"Alexander Maretskiy","email":"amaretskiy@mirantis.com","username":"maretskiy"},"change_message_id":"98bedd02b24b473fe65a5e2dd74d6827e40689f9","unresolved":false,"context_lines":[{"line_number":49,"context_line":""},{"line_number":50,"context_line":"        if container_name is None:"},{"line_number":51,"context_line":"            container_name \u003d self._generate_random_name("},{"line_number":52,"context_line":"                                      prefix\u003d\"rally_ctx_container_\")"},{"line_number":53,"context_line":""},{"line_number":54,"context_line":"        if atomic_action:"},{"line_number":55,"context_line":"            with base.AtomicAction(self, \"swift.create_container\"):"}],"source_content_type":"text/x-python","patch_set":5,"id":"9a80dd14_b4f020fe","line":52,"updated":"2015-03-13 16:48:52.000000000","message":"s/_ctx_/_/\n\n`_ctx_\u0027 means this resource is created by context, not scenario","commit_id":"8306c6168f27a7f2a9969540206c187f10f0b3a2"},{"author":{"_account_id":15029,"name":"John Wu","email":"weiwu@cisco.com","username":"johnwwu"},"change_message_id":"2fdbe33a77f425195a4bd82019ddb3190bbcc865","unresolved":false,"context_lines":[{"line_number":49,"context_line":""},{"line_number":50,"context_line":"        if container_name is None:"},{"line_number":51,"context_line":"            container_name \u003d self._generate_random_name("},{"line_number":52,"context_line":"                                      prefix\u003d\"rally_ctx_container_\")"},{"line_number":53,"context_line":""},{"line_number":54,"context_line":"        if atomic_action:"},{"line_number":55,"context_line":"            with base.AtomicAction(self, \"swift.create_container\"):"}],"source_content_type":"text/x-python","patch_set":5,"id":"9a80dd14_47ebb3db","line":52,"in_reply_to":"9a80dd14_b4f020fe","updated":"2015-03-13 18:39:09.000000000","message":"Done","commit_id":"8306c6168f27a7f2a9969540206c187f10f0b3a2"},{"author":{"_account_id":10475,"name":"Alexander Maretskiy","email":"amaretskiy@mirantis.com","username":"maretskiy"},"change_message_id":"98bedd02b24b473fe65a5e2dd74d6827e40689f9","unresolved":false,"context_lines":[{"line_number":68,"context_line":"                              atomic action"},{"line_number":69,"context_line":"        :param kwargs: dict, other optional parameters to delete_container"},{"line_number":70,"context_line":""},{"line_number":71,"context_line":"        returns: list of response headers"},{"line_number":72,"context_line":"        \"\"\""},{"line_number":73,"context_line":"        if atomic_action:"},{"line_number":74,"context_line":"            with base.AtomicAction(self, \"swift.delete_container\"):"}],"source_content_type":"text/x-python","patch_set":5,"id":"9a80dd14_f46d3833","line":71,"updated":"2015-03-13 16:48:52.000000000","message":":returns:","commit_id":"8306c6168f27a7f2a9969540206c187f10f0b3a2"},{"author":{"_account_id":15029,"name":"John Wu","email":"weiwu@cisco.com","username":"johnwwu"},"change_message_id":"2fdbe33a77f425195a4bd82019ddb3190bbcc865","unresolved":false,"context_lines":[{"line_number":68,"context_line":"                              atomic action"},{"line_number":69,"context_line":"        :param kwargs: dict, other optional parameters to delete_container"},{"line_number":70,"context_line":""},{"line_number":71,"context_line":"        returns: list of response headers"},{"line_number":72,"context_line":"        \"\"\""},{"line_number":73,"context_line":"        if atomic_action:"},{"line_number":74,"context_line":"            with base.AtomicAction(self, \"swift.delete_container\"):"}],"source_content_type":"text/x-python","patch_set":5,"id":"9a80dd14_ae9c4c0f","line":71,"in_reply_to":"9a80dd14_f46d3833","updated":"2015-03-13 18:39:09.000000000","message":"Done","commit_id":"8306c6168f27a7f2a9969540206c187f10f0b3a2"},{"author":{"_account_id":10475,"name":"Alexander Maretskiy","email":"amaretskiy@mirantis.com","username":"maretskiy"},"change_message_id":"98bedd02b24b473fe65a5e2dd74d6827e40689f9","unresolved":false,"context_lines":[{"line_number":93,"context_line":"        if atomic_action:"},{"line_number":94,"context_line":"            with base.AtomicAction(self, \"swift.list_objects\"):"},{"line_number":95,"context_line":"                return self.clients(\"swift\").get_container("},{"line_number":96,"context_line":"                                                 container_name,"},{"line_number":97,"context_line":"                                                 full_listing\u003dfull_listing,"},{"line_number":98,"context_line":"                                                 **kwargs)"},{"line_number":99,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"9a80dd14_94a79cbc","line":96,"updated":"2015-03-13 16:48:52.000000000","message":"This indentation looks strange","commit_id":"8306c6168f27a7f2a9969540206c187f10f0b3a2"},{"author":{"_account_id":15029,"name":"John Wu","email":"weiwu@cisco.com","username":"johnwwu"},"change_message_id":"2fdbe33a77f425195a4bd82019ddb3190bbcc865","unresolved":false,"context_lines":[{"line_number":93,"context_line":"        if atomic_action:"},{"line_number":94,"context_line":"            with base.AtomicAction(self, \"swift.list_objects\"):"},{"line_number":95,"context_line":"                return self.clients(\"swift\").get_container("},{"line_number":96,"context_line":"                                                 container_name,"},{"line_number":97,"context_line":"                                                 full_listing\u003dfull_listing,"},{"line_number":98,"context_line":"                                                 **kwargs)"},{"line_number":99,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"9a80dd14_e76827bc","line":96,"in_reply_to":"9a80dd14_94a79cbc","updated":"2015-03-13 18:39:09.000000000","message":"I agree but haven\u0027t found a better way to do this without changing the variable name.  How about something like this?\n\n                return self.clients(\"swift\").get_container(\n                                    container_name, full_listing\u003dfull_listing,\n                                    **kwargs)\n\nOr\n\n                return self.clients(\"swift\").get_container(container_name, \n                                                           full_listing\u003d\n                                                               full_listing,\n                                                           **kwargs)","commit_id":"8306c6168f27a7f2a9969540206c187f10f0b3a2"},{"author":{"_account_id":9545,"name":"Andriy Kurilin","email":"andr.kurilin@gmail.com","username":"akurilin"},"change_message_id":"46fb6720e1c1d0a1c1ddc46eae58ed65397c76dd","unresolved":false,"context_lines":[{"line_number":93,"context_line":"        if atomic_action:"},{"line_number":94,"context_line":"            with base.AtomicAction(self, \"swift.list_objects\"):"},{"line_number":95,"context_line":"                return self.clients(\"swift\").get_container("},{"line_number":96,"context_line":"                                                 container_name,"},{"line_number":97,"context_line":"                                                 full_listing\u003dfull_listing,"},{"line_number":98,"context_line":"                                                 **kwargs)"},{"line_number":99,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"9a80dd14_19667351","line":96,"in_reply_to":"9a80dd14_94a79cbc","updated":"2015-03-13 23:37:11.000000000","message":"our ignore list allows such indentation:( https://github.com/stackforge/rally/blob/master/tox.ini#L48 I suppose, we should remove this rule from ignore list","commit_id":"8306c6168f27a7f2a9969540206c187f10f0b3a2"},{"author":{"_account_id":15029,"name":"John Wu","email":"weiwu@cisco.com","username":"johnwwu"},"change_message_id":"11ed0f4b06ffb7a44de7d1e727772d7c299d077b","unresolved":false,"context_lines":[{"line_number":93,"context_line":"        if atomic_action:"},{"line_number":94,"context_line":"            with base.AtomicAction(self, \"swift.list_objects\"):"},{"line_number":95,"context_line":"                return self.clients(\"swift\").get_container("},{"line_number":96,"context_line":"                                                 container_name,"},{"line_number":97,"context_line":"                                                 full_listing\u003dfull_listing,"},{"line_number":98,"context_line":"                                                 **kwargs)"},{"line_number":99,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"9a80dd14_c8a32b41","line":96,"in_reply_to":"9a80dd14_e76827bc","updated":"2015-03-13 22:18:26.000000000","message":"Actually the second one won\u0027t pass pep8, this will pass and it\u0027s very similar to the first one except all one line:\n\n                return self.clients(\"swift\").get_container(\n                           container_name, full_listing\u003dfull_listing, **kwargs)\n\nBut I\u0027m not sure if this is recommended according to:\nhttps://www.python.org/dev/peps/pep-0008/#indentation","commit_id":"8306c6168f27a7f2a9969540206c187f10f0b3a2"},{"author":{"_account_id":10475,"name":"Alexander Maretskiy","email":"amaretskiy@mirantis.com","username":"maretskiy"},"change_message_id":"98bedd02b24b473fe65a5e2dd74d6827e40689f9","unresolved":false,"context_lines":[{"line_number":116,"context_line":"        \"\"\""},{"line_number":117,"context_line":"        if object_name is None:"},{"line_number":118,"context_line":"            object_name \u003d self._generate_random_name("},{"line_number":119,"context_line":"                                   prefix\u003d\"rally_ctx_object_\")"},{"line_number":120,"context_line":""},{"line_number":121,"context_line":"        if atomic_action:"},{"line_number":122,"context_line":"            with base.AtomicAction(self, \"swift.upload_object\"):"}],"source_content_type":"text/x-python","patch_set":5,"id":"9a80dd14_745f88e5","line":119,"updated":"2015-03-13 16:48:52.000000000","message":"s/_ctx_/_/","commit_id":"8306c6168f27a7f2a9969540206c187f10f0b3a2"},{"author":{"_account_id":15029,"name":"John Wu","email":"weiwu@cisco.com","username":"johnwwu"},"change_message_id":"2fdbe33a77f425195a4bd82019ddb3190bbcc865","unresolved":false,"context_lines":[{"line_number":116,"context_line":"        \"\"\""},{"line_number":117,"context_line":"        if object_name is None:"},{"line_number":118,"context_line":"            object_name \u003d self._generate_random_name("},{"line_number":119,"context_line":"                                   prefix\u003d\"rally_ctx_object_\")"},{"line_number":120,"context_line":""},{"line_number":121,"context_line":"        if atomic_action:"},{"line_number":122,"context_line":"            with base.AtomicAction(self, \"swift.upload_object\"):"}],"source_content_type":"text/x-python","patch_set":5,"id":"9a80dd14_ce6fc0fa","line":119,"in_reply_to":"9a80dd14_745f88e5","updated":"2015-03-13 18:39:09.000000000","message":"Done","commit_id":"8306c6168f27a7f2a9969540206c187f10f0b3a2"},{"author":{"_account_id":10475,"name":"Alexander Maretskiy","email":"amaretskiy@mirantis.com","username":"maretskiy"},"change_message_id":"5ccfbf2d48701af448e3ebc09f9572d6c1a8dfd3","unresolved":false,"context_lines":[{"line_number":52,"context_line":"                prefix\u003d\"rally_container_\")"},{"line_number":53,"context_line":""},{"line_number":54,"context_line":"        if atomic_action:"},{"line_number":55,"context_line":"            with base.AtomicAction(self, \"swift.create_container\"):"},{"line_number":56,"context_line":"                return (self.clients(\"swift\").put_container(container_name,"},{"line_number":57,"context_line":"                                                            **kwargs),"},{"line_number":58,"context_line":"                        container_name)"}],"source_content_type":"text/x-python","patch_set":6,"id":"9a80dd14_75d9caf3","line":55,"updated":"2015-03-17 14:42:13.000000000","message":"If there will be another patch sets, I recommend make a small improvement to base.AtomicAction, so if specified action name is casted to boolean False, then skip updating atomic actions:\n\n\n swift/objects.py\n ----------------\n\n _headers, container_name \u003d self._create_container(\n     atomic_action\u003d\"swift.create_container\", **kwargs)\n\n swift/utils.py\n --------------\n\n # remove L54-58\n\n with base.AtomicAction(self, atomic_action):\n     return (self.clients(\"swift\").put_container(container_name,\n                                                 **kwargs),\n             container_name)","commit_id":"f2c1257b6a135a85539050acd7b8a8b53dd7ca5a"},{"author":{"_account_id":15029,"name":"John Wu","email":"weiwu@cisco.com","username":"johnwwu"},"change_message_id":"6a27f6b0ee3d6f7d5fd0d94b25b03805b885b4d2","unresolved":false,"context_lines":[{"line_number":52,"context_line":"                prefix\u003d\"rally_container_\")"},{"line_number":53,"context_line":""},{"line_number":54,"context_line":"        if atomic_action:"},{"line_number":55,"context_line":"            with base.AtomicAction(self, \"swift.create_container\"):"},{"line_number":56,"context_line":"                return (self.clients(\"swift\").put_container(container_name,"},{"line_number":57,"context_line":"                                                            **kwargs),"},{"line_number":58,"context_line":"                        container_name)"}],"source_content_type":"text/x-python","patch_set":6,"id":"9a80dd14_e2116305","line":55,"in_reply_to":"9a80dd14_75d9caf3","updated":"2015-03-18 02:35:31.000000000","message":"Done but I have implemented it a little different with atomic_action\u0027s default value being the name of the action.  If you think what you have originally proposed makes more sense, I can make the change and submit the patch again.\n\nAlso please take a look at how I modified base.AtomicAction, I\u0027m not quite sure if this is the best way to do this.","commit_id":"f2c1257b6a135a85539050acd7b8a8b53dd7ca5a"},{"author":{"_account_id":8576,"name":"Yair Fried","email":"yfried@redhat.com","username":"yfried"},"change_message_id":"dc77a3dee3634365f15e5b43fb4dc29919107c40","unresolved":false,"context_lines":[{"line_number":52,"context_line":"            container_name \u003d self._generate_random_name("},{"line_number":53,"context_line":"                prefix\u003d\"rally_container_\")"},{"line_number":54,"context_line":""},{"line_number":55,"context_line":"        with base.AtomicAction(self, atomic_action):"},{"line_number":56,"context_line":"            return (self.clients(\"swift\").put_container(container_name,"},{"line_number":57,"context_line":"                                                        **kwargs),"},{"line_number":58,"context_line":"                    container_name)"}],"source_content_type":"text/x-python","patch_set":7,"id":"9a80dd14_5e14ba9e","line":55,"updated":"2015-03-18 09:17:38.000000000","message":"see my comment on AtomicAction change.\nInstead of hacking AtomicAction, try something like\n\n  if atomic_action:\n     with base.AtomicAction(self, atomic_action):\n       return (self.clients(\"swift\").put_container(container_name, **kwargs), container_name)\n  else:\n    return (self.clients(\"swift\").put_container(container_name, **kwargs), container_name)\n\n\n\nIt\u0027s uglier, but it doesn\u0027t change AtomicAction from under the hood and it explicitly tells you what\u0027s happening","commit_id":"dc423a7957b4015e029382dec6ad70d2f98162ab"},{"author":{"_account_id":10475,"name":"Alexander Maretskiy","email":"amaretskiy@mirantis.com","username":"maretskiy"},"change_message_id":"4ef23798114c579cdd9aa2ae11839c9140c03e55","unresolved":false,"context_lines":[{"line_number":52,"context_line":"            container_name \u003d self._generate_random_name("},{"line_number":53,"context_line":"                prefix\u003d\"rally_container_\")"},{"line_number":54,"context_line":""},{"line_number":55,"context_line":"        with base.AtomicAction(self, atomic_action):"},{"line_number":56,"context_line":"            return (self.clients(\"swift\").put_container(container_name,"},{"line_number":57,"context_line":"                                                        **kwargs),"},{"line_number":58,"context_line":"                    container_name)"}],"source_content_type":"text/x-python","patch_set":7,"id":"9a80dd14_8cdfd5d5","line":55,"in_reply_to":"9a80dd14_5e14ba9e","updated":"2015-03-18 17:37:06.000000000","message":"Yair, that was my recommendation to make this change - see my comments in previous patch sets.\n\nThis change looks very reasonable since it removes a lot of duplicated code","commit_id":"dc423a7957b4015e029382dec6ad70d2f98162ab"},{"author":{"_account_id":8576,"name":"Yair Fried","email":"yfried@redhat.com","username":"yfried"},"change_message_id":"dc77a3dee3634365f15e5b43fb4dc29919107c40","unresolved":false,"context_lines":[{"line_number":69,"context_line":""},{"line_number":70,"context_line":"        :returns: list of response headers"},{"line_number":71,"context_line":"        \"\"\""},{"line_number":72,"context_line":"        with base.AtomicAction(self, atomic_action):"},{"line_number":73,"context_line":"            return self.clients(\"swift\").delete_container(container_name,"},{"line_number":74,"context_line":"                                                          **kwargs)"},{"line_number":75,"context_line":""}],"source_content_type":"text/x-python","patch_set":7,"id":"9a80dd14_9e5c727f","line":72,"updated":"2015-03-18 09:17:38.000000000","message":"ditto","commit_id":"dc423a7957b4015e029382dec6ad70d2f98162ab"},{"author":{"_account_id":6172,"name":"Boris Pavlovic","email":"boris@pavlovic.me","username":"boris-42"},"change_message_id":"0bb4ecab070b1d0222e847f8ced40a5611f34203","unresolved":false,"context_lines":[{"line_number":57,"context_line":"                                                            **kwargs),"},{"line_number":58,"context_line":"                        container_name)"},{"line_number":59,"context_line":""},{"line_number":60,"context_line":"        return (self.clients(\"swift\").put_container(container_name, **kwargs),"},{"line_number":61,"context_line":"                container_name)"},{"line_number":62,"context_line":""},{"line_number":63,"context_line":"    def _delete_container(self, container_name, atomic_action\u003dTrue, **kwargs):"}],"source_content_type":"text/x-python","patch_set":10,"id":"7aaa499b_29810a4b","line":60,"updated":"2015-04-13 12:23:55.000000000","message":"This is not clear for me, why we can\u0027t return just results of \n\n  self.clients(\"swift\").put_container(container_name, **kwargs)\n\nwhy we need to return container_name as separated field?","commit_id":"a3279d6ca8d2f9b48d02667d9b4053359528ca6f"},{"author":{"_account_id":15029,"name":"John Wu","email":"weiwu@cisco.com","username":"johnwwu"},"change_message_id":"363b287b113549ea230f4d42521d0d7c2c57b416","unresolved":false,"context_lines":[{"line_number":57,"context_line":"                                                            **kwargs),"},{"line_number":58,"context_line":"                        container_name)"},{"line_number":59,"context_line":""},{"line_number":60,"context_line":"        return (self.clients(\"swift\").put_container(container_name, **kwargs),"},{"line_number":61,"context_line":"                container_name)"},{"line_number":62,"context_line":""},{"line_number":63,"context_line":"    def _delete_container(self, container_name, atomic_action\u003dTrue, **kwargs):"}],"source_content_type":"text/x-python","patch_set":10,"id":"7aaa499b_e4121cb4","line":60,"in_reply_to":"7aaa499b_29810a4b","updated":"2015-04-14 23:44:31.000000000","message":"Swiftclient put_container call actually does not return anything.  Since we are generating the container_name inside the utils function, we will need a way to return the generated name back.\n\nThe API allows passing optional response_dict param which will return with the header responses; but even that, the container_name is not part of the response headers.  Not sure if this is too complicated or make any sense, maybe we can use the response_dict, add container_name to the dict, and return it.","commit_id":"a3279d6ca8d2f9b48d02667d9b4053359528ca6f"}],"tests/unit/benchmark/scenarios/swift/test_objects.py":[{"author":{"_account_id":10475,"name":"Alexander Maretskiy","email":"amaretskiy@mirantis.com","username":"maretskiy"},"change_message_id":"1083d7a96b44eb7734ad1caf8cd22f0905b3f57e","unresolved":false,"context_lines":[{"line_number":28,"context_line":"        tot_obj \u003d con_num * obj_num"},{"line_number":29,"context_line":"        tot_gen \u003d con_num + tot_obj"},{"line_number":30,"context_line":""},{"line_number":31,"context_line":"        scenario \u003d objects.SwiftObjects()"},{"line_number":32,"context_line":"        scenario._generate_random_name \u003d mock.MagicMock("},{"line_number":33,"context_line":"                                                  side_effect\u003drange(tot_gen))"},{"line_number":34,"context_line":"        scenario._create_container \u003d mock.MagicMock()"}],"source_content_type":"text/x-python","patch_set":1,"id":"ba7be1f8_3d5e1c77","line":31,"updated":"2015-03-02 15:18:42.000000000","message":"Moving lines 26-36 to setUp() looks reasonable, so this can be re-used by all tests\n\n def setUp(self, *args, **kwargs):\n     super(SwiftObjectsTestCase, self).setUp(*args, **kwargs)\n     self.con_num \u003d 2\n     self.obj_num \u003d 5\n     self.obj_total \u003d self.con_num * self.obj_num\n     self.gen_total \u003d self.con_num + self.obj_total\n     self.scenario \u003d objects.SwiftObjects()\n     self.scenario._generate_random_name \u003d mock.MagicMock(\n         side_effect\u003drange(self.gen_total))\n     self.scenario._create_container \u003d mock.MagicMock()\n     self.scenario._upload_object \u003d mock.MagicMock()\n     self.scenario._list_objects \u003d mock.MagicMock()\n     self.scenario._delete_container \u003d mock.MagicMock()","commit_id":"8a81f490c5e46b6af41752899482beffa360af6a"},{"author":{"_account_id":10475,"name":"Alexander Maretskiy","email":"amaretskiy@mirantis.com","username":"maretskiy"},"change_message_id":"1083d7a96b44eb7734ad1caf8cd22f0905b3f57e","unresolved":false,"context_lines":[{"line_number":131,"context_line":"        scenario.create_and_list_object(containers_per_account\u003dcon_num,"},{"line_number":132,"context_line":"                                        objects_per_container\u003dobj_num,"},{"line_number":133,"context_line":"                                        object_size\u003d100)"},{"line_number":134,"context_line":"        self.assertEqual(con_num, scenario._list_objects.call_count,"},{"line_number":135,"context_line":"                         \"List objects not called %i times\" % con_num)"},{"line_number":136,"context_line":""},{"line_number":137,"context_line":"    def test_functional_create_and_delete_object(self):"}],"source_content_type":"text/x-python","patch_set":1,"id":"ba7be1f8_a18bc666","line":134,"updated":"2015-03-02 15:18:42.000000000","message":"Checking actual mock calls is more accurate (same for other tests):\n\n ...\n scenario._generate_random_name \u003d mock.Mock(side_effect\u003diter(\"ABCDE\"))\n scenario.create_and_list_object(containers_per_account\u003dcon_num,\n                                 objects_per_container\u003dobj_num,\n                                 object_size\u003d100)\n self.assertEqual(scenario._list_objects.mock_calls,\n                  [mock.call(\"A\"), mock.call(\"C\")])","commit_id":"8a81f490c5e46b6af41752899482beffa360af6a"},{"author":{"_account_id":10475,"name":"Alexander Maretskiy","email":"amaretskiy@mirantis.com","username":"maretskiy"},"change_message_id":"1083d7a96b44eb7734ad1caf8cd22f0905b3f57e","unresolved":false,"context_lines":[{"line_number":142,"context_line":"        scenario.create_and_delete_object(containers_per_account\u003dcon_num,"},{"line_number":143,"context_line":"                                          objects_per_container\u003dobj_num,"},{"line_number":144,"context_line":"                                          object_size\u003d240)"},{"line_number":145,"context_line":"        self.assertEqual(con_num, scenario._delete_container.call_count,"},{"line_number":146,"context_line":"                         \"Delete containers not called %i times\" % con_num)"},{"line_number":147,"context_line":""},{"line_number":148,"context_line":"    def test_functional_create_and_download_object(self):"}],"source_content_type":"text/x-python","patch_set":1,"id":"ba7be1f8_587cbe20","line":145,"updated":"2015-03-02 15:18:42.000000000","message":"Here should be also checked scenario._delete_object calls","commit_id":"8a81f490c5e46b6af41752899482beffa360af6a"},{"author":{"_account_id":6172,"name":"Boris Pavlovic","email":"boris@pavlovic.me","username":"boris-42"},"change_message_id":"0bb4ecab070b1d0222e847f8ced40a5611f34203","unresolved":false,"context_lines":[{"line_number":50,"context_line":"        self.scenario.create_container_and_object_then_list_objects("},{"line_number":51,"context_line":"            objects_per_container\u003dself.obj_num,"},{"line_number":52,"context_line":"            object_size\u003d100)"},{"line_number":53,"context_line":"        self.assertEqual(len(self.con_calls),"},{"line_number":54,"context_line":"                         self.scenario._create_container.call_count,"},{"line_number":55,"context_line":"                         \"Create container not called %i times\" %"},{"line_number":56,"context_line":"                         len(self.con_calls))"}],"source_content_type":"text/x-python","patch_set":10,"id":"7aaa499b_892b7eeb","line":53,"updated":"2015-04-13 12:23:55.000000000","message":"These tests are too complicated.\n\nI believe that nobody was able to review them well, for example like me. \n\nIn setUp you are preparing scenario class for all the cases of life, which makes it hard to understand and find for example what is self.con_calls and how it is set and what it is checking. \n\nPlease do the only common thing in SwfitObjectTestCase.setUp that is always used for all benchmarks. And try to avoid implicit stuff (like self.con_calls) in unit test.","commit_id":"a3279d6ca8d2f9b48d02667d9b4053359528ca6f"},{"author":{"_account_id":15029,"name":"John Wu","email":"weiwu@cisco.com","username":"johnwwu"},"change_message_id":"363b287b113549ea230f4d42521d0d7c2c57b416","unresolved":false,"context_lines":[{"line_number":50,"context_line":"        self.scenario.create_container_and_object_then_list_objects("},{"line_number":51,"context_line":"            objects_per_container\u003dself.obj_num,"},{"line_number":52,"context_line":"            object_size\u003d100)"},{"line_number":53,"context_line":"        self.assertEqual(len(self.con_calls),"},{"line_number":54,"context_line":"                         self.scenario._create_container.call_count,"},{"line_number":55,"context_line":"                         \"Create container not called %i times\" %"},{"line_number":56,"context_line":"                         len(self.con_calls))"}],"source_content_type":"text/x-python","patch_set":10,"id":"7aaa499b_b5be4bd2","line":53,"in_reply_to":"7aaa499b_892b7eeb","updated":"2015-04-14 23:44:31.000000000","message":"I have tried to simplify it, please let me know if this is okay.","commit_id":"a3279d6ca8d2f9b48d02667d9b4053359528ca6f"}],"tests/unit/benchmark/scenarios/swift/test_utils.py":[{"author":{"_account_id":6172,"name":"Boris Pavlovic","email":"boris@pavlovic.me","username":"boris-42"},"change_message_id":"0bb4ecab070b1d0222e847f8ced40a5611f34203","unresolved":false,"context_lines":[{"line_number":24,"context_line":"    def setUp(self):"},{"line_number":25,"context_line":"        super(SwiftScenarioTestCase, self).setUp()"},{"line_number":26,"context_line":"        self.clients_patcher \u003d mock.patch("},{"line_number":27,"context_line":"            \"rally.benchmark.scenarios.swift.utils.SwiftScenario.clients\")"},{"line_number":28,"context_line":"        self.clients \u003d self.clients_patcher.start()"},{"line_number":29,"context_line":""},{"line_number":30,"context_line":"    def tearDown(self):"}],"source_content_type":"text/x-python","patch_set":10,"id":"7aaa499b_e9232204","line":27,"updated":"2015-04-13 12:23:55.000000000","message":"could you use common approach like in all other tests \n\n  @mock.patch(\"...clients\")\n\nIn all the scenarios that uses it. It simplifes reading code a lot","commit_id":"a3279d6ca8d2f9b48d02667d9b4053359528ca6f"},{"author":{"_account_id":15029,"name":"John Wu","email":"weiwu@cisco.com","username":"johnwwu"},"change_message_id":"363b287b113549ea230f4d42521d0d7c2c57b416","unresolved":false,"context_lines":[{"line_number":24,"context_line":"    def setUp(self):"},{"line_number":25,"context_line":"        super(SwiftScenarioTestCase, self).setUp()"},{"line_number":26,"context_line":"        self.clients_patcher \u003d mock.patch("},{"line_number":27,"context_line":"            \"rally.benchmark.scenarios.swift.utils.SwiftScenario.clients\")"},{"line_number":28,"context_line":"        self.clients \u003d self.clients_patcher.start()"},{"line_number":29,"context_line":""},{"line_number":30,"context_line":"    def tearDown(self):"}],"source_content_type":"text/x-python","patch_set":10,"id":"7aaa499b_35791b30","line":27,"in_reply_to":"7aaa499b_e9232204","updated":"2015-04-14 23:44:31.000000000","message":"Done","commit_id":"a3279d6ca8d2f9b48d02667d9b4053359528ca6f"}]}
