Skip to content
This repository was archived by the owner on Jul 4, 2025. It is now read-only.

Commit b1fe9a9

Browse files
committed
fix: CI
1 parent 4c1a26f commit b1fe9a9

File tree

6 files changed

+299
-224
lines changed

6 files changed

+299
-224
lines changed

.github/scripts/e2e-test-server-linux-and-mac.sh

100644100755
File mode changed.

.github/scripts/e2e-test-server-windows.bat

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,15 @@
11
@echo off
2+
setlocal
3+
4+
rem Bypass "Terminate Batch Job" prompt.
5+
if "%~1"=="-FIXED_CTRL_C" (
6+
REM Remove the -FIXED_CTRL_C parameter
7+
SHIFT
8+
) ELSE (
9+
REM Run the batch with <NUL and -FIXED_CTRL_C
10+
CALL <NUL %0 -FIXED_CTRL_C %*
11+
GOTO :EOF
12+
)
213

314
set "TEMP=C:\Users\%UserName%\AppData\Local\Temp"
415
set "MODEL_LLM_PATH=%TEMP%\testllm"
@@ -69,6 +80,7 @@ set "curl_data3={\"llama_model_path\":\"%MODEL_LLM_PATH_STRING%\"}"
6980
set "curl_data4={\"llama_model_path\":\"%MODEL_EMBEDDING_PATH_STRING%\", \"embedding\": true, \"model_type\": \"embedding\"}"
7081
set "curl_data5={}"
7182
set "curl_data6={\"input\": \"Hello\", \"model\": \"test-embedding\", \"encoding_format\": \"float\"}"
83+
set "curl_data7={\"model\": \"test-embedding\"}"
7284

7385
rem Print the values of curl_data for debugging
7486
echo curl_data1=%curl_data1%
@@ -77,6 +89,7 @@ echo curl_data3=%curl_data3%
7789
echo curl_data4=%curl_data4%
7890
echo curl_data5=%curl_data5%
7991
echo curl_data6=%curl_data6%
92+
echo curl_data7=%curl_data7%
8093

8194
rem Run the curl commands and capture the status code
8295
curl.exe --connect-timeout 60 -o "%TEMP%\response1.log" -s -w "%%{http_code}" --location "http://127.0.0.1:%PORT%/loadmodel" --header "Content-Type: application/json" --data "%curl_data1%" > %TEMP%\response1.log 2>&1
@@ -95,6 +108,8 @@ curl.exe --connect-timeout 60 -o "%TEMP%\response6.log" -s -w "%%{http_code}" --
95108
--header "Content-Type: application/json" ^
96109
--data "%curl_data6%" > %TEMP%\response6.log 2>&1
97110

111+
curl.exe --connect-timeout 60 -s -w "%%{http_code}" --location "http://127.0.0.1:%PORT%/unloadmodel" --header "Content-Type: application/json" --data "%curl_data7%" 2>&1
112+
98113
set "error_occurred=0"
99114

100115
rem Read the status codes from the log files

0 commit comments

Comments
 (0)