| OLD | NEW |
| 1 #!/bin/sh | 1 #!/bin/sh |
| 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
| 5 | 5 |
| 6 # Scape errors from the valgrind bots, reproduce them locally, | 6 # Scape errors from the valgrind bots, reproduce them locally, |
| 7 # save logs as regrind-TESTNAME.log, and display any errors found. | 7 # save logs as regrind-TESTNAME.log, and display any errors found. |
| 8 # Also save files regrind-failed.txt listing failed tests, | 8 # Also save files regrind-failed.txt listing failed tests, |
| 9 # and regrind-failed-map.txt showing which bot URLs have which failed tests | 9 # and regrind-failed-map.txt showing which bot URLs have which failed tests |
| 10 # (handy when filing bugs). | 10 # (handy when filing bugs). |
| 11 # | 11 # |
| 12 # Only scrapes linux layout bot at the moment. | 12 # Only scrapes linux layout bot at the moment. |
| 13 # TODO: handle layout tests that don't have obvious path to test file | 13 # TODO: handle layout tests that don't have obvious path to test file |
| 14 # TODO: extend script to handle more kinds of errors and more tests | 14 # TODO: extend script to handle more kinds of errors and more tests |
| 15 | 15 |
| 16 # where the valgrind layout bot results live | 16 # where the valgrind layout bot results live |
| 17 LAYOUT_URL="http://build.chromium.org/p/chromium.memory.fyi/builders/Webkit%20Li
nux%20(valgrind%20layout)" | 17 LAYOUT_URL="http://build.chromium.org/p/chromium.memory.full/builders/Webkit%20L
inux%20(valgrind%20layout)" |
| 18 # how many builds back to check | 18 # how many builds back to check |
| 19 LAYOUT_COUNT=250 | 19 LAYOUT_COUNT=250 |
| 20 | 20 |
| 21 # regexp to match valgrind errors | 21 # regexp to match valgrind errors |
| 22 PATTERN="are definitely|uninitialised|Unhandled exception|\ | 22 PATTERN="are definitely|uninitialised|Unhandled exception|\ |
| 23 Invalid read|Invalid write|Invalid free|Source and desti|Mismatched free|\ | 23 Invalid read|Invalid write|Invalid free|Source and desti|Mismatched free|\ |
| 24 unaddressable byte|vex x86|the 'impossible' happened|\ | 24 unaddressable byte|vex x86|the 'impossible' happened|\ |
| 25 valgrind:.*: Assertion.*failed|VALGRIND INTERNAL ERROR" | 25 valgrind:.*: Assertion.*failed|VALGRIND INTERNAL ERROR" |
| 26 | 26 |
| 27 usage() { | 27 usage() { |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 | 129 |
| 130 if test $do_repro = 1 | 130 if test $do_repro = 1 |
| 131 then | 131 then |
| 132 repro_layout | 132 repro_layout |
| 133 fi | 133 fi |
| 134 | 134 |
| 135 if test $do_cleanup = 1 | 135 if test $do_cleanup = 1 |
| 136 then | 136 then |
| 137 rm -f regrind-errfiles.txt regrind-*.tmp* | 137 rm -f regrind-errfiles.txt regrind-*.tmp* |
| 138 fi | 138 fi |
| OLD | NEW |