From 929b4f1d32d488cd6c8c1e5baae75b3695efc221 Mon Sep 17 00:00:00 2001 From: Tony Medhat Date: Sat, 7 Feb 2026 18:09:03 +0200 Subject: [PATCH] fix(run_macrobenchmark): delete emulator benchmark results directory on each apk install --- .github/scripts/run_macrobenchmarks.sh | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/scripts/run_macrobenchmarks.sh b/.github/scripts/run_macrobenchmarks.sh index 2fe435b5b..e15984a67 100644 --- a/.github/scripts/run_macrobenchmarks.sh +++ b/.github/scripts/run_macrobenchmarks.sh @@ -24,11 +24,8 @@ install_apk() { adb shell pm clear "$APP_PKG" || true adb shell pm clear "${BENCHMARK_PKG}" || true + adb shell rm -rf "${EMULATOR_BENCHMARK_RESULT_DIR}" || true adb shell mkdir -p "${EMULATOR_BENCHMARK_RESULT_DIR}" - - adb shell rm "${EMULATOR_BENCHMARK_RESULT_DIR}"*.json || true - adb shell rm "${EMULATOR_BENCHMARK_RESULT_DIR}"*.perfetto-trace || true - adb shell rm "${EMULATOR_BENCHMARK_RESULT_DIR}"*.txt || true } run_benchmark() { @@ -62,7 +59,7 @@ for ((i=1; i<=${NUMBER_OF_RUNS}; i++)); do start_time=$(date +%s) timestamp=$(date +"%Y-%m-%dT%H-%M-%S") - output_filename="${BENCHMARK_PKG}_${timestamp}" + output_filename="${BENCHMARK_PKG}_${timestamp}.json" baseline_output_path="${OUTPUT_DIR}/baseline/${output_filename}" candidate_output_path="${OUTPUT_DIR}/candidate/${output_filename}"