Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
open-webui
Commits
eed6c719
Commit
eed6c719
authored
Apr 28, 2024
by
Jun Siang Cheah
Browse files
fix: disable mysql tests
parent
167b5712
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
35 deletions
+35
-35
.github/workflows/integration-test.yml
.github/workflows/integration-test.yml
+35
-35
No files found.
.github/workflows/integration-test.yml
View file @
eed6c719
...
@@ -69,18 +69,18 @@ jobs:
...
@@ -69,18 +69,18 @@ jobs:
--health-retries 5
--health-retries 5
ports
:
ports
:
-
5432:5432
-
5432:5432
mysql
:
#
mysql:
image
:
mysql
#
image: mysql
env
:
#
env:
MYSQL_ROOT_PASSWORD
:
mysql
#
MYSQL_ROOT_PASSWORD: mysql
MYSQL_DATABASE
:
mysql
#
MYSQL_DATABASE: mysql
options
:
>-
#
options: >-
--health-cmd "mysqladmin ping -h localhost"
#
--health-cmd "mysqladmin ping -h localhost"
--health-interval 10s
#
--health-interval 10s
--health-timeout 5s
#
--health-timeout 5s
--health-retries 5
#
--health-retries 5
ports
:
#
ports:
-
3306:3306
#
- 3306:3306
steps
:
steps
:
-
name
:
Checkout Repository
-
name
:
Checkout Repository
uses
:
actions/checkout@v4
uses
:
actions/checkout@v4
...
@@ -152,26 +152,26 @@ jobs:
...
@@ -152,26 +152,26 @@ jobs:
exit 1
exit 1
fi
fi
-
name
:
Test backend with MySQL
#
- name: Test backend with MySQL
if
:
success() || steps.sqlite.conclusion == 'failure' || steps.postgres.conclusion == 'failure'
#
if: success() || steps.sqlite.conclusion == 'failure' || steps.postgres.conclusion == 'failure'
run
:
|
#
run: |
cd backend
#
cd backend
export DATABASE_URL=mysql://root:mysql@localhost:3306/mysql
#
export DATABASE_URL=mysql://root:mysql@localhost:3306/mysql
WEBUI_SECRET_KEY=secret-key GLOBAL_LOG_LEVEL=debug uvicorn main:app --port "8083" --forwarded-allow-ips '*' &
#
WEBUI_SECRET_KEY=secret-key GLOBAL_LOG_LEVEL=debug uvicorn main:app --port "8083" --forwarded-allow-ips '*' &
UVICORN_PID=$!
#
UVICORN_PID=$!
# Wait up to 20 seconds for the server to start
#
# Wait up to 20 seconds for the server to start
for i in {1..20}; do
#
for i in {1..20}; do
curl -s http://localhost:8083/api/config > /dev/null && break
#
curl -s http://localhost:8083/api/config > /dev/null && break
sleep 1
#
sleep 1
if [ $i -eq 20 ]; then
#
if [ $i -eq 20 ]; then
echo "Server failed to start"
#
echo "Server failed to start"
kill -9 $UVICORN_PID
#
kill -9 $UVICORN_PID
exit 1
#
exit 1
fi
#
fi
done
#
done
# Check that the server is still running after 5 seconds
#
# Check that the server is still running after 5 seconds
sleep 5
#
sleep 5
if ! kill -0 $UVICORN_PID; then
#
if ! kill -0 $UVICORN_PID; then
echo "Server has stopped"
#
echo "Server has stopped"
exit 1
#
exit 1
fi
#
fi
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment