From ce4b8f07c0e973dbbf935311019fd6f657f091f4 Mon Sep 17 00:00:00 2001 From: Werner Dietl Date: Fri, 16 Aug 2024 15:51:53 -0400 Subject: [PATCH 1/2] Try `--no-configuration-cache` against flaky tests --- checker/bin-devel/test-cftests-junit-jdk21.sh | 2 +- checker/bin-devel/test-cftests-junit.sh | 2 +- checker/bin-devel/test-cftests-nonjunit.sh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/checker/bin-devel/test-cftests-junit-jdk21.sh b/checker/bin-devel/test-cftests-junit-jdk21.sh index fe20e2caf60..3e3b4c2b677 100755 --- a/checker/bin-devel/test-cftests-junit-jdk21.sh +++ b/checker/bin-devel/test-cftests-junit-jdk21.sh @@ -12,4 +12,4 @@ export ORG_GRADLE_PROJECT_useJdkCompiler=21 source "$SCRIPTDIR"/clone-related.sh -./gradlew test -x javadoc -x allJavadoc --console=plain --warning-mode=all +./gradlew test -x javadoc -x allJavadoc --console=plain --warning-mode=all --no-configuration-cache diff --git a/checker/bin-devel/test-cftests-junit.sh b/checker/bin-devel/test-cftests-junit.sh index 92d31565b88..f44d53ef171 100755 --- a/checker/bin-devel/test-cftests-junit.sh +++ b/checker/bin-devel/test-cftests-junit.sh @@ -11,4 +11,4 @@ SCRIPTDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" source "$SCRIPTDIR"/clone-related.sh -./gradlew test -x javadoc -x allJavadoc --console=plain --warning-mode=all +./gradlew test -x javadoc -x allJavadoc --console=plain --warning-mode=all --no-configuration-cache diff --git a/checker/bin-devel/test-cftests-nonjunit.sh b/checker/bin-devel/test-cftests-nonjunit.sh index 1165c83c415..45749880aca 100755 --- a/checker/bin-devel/test-cftests-nonjunit.sh +++ b/checker/bin-devel/test-cftests-nonjunit.sh @@ -11,7 +11,7 @@ SCRIPTDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" source "$SCRIPTDIR"/clone-related.sh -./gradlew nonJunitTests -x javadoc -x allJavadoc --console=plain --warning-mode=all +./gradlew nonJunitTests -x javadoc -x allJavadoc --console=plain --warning-mode=all --no-configuration-cache ./gradlew publishToMavenLocal -x javadoc -x allJavadoc --console=plain --warning-mode=all # Moved example-tests out of all tests because it fails in # the release script because the newest maven artifacts are not published yet. From 4bb9e7031fade46c94f83406f7a3259a2b55de0d Mon Sep 17 00:00:00 2001 From: Werner Dietl Date: Fri, 16 Aug 2024 16:09:41 -0400 Subject: [PATCH 2/2] Try `--no-build-cache` instead --- checker/bin-devel/test-cftests-junit-jdk21.sh | 2 +- checker/bin-devel/test-cftests-junit.sh | 2 +- checker/bin-devel/test-cftests-nonjunit.sh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/checker/bin-devel/test-cftests-junit-jdk21.sh b/checker/bin-devel/test-cftests-junit-jdk21.sh index 3e3b4c2b677..d6438c11b18 100755 --- a/checker/bin-devel/test-cftests-junit-jdk21.sh +++ b/checker/bin-devel/test-cftests-junit-jdk21.sh @@ -12,4 +12,4 @@ export ORG_GRADLE_PROJECT_useJdkCompiler=21 source "$SCRIPTDIR"/clone-related.sh -./gradlew test -x javadoc -x allJavadoc --console=plain --warning-mode=all --no-configuration-cache +./gradlew test -x javadoc -x allJavadoc --console=plain --warning-mode=all --no-build-cache diff --git a/checker/bin-devel/test-cftests-junit.sh b/checker/bin-devel/test-cftests-junit.sh index f44d53ef171..a28ae824c89 100755 --- a/checker/bin-devel/test-cftests-junit.sh +++ b/checker/bin-devel/test-cftests-junit.sh @@ -11,4 +11,4 @@ SCRIPTDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" source "$SCRIPTDIR"/clone-related.sh -./gradlew test -x javadoc -x allJavadoc --console=plain --warning-mode=all --no-configuration-cache +./gradlew test -x javadoc -x allJavadoc --console=plain --warning-mode=all --no-build-cache diff --git a/checker/bin-devel/test-cftests-nonjunit.sh b/checker/bin-devel/test-cftests-nonjunit.sh index 45749880aca..0fbac87ad10 100755 --- a/checker/bin-devel/test-cftests-nonjunit.sh +++ b/checker/bin-devel/test-cftests-nonjunit.sh @@ -11,7 +11,7 @@ SCRIPTDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" source "$SCRIPTDIR"/clone-related.sh -./gradlew nonJunitTests -x javadoc -x allJavadoc --console=plain --warning-mode=all --no-configuration-cache +./gradlew nonJunitTests -x javadoc -x allJavadoc --console=plain --warning-mode=all --no-build-cache ./gradlew publishToMavenLocal -x javadoc -x allJavadoc --console=plain --warning-mode=all # Moved example-tests out of all tests because it fails in # the release script because the newest maven artifacts are not published yet.