From 5eb76c1e3632af161600b9ab89f5050c783164ac Mon Sep 17 00:00:00 2001 From: Mihaly Lengyel Date: Sun, 12 Jan 2025 14:32:50 +0100 Subject: [PATCH] ci: fix rewriteBatchedStatements in ci config --- .circleci/doOneMillionUsersTests.sh | 3 ++- .circleci/doTests.sh | 1 - .github/workflows/tests.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.circleci/doOneMillionUsersTests.sh b/.circleci/doOneMillionUsersTests.sh index 7e56650..b47f156 100755 --- a/.circleci/doOneMillionUsersTests.sh +++ b/.circleci/doOneMillionUsersTests.sh @@ -111,8 +111,9 @@ do cd ../ echo $SUPERTOKENS_API_KEY > apiPassword export ONE_MILLION_USERS_TEST=1 - sed -i 's/# mysql_connection_uri:/mysql_connection_uri: mysql:\/\/root:root@localhost:3306?rewriteBatchedStatements=true/g' config.yaml + ./utils/setupTestEnv --cicd + sed -i 's/# mysql_connection_uri:/mysql_connection_uri: mysql:\/\/root:root@localhost:3306?rewriteBatchedStatements=true/g' temp/config.yaml ./gradlew :supertokens-mysql-plugin:test --tests io.supertokens.storage.mysql.test.OneMillionUsersTest if [[ $? -ne 0 ]] diff --git a/.circleci/doTests.sh b/.circleci/doTests.sh index 6c20385..1fe90ef 100755 --- a/.circleci/doTests.sh +++ b/.circleci/doTests.sh @@ -112,7 +112,6 @@ do git checkout dev-v$pluginVersion cd ../ echo $SUPERTOKENS_API_KEY > apiPassword - sed -i 's/# mysql_connection_uri:/mysql_connection_uri: mysql:\/\/root:root@localhost:3306?rewriteBatchedStatements=true/g' config.yaml ./startTestingEnv --cicd TEST_EXIT_CODE=$? diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index dc2030d..d5879c9 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -39,7 +39,7 @@ jobs: steps: - uses: actions/checkout@v2 - name: Adds mysql host to devConfig.yaml - run: "sed -i 's/# mysql_host:/mysql_host: mysql/g' ./devConfig.yaml" + run: "sed -i 's/# mysql_connection_uri:/mysql_connection_uri: mysql:\/\/root:root@mysql:3306?rewriteBatchedStatements=true/g' ./devConfig.yaml" - name: Cloning supertokens-root run: cd ../ && git clone https://github.com/supertokens/supertokens-root.git - name: Update Java 1