)]}'
{"jenkins/jobs/tripleo.yaml":[{"author":{"_account_id":10969,"name":"Shnaidman Sagi (Sergey)","display_name":"Shnaidman Sagi","email":"sshnaidm@redhat.com","username":"sergsh"},"change_message_id":"1af6a923f3df47f77a4e2c0e9906b32572a9c902","unresolved":false,"context_lines":[{"line_number":186,"context_line":"          if [ $EXIT_CODE -eq 137 ] ; then"},{"line_number":187,"context_line":"              source /opt/stack/new/tripleo-ci/scripts/common_vars.bash"},{"line_number":188,"context_line":"              source /opt/stack/new/tripleo-ci/scripts/common_functions.sh"},{"line_number":189,"context_line":"              postci \\$EXIT_CODE 2\u003e\u00261 | ts \u0027%Y-%m-%d %H:%M:%S.000 |\u0027 \u003e $WORKSPACE/logs/postci.log 2\u003e\u00261"},{"line_number":190,"context_line":"          fi"},{"line_number":191,"context_line":"          exit $EXIT_CODE"},{"line_number":192,"context_line":""}],"source_content_type":"text/x-yaml","patch_set":2,"id":"ba5da102_9fd029f8","line":189,"range":{"start_line":189,"start_character":21,"end_line":189,"end_character":22},"updated":"2016-11-02 15:07:34.000000000","message":"do you want escaping here?","commit_id":"fc343144a1603683025fe1dfadc06af1becabfac"},{"author":{"_account_id":6547,"name":"Andreas Jaeger","email":"jaegerandi@gmail.com","username":"jaegerandi"},"change_message_id":"70fe9a67f6f6bc5d620c3d50a901e0a351c6b551","unresolved":false,"context_lines":[{"line_number":180,"context_line":"          cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh"},{"line_number":181,"context_line":"          ./safe-devstack-vm-gate-wrap.sh"},{"line_number":182,"context_line":""},{"line_number":183,"context_line":"          # We want to collect the logs, even if fails with timeout"},{"line_number":184,"context_line":"          EXIT_CODE\u003d$?"},{"line_number":185,"context_line":""},{"line_number":186,"context_line":"          if [ $EXIT_CODE -eq 137 ] ; then"},{"line_number":187,"context_line":"              source /opt/stack/new/tripleo-ci/scripts/common_vars.bash"},{"line_number":188,"context_line":"              source /opt/stack/new/tripleo-ci/scripts/common_functions.sh"},{"line_number":189,"context_line":"              postci $EXIT_CODE 2\u003e\u00261 | ts \u0027%Y-%m-%d %H:%M:%S.000 |\u0027 \u003e $WORKSPACE/logs/postci.log 2\u003e\u00261"},{"line_number":190,"context_line":"          fi"},{"line_number":191,"context_line":"          exit $EXIT_CODE"},{"line_number":192,"context_line":""},{"line_number":193,"context_line":"    publishers:"},{"line_number":194,"context_line":"      - scp:"}],"source_content_type":"text/x-yaml","patch_set":3,"id":"ba5da102_13c4063e","line":191,"range":{"start_line":183,"start_character":8,"end_line":191,"end_character":25},"updated":"2016-11-02 19:29:10.000000000","message":"This will not work since we run the scripts with \"bash -xe\", you need to wrap this or add a trap handle.","commit_id":"662ae3a4476f1b4d5e4a915bda490b42162d0ea2"},{"author":{"_account_id":8367,"name":"Arx Cruz","email":"arxcruz@redhat.com","username":"arxcruz"},"change_message_id":"08e4b22956b2c0ca96fe505da1f5a2a667a70287","unresolved":false,"context_lines":[{"line_number":180,"context_line":"          cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh"},{"line_number":181,"context_line":"          ./safe-devstack-vm-gate-wrap.sh"},{"line_number":182,"context_line":""},{"line_number":183,"context_line":"          # We want to collect the logs, even if fails with timeout"},{"line_number":184,"context_line":"          EXIT_CODE\u003d$?"},{"line_number":185,"context_line":""},{"line_number":186,"context_line":"          if [ $EXIT_CODE -eq 137 ] ; then"},{"line_number":187,"context_line":"              source /opt/stack/new/tripleo-ci/scripts/common_vars.bash"},{"line_number":188,"context_line":"              source /opt/stack/new/tripleo-ci/scripts/common_functions.sh"},{"line_number":189,"context_line":"              postci $EXIT_CODE 2\u003e\u00261 | ts \u0027%Y-%m-%d %H:%M:%S.000 |\u0027 \u003e $WORKSPACE/logs/postci.log 2\u003e\u00261"},{"line_number":190,"context_line":"          fi"},{"line_number":191,"context_line":"          exit $EXIT_CODE"},{"line_number":192,"context_line":""},{"line_number":193,"context_line":"    publishers:"},{"line_number":194,"context_line":"      - scp:"}],"source_content_type":"text/x-yaml","patch_set":3,"id":"ba5da102_65bd74d7","line":191,"range":{"start_line":183,"start_character":8,"end_line":191,"end_character":25},"in_reply_to":"ba5da102_13c4063e","updated":"2016-11-02 22:44:26.000000000","message":"trap will not work, because timeout send a sigkill, which terminates the shell, and it\u0027s the only signal that trap don\u0027t handle (unfortunate).\n\nMy idea was create a timeout_hook function in the devstack-gate when we get a timeout, however, it was rejected.\nSee https://review.openstack.org/#/c/391870/\n\nIf you have other suggestion, please let me know. I\u0027m running out of options.","commit_id":"662ae3a4476f1b4d5e4a915bda490b42162d0ea2"}]}
