Skip to content

Commit 52ad657

Browse files
committed
fix(ci): allow the embedding server to start up in integration tests
Signed-off-by: Anupam Kumar <kyteinsky@gmail.com>
1 parent 2a0948c commit 52ad657

3 files changed

Lines changed: 6 additions & 3 deletions

File tree

‎.github/workflows/integration-test-cron.yml‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ jobs:
207207
python3 -u ./main_em.py > em_backend_logs 2>&1 &
208208
python3 -u ./main.py > backend_logs 2>&1 &
209209
echo $! > ../pid.txt # Save the process ID (PID)
210-
sleep 120 # Wait for the backend to get ready
210+
sleep 60 # Wait for the backend to get ready
211211
212212
- name: Register backend
213213
run: |
@@ -216,6 +216,7 @@ jobs:
216216
./occ config:system:set loglevel --value 1
217217
./occ app_api:daemon:register --net host manual_install "Manual Install" manual-install http localhost http://localhost:8080
218218
timeout 120 ./occ app_api:app:register context_chat_backend manual_install --json-info "{\"appid\":\"context_chat_backend\",\"name\":\"Context Chat Backend\",\"daemon_config_name\":\"manual_install\",\"version\":\"${{ fromJson(steps.appinfo.outputs.result).version }}\",\"secret\":\"12345\",\"port\":10034,\"scopes\":[],\"system_app\":0}" --force-scopes --wait-finish
219+
sleep 60 # Wait for the embedding server to get ready
219220
220221
- name: Checkout documentation
221222
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

‎.github/workflows/integration-test-file-listener.yml‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ jobs:
198198
python3 -u ./main_em.py > em_backend_logs 2>&1 &
199199
python3 -u ./main.py > backend_logs 2>&1 &
200200
echo $! > ../pid.txt # Save the process ID (PID)
201-
sleep 120 # Wait for the backend to get ready
201+
sleep 60 # Wait for the backend to get ready
202202
203203
- name: Register backend
204204
run: |
@@ -207,6 +207,7 @@ jobs:
207207
./occ config:system:set loglevel --value 1
208208
./occ app_api:daemon:register --net host manual_install "Manual Install" manual-install http localhost http://localhost:8080
209209
timeout 120 ./occ app_api:app:register context_chat_backend manual_install --json-info "{\"appid\":\"context_chat_backend\",\"name\":\"Context Chat Backend\",\"daemon_config_name\":\"manual_install\",\"version\":\"${{ fromJson(steps.appinfo.outputs.result).version }}\",\"secret\":\"12345\",\"port\":10034,\"scopes\":[],\"system_app\":0}" --force-scopes --wait-finish
210+
sleep 60 # Wait for the embedding server to get ready
210211
211212
- name: Enable context chat
212213
run: |

‎.github/workflows/integration-test-scan.yml‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ jobs:
254254
python3 -u ./main_em.py > em_backend_logs 2>&1 &
255255
python3 -u ./main.py > backend_logs 2>&1 &
256256
echo $! > ../pid.txt # Save the process ID (PID)
257-
sleep 120 # Wait for the backend to get ready
257+
sleep 60 # Wait for the backend to get ready
258258
259259
- name: Register backend
260260
run: |
@@ -263,6 +263,7 @@ jobs:
263263
./occ config:system:set loglevel --value 1
264264
./occ app_api:daemon:register --net host manual_install "Manual Install" manual-install http localhost http://localhost:8080
265265
timeout 120 ./occ app_api:app:register context_chat_backend manual_install --json-info "{\"appid\":\"context_chat_backend\",\"name\":\"Context Chat Backend\",\"daemon_config_name\":\"manual_install\",\"version\":\"${{ fromJson(steps.appinfo.outputs.result).version }}\",\"secret\":\"12345\",\"port\":10034,\"scopes\":[],\"system_app\":0}" --force-scopes --wait-finish
266+
sleep 60 # Wait for the embedding server to get ready
266267
267268
- name: Scan files, baseline
268269
run: |

0 commit comments

Comments
 (0)