Skip to content

Commit

Permalink
fix: dep updates (#545)
Browse files Browse the repository at this point in the history
* fix: dep updates

* fix: circle ci unit test

* fix: circle ci unit test

* fix: backend-sdk-testing

* fix: backend-sdk-testing

* fix: lsof

* fix: missing to_json and other tests

* fix: website tests

* fix: test servers

* fix: deps for chrome

* fix: xvfb for chrome

* fix: bc

* fix: consume code

* fix: parallelise unit tests

* fix: ci

* fix: disable for testing

* fix: enable auth-react

* fix: update auth-react

* fix: update auth-react

* fix: mocha

* fix: mocha

* fix: mocha

* fix: auth-react script

* fix: stable unit tests and remove retry for auth react

* fix: typo in mocha file

* fix: mocha artifacts

* fix: test reporting

* fix: flask server

* fix: test and response logging

* fix: fast api response logging

* ci: update node version

* fix: enable all tests

* fix: python versions

* fix: python version

---------

Co-authored-by: Mihaly Lengyel <[email protected]>
  • Loading branch information
sattvikc and porcellus authored Nov 28, 2024
1 parent bf14122 commit 28e3e8b
Show file tree
Hide file tree
Showing 140 changed files with 1,156 additions and 691 deletions.
33 changes: 11 additions & 22 deletions .circleci/authReactDjango.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
python_version=$(python --version 2>&1 | awk '{print $2}' | cut -d. -f1,2)
if [[ $(echo "$python_version >= 3.13" | bc -l) -eq 1 ]]; then
pip install setuptools legacy-cgi
fi

echo "Starting tests for FDI $1";

if [ -z "$SUPERTOKENS_API_KEY" ]; then
Expand Down Expand Up @@ -94,26 +99,10 @@ if [[ $frontendDriverVersion == '1.3' || $frontendDriverVersion == '1.8' ]]; the
# we skip 1.8 since the SDK with just 1.8 doesn't have the right scripts
exit 0
else
tries=1
while [ $tries -le 3 ]
do
tries=$(( $tries + 1 ))
./setupAndTestWithAuthReactWithDjango.sh $coreFree $frontendAuthReactTag $nodeTag
if [[ $? -ne 0 ]]
then
if [[ $tries -le 3 ]]
then
rm -rf ../../supertokens-root
rm -rf ../../supertokens-auth-react
echo "failed test.. retrying!"
else
echo "test failed for auth-react tests... exiting!"
exit 1
fi
else
rm -rf ../../supertokens-root
# we do not delete supertokens-auth-react here cause the test reports are generated in there.
break
fi
done
./setupAndTestWithAuthReactWithDjango.sh $coreFree $frontendAuthReactTag $nodeTag
if [[ $? -ne 0 ]]
then
echo "test failed for auth-react tests... exiting!"
exit 1
fi
fi
28 changes: 6 additions & 22 deletions .circleci/authReactFastApi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -94,26 +94,10 @@ if [[ $frontendDriverVersion == '1.3' || $frontendDriverVersion == '1.8' ]]; the
# we skip 1.8 since the SDK with just 1.8 doesn't have the right scripts
exit 0
else
tries=1
while [ $tries -le 3 ]
do
tries=$(( $tries + 1 ))
./setupAndTestWithAuthReact.sh $coreFree $frontendAuthReactTag $nodeTag
if [[ $? -ne 0 ]]
then
if [[ $tries -le 3 ]]
then
rm -rf ../../supertokens-root
rm -rf ../../supertokens-auth-react
echo "failed test.. retrying!"
else
echo "test failed for auth-react tests... exiting!"
exit 1
fi
else
rm -rf ../../supertokens-root
# we do not delete supertokens-auth-react here cause the test reports are generated in there.
break
fi
done
./setupAndTestWithAuthReact.sh $coreFree $frontendAuthReactTag $nodeTag
if [[ $? -ne 0 ]]
then
echo "test failed for auth-react tests... exiting!"
exit 1
fi
fi
28 changes: 6 additions & 22 deletions .circleci/authReactFlask.sh
Original file line number Diff line number Diff line change
Expand Up @@ -96,26 +96,10 @@ if [[ $frontendDriverVersion == '1.3' || $frontendDriverVersion == '1.8' ]]; the
# we skip 1.8 since the SDK with just 1.8 doesn't have the right scripts
exit 0
else
tries=1
while [ $tries -le 3 ]
do
tries=$(( $tries + 1 ))
./setupAndTestWithAuthReactWithFlask.sh $coreFree $frontendAuthReactTag $nodeTag
if [[ $? -ne 0 ]]
then
if [[ $tries -le 3 ]]
then
rm -rf ../../supertokens-root
rm -rf ../../supertokens-auth-react
echo "failed test.. retrying!"
else
echo "test failed for auth-react tests... exiting!"
exit 1
fi
else
rm -rf ../../supertokens-root
# we do not delete supertokens-auth-react here cause the test reports are generated in there.
break
fi
done
./setupAndTestWithAuthReactWithFlask.sh $coreFree $frontendAuthReactTag $nodeTag
if [[ $? -ne 0 ]]
then
echo "test failed for auth-react tests... exiting!"
exit 1
fi
fi
Loading

0 comments on commit 28e3e8b

Please sign in to comment.