From 74d6249356396d8c5b20136bd25eca9271c899f8 Mon Sep 17 00:00:00 2001 From: David James Date: Wed, 11 Jan 2012 16:47:51 -0800 Subject: [PATCH] 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 Reviewed-by: David James Tested-by: David James --- cros_generate_breakpad_symbols | 1 + 1 file changed, 1 insertion(+) diff --git a/cros_generate_breakpad_symbols b/cros_generate_breakpad_symbols index 6c2a5895fb..d907dcf937 100755 --- a/cros_generate_breakpad_symbols +++ b/cros_generate_breakpad_symbols @@ -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