Skip to content

Commit

Permalink
ci: try automatically re-running tests
Browse files Browse the repository at this point in the history
  • Loading branch information
porcellus committed Oct 28, 2024
1 parent 173f1c7 commit c9a9cd7
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions .circleci/doTests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c9a9cd7

Please sign in to comment.