Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: changelog and tests #538

Merged
merged 11 commits into from
Nov 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
60 changes: 53 additions & 7 deletions .circleci/config_continue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,45 +62,61 @@ jobs:
docker:
- image: rishabhpoddar/supertokens_python_driver_testing
resource_class: large
parameters:
fdi-version:
type: string
parallelism: 4
steps:
- checkout
- run: update-alternatives --install "/usr/bin/java" "java" "/usr/java/jdk-15.0.1/bin/java" 2
- run: update-alternatives --install "/usr/bin/javac" "javac" "/usr/java/jdk-15.0.1/bin/javac" 2
- run: git config --global url."https://github.com/".insteadOf ssh://[email protected]/
- run: echo "127.0.0.1 localhost.org" >> /etc/hosts
- run: make with-fastapi
- run: (cd .circleci/ && ./websiteFastApi.sh)
- run: (cd .circleci/ && ./websiteFastApi.sh << parameters.fdi-version >>)
- slack/status
test-website-flask:
docker:
- image: rishabhpoddar/supertokens_python_driver_testing
resource_class: large
parameters:
fdi-version:
type: string
parallelism: 4
steps:
- checkout
- run: update-alternatives --install "/usr/bin/java" "java" "/usr/java/jdk-15.0.1/bin/java" 2
- run: update-alternatives --install "/usr/bin/javac" "javac" "/usr/java/jdk-15.0.1/bin/javac" 2
- run: git config --global url."https://github.com/".insteadOf ssh://[email protected]/
- run: echo "127.0.0.1 localhost.org" >> /etc/hosts
- run: make with-flask
- run: (cd .circleci/ && ./websiteFlask.sh)
- run: (cd .circleci/ && ./websiteFlask.sh << parameters.fdi-version >>)
- slack/status
test-website-django:
docker:
- image: rishabhpoddar/supertokens_python_driver_testing
resource_class: large
parameters:
fdi-version:
type: string
parallelism: 4
steps:
- checkout
- run: update-alternatives --install "/usr/bin/java" "java" "/usr/java/jdk-15.0.1/bin/java" 2
- run: update-alternatives --install "/usr/bin/javac" "javac" "/usr/java/jdk-15.0.1/bin/javac" 2
- run: git config --global url."https://github.com/".insteadOf ssh://[email protected]/
- run: echo "127.0.0.1 localhost.org" >> /etc/hosts
- run: make with-django
- run: (cd .circleci/ && ./websiteDjango.sh)
- run: (cd .circleci/ && ./websiteDjango.sh << parameters.fdi-version >>)
- slack/status
test-website-drf-async:
docker:
- image: rishabhpoddar/supertokens_python_driver_testing
resource_class: large
parameters:
fdi-version:
type: string
parallelism: 4
steps:
- checkout
- run: update-alternatives --install "/usr/bin/java" "java" "/usr/java/jdk-15.0.1/bin/java" 2
Expand All @@ -114,12 +130,16 @@ jobs:
- run: echo "alias pip3='python -m pip'" >> ~/.bashrc
- run: echo "127.0.0.1 localhost.org" >> /etc/hosts
- run: make with-drf
- run: (cd .circleci/ && ./websiteDrfAsync.sh)
- run: (cd .circleci/ && ./websiteDrfAsync.sh << parameters.fdi-version >>)
- slack/status
test-website-drf-sync:
docker:
- image: rishabhpoddar/supertokens_python_driver_testing
resource_class: large
parameters:
fdi-version:
type: string
parallelism: 4
steps:
- checkout
- run: update-alternatives --install "/usr/bin/java" "java" "/usr/java/jdk-15.0.1/bin/java" 2
Expand All @@ -133,27 +153,35 @@ jobs:
- run: echo "alias pip3='python -m pip'" >> ~/.bashrc
- run: echo "127.0.0.1 localhost.org" >> /etc/hosts
- run: make with-drf
- run: (cd .circleci/ && ./websiteDrfSync.sh)
- run: (cd .circleci/ && ./websiteDrfSync.sh << parameters.fdi-version >>)
- slack/status
test-website-django2x:
docker:
- image: rishabhpoddar/supertokens_python_driver_testing
resource_class: large
parameters:
fdi-version:
type: string
parallelism: 4
steps:
- checkout
- run: update-alternatives --install "/usr/bin/java" "java" "/usr/java/jdk-15.0.1/bin/java" 2
- run: update-alternatives --install "/usr/bin/javac" "javac" "/usr/java/jdk-15.0.1/bin/javac" 2
- run: git config --global url."https://github.com/".insteadOf ssh://[email protected]/
- run: echo "127.0.0.1 localhost.org" >> /etc/hosts
- run: make with-django2x
- run: (cd .circleci/ && ./websiteDjango2x.sh)
- run: (cd .circleci/ && ./websiteDjango2x.sh << parameters.fdi-version >>)
- slack/status
test-website-flask-nest-asyncio:
docker:
- image: rishabhpoddar/supertokens_python_driver_testing
resource_class: large
environment:
SUPERTOKENS_NEST_ASYNCIO: "1"
parameters:
fdi-version:
type: string
parallelism: 4
steps:
- checkout
- run: update-alternatives --install "/usr/bin/java" "java" "/usr/java/jdk-15.0.1/bin/java" 2
Expand All @@ -162,7 +190,7 @@ jobs:
- run: echo "127.0.0.1 localhost.org" >> /etc/hosts
- run: make with-flask
- run: python -m pip install nest-asyncio
- run: (cd .circleci/ && ./websiteFlask.sh)
- run: (cd .circleci/ && ./websiteFlask.sh << parameters.fdi-version >>)
- slack/status
test-authreact-fastapi:
docker:
Expand Down Expand Up @@ -306,6 +334,9 @@ workflows:
- test-dev-tag-as-not-passed
context:
- slack-notification
matrix:
parameters:
fdi-version: placeholder
filters:
tags:
only: /dev-v[0-9]+(\.[0-9]+)*/
Expand All @@ -316,6 +347,9 @@ workflows:
- test-dev-tag-as-not-passed
context:
- slack-notification
matrix:
parameters:
fdi-version: placeholder
filters:
tags:
only: /dev-v[0-9]+(\.[0-9]+)*/
Expand All @@ -326,6 +360,9 @@ workflows:
- test-dev-tag-as-not-passed
context:
- slack-notification
matrix:
parameters:
fdi-version: placeholder
filters:
tags:
only: /dev-v[0-9]+(\.[0-9]+)*/
Expand All @@ -336,6 +373,9 @@ workflows:
- test-dev-tag-as-not-passed
context:
- slack-notification
matrix:
parameters:
fdi-version: placeholder
filters:
tags:
only: /dev-v[0-9]+(\.[0-9]+)*/
Expand All @@ -346,6 +386,9 @@ workflows:
- test-dev-tag-as-not-passed
context:
- slack-notification
matrix:
parameters:
fdi-version: placeholder
filters:
tags:
only: /dev-v[0-9]+(\.[0-9]+)*/
Expand All @@ -356,6 +399,9 @@ workflows:
- test-dev-tag-as-not-passed
context:
- slack-notification
matrix:
parameters:
fdi-version: placeholder
filters:
tags:
only: /dev-v[0-9]+(\.[0-9]+)*/
Expand Down
8 changes: 7 additions & 1 deletion .circleci/setupAndTestWithFrontend.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,13 @@ npm i git+https://github.com:supertokens/supertokens-node.git#$3
npm i
cd ../../
npm i
SUPERTOKENS_CORE_TAG=$coreTag NODE_PORT=8081 INSTALL_PATH=../supertokens-root npm test

