From c9a9cd7bd7ee6b5997af32a1871418e1a484a8dc Mon Sep 17 00:00:00 2001 From: Mihaly Lengyel Date: Tue, 29 Oct 2024 00:18:29 +0100 Subject: [PATCH] ci: try automatically re-running tests --- .circleci/doTests.sh | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/.circleci/doTests.sh b/.circleci/doTests.sh index cde56b142..761026309 100755 --- a/.circleci/doTests.sh +++ b/.circleci/doTests.sh @@ -164,18 +164,13 @@ do echo $SUPERTOKENS_API_KEY > apiPassword # Get list of classnames of tests that should run on this node. - circleci tests glob "supertokens-*/src/test/**/*Test.java" | cut -c 1- | sed 's@/@.@g' | sed 's/.\{5\}$//' | + circleci tests glob "supertokens-*/src/test/**/*.java" | cut -c 1- | sed 's@/@.@g' | sed 's/.\{5\}$//' | circleci tests run --command=">classnames.txt xargs echo" --verbose --split-by=timings --timings-type=classname - echo "!!!!! CLASSNAMES" - cat classnames.txt - echo "----- CLASSNAMES" - - #if this is a re-run and it is a parallel run that does not have tests to run, halt execution of this parallel run [ -s classnames.txt ] || circleci-agent step halt - GRADLE_ARGS=$(cat src/test/java/classnames.txt | awk '{for (i=1; i<=NF; i++) print "--tests",$i}') + GRADLE_ARGS=$(cat classnames.txt | awk '{for (i=1; i<=NF; i++) print "--tests",$i}') echo "Prepared arguments for Gradle: $GRADLE_ARGS" # TODO: remove before merging, this is here to make testing the scripts quicker