Skip to content

Commit 28e3e8b

Browse files
sattvikcporcellus
andauthored
fix: dep updates (#545)
* 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]>
1 parent bf14122 commit 28e3e8b

File tree

140 files changed

+1156
-691
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

140 files changed

+1156
-691
lines changed

.circleci/authReactDjango.sh

Lines changed: 11 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
python_version=$(python --version 2>&1 | awk '{print $2}' | cut -d. -f1,2)
2+
if [[ $(echo "$python_version >= 3.13" | bc -l) -eq 1 ]]; then
3+
pip install setuptools legacy-cgi
4+
fi
5+
16
echo "Starting tests for FDI $1";
27

38
if [ -z "$SUPERTOKENS_API_KEY" ]; then
@@ -94,26 +99,10 @@ if [[ $frontendDriverVersion == '1.3' || $frontendDriverVersion == '1.8' ]]; the
9499
# we skip 1.8 since the SDK with just 1.8 doesn't have the right scripts
95100
exit 0
96101
else
97-
tries=1
98-
while [ $tries -le 3 ]
99-
do
100-
tries=$(( $tries + 1 ))
101-
./setupAndTestWithAuthReactWithDjango.sh $coreFree $frontendAuthReactTag $nodeTag
102-
if [[ $? -ne 0 ]]
103-
then
104-
if [[ $tries -le 3 ]]
105-
then
106-
rm -rf ../../supertokens-root
107-
rm -rf ../../supertokens-auth-react
108-
echo "failed test.. retrying!"
109-
else
110-
echo "test failed for auth-react tests... exiting!"
111-
exit 1
112-
fi
113-
else
114-
rm -rf ../../supertokens-root
115-
# we do not delete supertokens-auth-react here cause the test reports are generated in there.
116-
break
117-
fi
118-
done
102+
./setupAndTestWithAuthReactWithDjango.sh $coreFree $frontendAuthReactTag $nodeTag
103+
if [[ $? -ne 0 ]]
104+
then
105+
echo "test failed for auth-react tests... exiting!"
106+
exit 1
107+
fi
119108
fi

.circleci/authReactFastApi.sh

Lines changed: 6 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -94,26 +94,10 @@ if [[ $frontendDriverVersion == '1.3' || $frontendDriverVersion == '1.8' ]]; the
9494
# we skip 1.8 since the SDK with just 1.8 doesn't have the right scripts
9595
exit 0
9696
else
97-
tries=1
98-
while [ $tries -le 3 ]
99-
do
100-
tries=$(( $tries + 1 ))
101-
./setupAndTestWithAuthReact.sh $coreFree $frontendAuthReactTag $nodeTag
102-
if [[ $? -ne 0 ]]
103-
then
104-
if [[ $tries -le 3 ]]
105-
then
106-
rm -rf ../../supertokens-root
107-
rm -rf ../../supertokens-auth-react
108-
echo "failed test.. retrying!"
109-
else
110-
echo "test failed for auth-react tests... exiting!"
111-
exit 1
112-
fi
113-
else
114-
rm -rf ../../supertokens-root
115-
# we do not delete supertokens-auth-react here cause the test reports are generated in there.
116-
break
117-
fi
118-
done
97+
./setupAndTestWithAuthReact.sh $coreFree $frontendAuthReactTag $nodeTag
98+
if [[ $? -ne 0 ]]
99+
then
100+
echo "test failed for auth-react tests... exiting!"
101+
exit 1
102+
fi
119103
fi

.circleci/authReactFlask.sh

Lines changed: 6 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -96,26 +96,10 @@ if [[ $frontendDriverVersion == '1.3' || $frontendDriverVersion == '1.8' ]]; the
9696
# we skip 1.8 since the SDK with just 1.8 doesn't have the right scripts
9797
exit 0
9898
else
99-
tries=1
100-
while [ $tries -le 3 ]
101-
do
102-
tries=$(( $tries + 1 ))
103-
./setupAndTestWithAuthReactWithFlask.sh $coreFree $frontendAuthReactTag $nodeTag
104-
if [[ $? -ne 0 ]]
105-
then
106-
if [[ $tries -le 3 ]]
107-
then
108-
rm -rf ../../supertokens-root
109-
rm -rf ../../supertokens-auth-react
110-
echo "failed test.. retrying!"
111-
else
112-
echo "test failed for auth-react tests... exiting!"
113-
exit 1
114-
fi
115-
else
116-
rm -rf ../../supertokens-root
117-
# we do not delete supertokens-auth-react here cause the test reports are generated in there.
118-
break
119-
fi
120-
done
99+
./setupAndTestWithAuthReactWithFlask.sh $coreFree $frontendAuthReactTag $nodeTag
100+
if [[ $? -ne 0 ]]
101+
then
102+
echo "test failed for auth-react tests... exiting!"
103+
exit 1
104+
fi
121105
fi

0 commit comments

Comments
 (0)