)]}'
{"tests/bin/endpoint_test.sh":[{"author":{"_account_id":16520,"name":"Borne Mace","email":"borne.mace@oracle.com","username":"bmace"},"change_message_id":"d301365d946b2fc9684f8fcfe1c0cd0c49f8998d","unresolved":false,"context_lines":[{"line_number":1,"context_line":"#!/bin/bash -e"},{"line_number":2,"context_line":""},{"line_number":3,"context_line":"# NOTE(sdake) This bash exits -1 during a failure. During the dev"},{"line_number":4,"context_line":"              environment setup, cp may is failing resulting in a \u003e0 error"},{"line_number":5,"context_line":"              code returned to the parent script.  This causes the dev"},{"line_number":6,"context_line":"              env to crater."},{"line_number":7,"context_line":""}],"source_content_type":"text/x-sh","patch_set":1,"id":"1a430d35_47023f0b","line":4,"updated":"2017-02-08 19:17:25.000000000","message":"either \"may\" or \"is\" but not both :)","commit_id":"bd7053c80c5ff450208ecff0178a6b2edc8d0800"},{"author":{"_account_id":2834,"name":"Steven Dake","email":"steven.dake@gmail.com","username":"sdake"},"change_message_id":"79f78e3c5d2b5c6b59425a34d1f815d229f8d370","unresolved":false,"context_lines":[{"line_number":1,"context_line":"#!/bin/bash -e"},{"line_number":2,"context_line":""},{"line_number":3,"context_line":"# NOTE(sdake) This bash exits -1 during a failure. During the dev"},{"line_number":4,"context_line":"              environment setup, cp may is failing resulting in a \u003e0 error"},{"line_number":5,"context_line":"              code returned to the parent script.  This causes the dev"},{"line_number":6,"context_line":"              env to crater."},{"line_number":7,"context_line":""}],"source_content_type":"text/x-sh","patch_set":1,"id":"1a430d35_021d8565","line":4,"in_reply_to":"1a430d35_47023f0b","updated":"2017-02-08 19:44:17.000000000","message":"Done","commit_id":"bd7053c80c5ff450208ecff0178a6b2edc8d0800"},{"author":{"_account_id":16520,"name":"Borne Mace","email":"borne.mace@oracle.com","username":"bmace"},"change_message_id":"b88a84f2170c6bcc71cdab214b08c4ad07d5bef5","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":1,"id":"1a430d35_87afc77b","line":19,"updated":"2017-02-08 19:29:14.000000000","message":"please add exit 0 at the end also to avoid the 1 return when the workspace directory doesn\u0027t exit.","commit_id":"bd7053c80c5ff450208ecff0178a6b2edc8d0800"},{"author":{"_account_id":2834,"name":"Steven Dake","email":"steven.dake@gmail.com","username":"sdake"},"change_message_id":"79f78e3c5d2b5c6b59425a34d1f815d229f8d370","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":1,"id":"1a430d35_2218c174","line":19,"in_reply_to":"1a430d35_87afc77b","updated":"2017-02-08 19:44:17.000000000","message":"Done","commit_id":"bd7053c80c5ff450208ecff0178a6b2edc8d0800"},{"author":{"_account_id":9237,"name":"Kevin Fox","email":"kevin@efox.cc","username":"kfox1111"},"change_message_id":"d8d78b71e843fc315c3af67d04bd6e3ed2352bb6","unresolved":false,"context_lines":[{"line_number":1,"context_line":"#!/bin/bash -e"},{"line_number":2,"context_line":""},{"line_number":3,"context_line":"# NOTE(sdake) This bash exits -1 during a failure. During the dev"},{"line_number":4,"context_line":"              environment setup, cp may is failing resulting in a \u003e0 error"},{"line_number":5,"context_line":"              code returned to the parent script.  This causes the dev"},{"line_number":6,"context_line":"              env to crater."},{"line_number":7,"context_line":""}],"source_content_type":"text/x-sh","patch_set":2,"id":"1a430d35_c2d1bd24","line":4,"range":{"start_line":4,"start_character":36,"end_line":4,"end_character":42},"updated":"2017-02-08 20:09:52.000000000","message":"still may is","commit_id":"9f776d4069d026e7e061f4e6dc8803760ee25999"},{"author":{"_account_id":2834,"name":"Steven Dake","email":"steven.dake@gmail.com","username":"sdake"},"change_message_id":"a54b0d592b5310911e4739fbd11f510ba0da336a","unresolved":false,"context_lines":[{"line_number":1,"context_line":"#!/bin/bash -e"},{"line_number":2,"context_line":""},{"line_number":3,"context_line":"# NOTE(sdake) This bash exits -1 during a failure. During the dev"},{"line_number":4,"context_line":"              environment setup, cp may is failing resulting in a \u003e0 error"},{"line_number":5,"context_line":"              code returned to the parent script.  This causes the dev"},{"line_number":6,"context_line":"              env to crater."},{"line_number":7,"context_line":""}],"source_content_type":"text/x-sh","patch_set":2,"id":"1a430d35_9d439412","line":4,"range":{"start_line":4,"start_character":36,"end_line":4,"end_character":42},"in_reply_to":"1a430d35_c2d1bd24","updated":"2017-02-08 20:21:22.000000000","message":"Done","commit_id":"9f776d4069d026e7e061f4e6dc8803760ee25999"},{"author":{"_account_id":9237,"name":"Kevin Fox","email":"kevin@efox.cc","username":"kfox1111"},"change_message_id":"d8d78b71e843fc315c3af67d04bd6e3ed2352bb6","unresolved":false,"context_lines":[{"line_number":3,"context_line":"# NOTE(sdake) This bash exits -1 during a failure. During the dev"},{"line_number":4,"context_line":"              environment setup, cp may is failing resulting in a \u003e0 error"},{"line_number":5,"context_line":"              code returned to the parent script.  This causes the dev"},{"line_number":6,"context_line":"              env to crater."},{"line_number":7,"context_line":""},{"line_number":8,"context_line":"function endpoints_dump_and_fail {"},{"line_number":9,"context_line":"    cat /tmp/$$.1"}],"source_content_type":"text/x-sh","patch_set":2,"id":"1a430d35_4215cd99","line":6,"updated":"2017-02-08 20:09:52.000000000","message":"Most of this commenting is about a particular bug you had with it. If we did the same for all bugs, we\u0027d be in trouble. I think the commit log is sufficient to handle that info if folks want to know the why of it? Though a comment stating explicitly something like: This script returns 0 on successful endpoint test and !0 on failure would still be helpful while having a smaller footprint?","commit_id":"9f776d4069d026e7e061f4e6dc8803760ee25999"},{"author":{"_account_id":2834,"name":"Steven Dake","email":"steven.dake@gmail.com","username":"sdake"},"change_message_id":"a54b0d592b5310911e4739fbd11f510ba0da336a","unresolved":false,"context_lines":[{"line_number":3,"context_line":"# NOTE(sdake) This bash exits -1 during a failure. During the dev"},{"line_number":4,"context_line":"              environment setup, cp may is failing resulting in a \u003e0 error"},{"line_number":5,"context_line":"              code returned to the parent script.  This causes the dev"},{"line_number":6,"context_line":"              env to crater."},{"line_number":7,"context_line":""},{"line_number":8,"context_line":"function endpoints_dump_and_fail {"},{"line_number":9,"context_line":"    cat /tmp/$$.1"}],"source_content_type":"text/x-sh","patch_set":2,"id":"1a430d35_5d3dac8d","line":6,"in_reply_to":"1a430d35_4215cd99","updated":"2017-02-08 20:21:22.000000000","message":"i\u0027ll address this with the conditions that could cause failures.  your correct the current approach is wrong.","commit_id":"9f776d4069d026e7e061f4e6dc8803760ee25999"},{"author":{"_account_id":9237,"name":"Kevin Fox","email":"kevin@efox.cc","username":"kfox1111"},"change_message_id":"d8d78b71e843fc315c3af67d04bd6e3ed2352bb6","unresolved":false,"context_lines":[{"line_number":17,"context_line":"[ -d $WORKSPACE/logs ] \u0026\u0026 cp /tmp/$$ $WORKSPACE/logs/endpoints.txt"},{"line_number":18,"context_line":"[ -d $WORKSPACE/logs ] \u0026\u0026 cp /tmp/$$.1 $WORKSPACE/logs/endpoints1.txt"},{"line_number":19,"context_line":""},{"line_number":20,"context_line":"EXITCODE \u003d \"$?\""},{"line_number":21,"context_line":""},{"line_number":22,"context_line":"# NOTE(sdake): If the workspace isn\u0027t set (because this is the dev env),"},{"line_number":23,"context_line":"               unconditionally return 0"}],"source_content_type":"text/x-sh","patch_set":2,"id":"1a430d35_820ed5e2","line":20,"updated":"2017-02-08 20:09:52.000000000","message":"EXITCODE can\u0027t be anything other then 0 and make it here.\n\nbash -e flag is in effect.\n\nSo, I think this code is all dead at the moment.\n\nDid you intend the WORKSPACE check to be right after the awk line? I think that would fix it. And you could get rid of the EXITCODE stuff.","commit_id":"9f776d4069d026e7e061f4e6dc8803760ee25999"},{"author":{"_account_id":2834,"name":"Steven Dake","email":"steven.dake@gmail.com","username":"sdake"},"change_message_id":"a54b0d592b5310911e4739fbd11f510ba0da336a","unresolved":false,"context_lines":[{"line_number":17,"context_line":"[ -d $WORKSPACE/logs ] \u0026\u0026 cp /tmp/$$ $WORKSPACE/logs/endpoints.txt"},{"line_number":18,"context_line":"[ -d $WORKSPACE/logs ] \u0026\u0026 cp /tmp/$$.1 $WORKSPACE/logs/endpoints1.txt"},{"line_number":19,"context_line":""},{"line_number":20,"context_line":"EXITCODE \u003d \"$?\""},{"line_number":21,"context_line":""},{"line_number":22,"context_line":"# NOTE(sdake): If the workspace isn\u0027t set (because this is the dev env),"},{"line_number":23,"context_line":"               unconditionally return 0"}],"source_content_type":"text/x-sh","patch_set":2,"id":"1a430d35_5d884c71","line":20,"in_reply_to":"1a430d35_820ed5e2","updated":"2017-02-08 20:21:22.000000000","message":"thanks good suggestion.","commit_id":"9f776d4069d026e7e061f4e6dc8803760ee25999"},{"author":{"_account_id":24147,"name":"Mark Giles","email":"mark.giles@oracle.com","username":"mark-giles"},"change_message_id":"4088069e6a464860f4252fbc3331e948ea5d03b2","unresolved":false,"context_lines":[{"line_number":1,"context_line":"#!/bin/bash -e"},{"line_number":2,"context_line":""},{"line_number":3,"context_line":"# This bash exits 0\u003e during a failure and 0 during success.  Possible"},{"line_number":4,"context_line":"# error conditions include:"},{"line_number":5,"context_line":"# * failure to curl the AuthToken from OpenStack"},{"line_number":6,"context_line":"# * failure to find the endpoints in the curled result"}],"source_content_type":"text/x-sh","patch_set":3,"id":"1a430d35_ab3d652c","line":3,"range":{"start_line":3,"start_character":18,"end_line":3,"end_character":20},"updated":"2017-02-09 00:13:20.000000000","message":"\u003e0","commit_id":"d1a93f1ca7c347437647db7e27b837141596cabe"},{"author":{"_account_id":2834,"name":"Steven Dake","email":"steven.dake@gmail.com","username":"sdake"},"change_message_id":"d10279404e28a4abbf5ae24af5370320402d7970","unresolved":false,"context_lines":[{"line_number":1,"context_line":"#!/bin/bash -e"},{"line_number":2,"context_line":""},{"line_number":3,"context_line":"# This bash exits 0\u003e during a failure and 0 during success.  Possible"},{"line_number":4,"context_line":"# error conditions include:"},{"line_number":5,"context_line":"# * failure to curl the AuthToken from OpenStack"},{"line_number":6,"context_line":"# * failure to find the endpoints in the curled result"}],"source_content_type":"text/x-sh","patch_set":3,"id":"1a430d35_39d386d6","line":3,"range":{"start_line":3,"start_character":18,"end_line":3,"end_character":20},"in_reply_to":"1a430d35_ab3d652c","updated":"2017-02-09 04:41:50.000000000","message":"Done","commit_id":"d1a93f1ca7c347437647db7e27b837141596cabe"},{"author":{"_account_id":24147,"name":"Mark Giles","email":"mark.giles@oracle.com","username":"mark-giles"},"change_message_id":"4088069e6a464860f4252fbc3331e948ea5d03b2","unresolved":false,"context_lines":[{"line_number":4,"context_line":"# error conditions include:"},{"line_number":5,"context_line":"# * failure to curl the AuthToken from OpenStack"},{"line_number":6,"context_line":"# * failure to find the endpoints in the curled result"},{"line_number":7,"context_line":"# * syntax erorr in awk"},{"line_number":8,"context_line":"# * copying the logs fails for some reason"},{"line_number":9,"context_line":""},{"line_number":10,"context_line":"function endpoints_dump_and_fail {"}],"source_content_type":"text/x-sh","patch_set":3,"id":"1a430d35_ab8725b3","line":7,"range":{"start_line":7,"start_character":11,"end_line":7,"end_character":16},"updated":"2017-02-09 00:13:20.000000000","message":"error","commit_id":"d1a93f1ca7c347437647db7e27b837141596cabe"},{"author":{"_account_id":2834,"name":"Steven Dake","email":"steven.dake@gmail.com","username":"sdake"},"change_message_id":"d10279404e28a4abbf5ae24af5370320402d7970","unresolved":false,"context_lines":[{"line_number":4,"context_line":"# error conditions include:"},{"line_number":5,"context_line":"# * failure to curl the AuthToken from OpenStack"},{"line_number":6,"context_line":"# * failure to find the endpoints in the curled result"},{"line_number":7,"context_line":"# * syntax erorr in awk"},{"line_number":8,"context_line":"# * copying the logs fails for some reason"},{"line_number":9,"context_line":""},{"line_number":10,"context_line":"function endpoints_dump_and_fail {"}],"source_content_type":"text/x-sh","patch_set":3,"id":"1a430d35_19e7aaac","line":7,"range":{"start_line":7,"start_character":11,"end_line":7,"end_character":16},"in_reply_to":"1a430d35_ab8725b3","updated":"2017-02-09 04:41:50.000000000","message":"Done","commit_id":"d1a93f1ca7c347437647db7e27b837141596cabe"},{"author":{"_account_id":24147,"name":"Mark Giles","email":"mark.giles@oracle.com","username":"mark-giles"},"change_message_id":"4088069e6a464860f4252fbc3331e948ea5d03b2","unresolved":false,"context_lines":[{"line_number":20,"context_line":"# If the workspace isn\u0027t set (because this is the dev env),  unconditionally"},{"line_number":21,"context_line":"# return 0"},{"line_number":22,"context_line":"if [ \"x$WORKSPACE\" \u003d\u003d \"x\" ]; then"},{"line_number":23,"context_line":"    return 0"},{"line_number":24,"context_line":"fi"},{"line_number":25,"context_line":""},{"line_number":26,"context_line":"# Copy the endpoint informational logs if the logs dir exists"}],"source_content_type":"text/x-sh","patch_set":3,"id":"1a430d35_2b6975f9","line":23,"range":{"start_line":23,"start_character":4,"end_line":23,"end_character":10},"updated":"2017-02-09 00:13:20.000000000","message":"This will work, but seems a bit odd.  Usually, you\u0027d use exit here, not return.","commit_id":"d1a93f1ca7c347437647db7e27b837141596cabe"},{"author":{"_account_id":2834,"name":"Steven Dake","email":"steven.dake@gmail.com","username":"sdake"},"change_message_id":"d10279404e28a4abbf5ae24af5370320402d7970","unresolved":false,"context_lines":[{"line_number":20,"context_line":"# If the workspace isn\u0027t set (because this is the dev env),  unconditionally"},{"line_number":21,"context_line":"# return 0"},{"line_number":22,"context_line":"if [ \"x$WORKSPACE\" \u003d\u003d \"x\" ]; then"},{"line_number":23,"context_line":"    return 0"},{"line_number":24,"context_line":"fi"},{"line_number":25,"context_line":""},{"line_number":26,"context_line":"# Copy the endpoint informational logs if the logs dir exists"}],"source_content_type":"text/x-sh","patch_set":3,"id":"1a430d35_5905b243","line":23,"range":{"start_line":23,"start_character":4,"end_line":23,"end_character":10},"in_reply_to":"1a430d35_2b6975f9","updated":"2017-02-09 04:41:50.000000000","message":"Done","commit_id":"d1a93f1ca7c347437647db7e27b837141596cabe"},{"author":{"_account_id":22959,"name":"Zeyu Zhu","email":"zhuzeyu0409@gmail.com","username":"zhuzeyu"},"change_message_id":"37b13ccb846e2f572ffb60880ca923c28949f3ae","unresolved":false,"context_lines":[{"line_number":17,"context_line":"jq -r \u0027.endpoints[] | .service_id\u0027 /tmp/$$ | sort | uniq -c \u003e /tmp/$$.1"},{"line_number":18,"context_line":"awk \u0027{if($1 !\u003d 3){exit -1}}\u0027 /tmp/$$.1 || endpoints_dump_and_fail"},{"line_number":19,"context_line":""},{"line_number":20,"context_line":"# If the workspace isn\u0027t set (because this is the dev env),  unconditionally"},{"line_number":21,"context_line":"# exit 0"},{"line_number":22,"context_line":"if [ \"x$WORKSPACE\" \u003d\u003d \"x\" ]; then"},{"line_number":23,"context_line":"    exit 0"}],"source_content_type":"text/x-sh","patch_set":4,"id":"1a430d35_eac91e27","line":20,"range":{"start_line":20,"start_character":25,"end_line":20,"end_character":28},"updated":"2017-02-09 07:03:05.000000000","message":"setted may be better","commit_id":"a04017f3909ef0ce493ef8e467562230f2b05d56"}]}
