)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":15343,"name":"Tim Burke","email":"tburke@nvidia.com","username":"tburke"},"change_message_id":"ecfc4f34c8906cfeb82bad35ffffee0acef74458","unresolved":false,"context_lines":[{"line_number":18,"context_line":"- The Nth fragment reconstructed from other k fragments must be"},{"line_number":19,"context_line":"  consistent with the encoded Nth fragment"},{"line_number":20,"context_line":""},{"line_number":21,"context_line":"With this patch, we can confirm the consistency, at least, the testing"},{"line_number":22,"context_line":"spec defined at get_pyeclib_testspec() method paramters and if you want"},{"line_number":23,"context_line":"to test other parameter, you can do it with adding the spec there."},{"line_number":24,"context_line":""},{"line_number":25,"context_line":"Change-Id: Ieb46f4ab5c8f6cb60f35c632728cbcf4a1727c53"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"9a629dbe_ed3eff26","line":23,"range":{"start_line":21,"start_character":59,"end_line":23,"end_character":65},"updated":"2016-11-10 00:32:42.000000000","message":"This might be worth adding as a comment in the test itself.","commit_id":"d8304137aee501acdbb3807807d4f64ee46ffa54"},{"author":{"_account_id":4608,"name":"Kota Tsuyuzaki","email":"bloodeagle40234@gmail.com","username":"tsuyuzaki-kota"},"change_message_id":"3671b82d5c38946c1b1fc77cbcf33d5ba7607767","unresolved":false,"context_lines":[{"line_number":18,"context_line":"- The Nth fragment reconstructed from other k fragments must be"},{"line_number":19,"context_line":"  consistent with the encoded Nth fragment"},{"line_number":20,"context_line":""},{"line_number":21,"context_line":"With this patch, we can confirm the consistency, at least, the testing"},{"line_number":22,"context_line":"spec defined at get_pyeclib_testspec() method paramters and if you want"},{"line_number":23,"context_line":"to test other parameter, you can do it with adding the spec there."},{"line_number":24,"context_line":""},{"line_number":25,"context_line":"Change-Id: Ieb46f4ab5c8f6cb60f35c632728cbcf4a1727c53"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"9a629dbe_c37f42de","line":23,"range":{"start_line":21,"start_character":59,"end_line":23,"end_character":65},"in_reply_to":"9a629dbe_ed3eff26","updated":"2016-11-10 09:03:07.000000000","message":"OK, do that.","commit_id":"d8304137aee501acdbb3807807d4f64ee46ffa54"}],"test/test_pyeclib_api.py":[{"author":{"_account_id":15343,"name":"Tim Burke","email":"tburke@nvidia.com","username":"tburke"},"change_message_id":"ecfc4f34c8906cfeb82bad35ffffee0acef74458","unresolved":false,"context_lines":[{"line_number":513,"context_line":""},{"line_number":514,"context_line":"    def test_rs_greedy_decode_reconstruct_combination(self):"},{"line_number":515,"context_line":"        pyeclib_drivers \u003d self.get_pyeclib_testspec()"},{"line_number":516,"context_line":"        orig_data \u003d \u0027a\u0027 * 1024 * 1024"},{"line_number":517,"context_line":"        for pyeclib_driver in pyeclib_drivers:"},{"line_number":518,"context_line":"            if \u0027rs\u0027 not in str(pyeclib_driver.ec_type):"},{"line_number":519,"context_line":"                continue"}],"source_content_type":"text/x-python","patch_set":1,"id":"9a629dbe_8d8023f9","line":516,"updated":"2016-11-10 00:32:42.000000000","message":"Is it worth having something more like\n\n \u0027\u0027.join(random.choose(string.letters) for x in xrange(1024 ** 2))\n\n? Or even\n\n os.urandom(1024 ** 2)\n\n? I wonder whether we might miss some decode errors by using such a regular test pattern.","commit_id":"d8304137aee501acdbb3807807d4f64ee46ffa54"},{"author":{"_account_id":4608,"name":"Kota Tsuyuzaki","email":"bloodeagle40234@gmail.com","username":"tsuyuzaki-kota"},"change_message_id":"3671b82d5c38946c1b1fc77cbcf33d5ba7607767","unresolved":false,"context_lines":[{"line_number":513,"context_line":""},{"line_number":514,"context_line":"    def test_rs_greedy_decode_reconstruct_combination(self):"},{"line_number":515,"context_line":"        pyeclib_drivers \u003d self.get_pyeclib_testspec()"},{"line_number":516,"context_line":"        orig_data \u003d \u0027a\u0027 * 1024 * 1024"},{"line_number":517,"context_line":"        for pyeclib_driver in pyeclib_drivers:"},{"line_number":518,"context_line":"            if \u0027rs\u0027 not in str(pyeclib_driver.ec_type):"},{"line_number":519,"context_line":"                continue"}],"source_content_type":"text/x-python","patch_set":1,"id":"9a629dbe_664764bc","line":516,"in_reply_to":"9a629dbe_8d8023f9","updated":"2016-11-10 09:03:07.000000000","message":"Sure. Random string sounds better. It might be worth to run a few times? Do we make it in follow-up?","commit_id":"d8304137aee501acdbb3807807d4f64ee46ffa54"},{"author":{"_account_id":15343,"name":"Tim Burke","email":"tburke@nvidia.com","username":"tburke"},"change_message_id":"ecfc4f34c8906cfeb82bad35ffffee0acef74458","unresolved":false,"context_lines":[{"line_number":516,"context_line":"        orig_data \u003d \u0027a\u0027 * 1024 * 1024"},{"line_number":517,"context_line":"        for pyeclib_driver in pyeclib_drivers:"},{"line_number":518,"context_line":"            if \u0027rs\u0027 not in str(pyeclib_driver.ec_type):"},{"line_number":519,"context_line":"                continue"},{"line_number":520,"context_line":"            encoded \u003d pyeclib_driver.encode(orig_data)"},{"line_number":521,"context_line":"            # make all fragment like (index, frag_data) format to feed"},{"line_number":522,"context_line":"            # to combinations"}],"source_content_type":"text/x-python","patch_set":1,"id":"9a629dbe_edcd1f86","line":519,"updated":"2016-11-10 00:32:42.000000000","message":"Why do we only do it for Reed-Solomon?\n\nI guess because it fails for flat_xor_hd: 3 -- but how about we just skip that one? flat_xor_hd_4 and shss seem to pass.","commit_id":"d8304137aee501acdbb3807807d4f64ee46ffa54"},{"author":{"_account_id":4608,"name":"Kota Tsuyuzaki","email":"bloodeagle40234@gmail.com","username":"tsuyuzaki-kota"},"change_message_id":"3671b82d5c38946c1b1fc77cbcf33d5ba7607767","unresolved":false,"context_lines":[{"line_number":516,"context_line":"        orig_data \u003d \u0027a\u0027 * 1024 * 1024"},{"line_number":517,"context_line":"        for pyeclib_driver in pyeclib_drivers:"},{"line_number":518,"context_line":"            if \u0027rs\u0027 not in str(pyeclib_driver.ec_type):"},{"line_number":519,"context_line":"                continue"},{"line_number":520,"context_line":"            encoded \u003d pyeclib_driver.encode(orig_data)"},{"line_number":521,"context_line":"            # make all fragment like (index, frag_data) format to feed"},{"line_number":522,"context_line":"            # to combinations"}],"source_content_type":"text/x-python","patch_set":1,"id":"9a629dbe_06122809","line":519,"in_reply_to":"9a629dbe_edcd1f86","updated":"2016-11-10 09:03:07.000000000","message":"I don\u0027t think flat_xor_hd_4 can work. But it comes from my lazy work, exactly. Basically this greedy test is designed to run with k fragments. However, xor code can take m parity more than hd param. that means, in flat_xor world, IIRC, \n\nAt least:\nm \u003e hd \u0026\u0026 k + m - hd required to ensure to decode\n\nfeeding only k fragments may/or not be decode-able.\n\nIf you prefer to decipher the decode-able patterns from [1], that\u0027s great you can add the tests here :-)\n\nSpeaking of shss, hmm... i didn\u0027t think it\u0027s urgent because the users are only us, right now. My priority at that time was for doing this for jerasure_rs_xxxx, isa_l_rs_xxx, liberasurecode_rs_vand which can be choosed frequently due to OSS. However, turn to my thought, perhaps,\n\n if \u0027flat_xor\u0027 in str(pyeclib_driver.ec_type):\n    continue\n\ncould be better?\n\n1: https://github.com/openstack/liberasurecode/blob/master/include/xor_codes/xor_hd_code_defs.h","commit_id":"d8304137aee501acdbb3807807d4f64ee46ffa54"},{"author":{"_account_id":15343,"name":"Tim Burke","email":"tburke@nvidia.com","username":"tburke"},"change_message_id":"ecfc4f34c8906cfeb82bad35ffffee0acef74458","unresolved":false,"context_lines":[{"line_number":528,"context_line":"                self.assertEqual("},{"line_number":529,"context_line":"                    orig_data, decoded,"},{"line_number":530,"context_line":"                    \"assertion fail in decode %s from:%s\" %"},{"line_number":531,"context_line":"                    (pyeclib_driver.ec_type, list(check_frags_dict)))"},{"line_number":532,"context_line":"                holes \u003d [index for index in range(pyeclib_driver.k) if"},{"line_number":533,"context_line":"                         index not in check_frags_dict]"},{"line_number":534,"context_line":"                for hole in holes:"}],"source_content_type":"text/x-python","patch_set":1,"id":"9a629dbe_2da9d77b","line":531,"updated":"2016-11-10 00:32:42.000000000","message":"Worth having m/k in the assertion message?\n\nHow about we go add a __repr__ to ECDriver and then make it more like\n\n \"assertion fail in decode %r from:%s\" % (\n     pyeclib_driver, list(check_frags_dict))","commit_id":"d8304137aee501acdbb3807807d4f64ee46ffa54"},{"author":{"_account_id":4608,"name":"Kota Tsuyuzaki","email":"bloodeagle40234@gmail.com","username":"tsuyuzaki-kota"},"change_message_id":"3671b82d5c38946c1b1fc77cbcf33d5ba7607767","unresolved":false,"context_lines":[{"line_number":528,"context_line":"                self.assertEqual("},{"line_number":529,"context_line":"                    orig_data, decoded,"},{"line_number":530,"context_line":"                    \"assertion fail in decode %s from:%s\" %"},{"line_number":531,"context_line":"                    (pyeclib_driver.ec_type, list(check_frags_dict)))"},{"line_number":532,"context_line":"                holes \u003d [index for index in range(pyeclib_driver.k) if"},{"line_number":533,"context_line":"                         index not in check_frags_dict]"},{"line_number":534,"context_line":"                for hole in holes:"}],"source_content_type":"text/x-python","patch_set":1,"id":"9a629dbe_26facc75","line":531,"in_reply_to":"9a629dbe_2da9d77b","updated":"2016-11-10 09:03:07.000000000","message":"Good idea but i\u0027d like to pend the __repr__ change into follow-up because that needs more changes and another tests.\n\nSimply I\u0027d like to add the k/m values like L539. Is that ok for you?","commit_id":"d8304137aee501acdbb3807807d4f64ee46ffa54"}]}
