Skip to content

Commit 44d7988

Browse files
tazlindb0
authored andcommitted
ci: increase CI server startup wait to 35s
Extend the sleep from 10s to 35s in CI workflows to give `python server.py` more time to initialize before running registration and tests, reducing intermittent startup-related failures. Updated .github/workflows/maintests.yml and .github/workflows/prtests.yml.
1 parent 73d4fc4 commit 44d7988

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/maintests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ jobs:
7474
run: |
7575
python -m pip install -r requirements.txt -r requirements.dev.txt
7676
python server.py -vvvvi --horde stable &
77-
sleep 10
77+
sleep 35
7878
7979
curl -X POST --data-raw 'username=test_user' http://localhost:7001/register | grep -Po '<code class="ah-api-key">\K[^<]*(?=</code>)' > tests/apikey.txt
8080
export AI_HORDE_DEV_APIKEY=$(cat tests/apikey.txt)

.github/workflows/prtests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ jobs:
9797
run: |
9898
python -m pip install -r requirements.txt -r requirements.dev.txt
9999
python server.py -vvvvi --horde stable &
100-
sleep 10
100+
sleep 35
101101
102102
curl -X POST --data-raw 'username=test_user' http://localhost:7001/register | grep -Po '<code class="ah-api-key">\K[^<]*(?=</code>)' > tests/apikey.txt
103103
export AI_HORDE_DEV_APIKEY=$(cat tests/apikey.txt)

0 commit comments

Comments
 (0)