)]}'
{"tests/ci/cover.sh":[{"author":{"_account_id":8507,"name":"Mikhail Dubov","email":"mdubov@mirantis.com","username":"msdubov"},"change_message_id":"e574ce982d75774abf76db875f4de83df0b35f45","unresolved":false,"context_lines":[{"line_number":15,"context_line":"#    License for the specific language governing permissions and limitations"},{"line_number":16,"context_line":"#    under the License."},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"ALLOWED_EXTRA_MISSING\u003d8"},{"line_number":19,"context_line":""},{"line_number":20,"context_line":""},{"line_number":21,"context_line":"stash_occured\u003dfalse"}],"source_content_type":"text/x-sh","patch_set":1,"id":"dac4157f_10e89ab3","line":18,"updated":"2015-04-21 09:52:50.000000000","message":"I understand the idea, but how did you choose 8? Don\u0027t you think that this number is highly dependent on the size of the patch? I mean that if you have a patch that fixes just 2 lines of code, then ALLOWED_EXTRA_MISSING\u003d8 is already too much for such a patch.","commit_id":"91881e117ae96c1d0fa0f7b512c58b1d3424bf77"},{"author":{"_account_id":6172,"name":"Boris Pavlovic","email":"boris@pavlovic.me","username":"boris-42"},"change_message_id":"9b4a286beadeab5a77210f1cdce90a50666de3c4","unresolved":false,"context_lines":[{"line_number":15,"context_line":"#    License for the specific language governing permissions and limitations"},{"line_number":16,"context_line":"#    under the License."},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"ALLOWED_EXTRA_MISSING\u003d8"},{"line_number":19,"context_line":""},{"line_number":20,"context_line":""},{"line_number":21,"context_line":"stash_occured\u003dfalse"}],"source_content_type":"text/x-sh","patch_set":1,"id":"dac4157f_ca926a9f","line":18,"in_reply_to":"dac4157f_10e89ab3","updated":"2015-04-21 11:08:39.000000000","message":"We have eyes. Reviewing 2 lines patches is quite easy. The goal of this check is to ensure that we are not introducing a LOT of not covered by unit tests code. \n\nBtw it is very hard do find amount of changed LOC so I even won\u0027t try.","commit_id":"91881e117ae96c1d0fa0f7b512c58b1d3424bf77"},{"author":{"_account_id":7369,"name":"Sergey Skripnick","email":"sskripnick@mirantis.com","username":"redixin"},"change_message_id":"2d926eeafb9a82145c8062426099cf50c5092155","unresolved":false,"context_lines":[{"line_number":20,"context_line":""},{"line_number":21,"context_line":"stash_occured\u003dfalse"},{"line_number":22,"context_line":""},{"line_number":23,"context_line":"function to_git_master {"},{"line_number":24,"context_line":"    local stashes\u003d`git stash list | wc -l`"},{"line_number":25,"context_line":"    git stash"},{"line_number":26,"context_line":"    if [ $stashes -lt `git stash list | wc -l` ]; then"}],"source_content_type":"text/x-sh","patch_set":1,"id":"dac4157f_f023e6a5","line":23,"updated":"2015-04-21 09:37:42.000000000","message":"this called only once, so making function is not necessary","commit_id":"91881e117ae96c1d0fa0f7b512c58b1d3424bf77"},{"author":{"_account_id":6172,"name":"Boris Pavlovic","email":"boris@pavlovic.me","username":"boris-42"},"change_message_id":"9b4a286beadeab5a77210f1cdce90a50666de3c4","unresolved":false,"context_lines":[{"line_number":20,"context_line":""},{"line_number":21,"context_line":"stash_occured\u003dfalse"},{"line_number":22,"context_line":""},{"line_number":23,"context_line":"function to_git_master {"},{"line_number":24,"context_line":"    local stashes\u003d`git stash list | wc -l`"},{"line_number":25,"context_line":"    git stash"},{"line_number":26,"context_line":"    if [ $stashes -lt `git stash list | wc -l` ]; then"}],"source_content_type":"text/x-sh","patch_set":1,"id":"dac4157f_dba483a7","line":23,"in_reply_to":"dac4157f_50897225","updated":"2015-04-21 11:08:39.000000000","message":"Before I did this function the code was unreadable.","commit_id":"91881e117ae96c1d0fa0f7b512c58b1d3424bf77"},{"author":{"_account_id":8507,"name":"Mikhail Dubov","email":"mdubov@mirantis.com","username":"msdubov"},"change_message_id":"e574ce982d75774abf76db875f4de83df0b35f45","unresolved":false,"context_lines":[{"line_number":20,"context_line":""},{"line_number":21,"context_line":"stash_occured\u003dfalse"},{"line_number":22,"context_line":""},{"line_number":23,"context_line":"function to_git_master {"},{"line_number":24,"context_line":"    local stashes\u003d`git stash list | wc -l`"},{"line_number":25,"context_line":"    git stash"},{"line_number":26,"context_line":"    if [ $stashes -lt `git stash list | wc -l` ]; then"}],"source_content_type":"text/x-sh","patch_set":1,"id":"dac4157f_50897225","line":23,"in_reply_to":"dac4157f_f023e6a5","updated":"2015-04-21 09:52:50.000000000","message":"But the code then looks cleaner imho. I\u0027d prefer keeping this.","commit_id":"91881e117ae96c1d0fa0f7b512c58b1d3424bf77"},{"author":{"_account_id":7369,"name":"Sergey Skripnick","email":"sskripnick@mirantis.com","username":"redixin"},"change_message_id":"2d926eeafb9a82145c8062426099cf50c5092155","unresolved":false,"context_lines":[{"line_number":30,"context_line":"    git checkout master"},{"line_number":31,"context_line":"}"},{"line_number":32,"context_line":""},{"line_number":33,"context_line":"function back_to_git_original_state {"},{"line_number":34,"context_line":"    git checkout -"},{"line_number":35,"context_line":""},{"line_number":36,"context_line":"    if [ $stash_occured \u003d true ]; then"}],"source_content_type":"text/x-sh","patch_set":1,"id":"dac4157f_b521e0b6","line":33,"updated":"2015-04-21 09:37:42.000000000","message":"ditto","commit_id":"91881e117ae96c1d0fa0f7b512c58b1d3424bf77"},{"author":{"_account_id":6172,"name":"Boris Pavlovic","email":"boris@pavlovic.me","username":"boris-42"},"change_message_id":"9b4a286beadeab5a77210f1cdce90a50666de3c4","unresolved":false,"context_lines":[{"line_number":30,"context_line":"    git checkout master"},{"line_number":31,"context_line":"}"},{"line_number":32,"context_line":""},{"line_number":33,"context_line":"function back_to_git_original_state {"},{"line_number":34,"context_line":"    git checkout -"},{"line_number":35,"context_line":""},{"line_number":36,"context_line":"    if [ $stash_occured \u003d true ]; then"}],"source_content_type":"text/x-sh","patch_set":1,"id":"dac4157f_0af742f6","line":33,"in_reply_to":"dac4157f_b521e0b6","updated":"2015-04-21 11:08:39.000000000","message":"same here","commit_id":"91881e117ae96c1d0fa0f7b512c58b1d3424bf77"},{"author":{"_account_id":7369,"name":"Sergey Skripnick","email":"sskripnick@mirantis.com","username":"redixin"},"change_message_id":"2d926eeafb9a82145c8062426099cf50c5092155","unresolved":false,"context_lines":[{"line_number":45,"context_line":"# Switch to master and collect amount of not covered by unit tests lines"},{"line_number":46,"context_line":"to_git_master"},{"line_number":47,"context_line":""},{"line_number":48,"context_line":"python setup.py testr --coverage --testr-args\u003d$@"},{"line_number":49,"context_line":"report_master\u003d\".cover_report_master\""},{"line_number":50,"context_line":"coverage report \u003e $report_master"},{"line_number":51,"context_line":"baseline_missing\u003d`cat $report_master | tail -1 | sed -E \"s/ +/ /g\" | cut -d \" \" -f 3`"}],"source_content_type":"text/x-sh","patch_set":1,"id":"dac4157f_95593c5d","line":48,"updated":"2015-04-21 09:37:42.000000000","message":"This 4 lines called twice, so better make a function","commit_id":"91881e117ae96c1d0fa0f7b512c58b1d3424bf77"},{"author":{"_account_id":6172,"name":"Boris Pavlovic","email":"boris@pavlovic.me","username":"boris-42"},"change_message_id":"9b4a286beadeab5a77210f1cdce90a50666de3c4","unresolved":false,"context_lines":[{"line_number":45,"context_line":"# Switch to master and collect amount of not covered by unit tests lines"},{"line_number":46,"context_line":"to_git_master"},{"line_number":47,"context_line":""},{"line_number":48,"context_line":"python setup.py testr --coverage --testr-args\u003d$@"},{"line_number":49,"context_line":"report_master\u003d\".cover_report_master\""},{"line_number":50,"context_line":"coverage report \u003e $report_master"},{"line_number":51,"context_line":"baseline_missing\u003d`cat $report_master | tail -1 | sed -E \"s/ +/ /g\" | cut -d \" \" -f 3`"}],"source_content_type":"text/x-sh","patch_set":1,"id":"dac4157f_4ad41a46","line":48,"in_reply_to":"dac4157f_95593c5d","updated":"2015-04-21 11:08:39.000000000","message":"I don\u0027t know how to return value for function. And I even don\u0027t want to know.","commit_id":"91881e117ae96c1d0fa0f7b512c58b1d3424bf77"},{"author":{"_account_id":7369,"name":"Sergey Skripnick","email":"sskripnick@mirantis.com","username":"redixin"},"change_message_id":"2d926eeafb9a82145c8062426099cf50c5092155","unresolved":false,"context_lines":[{"line_number":72,"context_line":"    if [ $baseline_missing -lt $current_missing ];"},{"line_number":73,"context_line":"    then"},{"line_number":74,"context_line":"        print_diff $report_master $report_current"},{"line_number":75,"context_line":"        echo \"I believe you can cover all your code with 100% coverage!\""},{"line_number":76,"context_line":"    else"},{"line_number":77,"context_line":"        echo \"Thank you! You are awesome! Keep writing unit tests! :)\""},{"line_number":78,"context_line":"    fi"}],"source_content_type":"text/x-sh","patch_set":1,"id":"dac4157f_302a7e7f","line":75,"updated":"2015-04-21 09:37:42.000000000","message":"It would prefer to see numbers here.","commit_id":"91881e117ae96c1d0fa0f7b512c58b1d3424bf77"},{"author":{"_account_id":6172,"name":"Boris Pavlovic","email":"boris@pavlovic.me","username":"boris-42"},"change_message_id":"9b4a286beadeab5a77210f1cdce90a50666de3c4","unresolved":false,"context_lines":[{"line_number":72,"context_line":"    if [ $baseline_missing -lt $current_missing ];"},{"line_number":73,"context_line":"    then"},{"line_number":74,"context_line":"        print_diff $report_master $report_current"},{"line_number":75,"context_line":"        echo \"I believe you can cover all your code with 100% coverage!\""},{"line_number":76,"context_line":"    else"},{"line_number":77,"context_line":"        echo \"Thank you! You are awesome! Keep writing unit tests! :)\""},{"line_number":78,"context_line":"    fi"}],"source_content_type":"text/x-sh","patch_set":1,"id":"dac4157f_6a38fea0","line":75,"in_reply_to":"dac4157f_302a7e7f","updated":"2015-04-21 11:08:39.000000000","message":"What numbers? Numbers are on 64-66 lines.","commit_id":"91881e117ae96c1d0fa0f7b512c58b1d3424bf77"},{"author":{"_account_id":7369,"name":"Sergey Skripnick","email":"sskripnick@mirantis.com","username":"redixin"},"change_message_id":"1de71e176baa0af26fded9facd86b01aa1932522","unresolved":false,"context_lines":[{"line_number":54,"context_line":"report_master\u003d\".cover_report_master\""},{"line_number":55,"context_line":"get_coverage_report \"${array[*]}\" $report_master"},{"line_number":56,"context_line":""},{"line_number":57,"context_line":"baseline_missing\u003d`tail -1 $report_master | sed -E \"s/ +/ /g\" | cut -d \" \" -f 3`"},{"line_number":58,"context_line":"allowed_missing\u003d$((baseline_missing+ALLOWED_EXTRA_MISSING))"},{"line_number":59,"context_line":""},{"line_number":60,"context_line":"# Switch to original state to collect amount of not covered by unit tests lines"}],"source_content_type":"text/x-sh","patch_set":4,"id":"dac4157f_79833a57","line":57,"updated":"2015-04-21 13:11:29.000000000","message":"This may be included in get_coverage_report too.\n\nSomething like this\n\n function get_coverage_report {\n  python setup.py testr --coverage --testr-args\u003d$1\n  coverage report | tail -1 | sed -E \"s/ +/ /g\" | cut -d \" \" -f 3\n }\n \n current_missing\u003d`get_coverage_report \"${array[*]}\"`\n to_git_master\n master_missing\u003d`get_coverage_report \"${array[*]}\"`\n back_to_original_state\n \n delta\u003d`expr $current_missing - $master_missing`\n if [ $delta -gt $ALLOWED_MISSING_LINES ]; then ...","commit_id":"8c9a4cc79285e848a3635a4779547816913d8e14"}]}
