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

test: enable/fix rerun failed test on ci-cd #1072

Merged
merged 26 commits into from
Oct 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
edcffc0
ci: try automatically re-running tests
porcellus Oct 28, 2024
a8c2011
ci: try automatically re-running tests
porcellus Oct 28, 2024
d0131bd
ci: try automatically re-running tests
porcellus Oct 28, 2024
173f1c7
ci: try automatically re-running tests
porcellus Oct 28, 2024
c9a9cd7
ci: try automatically re-running tests
porcellus Oct 28, 2024
8dc6806
ci: try automatically re-running tests
porcellus Oct 28, 2024
6d32f48
ci: try automatically re-running tests
porcellus Oct 28, 2024
96bf20a
ci: try automatically re-running tests
porcellus Oct 28, 2024
130b779
ci: try automatically re-running tests
porcellus Oct 28, 2024
3ec3861
test: try and improve flaky tests
porcellus Oct 29, 2024
4fa6968
chore: changelog consistency with plugin
porcellus Oct 29, 2024
d7fab0c
feat: make deep-links work
porcellus Oct 29, 2024
3b32bfe
Merge remote-tracking branch 'origin/9.3' into test-cicd/rerun_failed
porcellus Oct 29, 2024
8b6adb4
test: try and improve flaky tests
porcellus Oct 29, 2024
759319c
test: try and improve flaky tests
porcellus Oct 29, 2024
2368fc3
test: try and improve flaky tests
porcellus Oct 29, 2024
3a959ca
test: try and improve flaky tests
porcellus Oct 29, 2024
c9f5d23
test: try and improve flaky tests
porcellus Oct 29, 2024
ea482d9
test: try and improve flaky tests
porcellus Oct 29, 2024
6c14a13
test: try and improve flaky tests
porcellus Oct 29, 2024
0eee097
test: try and improve flaky tests
porcellus Oct 29, 2024
0adb4e6
test: try and improve flaky tests
porcellus Oct 29, 2024
f859e3b
test: try and improve flaky tests
porcellus Oct 29, 2024
b1657a0
test: try and improve flaky tests
porcellus Oct 29, 2024
b1363fc
test: try and improve flaky tests
porcellus Oct 29, 2024
d745cb6
test: try and improve flaky tests
porcellus Oct 29, 2024
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
9 changes: 0 additions & 9 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,6 @@ jobs:
- run: echo "listen_addresses='*'" >> /etc/postgresql/9.5/main/postgresql.conf
- run: sed -i 's/^#*\s*max_connections\s*=.*/max_connections = 10000/' /etc/postgresql/9.5/main/postgresql.conf
- run: (cd .circleci/ && ./doTests.sh << parameters.plugin >>)
- run:
command: cp ~/supertokens-root/supertokens-core/build/test-results/test/*.xml ~/junit/
when: always
- when:
condition:
not:
equal: [ << parameters.plugin >>, "sqlite" ]
steps:
- run: cp ~/supertokens-root/supertokens-<< parameters.plugin >>-plugin/build/test-results/test/*.xml ~/junit/
- store_test_results:
path: ~/junit
- slack/status
Expand Down
20 changes: 18 additions & 2 deletions .circleci/doTests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ then
exit 1
fi

mkdir -p ~/junit

someTestsRan=false
while read -u 10 line
do
Expand Down Expand Up @@ -165,7 +167,21 @@ do

./startTestingEnv --cicd

if [[ $? -ne 0 ]]
TEST_EXIT_CODE=$?

if [ -d ~/junit ]
then
echo "Copying output from core"
cp ~/supertokens-root/supertokens-core/build/test-results/test/*.xml ~/junit/

if [[ $pluginToTest != "sqlite" ]]
then
echo "Copying output from plugin"
cp ~/supertokens-root/supertokens-$pluginToTest-plugin/build/test-results/test/*.xml ~/junit/
fi
fi

if [[ $TEST_EXIT_CODE -ne 0 ]]
then
echo ""
echo ""
Expand Down Expand Up @@ -197,7 +213,7 @@ do
echo ""
echo ""

cd ../
cd ..
rm -rf supertokens-root

if [[ $currPinnedDb == "sqlite" ]]
Expand Down
Loading