From 1047989bb6d63510aa6c828e1d0cfa41c3b02398 Mon Sep 17 00:00:00 2001 From: Mike Hardy Date: Thu, 13 Oct 2022 14:32:39 -0500 Subject: [PATCH] test(perf): avoid OOM while running big batches of commit tests TIL that you can still kill a machine with 64GB+64GB RAM+Swap if you run enough Kotlin on it. Thanks gradle. --- tools/test-commits.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/test-commits.sh b/tools/test-commits.sh index 1d97eb5840..bd4421f166 100755 --- a/tools/test-commits.sh +++ b/tools/test-commits.sh @@ -14,6 +14,7 @@ first_commit="$1" while :; do echo "testing $(git log --pretty=oneline -1)" ./gradlew -q clean uninstallPlayDebug jacocoTestReport :api:lintRelease :AnkiDroid:lintPlayRelease ktlintCheck + ./gradlew --stop [ $(git rev-parse HEAD) = $first_commit ] && break git checkout HEAD^ done