)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":10475,"name":"Alexander Maretskiy","email":"amaretskiy@mirantis.com","username":"maretskiy"},"change_message_id":"76a5ba60a1fba83e64adb371786c0c830caeae7c","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"[WIP]Fix log_deprecated"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"This change allow log_deprecated to preserve the original"},{"line_number":10,"context_line":"function\u0027s signature, and make the code more pythonic."},{"line_number":11,"context_line":"Add unit test to check the original function\u0027s signature."},{"line_number":12,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":2,"id":"1a7b0d38_f1d8b7f1","line":9,"updated":"2015-12-23 12:05:15.000000000","message":"Please clarify what the problem is? How to reproduce it? I do not see any bugs in current implementation of log_deprecated","commit_id":"c906798bf5a111f9f892032aa6e9ff2d05fdf9bf"},{"author":{"_account_id":6116,"name":"li,chen","email":"shchenli@cn.ibm.com","username":"chen-li"},"change_message_id":"cf506152f1977bdba9bd376c10ab502169621b42","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"[WIP]Fix log_deprecated"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"This change allow log_deprecated to preserve the original"},{"line_number":10,"context_line":"function\u0027s signature, and make the code more pythonic."},{"line_number":11,"context_line":"Add unit test to check the original function\u0027s signature."},{"line_number":12,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":2,"id":"fa69d971_57a16fa8","line":9,"in_reply_to":"1a7b0d38_3127fbb7","updated":"2015-12-31 02:49:51.000000000","message":"Please check: \n\nhttp://logs.openstack.org/05/257105/5/check/gate-rally-python27/1961d6a/console.html\n\n\u0026\n\nhttp://logs.openstack.org/05/257105/5/check/gate-rally-dsvm-cli/3b54e86/console.html","commit_id":"c906798bf5a111f9f892032aa6e9ff2d05fdf9bf"},{"author":{"_account_id":10475,"name":"Alexander Maretskiy","email":"amaretskiy@mirantis.com","username":"maretskiy"},"change_message_id":"6df548e00df22fadec24352b16ec904250febe58","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"[WIP]Fix log_deprecated"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"This change allow log_deprecated to preserve the original"},{"line_number":10,"context_line":"function\u0027s signature, and make the code more pythonic."},{"line_number":11,"context_line":"Add unit test to check the original function\u0027s signature."},{"line_number":12,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":2,"id":"1a7b0d38_3127fbb7","line":9,"in_reply_to":"1a7b0d38_4caebb86","updated":"2015-12-24 10:13:03.000000000","message":"Still not reproduced: http://paste.openstack.org/show/482657/","commit_id":"c906798bf5a111f9f892032aa6e9ff2d05fdf9bf"},{"author":{"_account_id":6116,"name":"li,chen","email":"shchenli@cn.ibm.com","username":"chen-li"},"change_message_id":"c1efda8a65af6903670553a87f12788d42e94285","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"[WIP]Fix log_deprecated"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"This change allow log_deprecated to preserve the original"},{"line_number":10,"context_line":"function\u0027s signature, and make the code more pythonic."},{"line_number":11,"context_line":"Add unit test to check the original function\u0027s signature."},{"line_number":12,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":2,"id":"1a7b0d38_4caebb86","line":9,"in_reply_to":"1a7b0d38_f1d8b7f1","updated":"2015-12-24 01:26:42.000000000","message":"Apply changes https://review.openstack.org/#/c/257105/  without this change first, then run command \"rally show images\", you will get error:\n\n\n2015-12-24 17:11:14.855 24654 CRITICAL rally [-] IndexError: pop from empty list\n2015-12-24 17:11:14.855 24654 ERROR rally Traceback (most recent call last):\n2015-12-24 17:11:14.855 24654 ERROR rally   File \"/usr/local/bin/rally\", line 10, in \u003cmodule\u003e\n2015-12-24 17:11:14.855 24654 ERROR rally     sys.exit(main())\n2015-12-24 17:11:14.855 24654 ERROR rally   File \"/opt/stack/rally/rally/cli/main.py\", line 42, in main\n2015-12-24 17:11:14.855 24654 ERROR rally     return cliutils.run(sys.argv, categories)\n2015-12-24 17:11:14.855 24654 ERROR rally   File \"/opt/stack/rally/rally/cli/cliutils.py\", line 523, in run\n2015-12-24 17:11:14.855 24654 ERROR rally     validate_args(fn, *fn_args, **fn_kwargs)\n2015-12-24 17:11:14.855 24654 ERROR rally   File \"/opt/stack/rally/rally/cli/cliutils.py\", line 96, in validate_args\n2015-12-24 17:11:14.855 24654 ERROR rally     required_args.pop(0)\n2015-12-24 17:11:14.855 24654 ERROR rally IndexError: pop from empty list\n2015-12-24 17:11:14.855 24654 ERROR rally \n\n\n\nThis is because functools.wraps did not protect function\u0027s signature, as I added in unit test: https://review.openstack.org/#/c/259248/2/tests/unit/common/test_logging.py\n\n\nThe function signature has been used here: https://github.com/openstack/rally/blob/master/rally/cli/cliutils.py#L69-L99","commit_id":"c906798bf5a111f9f892032aa6e9ff2d05fdf9bf"}],"rally/common/logging.py":[{"author":{"_account_id":8491,"name":"Illia Khudoshyn","email":"ikhudoshyn@mirantis.com","username":"ikhudoshyn"},"change_message_id":"7fff92ede3f0cd1801a485a52e221553d26cafe4","unresolved":false,"context_lines":[{"line_number":250,"context_line":"    \"\"\""},{"line_number":251,"context_line":"    log_function \u003d log_function or LOG.warning"},{"line_number":252,"context_line":""},{"line_number":253,"context_line":"    def decorator(f):"},{"line_number":254,"context_line":"        @functools.wraps(f)"},{"line_number":255,"context_line":"        def wrapper(*args, **kwargs):"},{"line_number":256,"context_line":"            if (not once) or (not getattr(f, \"_warned_dep_args\", False)):"}],"source_content_type":"text/x-python","patch_set":1,"id":"3a7e1126_fad92084","line":253,"range":{"start_line":253,"start_character":0,"end_line":253,"end_character":21},"updated":"2015-12-18 11:00:14.000000000","message":"Please update this function in the same way as above, using @decorator.decorator, so that we keep the code consistent","commit_id":"79c3bafb9b3931207838f3bed75fb016aae42782"},{"author":{"_account_id":6116,"name":"li,chen","email":"shchenli@cn.ibm.com","username":"chen-li"},"change_message_id":"301e47da22ab78898862e9b8c4a32ea7bcc59c44","unresolved":false,"context_lines":[{"line_number":250,"context_line":"    \"\"\""},{"line_number":251,"context_line":"    log_function \u003d log_function or LOG.warning"},{"line_number":252,"context_line":""},{"line_number":253,"context_line":"    def decorator(f):"},{"line_number":254,"context_line":"        @functools.wraps(f)"},{"line_number":255,"context_line":"        def wrapper(*args, **kwargs):"},{"line_number":256,"context_line":"            if (not once) or (not getattr(f, \"_warned_dep_args\", False)):"}],"source_content_type":"text/x-python","patch_set":1,"id":"3a7e1126_ecf7f588","line":253,"range":{"start_line":253,"start_character":0,"end_line":253,"end_character":21},"in_reply_to":"3a7e1126_013faa87","updated":"2015-12-21 02:50:59.000000000","message":"There is one issue here, if we use @decorator.decorator, **kwargs will be emptied....","commit_id":"79c3bafb9b3931207838f3bed75fb016aae42782"},{"author":{"_account_id":6116,"name":"li,chen","email":"shchenli@cn.ibm.com","username":"chen-li"},"change_message_id":"8c89e1e2d5b496d7112a3b491b5c67c1826ef727","unresolved":false,"context_lines":[{"line_number":250,"context_line":"    \"\"\""},{"line_number":251,"context_line":"    log_function \u003d log_function or LOG.warning"},{"line_number":252,"context_line":""},{"line_number":253,"context_line":"    def decorator(f):"},{"line_number":254,"context_line":"        @functools.wraps(f)"},{"line_number":255,"context_line":"        def wrapper(*args, **kwargs):"},{"line_number":256,"context_line":"            if (not once) or (not getattr(f, \"_warned_dep_args\", False)):"}],"source_content_type":"text/x-python","patch_set":1,"id":"3a7e1126_013faa87","line":253,"range":{"start_line":253,"start_character":0,"end_line":253,"end_character":21},"in_reply_to":"3a7e1126_1ade6c3f","updated":"2015-12-21 01:06:01.000000000","message":"Thanks!","commit_id":"79c3bafb9b3931207838f3bed75fb016aae42782"},{"author":{"_account_id":6116,"name":"li,chen","email":"shchenli@cn.ibm.com","username":"chen-li"},"change_message_id":"1f0c7642571f14c30e64b9628426a2b7409e3dbe","unresolved":false,"context_lines":[{"line_number":250,"context_line":"    \"\"\""},{"line_number":251,"context_line":"    log_function \u003d log_function or LOG.warning"},{"line_number":252,"context_line":""},{"line_number":253,"context_line":"    def decorator(f):"},{"line_number":254,"context_line":"        @functools.wraps(f)"},{"line_number":255,"context_line":"        def wrapper(*args, **kwargs):"},{"line_number":256,"context_line":"            if (not once) or (not getattr(f, \"_warned_dep_args\", False)):"}],"source_content_type":"text/x-python","patch_set":1,"id":"3a7e1126_c993d259","line":253,"range":{"start_line":253,"start_character":0,"end_line":253,"end_character":21},"in_reply_to":"3a7e1126_ecf7f588","updated":"2015-12-22 06:17:24.000000000","message":"Change to use @wrapt.decorator\n\nStill get error:\n\n\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\nFAIL: tests.unit.plugins.openstack.scenarios.cinder.test_volumes.CinderServersTestCase.test_create_nested_snapshots_calls_order\ntags: worker-4\n----------------------------------------------------------------------\nEmpty attachments:\n  stderr\n  stdout\n\nTraceback (most recent call last):\n  File \"tests/unit/plugins/openstack/scenarios/cinder/test_volumes.py\", line 353, in test_create_nested_snapshots_calls_order\n    nested_level\u003d2)\n  File \"rally/common/logging.py\", line 264, in _log_deprecated_args\n    setattr(wrapped, \"_warned_dep_args\", once)\nAttributeError: \u0027instancemethod\u0027 object has no attribute \u0027_warned_dep_args\u0027\n\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\nFAIL: tests.unit.plugins.openstack.scenarios.cinder.test_volumes.CinderServersTestCase.test_create_nested_snapshots_check_resources_size\ntags: worker-6\n----------------------------------------------------------------------\nEmpty attachments:\n  stderr\n  stdout\n\nTraceback (most recent call last):\n  File \"/opt/stack/rally/.tox/py27/local/lib/python2.7/site-packages/mock/mock.py\", line 1305, in patched\n    return func(*args, **keywargs)\n  File \"tests/unit/plugins/openstack/scenarios/cinder/test_volumes.py\", line 380, in test_create_nested_snapshots_check_resources_size\n    scenario.create_nested_snapshots_and_attach_volume(nested_level\u003d2)\n  File \"rally/common/logging.py\", line 264, in _log_deprecated_args\n    setattr(wrapped, \"_warned_dep_args\", once)\nAttributeError: \u0027instancemethod\u0027 object has no attribute \u0027_warned_dep_args\u0027\n\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\nFAIL: tests.unit.plugins.openstack.scenarios.vm.test_vmtasks.VMTasksTestCase.test_boot_runcommand_delete\ntags: worker-9\n----------------------------------------------------------------------\nEmpty attachments:\n  stderr\n  stdout\n\nTraceback (most recent call last):\n  File \"tests/unit/plugins/openstack/scenarios/vm/test_vmtasks.py\", line 52, in test_boot_runcommand_delete\n    foo_arg\u003d\"foo_value\")\n  File \"rally/common/logging.py\", line 264, in _log_deprecated_args\n    setattr(wrapped, \"_warned_dep_args\", once)\nAttributeError: \u0027instancemethod\u0027 object has no attribute \u0027_warned_dep_args\u0027\n\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\nFAIL: tests.unit.test_docstrings.DocstringsTestCase.test_all_scenarios_have_docstrings\ntags: worker-10\n----------------------------------------------------------------------\nEmpty attachments:\n  stderr\n  stdout\n\nTraceback (most recent call last):\n  File \"tests/unit/test_docstrings.py\", line 69, in test_all_scenarios_have_docstrings\n    \"param\": param})\n  File \"/opt/stack/rally/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py\", line 356, in assertIn\n    self.assertThat(haystack, Contains(needle), message)\n  File \"/opt/stack/rally/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py\", line 435, in assertThat\n    raise mismatch_error\ntesttools.matchers._impl.MismatchError: \u0027name_length\u0027 not in [\u0027kwargs\u0027]: Docstring for KeystoneBasic.create_user should describe the \u0027name_length\u0027 parameter in the :param \u003cname\u003e: clause.","commit_id":"79c3bafb9b3931207838f3bed75fb016aae42782"},{"author":{"_account_id":8491,"name":"Illia Khudoshyn","email":"ikhudoshyn@mirantis.com","username":"ikhudoshyn"},"change_message_id":"2114167efc2c479be9b542a79cd5e13251aa3a6d","unresolved":false,"context_lines":[{"line_number":250,"context_line":"    \"\"\""},{"line_number":251,"context_line":"    log_function \u003d log_function or LOG.warning"},{"line_number":252,"context_line":""},{"line_number":253,"context_line":"    def decorator(f):"},{"line_number":254,"context_line":"        @functools.wraps(f)"},{"line_number":255,"context_line":"        def wrapper(*args, **kwargs):"},{"line_number":256,"context_line":"            if (not once) or (not getattr(f, \"_warned_dep_args\", False)):"}],"source_content_type":"text/x-python","patch_set":1,"id":"3a7e1126_1ade6c3f","line":253,"range":{"start_line":253,"start_character":0,"end_line":253,"end_character":21},"in_reply_to":"3a7e1126_fad92084","updated":"2015-12-18 11:03:22.000000000","message":"And pls don\u0027t forget about tests.","commit_id":"79c3bafb9b3931207838f3bed75fb016aae42782"},{"author":{"_account_id":6172,"name":"Boris Pavlovic","email":"boris@pavlovic.me","username":"boris-42"},"change_message_id":"3f1b1a9a517f5243d212199d0b6f03d0e6a6c126","unresolved":false,"context_lines":[{"line_number":226,"context_line":"    \"\"\""},{"line_number":227,"context_line":"    log_function \u003d log_function or LOG.warning"},{"line_number":228,"context_line":""},{"line_number":229,"context_line":"    @wrapt.decorator"},{"line_number":230,"context_line":"    def log_decorator(wrapped, instance, args, kwargs):"},{"line_number":231,"context_line":"        if (not once) or (not getattr(wrapped, \"_warned_dep_method\", False)):"},{"line_number":232,"context_line":"            log_function(\"\u0027%(func)s\u0027 is deprecated in Rally v%(version)s: \""}],"source_content_type":"text/x-python","patch_set":2,"id":"1a7b0d38_e34b16af","line":229,"updated":"2015-12-23 09:35:00.000000000","message":"I don\u0027t like the idea of using one more lib in Rally. \n\nWe should use here decorator lib. \n\nAnd according to our chat I am not convince that you can\u0027t use it. Beause decorator lib was intend to resolve the issue that you are facing.","commit_id":"c906798bf5a111f9f892032aa6e9ff2d05fdf9bf"},{"author":{"_account_id":6116,"name":"li,chen","email":"shchenli@cn.ibm.com","username":"chen-li"},"change_message_id":"c1efda8a65af6903670553a87f12788d42e94285","unresolved":false,"context_lines":[{"line_number":226,"context_line":"    \"\"\""},{"line_number":227,"context_line":"    log_function \u003d log_function or LOG.warning"},{"line_number":228,"context_line":""},{"line_number":229,"context_line":"    @wrapt.decorator"},{"line_number":230,"context_line":"    def log_decorator(wrapped, instance, args, kwargs):"},{"line_number":231,"context_line":"        if (not once) or (not getattr(wrapped, \"_warned_dep_method\", False)):"},{"line_number":232,"context_line":"            log_function(\"\u0027%(func)s\u0027 is deprecated in Rally v%(version)s: \""}],"source_content_type":"text/x-python","patch_set":2,"id":"1a7b0d38_8ccfc37e","line":229,"in_reply_to":"1a7b0d38_d13fbb23","updated":"2015-12-24 01:26:42.000000000","message":"The issue for functools.wraps:","commit_id":"c906798bf5a111f9f892032aa6e9ff2d05fdf9bf"},{"author":{"_account_id":6116,"name":"li,chen","email":"shchenli@cn.ibm.com","username":"chen-li"},"change_message_id":"c1efda8a65af6903670553a87f12788d42e94285","unresolved":false,"context_lines":[{"line_number":226,"context_line":"    \"\"\""},{"line_number":227,"context_line":"    log_function \u003d log_function or LOG.warning"},{"line_number":228,"context_line":""},{"line_number":229,"context_line":"    @wrapt.decorator"},{"line_number":230,"context_line":"    def log_decorator(wrapped, instance, args, kwargs):"},{"line_number":231,"context_line":"        if (not once) or (not getattr(wrapped, \"_warned_dep_method\", False)):"},{"line_number":232,"context_line":"            log_function(\"\u0027%(func)s\u0027 is deprecated in Rally v%(version)s: \""}],"source_content_type":"text/x-python","patch_set":2,"id":"1a7b0d38_ccddcb43","line":229,"in_reply_to":"1a7b0d38_d13fbb23","updated":"2015-12-24 01:26:42.000000000","message":"functools.wraps did not protect function\u0027s signature, as I added in unit test: https://review.openstack.org/#/c/259248/2/tests/unit/common/test_logging.py. Also you can see I have another change depended on this one: https://review.openstack.org/#/c/257105/. \n\nI change it to decorator.decorator at previous change, it works for  log_deprecated.\n\n\nFollowing the comment from Illia Khudoshyn, to keep code consistent, I try to edit  log_deprecated_args (L242) with decorator.decorator too. \n\ndecorator.decorator do not works for log_deprecated_args, because the *arg \u0026 **kwargs for decorator.decorator are not the same meaning for *args \u0026 **kwargs.  https://github.com/micheles/decorator/issues/22\n\n\nAs for https://github.com/openstack/requirements, we can see  \nhttps://github.com/openstack/requirements/blob/master/global-requirements.txt#L324 \n\n\u0026 https://github.com/openstack/requirements/blob/master/upper-constraints.txt#L349\n\nI tested with 1.10.5","commit_id":"c906798bf5a111f9f892032aa6e9ff2d05fdf9bf"},{"author":{"_account_id":10475,"name":"Alexander Maretskiy","email":"amaretskiy@mirantis.com","username":"maretskiy"},"change_message_id":"76a5ba60a1fba83e64adb371786c0c830caeae7c","unresolved":false,"context_lines":[{"line_number":226,"context_line":"    \"\"\""},{"line_number":227,"context_line":"    log_function \u003d log_function or LOG.warning"},{"line_number":228,"context_line":""},{"line_number":229,"context_line":"    @wrapt.decorator"},{"line_number":230,"context_line":"    def log_decorator(wrapped, instance, args, kwargs):"},{"line_number":231,"context_line":"        if (not once) or (not getattr(wrapped, \"_warned_dep_method\", False)):"},{"line_number":232,"context_line":"            log_function(\"\u0027%(func)s\u0027 is deprecated in Rally v%(version)s: \""}],"source_content_type":"text/x-python","patch_set":2,"id":"1a7b0d38_d13fbb23","line":229,"in_reply_to":"1a7b0d38_e34b16af","updated":"2015-12-23 12:05:15.000000000","message":"Agreed with Boris, `wrapt\u0027 is a third-party library so:\n\n1) it requires to be added to https://github.com/openstack/requirements\n\n2) we can get the same functionality with standard functools.wraps (as this is actually done)\n\n3) I do not see any reasons (except code simplification) \n to do this change. Maybe I\u0027m wrong but I do not understand whether we have a bug in current code?","commit_id":"c906798bf5a111f9f892032aa6e9ff2d05fdf9bf"}]}