if ! [[ -z "${CIRCLE_NODE_TOTAL}" ]]; then
TEST_MODE=testing SUPERTOKENS_CORE_TAG=$coreTag NODE_PORT=8081 INSTALL_PATH=../supertokens-root npx mocha --exit --no-config --require isomorphic-fetch --timeout 500000 $(npx mocha-split-tests -r ./runtime.log -t $CIRCLE_NODE_TOTAL -g $CIRCLE_NODE_INDEX -f 'test/*.test.js')
else
TEST_MODE=testing SUPERTOKENS_CORE_TAG=$coreTag NODE_PORT=8081 INSTALL_PATH=../supertokens-root npm test
fi

if [[ $? -ne 0 ]]
then
echo "test failed... killing $pid, $pid2 and exiting!"
Expand Down
8 changes: 7 additions & 1 deletion .circleci/setupAndTestWithFrontendWithDjango.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,13 @@ npm i git+https://github.com:supertokens/supertokens-node.git#$3
npm i
cd ../../
npm i
SUPERTOKENS_CORE_TAG=$coreTag NODE_PORT=8081 INSTALL_PATH=../supertokens-root npm test

if ! [[ -z "${CIRCLE_NODE_TOTAL}" ]]; then
TEST_MODE=testing SUPERTOKENS_CORE_TAG=$coreTag NODE_PORT=8081 INSTALL_PATH=../supertokens-root npx mocha --exit --no-config --require isomorphic-fetch --timeout 500000 $(npx mocha-split-tests -r ./runtime.log -t $CIRCLE_NODE_TOTAL -g $CIRCLE_NODE_INDEX -f 'test/*.test.js')
else
TEST_MODE=testing SUPERTOKENS_CORE_TAG=$coreTag NODE_PORT=8081 INSTALL_PATH=../supertokens-root npm test
fi

