From d59d879cb57e9cc817a6ca539553c8830987f899 Mon Sep 17 00:00:00 2001 From: Gian Merlino Date: Fri, 25 Oct 2024 19:51:34 -0700 Subject: [PATCH] Use jfr-profiler for JDK 17 tests only. Currently the jfr-profiler jar is loaded for JDK 17 and higher. This patch changes it to only run for JDK 17. This may improve the stability of JDK 21 unit tests. --- .github/scripts/setup_test_profiling_env.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/scripts/setup_test_profiling_env.sh b/.github/scripts/setup_test_profiling_env.sh index b3bf4dc1844d..fa702535d4af 100755 --- a/.github/scripts/setup_test_profiling_env.sh +++ b/.github/scripts/setup_test_profiling_env.sh @@ -25,7 +25,7 @@ if [ "$#" -ne 5 ]; then echo "usage: $0 " fi -if [[ "$1" -ge "17" ]]; +if [[ "$1" -eq "17" ]]; then curl https://static.imply.io/cp/$JAR_INPUT_FILE -s -o $JAR_OUTPUT_FILE