Clean old breakpad symbols prior to generating new ones.

If we're generating new breakpad symbols, we don't need to keep the
old ones around. Keeping the old ones forever means the debug tarballs
get really large (e.g. >10GB).

This problem makes incremental bots get slower and slower over time. The
chromium.chromiumos bot spends over an hour archiving the debug symbols,
for example.

BUG=chromium-os:24994
TEST=Trybot run of archive stage, generating and uploading debug
     symbols.

Change-Id: Ibf57db2561d29085434439ecd4f23e5cec1f598a
Reviewed-on: https://gerrit.chromium.org/gerrit/14040
Commit-Ready: David James <davidjames@chromium.org>
Reviewed-by: David James <davidjames@chromium.org>
Tested-by: David James <davidjames@chromium.org>
This commit is contained in:
David James 2012-01-11 16:47:51 -08:00 committed by Gerrit
parent 094160701f
commit 74d6249356

View File

@ -204,6 +204,7 @@ function main() {
DEBUG_ROOT="${SYSROOT}/usr/lib/debug"
AUTOTEST_ROOT="${SYSROOT}/usr/local/autotest"
CUMULATIVE_SIZE=0
sudo rm -rf "${FLAGS_minidump_symbol_root}"
if [ -z "${FLAGS_ARGV}" ]; then
for debug_file in $(find "${DEBUG_ROOT}" -name \*.debug); do