if [[ $? -ne 0 ]]
then
echo "test failed... killing $pid, $pid2 and exiting!"
Expand Down
8 changes: 7 additions & 1 deletion .circleci/setupAndTestWithFrontendWithDjango2x.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,13 @@ npm i git+https://github.com:supertokens/supertokens-node.git#$3
npm i
cd ../../
npm i
SUPERTOKENS_CORE_TAG=$coreTag NODE_PORT=8081 INSTALL_PATH=../supertokens-root npm test

if ! [[ -z "${CIRCLE_NODE_TOTAL}" ]]; then
TEST_MODE=testing SUPERTOKENS_CORE_TAG=$coreTag NODE_PORT=8081 INSTALL_PATH=../supertokens-root npx mocha --exit --no-config --require isomorphic-fetch --timeout 500000 $(npx mocha-split-tests -r ./runtime.log -t $CIRCLE_NODE_TOTAL -g $CIRCLE_NODE_INDEX -f 'test/*.test.js')
else
TEST_MODE=testing SUPERTOKENS_CORE_TAG=$coreTag NODE_PORT=8081 INSTALL_PATH=../supertokens-root npm test
fi

if [[ $? -ne 0 ]]
then
echo "test failed... killing $pid, $pid2 and exiting!"
Expand Down
8 changes: 7 additions & 1 deletion .circleci/setupAndTestWithFrontendWithDrfAsync.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,13 @@ npm i git+https://github.com:supertokens/supertokens-node.git#$3
npm i
cd ../../
npm i
SUPERTOKENS_CORE_TAG=$coreTag NODE_PORT=8081 INSTALL_PATH=../supertokens-root npm test

if ! [[ -z "${CIRCLE_NODE_TOTAL}" ]]; then
TEST_MODE=testing SUPERTOKENS_CORE_TAG=$coreTag NODE_PORT=8081 INSTALL_PATH=../supertokens-root npx mocha --exit --no-config --require isomorphic-fetch --timeout 500000 $(npx mocha-split-tests -r ./runtime.log -t $CIRCLE_NODE_TOTAL -g $CIRCLE_NODE_INDEX -f 'test/*.test.js')
else
TEST_MODE=testing SUPERTOKENS_CORE_TAG=$coreTag NODE_PORT=8081 INSTALL_PATH=../supertokens-root npm test
fi

if [[ $? -ne 0 ]]
then
echo "test failed... killing $pid, $pid2 and exiting!"
Expand Down
8 changes: 7 additions & 1 deletion .circleci/setupAndTestWithFrontendWithDrfSync.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,13 @@ npm i git+https://github.com:supertokens/supertokens-node.git#$3
npm i
cd ../../
npm i
SUPERTOKENS_CORE_TAG=$coreTag NODE_PORT=8081 INSTALL_PATH=../supertokens-root npm test

if ! [[ -z "${CIRCLE_NODE_TOTAL}" ]]; then
TEST_MODE=testing SUPERTOKENS_CORE_TAG=$coreTag NODE_PORT=8081 INSTALL_PATH=../supertokens-root npx mocha --exit --no-config --require isomorphic-fetch --timeout 500000 $(npx mocha-split-tests -r ./runtime.log -t $CIRCLE_NODE_TOTAL -g $CIRCLE_NODE_INDEX -f 'test/*.test.js')
else
TEST_MODE=testing SUPERTOKENS_CORE_TAG=$coreTag NODE_PORT=8081 INSTALL_PATH=../supertokens-root npm test
fi

if [[ $? -ne 0 ]]
then
echo "test failed... killing $pid, $pid2 and exiting!"
Expand Down
8 changes: 7 additions & 1 deletion .circleci/setupAndTestWithFrontendWithFlask.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,13 @@ npm i git+https://github.com:supertokens/supertokens-node.git#$3
npm i
cd ../../
npm i
SUPERTOKENS_CORE_TAG=$coreTag NODE_PORT=8081 INSTALL_PATH=../supertokens-root npm test

if ! [[ -z "${CIRCLE_NODE_TOTAL}" ]]; then
TEST_MODE=testing SUPERTOKENS_CORE_TAG=$coreTag NODE_PORT=8081 INSTALL_PATH=../supertokens-root npx mocha --exit --no-config --require isomorphic-fetch --timeout 500000 $(npx mocha-split-tests -r ./runtime.log -t $CIRCLE_NODE_TOTAL -g $CIRCLE_NODE_INDEX -f 'test/*.test.js')
else
TEST_MODE=testing SUPERTOKENS_CORE_TAG=$coreTag NODE_PORT=8081 INSTALL_PATH=../supertokens-root npm test
fi

if [[ $? -ne 0 ]]
then
echo "test failed... killing $pid, $pid2 and exiting!"
Expand Down
Loading
Loading