| OLD | NEW |
| 1 #!/bin/bash | 1 #!/bin/bash |
| 2 | 2 |
| 3 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 3 # Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 4 # Use of this source code is governed by a BSD-style license that can be | 4 # Use of this source code is governed by a BSD-style license that can be |
| 5 # found in the LICENSE file. | 5 # found in the LICENSE file. |
| 6 | 6 |
| 7 # This script can be used by waterfall sheriffs to fetch the status | 7 # This script can be used by waterfall sheriffs to fetch the status |
| 8 # of Valgrind bots on the memory waterfall and test if their local | 8 # of Valgrind bots on the memory waterfall and test if their local |
| 9 # suppressions match the reports on the waterfall. | 9 # suppressions match the reports on the waterfall. |
| 10 | 10 |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 rm "$TMPFILE" | 121 rm "$TMPFILE" |
| 122 echo $SLAVE_URL/builds/$BUILD >> "$REPORT_FILE" | 122 echo $SLAVE_URL/builds/$BUILD >> "$REPORT_FILE" |
| 123 done | 123 done |
| 124 echo " DONE" | 124 echo " DONE" |
| 125 done | 125 done |
| 126 # }}} | 126 # }}} |
| 127 } | 127 } |
| 128 | 128 |
| 129 match_suppressions() { | 129 match_suppressions() { |
| 130 PYTHONPATH=$THISDIR/../python/google \ | 130 PYTHONPATH=$THISDIR/../python/google \ |
| 131 python "$THISDIR/test_suppressions.py" "$LOGS_DIR/report_"* | 131 python "$THISDIR/test_suppressions.py" $@ "$LOGS_DIR/report_"* |
| 132 } | 132 } |
| 133 | 133 |
| 134 match_gtest_excludes() { | 134 match_gtest_excludes() { |
| 135 for PLATFORM in "Linux" "Chromium%20Mac" "Chromium%20OS" | 135 for PLATFORM in "Linux" "Chromium%20Mac" "Chromium%20OS" |
| 136 do | 136 do |
| 137 echo | 137 echo |
| 138 echo "Test failures on ${PLATFORM}:" | sed "s/%20/ /" | 138 echo "Test failures on ${PLATFORM}:" | sed "s/%20/ /" |
| 139 grep -h -o "^FAILED:.*" -R "$LOGS_DIR"/*${PLATFORM}* | \ | 139 grep -h -o "^FAILED:.*" -R "$LOGS_DIR"/*${PLATFORM}* | \ |
| 140 grep -v "FAILS\|FLAKY" | sort | uniq | \ | 140 grep -v "FAILS\|FLAKY" | sort | uniq | \ |
| 141 sed -e "s/^FAILED://" -e "s/^/ /" | 141 sed -e "s/^FAILED://" -e "s/^/ /" |
| (...skipping 12 matching lines...) Expand all Loading... |
| 154 echo | 154 echo |
| 155 echo "Note: we don't print FAILS/FLAKY tests and 1200s-timeout failures" | 155 echo "Note: we don't print FAILS/FLAKY tests and 1200s-timeout failures" |
| 156 } | 156 } |
| 157 | 157 |
| 158 if [ "$1" = "fetch" ] | 158 if [ "$1" = "fetch" ] |
| 159 then | 159 then |
| 160 fetch_logs $WATERFALL_PAGE | 160 fetch_logs $WATERFALL_PAGE |
| 161 fetch_logs $WATERFALL_FYI_PAGE | 161 fetch_logs $WATERFALL_FYI_PAGE |
| 162 elif [ "$1" = "match" ] | 162 elif [ "$1" = "match" ] |
| 163 then | 163 then |
| 164 match_suppressions | 164 match_suppressions ${@:2} |
| 165 match_gtest_excludes | 165 match_gtest_excludes |
| 166 elif [ "$1" = "blame" ] | 166 elif [ "$1" = "blame" ] |
| 167 then | 167 then |
| 168 echo The blame command died of bitrot. If you need it, please reimplement it. | 168 echo The blame command died of bitrot. If you need it, please reimplement it. |
| 169 echo Reimplementation is blocked on http://crbug.com/82688 | 169 echo Reimplementation is blocked on http://crbug.com/82688 |
| 170 else | 170 else |
| 171 THISNAME=$(basename "${0}") | 171 THISNAME=$(basename "${0}") |
| 172 echo "Usage: $THISNAME fetch|match" | 172 echo "Usage: $THISNAME fetch|match" |
| 173 echo " fetch - Fetch Valgrind logs from the memory waterfall" | 173 echo " fetch - Fetch Valgrind logs from the memory waterfall" |
| 174 echo " match - Test the local suppression files against the downloaded logs" | 174 echo " match - Test the local suppression files against the downloaded logs" |
| 175 fi | 175 fi |
| OLD | NEW |